|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
<a-tab-pane key="1" tab="主单信息">
|
|
|
|
|
<a-row :gutter="24">
|
|
|
|
|
<a-col :span="18">
|
|
|
|
|
<template v-if="!inPageLoading">
|
|
|
|
|
<template>
|
|
|
|
|
<operationArea
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
@refresh="refreshPage"
|
|
|
|
@ -38,7 +38,7 @@
|
|
|
|
|
<!-- 备注信息 -->
|
|
|
|
|
<remarksInfo :details="bookingDetails" @changeDetail="changeDetailFun"></remarksInfo>
|
|
|
|
|
<!-- 箱型 -->
|
|
|
|
|
<goodsTable :details="bookingDetails" @changeDetail="changeDetailFun"></goodsTable>
|
|
|
|
|
<goodsTable :details="bookingDetails" @changeDetail="changeDetailFun" v-if="!inPageLoading"></goodsTable>
|
|
|
|
|
</div>
|
|
|
|
|
</a-tab-pane>
|
|
|
|
|
<a-tab-pane key="2-2" tab="EDI补充信息">
|
|
|
|
@ -46,33 +46,32 @@
|
|
|
|
|
class="pane-box"
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
|
v-if="!inPageLoading"
|
|
|
|
|
></ediMore>
|
|
|
|
|
</a-tab-pane>
|
|
|
|
|
</a-tabs>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<!-- <template v-if="inPageLoading">
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 107px;"></div>
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 390px;"></div>
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 690px;"></div>
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 390px;"></div>
|
|
|
|
|
</template>
|
|
|
|
|
</template> -->
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="6">
|
|
|
|
|
<rightContent
|
|
|
|
|
v-if="!inPageLoading"
|
|
|
|
|
:id="id"
|
|
|
|
|
:details="bookingDetails"
|
|
|
|
|
:excuteRules="excuteRules"
|
|
|
|
|
:excuteRulesType="excuteRulesType"
|
|
|
|
|
@changeDetail="changeDetailFun"
|
|
|
|
|
@rules="getRules"
|
|
|
|
|
></rightContent>
|
|
|
|
|
<template v-else>
|
|
|
|
|
<!-- <template v-if="inPageLoading">
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 206px;"></div>
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 142px;"></div>
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 208px;"></div>
|
|
|
|
|
<div class="load-block" style="width: 100%; height: 249px;"></div>
|
|
|
|
|
</template>
|
|
|
|
|
</template> -->
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</a-tab-pane>
|
|
|
|
@ -334,114 +333,117 @@ export default {
|
|
|
|
|
init() {
|
|
|
|
|
// this.bookingDetails = {}
|
|
|
|
|
this.bookingDetails = initDetail
|
|
|
|
|
this.excuteRules = []
|
|
|
|
|
this.excuteRulesType = ''
|
|
|
|
|
if (this.id) {
|
|
|
|
|
this.isAdd = false
|
|
|
|
|
this.getDetail()
|
|
|
|
|
} else {
|
|
|
|
|
this.isAdd = true
|
|
|
|
|
this.bookingDetails = {
|
|
|
|
|
id: 0,
|
|
|
|
|
parentId: 0,
|
|
|
|
|
// 基本信息
|
|
|
|
|
customername: '',
|
|
|
|
|
customerid: '',
|
|
|
|
|
carrier: '',
|
|
|
|
|
carrierid: this.type,
|
|
|
|
|
forwarder: '',
|
|
|
|
|
pono: '',
|
|
|
|
|
mblno: '',
|
|
|
|
|
hblno: '',
|
|
|
|
|
bookingno: '',
|
|
|
|
|
contractno: '',
|
|
|
|
|
vessel: '',
|
|
|
|
|
voyno: '',
|
|
|
|
|
voynoinner: '',
|
|
|
|
|
lanecode: '',
|
|
|
|
|
etd: '',
|
|
|
|
|
atd: '',
|
|
|
|
|
lanename: '',
|
|
|
|
|
shipagency: '',
|
|
|
|
|
sale: '',
|
|
|
|
|
op: '',
|
|
|
|
|
doc: '',
|
|
|
|
|
custservice: '',
|
|
|
|
|
// 收发通信息
|
|
|
|
|
shipper: '',
|
|
|
|
|
consignee: '',
|
|
|
|
|
notifyparty: '',
|
|
|
|
|
yard: '',
|
|
|
|
|
customser: '',
|
|
|
|
|
trucker: '',
|
|
|
|
|
agentid: '',
|
|
|
|
|
eta: '',
|
|
|
|
|
closingdate: '',
|
|
|
|
|
closedocdate: '',
|
|
|
|
|
closevgmdate: '',
|
|
|
|
|
portload: '',
|
|
|
|
|
portloadid: '',
|
|
|
|
|
transport: '',
|
|
|
|
|
transportid: '',
|
|
|
|
|
portdischarge: '',
|
|
|
|
|
portdischargeid: '',
|
|
|
|
|
destination: '',
|
|
|
|
|
destinationid: '',
|
|
|
|
|
placedelivery: '',
|
|
|
|
|
placedeliveryid: '',
|
|
|
|
|
placereceipt: '',
|
|
|
|
|
placereceiptid: '',
|
|
|
|
|
pkgs: 0,
|
|
|
|
|
kindpkgs: '',
|
|
|
|
|
kgs: 0,
|
|
|
|
|
cbm: 0,
|
|
|
|
|
// 货物信息
|
|
|
|
|
marks: '',
|
|
|
|
|
cargoid: '',
|
|
|
|
|
hscode: '',
|
|
|
|
|
description: '',
|
|
|
|
|
totalno: '',
|
|
|
|
|
// 签单信息
|
|
|
|
|
issuetype: '',
|
|
|
|
|
issuedate: '',
|
|
|
|
|
issueplace: '',
|
|
|
|
|
issueplaceid: '',
|
|
|
|
|
nobill: 'THREE',
|
|
|
|
|
copynobilll: 'THREE',
|
|
|
|
|
prepardat: '',
|
|
|
|
|
payableat: '',
|
|
|
|
|
blfrt: '',
|
|
|
|
|
thirdpayaddr: '',
|
|
|
|
|
service: '',
|
|
|
|
|
reeferf: '',
|
|
|
|
|
tempset: '',
|
|
|
|
|
tempid: '',
|
|
|
|
|
tempmin: '',
|
|
|
|
|
tempmax: '',
|
|
|
|
|
humidity: '',
|
|
|
|
|
dclass: '',
|
|
|
|
|
dunno: '',
|
|
|
|
|
dpage: '',
|
|
|
|
|
dlabel: '',
|
|
|
|
|
linkman: '',
|
|
|
|
|
// 备注信息
|
|
|
|
|
soremark: '',
|
|
|
|
|
siremark: '',
|
|
|
|
|
// 箱型
|
|
|
|
|
ctnInputs: [],
|
|
|
|
|
// edi补充信息 (edi联系人等暂无字段)
|
|
|
|
|
weituo: '',
|
|
|
|
|
freightpayer: '',
|
|
|
|
|
scaccode: '',
|
|
|
|
|
itncode: '',
|
|
|
|
|
iscontainersoc: 0,
|
|
|
|
|
bookingEDIExt: {
|
|
|
|
|
weiTuoFang: '',
|
|
|
|
|
ediAttn: '',
|
|
|
|
|
ediAttnTel: '',
|
|
|
|
|
ediAttnMail: ''
|
|
|
|
|
},
|
|
|
|
|
// 分单信息未添加
|
|
|
|
|
hbList: []
|
|
|
|
|
}
|
|
|
|
|
// this.bookingDetails = {
|
|
|
|
|
// id: 0,
|
|
|
|
|
// parentId: 0,
|
|
|
|
|
// // 基本信息
|
|
|
|
|
// customername: '',
|
|
|
|
|
// customerid: '',
|
|
|
|
|
// carrier: '',
|
|
|
|
|
// carrierid: this.type,
|
|
|
|
|
// forwarder: '',
|
|
|
|
|
// pono: '',
|
|
|
|
|
// mblno: '',
|
|
|
|
|
// hblno: '',
|
|
|
|
|
// bookingno: '',
|
|
|
|
|
// contractno: '',
|
|
|
|
|
// vessel: '',
|
|
|
|
|
// voyno: '',
|
|
|
|
|
// voynoinner: '',
|
|
|
|
|
// lanecode: '',
|
|
|
|
|
// etd: '',
|
|
|
|
|
// atd: '',
|
|
|
|
|
// lanename: '',
|
|
|
|
|
// shipagency: '',
|
|
|
|
|
// sale: '',
|
|
|
|
|
// op: '',
|
|
|
|
|
// doc: '',
|
|
|
|
|
// custservice: '',
|
|
|
|
|
// // 收发通信息
|
|
|
|
|
// shipper: '',
|
|
|
|
|
// consignee: '',
|
|
|
|
|
// notifyparty: '',
|
|
|
|
|
// yard: '',
|
|
|
|
|
// customser: '',
|
|
|
|
|
// trucker: '',
|
|
|
|
|
// agentid: '',
|
|
|
|
|
// eta: '',
|
|
|
|
|
// closingdate: '',
|
|
|
|
|
// closedocdate: '',
|
|
|
|
|
// closevgmdate: '',
|
|
|
|
|
// portload: '',
|
|
|
|
|
// portloadid: '',
|
|
|
|
|
// transport: '',
|
|
|
|
|
// transportid: '',
|
|
|
|
|
// portdischarge: '',
|
|
|
|
|
// portdischargeid: '',
|
|
|
|
|
// destination: '',
|
|
|
|
|
// destinationid: '',
|
|
|
|
|
// placedelivery: '',
|
|
|
|
|
// placedeliveryid: '',
|
|
|
|
|
// placereceipt: '',
|
|
|
|
|
// placereceiptid: '',
|
|
|
|
|
// pkgs: 0,
|
|
|
|
|
// kindpkgs: '',
|
|
|
|
|
// kgs: 0,
|
|
|
|
|
// cbm: 0,
|
|
|
|
|
// // 货物信息
|
|
|
|
|
// marks: '',
|
|
|
|
|
// cargoid: '',
|
|
|
|
|
// hscode: '',
|
|
|
|
|
// description: '',
|
|
|
|
|
// totalno: '',
|
|
|
|
|
// // 签单信息
|
|
|
|
|
// issuetype: '',
|
|
|
|
|
// issuedate: '',
|
|
|
|
|
// issueplace: '',
|
|
|
|
|
// issueplaceid: '',
|
|
|
|
|
// nobill: 'THREE',
|
|
|
|
|
// copynobilll: 'THREE',
|
|
|
|
|
// prepardat: '',
|
|
|
|
|
// payableat: '',
|
|
|
|
|
// blfrt: '',
|
|
|
|
|
// thirdpayaddr: '',
|
|
|
|
|
// service: '',
|
|
|
|
|
// reeferf: '',
|
|
|
|
|
// tempset: '',
|
|
|
|
|
// tempid: '',
|
|
|
|
|
// tempmin: '',
|
|
|
|
|
// tempmax: '',
|
|
|
|
|
// humidity: '',
|
|
|
|
|
// dclass: '',
|
|
|
|
|
// dunno: '',
|
|
|
|
|
// dpage: '',
|
|
|
|
|
// dlabel: '',
|
|
|
|
|
// linkman: '',
|
|
|
|
|
// // 备注信息
|
|
|
|
|
// soremark: '',
|
|
|
|
|
// siremark: '',
|
|
|
|
|
// // 箱型
|
|
|
|
|
// ctnInputs: [],
|
|
|
|
|
// // edi补充信息 (edi联系人等暂无字段)
|
|
|
|
|
// weituo: '',
|
|
|
|
|
// freightpayer: '',
|
|
|
|
|
// scaccode: '',
|
|
|
|
|
// itncode: '',
|
|
|
|
|
// iscontainersoc: 0,
|
|
|
|
|
// bookingEDIExt: {
|
|
|
|
|
// weiTuoFang: '',
|
|
|
|
|
// ediAttn: '',
|
|
|
|
|
// ediAttnTel: '',
|
|
|
|
|
// ediAttnMail: ''
|
|
|
|
|
// },
|
|
|
|
|
// // 分单信息未添加
|
|
|
|
|
// hbList: []
|
|
|
|
|
// }
|
|
|
|
|
this.bookingDetails.carrierid = this.type
|
|
|
|
|
this.bookingDetails.carrier = this.enmuCarrier(this.type)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -470,19 +472,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getDetail() {
|
|
|
|
|
this.inPageLoading = false
|
|
|
|
|
// if (this.inPageLoading) {
|
|
|
|
|
// return false
|
|
|
|
|
// }
|
|
|
|
|
// this.inPageLoading = true
|
|
|
|
|
// this.$message.loading({ content: '加载中...' });
|
|
|
|
|
// this.inPageLoading = false
|
|
|
|
|
if (this.inPageLoading) {
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
this.inPageLoading = true
|
|
|
|
|
this.$message.loading({ content: '加载中...' });
|
|
|
|
|
BookingOrderGet({
|
|
|
|
|
id: this.id
|
|
|
|
|
})
|
|
|
|
|
.then(res => {
|
|
|
|
|
this.inPageLoading = false
|
|
|
|
|
this.$message.destroy()
|
|
|
|
|
// this.$message.success({ content: '加载完成' })
|
|
|
|
|
this.$message.success({ content: '加载完成' })
|
|
|
|
|
if (this.isCopy) {
|
|
|
|
|
res.data.mblno = ''
|
|
|
|
|
this.isAdd = true
|
|
|
|
|