Commit e82cf240 authored by wanglianghe's avatar wanglianghe

服务说明,重泡货bug修改

parent 5d915578
......@@ -278,6 +278,12 @@
<!--设置服务-->
<el-dialog title="设置服务" :visible.sync="serviceOpen" width="1000px" append-to-body>
<div style="font-size:large">
线路:{{this.startName}}到{{this.destName}}<span style="margin-left:20px">运输方式:{{transportName(this.lineform.transportType)}}</span>
</div>
<br/>
<el-form ref="form" :model="lineform" :rules="rules" label-width="120px">
<el-form-item label="始发港服务">
<el-checkbox-group v-model="lineform.otherService">
......@@ -501,6 +507,8 @@ export default {
form: {checkList:[],},
ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[]},
lineform: {otherService:[]},
startName:'',
destName:'',
// 表单校验
rules: {
......@@ -785,6 +793,11 @@ export default {
},
serviceClick(row) {
if(this.routeQueryParam.tradeType == 1) {
this.destName = row.titleZh;
} else {
this.startName = row.titleZh;
}
if(row.otherService) {
this.lineform.otherService = Array.isArray(row.otherService) ? row.otherService : row.otherService?.split(",") ?? [];
} else {
......@@ -792,6 +805,7 @@ export default {
}
this.serviceOpen = true;
this.lineform.lineId = row.lineId;
this.lineform.transportType = row.transportType;
},
submitLineForm() {
......@@ -835,7 +849,13 @@ export default {
this.routeQueryParam.pageNo = 1;
this.showRouteList = true;
this.routeLoadig = true;
if(tradeType == 1) {
this.startName = row.titleZh;
} else {
this.destName = row.titleZh;
}
this.getRouteList();
},
......
......@@ -270,6 +270,7 @@ export default {
const id = row.id;
getZhongPao(id).then(response => {
const form = response.data;
// console.log(form);
form.objectiveIds = form.objectiveIds && form.objectiveIds.length > 0 ? form.objectiveIds.split(',') : []
......@@ -286,6 +287,7 @@ export default {
}
let form = this.form
form.objectiveIds = form.objectiveIds?.join(',')
form.transportTypes = form.transportTypes?.join(',');
// 修改的提交
if (this.form.id != null) {
updateZhongPao(this.form).then(response => {
......@@ -297,6 +299,8 @@ export default {
return;
}
// 添加的提交
// console.log(this.form);
createZhongPao(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
......
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