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

修复海运非单位不同步

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