|
|
@ -21,7 +21,7 @@
|
|
|
|
@copy="copyBookingFun"
|
|
|
|
@copy="copyBookingFun"
|
|
|
|
@addSedList="addSedList"
|
|
|
|
@addSedList="addSedList"
|
|
|
|
></operationArea>
|
|
|
|
></operationArea>
|
|
|
|
<a-tabs type="card">
|
|
|
|
<a-tabs type="card" :activeKey="mainOrderActiveKey" @change="changeMainTab">
|
|
|
|
<a-tab-pane key="1-1" tab="基础信息">
|
|
|
|
<a-tab-pane key="1-1" tab="基础信息">
|
|
|
|
<div class="pane-box">
|
|
|
|
<div class="pane-box">
|
|
|
|
<!-- 基本信息 -->
|
|
|
|
<!-- 基本信息 -->
|
|
|
@ -87,6 +87,7 @@
|
|
|
|
:details="bookingDetails"
|
|
|
|
:details="bookingDetails"
|
|
|
|
:sedOrderList="bookingDetails.hbList"
|
|
|
|
:sedOrderList="bookingDetails.hbList"
|
|
|
|
:isAdd="isAdd"
|
|
|
|
:isAdd="isAdd"
|
|
|
|
|
|
|
|
:checkFrom="checkFrom"
|
|
|
|
@changeHB="changeHBFun"
|
|
|
|
@changeHB="changeHBFun"
|
|
|
|
></sedOrder>
|
|
|
|
></sedOrder>
|
|
|
|
</a-tab-pane>
|
|
|
|
</a-tab-pane>
|
|
|
@ -256,117 +257,119 @@ export default {
|
|
|
|
inChildLoading: false,
|
|
|
|
inChildLoading: false,
|
|
|
|
scrollTop: 0,
|
|
|
|
scrollTop: 0,
|
|
|
|
checkFrom: [],
|
|
|
|
checkFrom: [],
|
|
|
|
|
|
|
|
mainOrderActiveKey: '1-1',
|
|
|
|
basicRules: {
|
|
|
|
basicRules: {
|
|
|
|
customername: [ { required: false, message: '请选择客户名', trigger: 'blur' } ],
|
|
|
|
customername: [ { required: false, message: '请选择客户名', trigger: 'change' } ],
|
|
|
|
mblno: [{ required: false, message: '请输入提单号', trigger: 'blur' }],
|
|
|
|
mblno: [{ required: false, message: '请输入提单号', trigger: 'change' }],
|
|
|
|
carrierid: [{ required: false, message: '请选择船公司', trigger: 'blur' }],
|
|
|
|
carrierid: [{ required: false, message: '请选择船公司', trigger: 'change' }],
|
|
|
|
forwarder: [{ required: false, message: '请输入订舱代理', trigger: 'blur' }],
|
|
|
|
forwarder: [{ required: false, message: '请输入订舱代理', trigger: 'change' }],
|
|
|
|
pono: [{ required: false, message: '请输入PO NO', trigger: 'blur' }],
|
|
|
|
pono: [{ required: false, message: '请输入PO NO', trigger: 'change' }],
|
|
|
|
hblno: [{ required: false, message: '请输入分提单号', trigger: 'blur' }],
|
|
|
|
hblno: [{ required: false, message: '请输入分提单号', trigger: 'change' }],
|
|
|
|
bookingno: [{ required: false, message: '请输入订舱编号', trigger: 'blur' }],
|
|
|
|
bookingno: [{ required: false, message: '请输入订舱编号', trigger: 'change' }],
|
|
|
|
contractno: [{ required: false, message: '请输入EP号/约号', trigger: 'blur' }],
|
|
|
|
contractno: [{ required: false, message: '请输入EP号/约号', trigger: 'change' }],
|
|
|
|
vessel: [{ required: false, message: '请输入船名', trigger: 'blur' }],
|
|
|
|
vessel: [{ required: false, message: '请输入船名', trigger: 'change' }],
|
|
|
|
lanecode: [{ required: false, message: '请输入航线代码', trigger: 'blur' }],
|
|
|
|
lanecode: [{ required: false, message: '请输入航线代码', trigger: 'change' }],
|
|
|
|
voynoinner: [{ required: false, message: '请输入内部航次', trigger: 'blur' }],
|
|
|
|
voynoinner: [{ required: false, message: '请输入内部航次', trigger: 'change' }],
|
|
|
|
voyno: [{ required: false, message: '请输入海关航次', trigger: 'blur' }],
|
|
|
|
voyno: [{ required: false, message: '请输入海关航次', trigger: 'change' }],
|
|
|
|
etd: [{ required: false, message: '请选择开船日期', trigger: 'blur' }],
|
|
|
|
etd: [{ required: false, message: '请选择开船日期', trigger: 'change' }],
|
|
|
|
atd: [{ required: false, message: '请选择实际开船日期', trigger: 'blur' }],
|
|
|
|
atd: [{ required: false, message: '请选择实际开船日期', trigger: 'change' }],
|
|
|
|
lanename: [{ required: false, message: '请输入航线', trigger: 'blur' }],
|
|
|
|
lanename: [{ required: false, message: '请输入航线', trigger: 'change' }],
|
|
|
|
shipagency: [{ required: false, message: '请输入船代', trigger: 'blur' }],
|
|
|
|
shipagency: [{ required: false, message: '请输入船代', trigger: 'change' }],
|
|
|
|
sale: [{ required: false, message: '请选择销售人员', trigger: 'blur' }],
|
|
|
|
sale: [{ required: false, message: '请选择销售人员', trigger: 'change' }],
|
|
|
|
op: [{ required: false, message: '请选择操作人员', trigger: 'blur' }],
|
|
|
|
op: [{ required: false, message: '请选择操作人员', trigger: 'change' }],
|
|
|
|
doc: [{ required: false, message: '请选择单证人员', trigger: 'blur' }],
|
|
|
|
doc: [{ required: false, message: '请选择单证人员', trigger: 'change' }],
|
|
|
|
custservice: [{ required: false, message: '请选择客服人员', trigger: 'blur' }]
|
|
|
|
custservice: [{ required: false, message: '请选择客服人员', trigger: 'change' }]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mailingRules: {
|
|
|
|
mailingRules: {
|
|
|
|
shipper: [ { required: false, message: '请输入发货人', trigger: 'blur' } ],
|
|
|
|
shipper: [ { required: false, message: '请输入发货人', trigger: 'change' } ],
|
|
|
|
consignee: [ { required: false, message: '请输入收货人', trigger: 'blur' } ],
|
|
|
|
consignee: [ { required: false, message: '请输入收货人', trigger: 'change' } ],
|
|
|
|
notifyparty: [ { required: false, message: '请输入通知人', trigger: 'blur' } ],
|
|
|
|
notifyparty: [ { required: false, message: '请输入通知人', trigger: 'change' } ],
|
|
|
|
yard: [ { required: false, message: '请输入场站', trigger: 'blur' } ],
|
|
|
|
yard: [ { required: false, message: '请输入场站', trigger: 'change' } ],
|
|
|
|
customser: [ { required: false, message: '请输入报关行', trigger: 'blur' } ],
|
|
|
|
customser: [ { required: false, message: '请输入报关行', trigger: 'change' } ],
|
|
|
|
trucker: [ { required: false, message: '请输入车队', trigger: 'blur' } ],
|
|
|
|
trucker: [ { required: false, message: '请输入车队', trigger: 'change' } ],
|
|
|
|
agentid: [ { required: false, message: '请输入国外代理', trigger: 'blur' } ],
|
|
|
|
agentid: [ { required: false, message: '请输入国外代理', trigger: 'change' } ],
|
|
|
|
eta: [ { required: false, message: '请选择预抵日期', trigger: 'blur' } ],
|
|
|
|
eta: [ { required: false, message: '请选择预抵日期', trigger: 'change' } ],
|
|
|
|
closingdate: [ { required: false, message: '请选择截港时间', trigger: 'blur' } ],
|
|
|
|
closingdate: [ { required: false, message: '请选择截港时间', trigger: 'change' } ],
|
|
|
|
closedocdate: [ { required: false, message: '请选择截单时间', trigger: 'blur' } ],
|
|
|
|
closedocdate: [ { required: false, message: '请选择截单时间', trigger: 'change' } ],
|
|
|
|
closevgmdate: [ { required: false, message: '请选择VGM时间', trigger: 'blur' } ],
|
|
|
|
closevgmdate: [ { required: false, message: '请选择VGM时间', trigger: 'change' } ],
|
|
|
|
placereceiptid: [ { required: false, message: '请选择收货代码', trigger: 'blur' } ],
|
|
|
|
placereceiptid: [ { required: false, message: '请选择收货代码', trigger: 'change' } ],
|
|
|
|
placereceipt: [ { required: false, message: '请选择收货地', trigger: 'blur' } ],
|
|
|
|
placereceipt: [ { required: false, message: '请选择收货地', trigger: 'change' } ],
|
|
|
|
portloadid: [ { required: false, message: '请选择装货港代码', trigger: 'blur' } ],
|
|
|
|
portloadid: [ { required: false, message: '请选择装货港代码', trigger: 'change' } ],
|
|
|
|
portload: [ { required: false, message: '请选择装货港', trigger: 'blur' } ],
|
|
|
|
portload: [ { required: false, message: '请选择装货港', trigger: 'change' } ],
|
|
|
|
transportid: [ { required: false, message: '请选择中转港代码', trigger: 'blur' } ],
|
|
|
|
transportid: [ { required: false, message: '请选择中转港代码', trigger: 'change' } ],
|
|
|
|
transport: [ { required: false, message: '请选择中转港', trigger: 'blur' } ],
|
|
|
|
transport: [ { required: false, message: '请选择中转港', trigger: 'change' } ],
|
|
|
|
portdischargeid: [ { required: false, message: '请选择卸货港代码', trigger: 'blur' } ],
|
|
|
|
portdischargeid: [ { required: false, message: '请选择卸货港代码', trigger: 'change' } ],
|
|
|
|
portdischarge: [ { required: false, message: '请选择卸货港', trigger: 'blur' } ],
|
|
|
|
portdischarge: [ { required: false, message: '请选择卸货港', trigger: 'change' } ],
|
|
|
|
destinationid: [ { required: false, message: '请选择目的代码', trigger: 'blur' } ],
|
|
|
|
destinationid: [ { required: false, message: '请选择目的代码', trigger: 'change' } ],
|
|
|
|
destination: [ { required: false, message: '请选择目的地', trigger: 'blur' } ],
|
|
|
|
destination: [ { required: false, message: '请选择目的地', trigger: 'change' } ],
|
|
|
|
placedeliveryid: [ { required: false, message: '请选择交货代码', trigger: 'blur' } ],
|
|
|
|
placedeliveryid: [ { required: false, message: '请选择交货代码', trigger: 'change' } ],
|
|
|
|
placedelivery: [ { required: false, message: '请选择交货地', trigger: 'blur' } ],
|
|
|
|
placedelivery: [ { required: false, message: '请选择交货地', trigger: 'change' } ],
|
|
|
|
pkgs: [ { required: false, message: '请输入件数', trigger: 'blur' } ],
|
|
|
|
pkgs: [ { required: false, message: '请输入件数', trigger: 'change' } ],
|
|
|
|
kindpkgs: [ { required: false, message: '请输入包装', trigger: 'blur' } ],
|
|
|
|
kindpkgs: [ { required: false, message: '请输入包装', trigger: 'change' } ],
|
|
|
|
kgs: [ { required: false, message: '请输入毛重', trigger: 'blur' } ],
|
|
|
|
kgs: [ { required: false, message: '请输入毛重', trigger: 'change' } ],
|
|
|
|
cbm: [ { required: false, message: '请输入尺寸', trigger: 'blur' } ],
|
|
|
|
cbm: [ { required: false, message: '请输入尺寸', trigger: 'change' } ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
cargoRules: {
|
|
|
|
cargoRules: {
|
|
|
|
marks: [ { required: false, message: '请输入Seal No. Marks & Nos', trigger: 'blur' } ],
|
|
|
|
marks: [ { required: false, message: '请输入Seal No. Marks & Nos', trigger: 'change' } ],
|
|
|
|
cargoid: [ { required: false, message: '请选择货物标志', trigger: 'blur' } ],
|
|
|
|
cargoid: [ { required: false, message: '请选择货物标志', trigger: 'change' } ],
|
|
|
|
hscode: [ { required: false, message: '请输入HS编码', trigger: 'blur' } ],
|
|
|
|
hscode: [ { required: false, message: '请输入HS编码', trigger: 'change' } ],
|
|
|
|
description: [ { required: false, message: '请输入包装种类与货名', trigger: 'blur' } ]
|
|
|
|
description: [ { required: false, message: '请输入包装种类与货名', trigger: 'change' } ]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
billRules: {
|
|
|
|
billRules: {
|
|
|
|
issuetype: [ { required: false, message: '请选择签单方式', trigger: 'blur' } ],
|
|
|
|
issuetype: [ { required: false, message: '请选择签单方式', trigger: 'change' } ],
|
|
|
|
issuedate: [ { required: false, message: '请选择签单日期', trigger: 'blur' } ],
|
|
|
|
issuedate: [ { required: false, message: '请选择签单日期', trigger: 'change' } ],
|
|
|
|
issueplace: [ { required: false, message: '请选择签单地点', trigger: 'blur' } ],
|
|
|
|
// issueplace: [ { required: false, message: '请选择签单地点', trigger: 'change' } ],
|
|
|
|
issueplaceid: [ { required: false, message: '请输入签单地代码', trigger: 'blur' } ],
|
|
|
|
issueplaceid: [ { required: false, message: '请输入签单地代码', trigger: 'change' } ],
|
|
|
|
nobill: [ { required: false, message: '请选择提单份数', trigger: 'blur' } ],
|
|
|
|
nobill: [ { required: false, message: '请选择提单份数', trigger: 'change' } ],
|
|
|
|
copynobilll: [ { required: false, message: '请选择副本份数', trigger: 'blur' } ],
|
|
|
|
copynobilll: [ { required: false, message: '请选择副本份数', trigger: 'change' } ],
|
|
|
|
prepardat: [ { required: false, message: '请选择预付地点', trigger: 'blur' } ],
|
|
|
|
prepardat: [ { required: false, message: '请选择预付地点', trigger: 'change' } ],
|
|
|
|
payableat: [ { required: false, message: '请选择到付地点', trigger: 'blur' } ],
|
|
|
|
payableat: [ { required: false, message: '请选择到付地点', trigger: 'change' } ],
|
|
|
|
blfrt: [ { required: false, message: '请选择付费方式', trigger: 'blur' } ],
|
|
|
|
blfrt: [ { required: false, message: '请选择付费方式', trigger: 'change' } ],
|
|
|
|
thirdpayaddr: [ { required: false, message: '请输入第三付款地', trigger: 'blur' } ],
|
|
|
|
thirdpayaddr: [ { required: false, message: '请输入第三付款地', trigger: 'change' } ],
|
|
|
|
service: [ { required: false, message: '请选择运输条款', trigger: 'blur' } ],
|
|
|
|
service: [ { required: false, message: '请选择运输条款', trigger: 'change' } ],
|
|
|
|
reeferf: [ { required: false, message: '请输入冷藏通风量', trigger: 'blur' } ],
|
|
|
|
reeferf: [ { required: false, message: '请输入冷藏通风量', trigger: 'change' } ],
|
|
|
|
tempset: [ { required: false, message: '请输入温度', trigger: 'blur' } ],
|
|
|
|
tempset: [ { required: false, message: '请输入温度', trigger: 'change' } ],
|
|
|
|
tempid: [ { required: false, message: '请选择温度单位', trigger: 'blur' } ],
|
|
|
|
tempid: [ { required: false, message: '请选择温度单位', trigger: 'change' } ],
|
|
|
|
tempmin: [ { required: false, message: '请输入最低温度', trigger: 'blur' } ],
|
|
|
|
tempmin: [ { required: false, message: '请输入最低温度', trigger: 'change' } ],
|
|
|
|
tempmax: [ { required: false, message: '请输入最高温度', trigger: 'blur' } ],
|
|
|
|
tempmax: [ { required: false, message: '请输入最高温度', trigger: 'change' } ],
|
|
|
|
humidity: [ { required: false, message: '请输入湿度', trigger: 'blur' } ],
|
|
|
|
humidity: [ { required: false, message: '请输入湿度', trigger: 'change' } ],
|
|
|
|
dclass: [ { required: false, message: '请输入危险品等级', trigger: 'blur' } ],
|
|
|
|
dclass: [ { required: false, message: '请输入危险品等级', trigger: 'change' } ],
|
|
|
|
dunno: [ { required: false, message: '请输入危险品编号', trigger: 'blur' } ],
|
|
|
|
dunno: [ { required: false, message: '请输入危险品编号', trigger: 'change' } ],
|
|
|
|
dpage: [ { required: false, message: '请输入危险品页号', trigger: 'blur' } ],
|
|
|
|
dpage: [ { required: false, message: '请输入危险品页号', trigger: 'change' } ],
|
|
|
|
dlabel: [ { required: false, message: '请输入危险品标签', trigger: 'blur' } ],
|
|
|
|
dlabel: [ { required: false, message: '请输入危险品标签', trigger: 'change' } ],
|
|
|
|
linkman: [ { required: false, message: '请输入危险品联系人', trigger: 'blur' } ],
|
|
|
|
linkman: [ { required: false, message: '请输入危险品联系人', trigger: 'change' } ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
remarksRules: {
|
|
|
|
remarksRules: {
|
|
|
|
soremark: [ { required: false, message: '请输入订舱备注', trigger: 'blur' } ],
|
|
|
|
soremark: [ { required: false, message: '请输入订舱备注', trigger: 'change' } ],
|
|
|
|
siremark: [ { required: false, message: '请输入截单备注', trigger: 'blur' } ],
|
|
|
|
siremark: [ { required: false, message: '请输入截单备注', trigger: 'change' } ],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
ediRules: {
|
|
|
|
ediRules: {
|
|
|
|
'bookingEDIExt.sendCode': [ { required: false, message: '请输入发送方EDI代码', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.sendCode': [ { required: false, message: '请输入发送方EDI代码', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.receiveCode': [ { required: false, message: '请输入接收方EDI代码', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.receiveCode': [ { required: false, message: '请输入接收方EDI代码', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.notifyCdoe': [ { required: false, message: '请输入通知方EDI代码', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.notifyCdoe': [ { required: false, message: '请输入通知方EDI代码', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.salerCode': [ { required: false, message: '请输入销售EDI代码', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.salerCode': [ { required: false, message: '请输入销售EDI代码', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.masterBolIndicator': [ { required: false, message: '请输入Master Bol Indicator', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.masterBolIndicator': [ { required: false, message: '请输入Master Bol Indicator', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.emanifestHbl': [ { required: false, message: '请输入EMANIFEST HBL', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.emanifestHbl': [ { required: false, message: '请输入EMANIFEST HBL', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.consigneeEdiCode': [ { required: false, message: '请输入收货人EDI代码', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.consigneeEdiCode': [ { required: false, message: '请输入收货人EDI代码', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.shipperEdiCode': [ { required: false, message: '请输入发货人EDI代码', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.shipperEdiCode': [ { required: false, message: '请输入发货人EDI代码', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.ediAttn': [ { required: false, message: '请输入EDI联系人名称', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.ediAttn': [ { required: false, message: '请输入EDI联系人名称', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.ediAttnTel': [ { required: false, message: '请输入EDI联系人电话', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.ediAttnTel': [ { required: false, message: '请输入EDI联系人电话', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.ediAttnMail': [ { required: false, message: '请输入EDI联系人邮箱', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.ediAttnMail': [ { required: false, message: '请输入EDI联系人邮箱', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.amsConsignee': [ { required: false, message: '请输入AMS收货人', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.amsConsignee': [ { required: false, message: '请输入AMS收货人', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.amsNotifyParty': [ { required: false, message: '请输入AMS通知人', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.amsNotifyParty': [ { required: false, message: '请输入AMS通知人', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.opEName': [ { required: false, message: '请输入操作英文名称', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.opEName': [ { required: false, message: '请输入操作英文名称', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.opTel': [ { required: false, message: '请输入操作电话', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.opTel': [ { required: false, message: '请输入操作电话', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.opEmail': [ { required: false, message: '请输入操作邮箱', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.opEmail': [ { required: false, message: '请输入操作邮箱', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.acihbl': [ { required: false, message: '请输入ACI HBL', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.acihbl': [ { required: false, message: '请输入ACI HBL', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.s0CC0C': [ { required: false, message: '请输入S0C C0C', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.s0CC0C': [ { required: false, message: '请输入S0C C0C', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.goodsName': [ { required: false, message: '请输入商品名称', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.goodsName': [ { required: false, message: '请输入商品名称', trigger: 'change' } ],
|
|
|
|
'iscontainersoc': [ { required: false, message: '请输入SOC箱', trigger: 'blur' } ],
|
|
|
|
'iscontainersoc': [ { required: false, message: '请输入SOC箱', trigger: 'change' } ],
|
|
|
|
'scaccode': [ { required: false, message: '请输入SCAC代码', trigger: 'blur' } ],
|
|
|
|
'scaccode': [ { required: false, message: '请输入SCAC代码', trigger: 'change' } ],
|
|
|
|
'itncode': [ { required: false, message: '请输入ITN编号', trigger: 'blur' } ],
|
|
|
|
'itncode': [ { required: false, message: '请输入ITN编号', trigger: 'change' } ],
|
|
|
|
'freightpayer': [ { required: false, message: '请输入付款方', trigger: 'blur' } ],
|
|
|
|
'freightpayer': [ { required: false, message: '请输入付款方', trigger: 'change' } ],
|
|
|
|
'bookingEDIExt.weiTuoFang': [ { required: false, message: '请输入委托方', trigger: 'blur' } ],
|
|
|
|
'bookingEDIExt.weiTuoFang': [ { required: false, message: '请输入委托方', trigger: 'change' } ],
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
hasEdiRules: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
@ -425,6 +428,7 @@ export default {
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
|
|
|
|
mainOrderActiveKey: this.mainOrderActiveKey,
|
|
|
|
type: this.type,
|
|
|
|
type: this.type,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
id: this.id
|
|
|
|
id: this.id
|
|
|
@ -437,6 +441,7 @@ export default {
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
|
|
|
|
mainOrderActiveKey: this.mainOrderActiveKey,
|
|
|
|
type: this.type,
|
|
|
|
type: this.type,
|
|
|
|
isCopy: this.isCopy
|
|
|
|
isCopy: this.isCopy
|
|
|
|
// id: this.id
|
|
|
|
// id: this.id
|
|
|
@ -449,6 +454,7 @@ export default {
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
|
|
|
|
mainOrderActiveKey: this.mainOrderActiveKey,
|
|
|
|
type: this.type,
|
|
|
|
type: this.type,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
id: this.id
|
|
|
|
id: this.id
|
|
|
@ -482,6 +488,7 @@ export default {
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
|
|
|
|
mainOrderActiveKey: this.mainOrderActiveKey,
|
|
|
|
type: this.type,
|
|
|
|
type: this.type,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
id: this.id
|
|
|
|
id: this.id
|
|
|
@ -494,6 +501,7 @@ export default {
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
|
|
|
|
mainOrderActiveKey: this.mainOrderActiveKey,
|
|
|
|
type: this.type,
|
|
|
|
type: this.type,
|
|
|
|
isCopy: this.isCopy
|
|
|
|
isCopy: this.isCopy
|
|
|
|
// id: this.id
|
|
|
|
// id: this.id
|
|
|
@ -506,6 +514,7 @@ export default {
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
excuteRulesType: this.excuteRulesType,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
isAdd: this.isAdd,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
tabActiveKey: this.tabActiveKey,
|
|
|
|
|
|
|
|
mainOrderActiveKey: this.mainOrderActiveKey,
|
|
|
|
type: this.type,
|
|
|
|
type: this.type,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
isCopy: this.isCopy,
|
|
|
|
id: this.id
|
|
|
|
id: this.id
|
|
|
@ -532,6 +541,7 @@ export default {
|
|
|
|
// )
|
|
|
|
// )
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
const newId = this.$route.query.id
|
|
|
|
const newId = this.$route.query.id
|
|
|
|
|
|
|
|
|
|
|
|
if (Object.keys(this.historyData).includes(`copy-${newId}`) && this.$route.query.isCopy === 'true') {
|
|
|
|
if (Object.keys(this.historyData).includes(`copy-${newId}`) && this.$route.query.isCopy === 'true') {
|
|
|
|
this.id = this.$route.query.id
|
|
|
|
this.id = this.$route.query.id
|
|
|
|
const $data = JSON.parse(JSON.stringify(this.historyData[`copy-${newId}`]))
|
|
|
|
const $data = JSON.parse(JSON.stringify(this.historyData[`copy-${newId}`]))
|
|
|
@ -540,6 +550,7 @@ export default {
|
|
|
|
this.excuteRulesType = $data.excuteRulesType
|
|
|
|
this.excuteRulesType = $data.excuteRulesType
|
|
|
|
this.isAdd = $data.isAdd
|
|
|
|
this.isAdd = $data.isAdd
|
|
|
|
this.tabActiveKey = $data.tabActiveKey
|
|
|
|
this.tabActiveKey = $data.tabActiveKey
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = $data.mainOrderActiveKey
|
|
|
|
this.isCopy = this.$route.query.isCopy
|
|
|
|
this.isCopy = this.$route.query.isCopy
|
|
|
|
this.inPageLoading = false
|
|
|
|
this.inPageLoading = false
|
|
|
|
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
|
|
|
|
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
|
|
|
@ -560,6 +571,7 @@ export default {
|
|
|
|
this.excuteRulesType = $data.excuteRulesType
|
|
|
|
this.excuteRulesType = $data.excuteRulesType
|
|
|
|
this.isAdd = $data.isAdd
|
|
|
|
this.isAdd = $data.isAdd
|
|
|
|
this.tabActiveKey = $data.tabActiveKey
|
|
|
|
this.tabActiveKey = $data.tabActiveKey
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = $data.mainOrderActiveKey
|
|
|
|
this.isCopy = this.$route.query.isCopy
|
|
|
|
this.isCopy = this.$route.query.isCopy
|
|
|
|
this.inPageLoading = false
|
|
|
|
this.inPageLoading = false
|
|
|
|
// console.log('== 复制参数 ==', $data.isCopy, this.$route.query.isCopy, this.isCopy)
|
|
|
|
// console.log('== 复制参数 ==', $data.isCopy, this.$route.query.isCopy, this.isCopy)
|
|
|
@ -585,6 +597,7 @@ export default {
|
|
|
|
this.excuteRulesType = $data.excuteRulesType
|
|
|
|
this.excuteRulesType = $data.excuteRulesType
|
|
|
|
this.isAdd = $data.isAdd
|
|
|
|
this.isAdd = $data.isAdd
|
|
|
|
this.tabActiveKey = $data.tabActiveKey
|
|
|
|
this.tabActiveKey = $data.tabActiveKey
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = $data.mainOrderActiveKey
|
|
|
|
this.isCopy = this.$route.query.isCopy
|
|
|
|
this.isCopy = this.$route.query.isCopy
|
|
|
|
this.inPageLoading = false
|
|
|
|
this.inPageLoading = false
|
|
|
|
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
|
|
|
|
if (this.bookingDetails.hbList && this.bookingDetails.hbList.length > 0) {
|
|
|
@ -607,9 +620,15 @@ export default {
|
|
|
|
this.type = this.$route.query.type
|
|
|
|
this.type = this.$route.query.type
|
|
|
|
this.isCopy = this.$route.query.isCopy || false
|
|
|
|
this.isCopy = this.$route.query.isCopy || false
|
|
|
|
this.tabActiveKey = '1'
|
|
|
|
this.tabActiveKey = '1'
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = '1-1'
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.init()
|
|
|
|
this.init()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.$refs.basicInfo.$refs.basicFrom.clearValidate()
|
|
|
|
|
|
|
|
this.$refs.mailingInfo.$refs.mailingFrom.clearValidate()
|
|
|
|
|
|
|
|
this.$refs.cargoInfo.$refs.cargoFrom.clearValidate()
|
|
|
|
|
|
|
|
this.$refs.billInfo.$refs.billFrom.clearValidate()
|
|
|
|
|
|
|
|
this.$refs.remarksInfo.$refs.remarkFrom.clearValidate()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
init() {
|
|
|
|
init() {
|
|
|
|
this.bookingDetails = JSON.parse(JSON.stringify(initDetail))
|
|
|
|
this.bookingDetails = JSON.parse(JSON.stringify(initDetail))
|
|
|
@ -631,10 +650,15 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
getDjyTenantConfig () {
|
|
|
|
getDjyTenantConfig () {
|
|
|
|
getDjyTenantConfig({
|
|
|
|
getDjyTenantConfig({
|
|
|
|
type: 'customer_config_type'
|
|
|
|
type: 'booking_form_col'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.then(res => {
|
|
|
|
.then(res => {
|
|
|
|
this.checkFrom = ['customername', 'mblno', 'carrierid', 'forwarder', 'shipper', 'consignee', 'notifyparty', 'yard', 'customser', 'marks', 'cargoid', 'hscode', 'issuetype', 'issuedate', 'issueplace', 'soremark', 'siremark', 'bookingEDIExt.sendCode', 'bookingEDIExt.receiveCode']
|
|
|
|
// this.checkFrom = ['customername', 'mblno', 'carrierid', 'forwarder', 'shipper', 'consignee', 'notifyparty', 'yard', 'customser', 'marks', 'cargoid', 'hscode', 'issuetype', 'issuedate', 'soremark', 'siremark', 'bookingEDIExt.sendCode', 'bookingEDIExt.receiveCode']
|
|
|
|
|
|
|
|
if (res.data && JSON.parse(res.data.configJson).length) {
|
|
|
|
|
|
|
|
this.checkFrom = JSON.parse(res.data.configJson) || []
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.checkFrom = []
|
|
|
|
|
|
|
|
}
|
|
|
|
Object.keys(this.basicRules).map((item, index) => {
|
|
|
|
Object.keys(this.basicRules).map((item, index) => {
|
|
|
|
if (this.checkFrom.includes(item)) {
|
|
|
|
if (this.checkFrom.includes(item)) {
|
|
|
|
this.basicRules[item][0].required = true
|
|
|
|
this.basicRules[item][0].required = true
|
|
|
@ -663,6 +687,7 @@ export default {
|
|
|
|
Object.keys(this.ediRules).map((item, index) => {
|
|
|
|
Object.keys(this.ediRules).map((item, index) => {
|
|
|
|
if (this.checkFrom.includes(item)) {
|
|
|
|
if (this.checkFrom.includes(item)) {
|
|
|
|
this.ediRules[item][0].required = true
|
|
|
|
this.ediRules[item][0].required = true
|
|
|
|
|
|
|
|
// this.hasEdiRules = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.$forceUpdate()
|
|
|
|
this.$forceUpdate()
|
|
|
@ -740,6 +765,14 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$set(this, 'bookingDetails', res.data)
|
|
|
|
this.$set(this, 'bookingDetails', res.data)
|
|
|
|
|
|
|
|
// // edi 初始数据验证
|
|
|
|
|
|
|
|
// Object.keys(this.ediRules).map((item, index) => {
|
|
|
|
|
|
|
|
// console.log(this.bookingDetails[item.split('.')[0]][item.split('.')[1]])
|
|
|
|
|
|
|
|
// if (this.checkFrom.includes(item) && !this.bookingDetails[item.split('.')[0]][item.split('.')[1]]) {
|
|
|
|
|
|
|
|
// this.hasEdiRules = true
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
// console.log(' 1. === 主单获取信息更新 ===')
|
|
|
|
// console.log(' 1. === 主单获取信息更新 ===')
|
|
|
|
this.inChildLoading = false
|
|
|
|
this.inChildLoading = false
|
|
|
@ -780,22 +813,54 @@ export default {
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 自定义必填项验证 - start
|
|
|
|
// 自定义必填项验证 - start
|
|
|
|
// const basicFrom = this.$refs.basicInfo.checkbasic()
|
|
|
|
let basicFrom = true
|
|
|
|
// const mailingFrom = this.$refs.mailingInfo.checkbasic()
|
|
|
|
this.$refs.basicInfo.$refs.basicFrom.validate(valid => {
|
|
|
|
// const cargoFrom = this.$refs.cargoInfo.checkbasic()
|
|
|
|
basicFrom = valid
|
|
|
|
// const billFrom = this.$refs.billInfo.checkbasic()
|
|
|
|
})
|
|
|
|
// const remarksFrom = this.$refs.remarksInfo.checkbasic()
|
|
|
|
let mailingFrom = true
|
|
|
|
// if (!basicFrom || !mailingFrom || !cargoFrom || !billFrom || !remarksFrom) {
|
|
|
|
this.$refs.mailingInfo.$refs.mailingFrom.validate(valid => {
|
|
|
|
// this.$message.error('请填写完整数据')
|
|
|
|
mailingFrom = valid
|
|
|
|
// return false
|
|
|
|
})
|
|
|
|
// }
|
|
|
|
let cargoFrom = true
|
|
|
|
// if (this.$refs.ediMore && !this.$refs.ediMore.checkbasic()) {
|
|
|
|
this.$refs.cargoInfo.$refs.cargoFrom.validate(valid => {
|
|
|
|
// this.$message.error('请填写完整数据')
|
|
|
|
cargoFrom = valid
|
|
|
|
// return false
|
|
|
|
})
|
|
|
|
// } else if (!this.$refs.ediMore) {
|
|
|
|
let billFrom = true
|
|
|
|
// console.log('== 此处逻辑需要添加 ==')
|
|
|
|
this.$refs.billInfo.$refs.billFrom.validate(valid => {
|
|
|
|
// }
|
|
|
|
billFrom = valid
|
|
|
|
debugger
|
|
|
|
})
|
|
|
|
|
|
|
|
let remarksFrom = true
|
|
|
|
|
|
|
|
this.$refs.remarksInfo.$refs.remarkFrom.validate(valid => {
|
|
|
|
|
|
|
|
remarksFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (!basicFrom || !mailingFrom || !cargoFrom || !billFrom || !remarksFrom) {
|
|
|
|
|
|
|
|
this.$message.error('请填写完整数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.$refs.ediMore) {
|
|
|
|
|
|
|
|
let ediFrom = true
|
|
|
|
|
|
|
|
this.$refs.ediMore.$refs.ediFrom.validate(valid => {
|
|
|
|
|
|
|
|
ediFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (!ediFrom) {
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = '2-2'
|
|
|
|
|
|
|
|
this.$message.error('请填写完整EDI数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// edi 初始数据验证
|
|
|
|
|
|
|
|
Object.keys(this.ediRules).map((item, index) => {
|
|
|
|
|
|
|
|
console.log(this.bookingDetails[item.split('.')[0]][item.split('.')[1]])
|
|
|
|
|
|
|
|
if (this.checkFrom.includes(item) && !this.bookingDetails[item.split('.')[0]][item.split('.')[1]]) {
|
|
|
|
|
|
|
|
this.hasEdiRules = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (this.hasEdiRules) {
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = '2-2'
|
|
|
|
|
|
|
|
this.$message.error('请填写完整EDI数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// 自定义必填项验证 - end
|
|
|
|
// 自定义必填项验证 - end
|
|
|
|
const _data = JSON.parse(JSON.stringify(this.bookingDetails))
|
|
|
|
const _data = JSON.parse(JSON.stringify(this.bookingDetails))
|
|
|
|
delete _data.hbList
|
|
|
|
delete _data.hbList
|
|
|
@ -840,6 +905,56 @@ export default {
|
|
|
|
this.$message.error('请输入提单号')
|
|
|
|
this.$message.error('请输入提单号')
|
|
|
|
return false
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 自定义必填项验证 - start
|
|
|
|
|
|
|
|
let basicFrom = true
|
|
|
|
|
|
|
|
this.$refs.basicInfo.$refs.basicFrom.validate(valid => {
|
|
|
|
|
|
|
|
basicFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
let mailingFrom = true
|
|
|
|
|
|
|
|
this.$refs.mailingInfo.$refs.mailingFrom.validate(valid => {
|
|
|
|
|
|
|
|
mailingFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
let cargoFrom = true
|
|
|
|
|
|
|
|
this.$refs.cargoInfo.$refs.cargoFrom.validate(valid => {
|
|
|
|
|
|
|
|
cargoFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
let billFrom = true
|
|
|
|
|
|
|
|
this.$refs.billInfo.$refs.billFrom.validate(valid => {
|
|
|
|
|
|
|
|
billFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
let remarksFrom = true
|
|
|
|
|
|
|
|
this.$refs.remarksInfo.$refs.remarkFrom.validate(valid => {
|
|
|
|
|
|
|
|
remarksFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (!basicFrom || !mailingFrom || !cargoFrom || !billFrom || !remarksFrom) {
|
|
|
|
|
|
|
|
this.$message.error('请填写完整数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.$refs.ediMore) {
|
|
|
|
|
|
|
|
let ediFrom = true
|
|
|
|
|
|
|
|
this.$refs.ediMore.$refs.ediFrom.validate(valid => {
|
|
|
|
|
|
|
|
ediFrom = valid
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (!ediFrom) {
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = '2-2'
|
|
|
|
|
|
|
|
this.$message.error('请填写完整EDI数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
// edi 初始数据验证
|
|
|
|
|
|
|
|
Object.keys(this.ediRules).map((item, index) => {
|
|
|
|
|
|
|
|
console.log(this.bookingDetails[item.split('.')[0]][item.split('.')[1]])
|
|
|
|
|
|
|
|
if (this.checkFrom.includes(item) && !this.bookingDetails[item.split('.')[0]][item.split('.')[1]]) {
|
|
|
|
|
|
|
|
this.hasEdiRules = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
if (this.hasEdiRules) {
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = '2-2'
|
|
|
|
|
|
|
|
this.$message.error('请填写完整EDI数据')
|
|
|
|
|
|
|
|
return false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// 自定义必填项验证 - end
|
|
|
|
const _data = JSON.parse(JSON.stringify(this.bookingDetails))
|
|
|
|
const _data = JSON.parse(JSON.stringify(this.bookingDetails))
|
|
|
|
delete _data.hbList
|
|
|
|
delete _data.hbList
|
|
|
|
BookingOrderAddOrUpdate(_data)
|
|
|
|
BookingOrderAddOrUpdate(_data)
|
|
|
@ -880,6 +995,10 @@ export default {
|
|
|
|
this.tabActiveKey = e
|
|
|
|
this.tabActiveKey = e
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
changeMainTab (e) {
|
|
|
|
|
|
|
|
this.mainOrderActiveKey = e
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
// 操作按钮
|
|
|
|
// 操作按钮
|
|
|
|
refreshPage() {
|
|
|
|
refreshPage() {
|
|
|
|
this.init()
|
|
|
|
this.init()
|
|
|
@ -1233,4 +1352,5 @@ export default {
|
|
|
|
background: #fff;
|
|
|
|
background: #fff;
|
|
|
|
transition: 0.5s all;
|
|
|
|
transition: 0.5s all;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|