Commit 8519c299 authored by 邓春圆's avatar 邓春圆

设置服务 添加 空运收件人和发货人

parent ac54e1b0
......@@ -333,6 +333,32 @@
<el-radio :label="1">不支持</el-radio>
</el-radio-group>
</el-form-item>
<template v-if="['3','4'].includes(lineform.transportType)" >
<el-form-item :label="$t('空运发件人')">
<el-input v-model="lineform.senderInfo.name" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运发件人英文')">
<el-input v-model="lineform.senderInfo.nameEn" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运发件公司地址')">
<el-input v-model="lineform.senderInfo.companyAddress" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运发件公司地址英文')">
<el-input v-model="lineform.senderInfo.companyAddressEn" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运收货人')">
<el-input v-model="lineform.recipientInfo.name" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运收货人英文')">
<el-input v-model="lineform.recipientInfo.nameEn" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运收货地址')">
<el-input v-model="lineform.recipientInfo.companyAddress" style="width: 400px" ></el-input>
</el-form-item>
<el-form-item :label="$t('空运收货地址英文')">
<el-input v-model="lineform.recipientInfo.companyAddressEn" style="width: 400px" ></el-input>
</el-form-item>
</template>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -552,7 +578,25 @@ export default {
// 表单参数
form: {checkList:[],},
ladingform: {prefixCounter:null,titleZh:null,contentZh:null,account:null,acctArr:[]},
lineform: {otherService:[],isClientShow:1,makeBillNode:'2',controlStatus:'0',currencyUnit:1,minPrice:0},
lineform: {
otherService:[],
isClientShow:1,
makeBillNode:'2',
controlStatus:'0',
currencyUnit:1,
minPrice:0,
"recipientInfo": {
"companyAddress": "",
"companyAddressEn": "",
"name": "",
"nameEn": ""
},
"senderInfo": {
"companyAddress": "",
"companyAddressEn": "",
"name": "",
"nameEn": ""
}},
startName:'',
destName:'',
......@@ -892,6 +936,19 @@ export default {
this.lineform.makeBillNode = row.makeBillNode;
this.lineform.currencyUnit = row.currencyUnit ? row.currencyUnit : 1
this.lineform.controlStatus = row.controlStatus ? row.controlStatus : 0
// 先清空 发货人和收货人信息
this.lineform.senderInfo = {
"companyAddress": "",
"companyAddressEn": "",
"name": "",
"nameEn": ""
}
this.lineform.recipientInfo = { "companyAddress": "",
"companyAddressEn": "",
"name": "",
"nameEn": ""}
Object.assign(this.lineform.recipientInfo, row.recipientInfo)
Object.assign(this.lineform.senderInfo, row.senderInfo)
this.lineform.minPrice = row.minPrice ? row.minPrice : 0
if(row.minPrice){
this.lineform.minPrice = row.minPrice;
......@@ -922,10 +979,14 @@ export default {
makeBillNode:this.lineform.makeBillNode,
controlStatus:this.lineform.controlStatus,
currencyUnit:this.lineform.currencyUnit,
minPrice:this.lineform.minPrice
minPrice:this.lineform.minPrice,
senderInfo:this.lineform.senderInfo,
recipientInfo:this.lineform.recipientInfo
}).then(res => {
this.$modal.msgSuccess(this.$t("操作成功"));
this.getRouteList()
for(let index in this.routeList) {
let routeItem = this.routeList[index];
if(routeItem.lineId && routeItem.lineId == this.lineform.lineId) {
......
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