Commit e82cf240 authored by wanglianghe's avatar wanglianghe

服务说明,重泡货bug修改

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