Commit 25b0d5ff by chenwq

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

1 parent 6938e9d5
......@@ -1491,6 +1491,7 @@ export default {
var params = this.$common.utils.deepClone(this.editForm)
var deleteAttrList = ['descImgList', 'describeTxt', 'specificationList']
var priceList = ['retailPrice', 'originalPrice', 'supplyPrice', 'expressFee', 'memberPrice']
var storeResetList = ['takeType', 'takeAllMerchant']
if (this.routeInfo.addOrEdit == 2) {
params.id = this.routeInfo.id
}
......@@ -1534,9 +1535,12 @@ export default {
stock: item.stock
})
})
// 专区-门店没有专区
// 专区-门店没有专区;门店,有的字段置空
if (this.routeInfo.groupOrStore != 1) {
delete params.zoneId
storeResetList.forEach(item => {
params[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!