Commit 3dd251f8 authored by dragondean@qq.com's avatar dragondean@qq.com

批量加价包装类型单位不同步的bug

parent 22285a92
......@@ -278,7 +278,12 @@ export default {
}
if(item.packagingList?.length){
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){
......
......@@ -206,7 +206,7 @@ export default {
if(index > 0) return
const isVolumeUnit = data.field.indexOf("VolumeUnit") > -1
// 如果是重量单位,且不是清关费想换的,则需要同步最小起计量单位
if(isVolumeUnit === 'weightUnit' && data.type != 'clearance'){
if(isVolumeUnit && data.type != 'clearance'){
this.form.minWeightUnit = data.value
}
stepPriceList.forEach(item => {
......@@ -217,7 +217,12 @@ export default {
}
if(item.packagingList?.length){
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){
......
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