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

开通路线初始化修改

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