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