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

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

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