Commit 8a3a0e90 authored by 邓春圆's avatar 邓春圆

开通路线初始化修改

parent bf74d34f
...@@ -302,8 +302,8 @@ ...@@ -302,8 +302,8 @@
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item :label="$t('目的港服务')"> <el-form-item :label="$t('目的港服务')">
<el-checkbox-group v-model="lineform.otherService"> <el-checkbox-group v-model="lineform.otherService">
<el-checkbox v-for="item in endServiceGroup" :label="item.id" :key="item.id" :value="item.id" v-show="isShowError(item)"> {{item.text}}</el-checkbox> <el-checkbox @click.native="changeOtherService(item.id)" :checked="lineform.otherService.includes(item.id)" v-for="item in endServiceGroup" :label="item.id " :key="item.id" :value="item.id" v-show="isShowError(item)"> {{item.text}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</el-form-item> </el-form-item>
<el-form-item v-if="['3','4'].includes(lineform.transportType)" label="空运提单制作节点"> <el-form-item v-if="['3','4'].includes(lineform.transportType)" label="空运提单制作节点">
...@@ -436,7 +436,6 @@ export default { ...@@ -436,7 +436,6 @@ export default {
RoutersSelectorWithoutChannel RoutersSelectorWithoutChannel
}, },
data() { data() {
var areaCheck = (rule, value, callback) => { var areaCheck = (rule, value, callback) => {
if(!this.form.zhou) { if(!this.form.zhou) {
callback(new Error(this.$t('请选择大洲'))); callback(new Error(this.$t('请选择大洲')));
...@@ -548,7 +547,7 @@ export default { ...@@ -548,7 +547,7 @@ export default {
// 表单参数 // 表单参数
form: {checkList:[],}, form: {checkList:[],},
ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[]}, ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[]},
lineform: {otherService:[],isClientShow:1,makeBillNode:'2',controlStatus:'',currencyUnit:''}, lineform: {otherService:[],isClientShow:1,makeBillNode:'2',controlStatus:'0',currencyUnit:1},
startName:'', startName:'',
destName:'', destName:'',
...@@ -685,6 +684,14 @@ export default { ...@@ -685,6 +684,14 @@ export default {
this.getContinentsList(); this.getContinentsList();
}, },
methods: { methods: {
changeOtherService(val){
console.log(val,'val')
if(val === '2' && !this.lineform.otherService.includes('10')){
this.lineform.otherService.push('10');
}
},
getDictDatas,
getDictDataLabel, getDictDataLabel,
setTpl(type){ setTpl(type){
this.ladingform.titleZh = tpl[type] this.ladingform.titleZh = tpl[type]
...@@ -861,8 +868,9 @@ export default { ...@@ -861,8 +868,9 @@ export default {
this.serviceOpen = true; this.serviceOpen = true;
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 === 0 ? '' : row.currencyUnit this.lineform.currencyUnit = row.currencyUnit ? row.currencyUnit : 1
this.lineform.controlStatus = row.controlStatus this.lineform.controlStatus = row.controlStatus ? row.controlStatus : 0
console.log(row,'row')
}, },
submitLineForm() { submitLineForm() {
......
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