Commit e8f7eace authored by 邓春圆's avatar 邓春圆

添加

最小保价费金额 回显
parent 3a86cc5b
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item :label="$t('保费币种')"> <el-form-item :label="$t('保费币种')">
<el-select v-model="lineform.currencyUnit"> <el-select @change="modifyAmountUnit" v-model="lineform.currencyUnit">
<el-option v-for="(item) in currencyList" :disabled="item.status === 1" :label="$l(item, 'title')" :value="item.id"></el-option> <el-option v-for="(item) in currencyList" :disabled="item.status === 1" :label="$l(item, 'title')" :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -694,6 +694,14 @@ export default { ...@@ -694,6 +694,14 @@ export default {
this.getContinentsList(); this.getContinentsList();
}, },
methods: { methods: {
modifyAmountUnit(val){
console.log(val,'val')
if(val === 6){
this.lineform.minPrice = 900
}else {
this.lineform.minPrice = 2
}
},
changeOtherService(val){ changeOtherService(val){
if(val === '2' && !( Array.isArray(this.lineform.otherService) ? this.lineform.otherService :[]).includes('10')){ if(val === '2' && !( Array.isArray(this.lineform.otherService) ? this.lineform.otherService :[]).includes('10')){
this.lineform.otherService.push('10'); this.lineform.otherService.push('10');
...@@ -877,8 +885,18 @@ export default { ...@@ -877,8 +885,18 @@ export default {
this.lineform.lineId = row.lineId; this.lineform.lineId = row.lineId;
this.lineform.transportType = row.transportType; this.lineform.transportType = row.transportType;
this.lineform.currencyUnit = row.currencyUnit ? row.currencyUnit : 1 this.lineform.currencyUnit = row.currencyUnit ? row.currencyUnit : 1
this.lineform.controlStatus = row.controlStatus ? row.controlStatus : 0 this.lineform.controlStatus = row.controlStatus ? row.controlStatus : 0
this.lineform.minPrice = row.minPrice ? row.minPrice : 0 if(row.minPrice){
this.lineform.minPrice = row.minPrice;
}else {
if(this.lineform.currencyUnit === 6){
this.lineform.minPrice = 900
}else {
this.lineform.minPrice = 2
}
}
console.log(row,'row') console.log(row,'row')
}, },
......
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