Commit 019748cf authored by TIAN.DESHENG's avatar TIAN.DESHENG

开通服务页面修改

parent 3123755f
......@@ -279,11 +279,16 @@
<!--设置服务-->
<el-dialog title="设置服务" :visible.sync="serviceOpen" width="1000px" append-to-body>
<el-form ref="form" :model="lineform" :rules="rules" label-width="80px">
<el-form-item label="其他服务" prop="otherServiceList">
<el-checkbox-group v-model="lineform.serviceList">
<el-form-item label="始发港服务">
<el-checkbox-group v-model="lineform.startDestination">
<el-checkbox v-for="item in serviceGroup" :label="item.id" :key="item.id" :value="item.id"> {{item.text}}</el-checkbox>
</el-checkbox-group>
</el-form-item>
<el-form-item label="目的港服务">
<el-checkbox-group v-model="lineform.endDestination">
<el-checkbox v-for="item in endServiceGroup" :label="item.id" :key="item.id" :value="item.id"> {{item.text}}</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -430,8 +435,13 @@ export default {
cityList: [],
serviceGroup: [
{id: '1', text: '送货上门'},
{id: '2', text: '非控货订单代收货款'}
{id: '1', text: '集运服务'},
{id: '2', text: '送货上门'}
],
endServiceGroup: [
{id: '3', text: '非控货订单代收货款'},
{id: '4', text: '海外仓'}
],
// 总条数
......@@ -489,7 +499,7 @@ export default {
// 表单参数
form: {checkList:[],},
ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[]},
lineform: {serviceList:[]},
lineform: {startDestination:[],endDestination:[]},
// 表单校验
rules: {
......@@ -767,17 +777,19 @@ export default {
serviceClick(row) {
if(row.otherService) {
this.lineform.serviceList = row.otherService.split(",");
this.lineform.startDestination = row.otherService.split(",");
this.lineform.endDestination = row.otherService.split(",");
} else {
this.lineform.serviceList = [];
this.lineform.startDestination = [];
this.lineform.endDestination = [];
}
this.serviceOpen = true;
this.lineform.lineId = row.lineId;
},
submitLineForm() {
let otherService = this.lineform.serviceList.join(',');
this.lineform.otherService = otherService;
let otherService = this.lineform.startDestination.concat(this.lineform.endDestination);
this.lineform.otherService = otherService.join(',');
serviceConfig(this.lineform).then(res => {
this.$modal.msgSuccess("操作成功");
......
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