Commit 0427e2f5 authored by 332784038@qq.com's avatar 332784038@qq.com

批量优惠全包价改运费+清关费bug修复

parent d11cc8fa
......@@ -70,7 +70,7 @@
<div>{{$t('新清关费')}}: <el-input v-model="row.clearanceFreight" type="number" class="w-100" />
<!--货币-->
<selector v-model="row.clearanceFreightCurrency" :options="currencyList" :label-field="$l('title')" value-field="id" defaultable class="w-100 ml-10" />
/ {{ unitMap[row.clearanceFreightVolume] }}</div>
/ {{ unitMap[row.freightVolume] }}</div>
</div>
<div v-else>
{{$t('新全包价')}}: <el-input v-model="row.freight" type="number" class="w-100" />
......@@ -156,6 +156,13 @@ export default {
}
},
methods: {
changeClearanceFreightVolume(row) {
console.log("切换付费模式:", row.charging)
if (!row.charging && (!row.clearanceFreightVolume && row.clearanceFreightVolume == 0)){
// 当付费模式从全包价修改为运费+清关费时,清关费的计量单位为空,需要同步运费的计量单位
row.clearanceFreightVolume = row.freightVolume
}
},
handleSubmit(){
var fee = false
var msg = ''
......@@ -170,6 +177,10 @@ export default {
}
}else{
if (!v.clearanceFreightVolume && v.clearanceFreightVolume == 0){
// 当付费模式从全包价修改为运费+清关费时,清关费的计量单位为空,需要同步运费的计量单位
v.clearanceFreightVolume = v.freightVolume
}
if(!v.clearanceFreight){
fee = true
msg = this.$t('新清关费不能为空')
......
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