[关闭]
@salen 2017-11-06T03:05:32.000000Z 字数 377 阅读 328

填充开票人,修改人,开票时间,修改时间

未分类


  1. // 在进入组件时根据是否编辑来判断填入开票人还是修改
  2. // $getStore获取locaStore数据(参考src -> config -> localStore)
  3. mounted() {
  4. this.edit ?
  5. this.detailInfo.update_person = this.$getStore('real_name') : this.detailInfo.issuer = this.$getStore('real_name')
  6. }
  1. // 保存时根据是否编辑来判断填入开票时间还是修改时间
  2. // getTime() 参考src -> utils -> time
  3. save() {
  4. this.edit ?
  5. this.detailInfo.update_time = getTime() :
  6. this.detailInfo.billing_time = getTime()
  7. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注