|
|
@@ -488,14 +488,14 @@ export default {
|
|
488
|
488
|
id: options.id,
|
|
489
|
489
|
userId: this.$store.state.user.userInfo.userId,
|
|
490
|
490
|
}).then(res => {
|
|
491
|
|
- const key = ['costPrice','dictLabel','dictValue','goodPicFileList','indexntifuCode','origin','stockStatus']
|
|
492
|
|
- key.forEach(item => {
|
|
|
491
|
+ const keys = Object.keys(res.data)
|
|
|
492
|
+ keys.forEach(item => {
|
|
493
|
493
|
this.formData[item] = res.data[item]
|
|
494
|
494
|
})
|
|
495
|
|
- this.recycleTime = this.$dayjs(res.data.recycleTime).format('YYYY-MM-DD') || ''
|
|
|
495
|
+ this.formData.recycleTime = this.$dayjs(res.data.recycleTime).format('YYYY-MM-DD') || ''
|
|
496
|
496
|
this.echoInfoType = res.data.type || '1'
|
|
497
|
|
- this.echoInfoProductAttribute = '1'
|
|
498
|
|
- this.echoInfoProductCondition = '1'
|
|
|
497
|
+ this.echoInfoProductAttribute = res.data.productAttribute || '1'
|
|
|
498
|
+ this.echoInfoProductCondition = res.data.productCondition || '1'
|
|
499
|
499
|
this.echoInfoStockStatus = res.data.stockStatus || '0'
|
|
500
|
500
|
});
|
|
501
|
501
|
}
|