Commit 5cf409e6 authored by Marcus's avatar Marcus

当未指定重泡货优惠时关闭指定线路,同是将指定线路的值置空。

https://zentao.test.jdshangmen.com/bug-view-2988.html
parent a8579832
......@@ -200,7 +200,7 @@
</el-form-item>
</el-col>
<el-col :span="13">
<el-form-item :label="$t('泡货标准')" prop="weightUnit">
<el-form-item :label="$t('泡货标准')" prop="lightUnit">
<el-switch v-model="showPao"/>
<el-input v-model="form.lightUnit" :placeholder="$t('请输入泡货标准')" v-show="showPao">
<template slot="append">kg/cbm</template>
......@@ -800,8 +800,14 @@ export default {
}
// 重货标准和泡货标准,未打开就不传,提交前清空一下
if(!this.showZhong) this.form.weightUnit = null
if(!this.showPao) this.form.lightUnit = null
if(!this.showZhong) {
this.form.weightUnit = null
this.form.zhongLines = null
}
if(!this.showPao) {
this.form.lightUnit = null
this.form.paoLines = null
}
const form = {...this.form, type: this.form.type?.join(','), transportType: (this.form.transportType || [])?.join(','), taxRate: Number(this.form.taxRate)}
// 检查路线是否启用了但是没选择目的仓
......
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