Commit af866ba2 by 前端

Merge branch 'chenwq_dev_v2.1.0' into 'v2.1.0'

商品编辑,门店-带货字段置空

See merge request !122
2 parents 525c7fac 25b0d5ff
...@@ -1491,6 +1491,7 @@ export default { ...@@ -1491,6 +1491,7 @@ export default {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
var deleteAttrList = ['descImgList', 'describeTxt', 'specificationList'] var deleteAttrList = ['descImgList', 'describeTxt', 'specificationList']
var priceList = ['retailPrice', 'originalPrice', 'supplyPrice', 'expressFee', 'memberPrice'] var priceList = ['retailPrice', 'originalPrice', 'supplyPrice', 'expressFee', 'memberPrice']
var storeResetList = ['takeType', 'takeAllMerchant']
if (this.routeInfo.addOrEdit == 2) { if (this.routeInfo.addOrEdit == 2) {
params.id = this.routeInfo.id params.id = this.routeInfo.id
} }
...@@ -1534,9 +1535,12 @@ export default { ...@@ -1534,9 +1535,12 @@ export default {
stock: item.stock stock: item.stock
}) })
}) })
// 专区-门店没有专区 // 专区-门店没有专区;门店,有的字段置空
if (this.routeInfo.groupOrStore != 1) { if (this.routeInfo.groupOrStore != 1) {
delete params.zoneId delete params.zoneId
storeResetList.forEach(item => {
params[item] = ''
})
} }
// 价格格式化(计算到分) // 价格格式化(计算到分)
priceList.forEach(item => { priceList.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!