Commit 29f14cc7 authored by dragondean@qq.com's avatar dragondean@qq.com

Merge remote-tracking branch 'origin/dev' into dev

parents 4374aab2 3326c613
...@@ -333,6 +333,32 @@ ...@@ -333,6 +333,32 @@
<el-radio :label="1">不支持</el-radio> <el-radio :label="1">不支持</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </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> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -552,7 +578,25 @@ export default { ...@@ -552,7 +578,25 @@ 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:[],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:'', startName:'',
destName:'', destName:'',
...@@ -892,6 +936,19 @@ export default { ...@@ -892,6 +936,19 @@ export default {
this.lineform.makeBillNode = row.makeBillNode; this.lineform.makeBillNode = row.makeBillNode;
this.lineform.currencyUnit = row.currencyUnit ? row.currencyUnit : 1 this.lineform.currencyUnit = row.currencyUnit ? row.currencyUnit : 1
this.lineform.controlStatus = row.controlStatus ? row.controlStatus : 0 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 this.lineform.minPrice = row.minPrice ? row.minPrice : 0
if(row.minPrice){ if(row.minPrice){
this.lineform.minPrice = row.minPrice; this.lineform.minPrice = row.minPrice;
...@@ -922,10 +979,14 @@ export default { ...@@ -922,10 +979,14 @@ export default {
makeBillNode:this.lineform.makeBillNode, makeBillNode:this.lineform.makeBillNode,
controlStatus:this.lineform.controlStatus, controlStatus:this.lineform.controlStatus,
currencyUnit:this.lineform.currencyUnit, currencyUnit:this.lineform.currencyUnit,
minPrice:this.lineform.minPrice minPrice:this.lineform.minPrice,
senderInfo:this.lineform.senderInfo,
recipientInfo:this.lineform.recipientInfo
}).then(res => { }).then(res => {
this.$modal.msgSuccess(this.$t("操作成功")); this.$modal.msgSuccess(this.$t("操作成功"));
this.getRouteList() this.getRouteList()
for(let index in this.routeList) { for(let index in this.routeList) {
let routeItem = this.routeList[index]; let routeItem = this.routeList[index];
if(routeItem.lineId && routeItem.lineId == this.lineform.lineId) { 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