|
|
@ -101,7 +101,7 @@
|
|
|
|
<template slot="footer">
|
|
|
|
<template slot="footer">
|
|
|
|
<a-button @click="handleModelCancel">关闭</a-button>
|
|
|
|
<a-button @click="handleModelCancel">关闭</a-button>
|
|
|
|
<a-button type="primary" @click="handleModelSubmit('save')">保存EDI文件</a-button>
|
|
|
|
<a-button type="primary" @click="handleModelSubmit('save')">保存EDI文件</a-button>
|
|
|
|
<a-button type="primary" @click="handleModelSubmit('send')">上传EDT</a-button>
|
|
|
|
<a-button type="primary" @click="handleModelSubmit('send')">上传EDI</a-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -419,7 +419,7 @@ import {
|
|
|
|
SampleBillPdf,
|
|
|
|
SampleBillPdf,
|
|
|
|
TxxpLink,
|
|
|
|
TxxpLink,
|
|
|
|
ExcuteRulesOceanBooking,
|
|
|
|
ExcuteRulesOceanBooking,
|
|
|
|
BookingOrderPrint,
|
|
|
|
BookingOrderPrint
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
} from '@/api/modular/main/BookingLedger'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -428,8 +428,8 @@ export default {
|
|
|
|
type: Object,
|
|
|
|
type: Object,
|
|
|
|
default: () => {
|
|
|
|
default: () => {
|
|
|
|
return {}
|
|
|
|
return {}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -444,14 +444,14 @@ export default {
|
|
|
|
useForwarderCode: false,
|
|
|
|
useForwarderCode: false,
|
|
|
|
forwarderCode: '',
|
|
|
|
forwarderCode: '',
|
|
|
|
forwarderName: '',
|
|
|
|
forwarderName: '',
|
|
|
|
fileRole: '',
|
|
|
|
fileRole: 9,
|
|
|
|
sendType: 'B',
|
|
|
|
sendType: 'B',
|
|
|
|
send: false,
|
|
|
|
send: false
|
|
|
|
},
|
|
|
|
},
|
|
|
|
radioStyle: {
|
|
|
|
radioStyle: {
|
|
|
|
display: 'block',
|
|
|
|
display: 'block',
|
|
|
|
height: '30px',
|
|
|
|
height: '30px',
|
|
|
|
lineHeight: '30px',
|
|
|
|
lineHeight: '30px'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 放舱表单
|
|
|
|
// 放舱表单
|
|
|
|
initCabinFrom: {
|
|
|
|
initCabinFrom: {
|
|
|
@ -465,15 +465,15 @@ export default {
|
|
|
|
orderUrl: {
|
|
|
|
orderUrl: {
|
|
|
|
urlTxxp: '',
|
|
|
|
urlTxxp: '',
|
|
|
|
urlVgm: '',
|
|
|
|
urlVgm: '',
|
|
|
|
urlVgmSi: '',
|
|
|
|
urlVgmSi: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
remark: '',
|
|
|
|
remark: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 样单
|
|
|
|
// 样单
|
|
|
|
hsaBillPdf: false,
|
|
|
|
hsaBillPdf: false,
|
|
|
|
billPdf: '',
|
|
|
|
billPdf: '',
|
|
|
|
billPdfTip: '',
|
|
|
|
billPdfTip: '',
|
|
|
|
templateType: [],
|
|
|
|
templateType: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
@ -486,14 +486,14 @@ export default {
|
|
|
|
// ========== 订舱打印 ==========
|
|
|
|
// ========== 订舱打印 ==========
|
|
|
|
FnCilckTemplateType(type) {
|
|
|
|
FnCilckTemplateType(type) {
|
|
|
|
BookingOrderPrint({ type, bookingId: this.id })
|
|
|
|
BookingOrderPrint({ type, bookingId: this.id })
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('打印成功')
|
|
|
|
this.$message.success('打印成功')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -551,7 +551,7 @@ export default {
|
|
|
|
this.bookingModelFrom.send = type === 'send'
|
|
|
|
this.bookingModelFrom.send = type === 'send'
|
|
|
|
this.bookingModelFrom.orderNo = this.details.mblno
|
|
|
|
this.bookingModelFrom.orderNo = this.details.mblno
|
|
|
|
SendBookingOrClosingEDI(this.bookingModelFrom)
|
|
|
|
SendBookingOrClosingEDI(this.bookingModelFrom)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
// 未完成
|
|
|
|
// 未完成
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success(`${type === 'send' ? '发送' : '保存'}成功`)
|
|
|
|
this.$message.success(`${type === 'send' ? '发送' : '保存'}成功`)
|
|
|
@ -560,7 +560,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -573,9 +573,9 @@ export default {
|
|
|
|
useForwarderCode: false,
|
|
|
|
useForwarderCode: false,
|
|
|
|
forwarderCode: '',
|
|
|
|
forwarderCode: '',
|
|
|
|
forwarderName: '',
|
|
|
|
forwarderName: '',
|
|
|
|
fileRole: '',
|
|
|
|
fileRole: 9,
|
|
|
|
sendType: 'B',
|
|
|
|
sendType: 'B',
|
|
|
|
send: false,
|
|
|
|
send: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// vgm / 下货纸
|
|
|
|
// vgm / 下货纸
|
|
|
@ -583,9 +583,9 @@ export default {
|
|
|
|
let content = null
|
|
|
|
let content = null
|
|
|
|
const _this = this
|
|
|
|
const _this = this
|
|
|
|
if (type === 'vgm') {
|
|
|
|
if (type === 'vgm') {
|
|
|
|
content = (h) => <div>确认发送VGM吗?</div>
|
|
|
|
content = h => <div>确认发送VGM吗?</div>
|
|
|
|
} else if (type === 'paper') {
|
|
|
|
} else if (type === 'paper') {
|
|
|
|
content = (h) => <div>确认发送下货纸吗?</div>
|
|
|
|
content = h => <div>确认发送下货纸吗?</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$confirm({
|
|
|
|
this.$confirm({
|
|
|
|
title: '温馨提示',
|
|
|
|
title: '温馨提示',
|
|
|
@ -601,34 +601,34 @@ export default {
|
|
|
|
onCancel() {
|
|
|
|
onCancel() {
|
|
|
|
console.log('Cancel')
|
|
|
|
console.log('Cancel')
|
|
|
|
},
|
|
|
|
},
|
|
|
|
class: 'test',
|
|
|
|
class: 'test'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
sendXHZ() {
|
|
|
|
sendXHZ() {
|
|
|
|
SendXHZ(this.id)
|
|
|
|
SendXHZ(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success(`下货纸发送成功`)
|
|
|
|
this.$message.success(`下货纸发送成功`)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
vgmSend() {
|
|
|
|
vgmSend() {
|
|
|
|
VgmSend(this.id)
|
|
|
|
VgmSend(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success(`VGM发送成功`)
|
|
|
|
this.$message.success(`VGM发送成功`)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -636,7 +636,7 @@ export default {
|
|
|
|
// 获取放舱信息
|
|
|
|
// 获取放舱信息
|
|
|
|
getLetterYard() {
|
|
|
|
getLetterYard() {
|
|
|
|
LetterYard(this.id)
|
|
|
|
LetterYard(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
console.log('== 放舱信息 ==', res.data)
|
|
|
|
console.log('== 放舱信息 ==', res.data)
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.initCabinFrom = res.data
|
|
|
|
this.initCabinFrom = res.data
|
|
|
@ -644,7 +644,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -652,7 +652,7 @@ export default {
|
|
|
|
// 获取样单信息
|
|
|
|
// 获取样单信息
|
|
|
|
getSampleBill() {
|
|
|
|
getSampleBill() {
|
|
|
|
SampleBill(this.id)
|
|
|
|
SampleBill(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
console.log('== 样单信息 ==', res.data)
|
|
|
|
console.log('== 样单信息 ==', res.data)
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.initCabinFrom = res.data
|
|
|
|
this.initCabinFrom = res.data
|
|
|
@ -660,7 +660,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -668,7 +668,7 @@ export default {
|
|
|
|
// 获取VGM信息
|
|
|
|
// 获取VGM信息
|
|
|
|
getVgmLink() {
|
|
|
|
getVgmLink() {
|
|
|
|
VgmLink(this.id)
|
|
|
|
VgmLink(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
console.log('== VGM信息 ==', res.data)
|
|
|
|
console.log('== VGM信息 ==', res.data)
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
// this.initCabinFrom = res.data
|
|
|
|
// this.initCabinFrom = res.data
|
|
|
@ -676,14 +676,14 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
sampleBillPdf() {
|
|
|
|
sampleBillPdf() {
|
|
|
|
SampleBillPdf(this.id)
|
|
|
|
SampleBillPdf(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.hsaBillPdf = true
|
|
|
|
this.hsaBillPdf = true
|
|
|
|
this.billPdf = res.data.description
|
|
|
|
this.billPdf = res.data.description
|
|
|
@ -692,7 +692,7 @@ export default {
|
|
|
|
this.billPdfTip = res.message
|
|
|
|
this.billPdfTip = res.message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -767,12 +767,12 @@ export default {
|
|
|
|
...{
|
|
|
|
...{
|
|
|
|
closeDocTime: this.details.closedocdate,
|
|
|
|
closeDocTime: this.details.closedocdate,
|
|
|
|
closingTime: this.details.closingdate,
|
|
|
|
closingTime: this.details.closingdate,
|
|
|
|
vgmTime: this.details.closevgmdate,
|
|
|
|
vgmTime: this.details.closevgmdate
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
SaveBookingLetteryard(this.initCabinFrom)
|
|
|
|
SaveBookingLetteryard(this.initCabinFrom)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
// this.initCabinFrom = res.data
|
|
|
|
// this.initCabinFrom = res.data
|
|
|
@ -780,7 +780,7 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -788,14 +788,14 @@ export default {
|
|
|
|
// 保存 / 发送 样单
|
|
|
|
// 保存 / 发送 样单
|
|
|
|
saveBookingSampleBill() {
|
|
|
|
saveBookingSampleBill() {
|
|
|
|
SaveBookingSampleBill(this.initCabinFrom)
|
|
|
|
SaveBookingSampleBill(this.initCabinFrom)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
this.$message.success('保存成功')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -803,21 +803,21 @@ export default {
|
|
|
|
// 发送放舱
|
|
|
|
// 发送放舱
|
|
|
|
sendLetterYard() {
|
|
|
|
sendLetterYard() {
|
|
|
|
SendLetterYard(this.id)
|
|
|
|
SendLetterYard(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$message.success('发送成功')
|
|
|
|
this.$message.success('发送成功')
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
TxxpLink() {
|
|
|
|
TxxpLink() {
|
|
|
|
TxxpLink(this.id)
|
|
|
|
TxxpLink(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
console.log(res.data)
|
|
|
|
console.log(res.data)
|
|
|
|
this.copyFun(res.data)
|
|
|
|
this.copyFun(res.data)
|
|
|
@ -825,25 +825,25 @@ export default {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
checkFun() {
|
|
|
|
checkFun() {
|
|
|
|
ExcuteRulesOceanBooking(this.id)
|
|
|
|
ExcuteRulesOceanBooking(this.id)
|
|
|
|
.then((res) => {
|
|
|
|
.then(res => {
|
|
|
|
if (res.success) {
|
|
|
|
if (res.success) {
|
|
|
|
this.$emit('rules', res.data.rows)
|
|
|
|
this.$emit('rules', res.data.rows)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$message.error(res.message)
|
|
|
|
this.$message.error(res.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {
|
|
|
|
.catch(err => {
|
|
|
|
console.log(err)
|
|
|
|
console.log(err)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
|
|
<style lang="less" scoped>
|
|
|
|