Commit 0b79f9e5 authored by dragondean@qq.com's avatar dragondean@qq.com

修复海运非单位不同步

parent a7f3c48d
...@@ -33,16 +33,11 @@ export default { ...@@ -33,16 +33,11 @@ export default {
computed:{ computed:{
getUnit(){ getUnit(){
return (field, unitField) => { return (field, unitField) => {
if(this.type == 'sea'){ // 非阶梯价
if(this.value.stepPrice && !this.value.priceStepList?.length){ if(this.value?.stepPrice != 1){
return null
}
if(this.value.stepPrice){
return this.value.priceStepList[0][unitField]
}
return this.value[unitField] return this.value[unitField]
} }
// 后面是空运 // 后面是阶梯价
if(!this.value[field]?.length) return null if(!this.value[field]?.length) return null
return this.value[field][0][unitField] return this.value[field][0][unitField]
} }
......
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