Commit 6b1fe58c authored by dragondean@qq.com's avatar dragondean@qq.com

修复包装单位不同步

parent 5dcd111d
...@@ -561,7 +561,12 @@ export default { ...@@ -561,7 +561,12 @@ export default {
item[data.field] = data.value item[data.field] = data.value
if(item.packagingList?.length){ if(item.packagingList?.length){
item.packagingList.forEach(p => { item.packagingList.forEach(p => {
p[data.field] = data.value if(data.field.indexOf("PriceUnit") > -1){
p['packagingPriceUnit'] = data.value
}
if(data.field.indexOf("VolumeUnit") > -1){
p['packagingVolumeUnit'] = data.value
}
}) })
} }
if(item.specialList?.length){ if(item.specialList?.length){
......
...@@ -527,7 +527,12 @@ export default { ...@@ -527,7 +527,12 @@ export default {
item[data.field] = data.value item[data.field] = data.value
if(item.packagingList?.length){ if(item.packagingList?.length){
item.packagingList.forEach(p => { item.packagingList.forEach(p => {
p[data.field] = data.value if(data.field.indexOf("PriceUnit") > -1){
p['packagingPriceUnit'] = data.value
}
if(data.field.indexOf("VolumeUnit") > -1){
p['packagingVolumeUnit'] = data.value
}
}) })
} }
if(item.specialList?.length){ if(item.specialList?.length){
...@@ -584,7 +589,7 @@ export default { ...@@ -584,7 +589,7 @@ export default {
}else{ }else{
data.clearancePriceStepList = this.getPriceList(this.form.clearancePriceStepList) data.clearancePriceStepList = this.getPriceList(this.form.clearancePriceStepList)
data.freightPriceStepList = this.getPriceList(this.form.freightPriceStepList) data.freightPriceStepList = this.getPriceList(this.form.freightPriceStepList)
delete data.freightPriceStepList delete data.fullPriceStepList
} }
// 设置了有效期,且已过期则给提示 // 设置了有效期,且已过期则给提示
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment