|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<taskData ref="taskDataRef" title='Booking Amendment'></taskData>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col>
|
|
|
|
|
<pdf ref="pdfData"></pdf>
|
|
|
|
|
<pdf v-show="pdfUrl" @handleSuccess="handleSuccess" style="margin-bottom: 20px;" :id="taskPKId" ref="pdfData"></pdf>
|
|
|
|
|
<taskButton :buttonList="['取消', '完成', '转移']" @loadingStart="loadingStart" @loadingStop="loadingStop" :id="taskPKId" ref="taskButtonRef">
|
|
|
|
|
</taskButton>
|
|
|
|
|
</a-col>
|
|
|
|
@ -17,88 +17,28 @@ import { ref, onMounted } from 'vue'
|
|
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
|
|
|
import pdf from '../components/pdf.vue'
|
|
|
|
|
import taskData from '../components/taskData.vue'
|
|
|
|
|
import { GetInfoByTaskId,DownloadFileByBC } from '../api'
|
|
|
|
|
import taskButton from '../components/taskButton.vue'
|
|
|
|
|
import { useMessage } from '../../../hooks/web/useMessage'
|
|
|
|
|
const { createMessage } = useMessage()
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
const form = ref({
|
|
|
|
|
"pkId": "08dcab8e-3757-49bb-8082-1bb3de042459",
|
|
|
|
|
"taskId": "08dcab8e-374d-4a44-8093-6dc531177f01",
|
|
|
|
|
"busiType": "BookingConfirmation",
|
|
|
|
|
"bookingParty": "QINGDAO CHENGSI FREIGHT FORWARDER CO",
|
|
|
|
|
"mblNo": "242636125",
|
|
|
|
|
"vessel": "GSL MELITA",
|
|
|
|
|
"voyNo": "431S",
|
|
|
|
|
"placeReceipt": "Qingdao,Shandong,China",
|
|
|
|
|
"portload": "QINGDAO QIANWAN CONTAINER CO LTD",
|
|
|
|
|
"vgmCutoffTime": "2024-08-01 17:00:00",
|
|
|
|
|
"eta": "2024-09-03 00:00:00",
|
|
|
|
|
"etd": "2024-08-03 00:00:00",
|
|
|
|
|
"portDischarge": "Brisbane Patrick Terminal",
|
|
|
|
|
"placeDelivery": "Brisbane,Queensland,Australia",
|
|
|
|
|
"contractNo": "299026908",
|
|
|
|
|
"fstCustomerSerUserName": "Eight chengsi",
|
|
|
|
|
"cyCutoffTime": "2024-08-01 22:00:00",
|
|
|
|
|
"ctnList": [
|
|
|
|
|
{
|
|
|
|
|
"ctnALL": "40HC",
|
|
|
|
|
"ctnnum": 1
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"fileList": [
|
|
|
|
|
{
|
|
|
|
|
"filePath": "BookingAttach\\bcfiles\\08dcab8e-374d-4a44-8093-6dc531177f01\\20240724111048159\\DB_aabhcbhjagaf0x023A.pdf",
|
|
|
|
|
"fileType": ".pdf",
|
|
|
|
|
"fileName": "DB_aabhcbhjagaf0x023A.pdf",
|
|
|
|
|
"fileCategory": "BC",
|
|
|
|
|
"fileCategoryName": "Booking Confirmation"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"filePath": "BookingAttach\\bcnoticefiles\\08dcab8e-374d-4a44-8093-6dc531177f01\\20240724111048174\\DB_aabhcbhjagaf0x023A_MODIFY.pdf",
|
|
|
|
|
"fileType": ".pdf",
|
|
|
|
|
"fileName": "DB_aabhcbhjagaf0x023A_MODIFY.pdf",
|
|
|
|
|
"fileCategory": "BC_NOTICE",
|
|
|
|
|
"fileCategoryName": "Booking Confirmation Notice"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"bookingSlotId": 571905822330949,
|
|
|
|
|
"carrierId": "MSK",
|
|
|
|
|
"carriageType": "DIRECT_SHIP",
|
|
|
|
|
"carriageTypeName": "直达",
|
|
|
|
|
"bookingSlotType": "CONTRACT_ORDER",
|
|
|
|
|
"bookingSlotTypeName": "合约订舱",
|
|
|
|
|
"ctnStat": "40HC*1",
|
|
|
|
|
"weekAt": "31",
|
|
|
|
|
"detensionFreeDays": 0,
|
|
|
|
|
"siCutDate": "2024-07-31 18:00:00",
|
|
|
|
|
"bookingConfirmDate": "2024-07-24 11:10:00",
|
|
|
|
|
"keywords": [
|
|
|
|
|
{
|
|
|
|
|
"name": "承运方式:直达",
|
|
|
|
|
"background": "#FFFF80",
|
|
|
|
|
"icon": "icon-yunshu1"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "订舱方式:合约订舱",
|
|
|
|
|
"background": "#81D3F8",
|
|
|
|
|
"icon": "icon-touzijilu"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"taskStatus": "Create"
|
|
|
|
|
}) as any
|
|
|
|
|
const pdfUrl = ref('123')
|
|
|
|
|
const pdfUrl = ref('')
|
|
|
|
|
const taskDataRef = ref()
|
|
|
|
|
const pdfData = ref()
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
taskDataRef.value.init(form.value)
|
|
|
|
|
taskDataRef.value.getInfo('Amendment')
|
|
|
|
|
pdfData.value.init()
|
|
|
|
|
})
|
|
|
|
|
const taskPKId = ref(route.query.taskPKId)
|
|
|
|
|
const spinning = ref(false)
|
|
|
|
|
function handleSuccess(url) {
|
|
|
|
|
pdfUrl.value = url
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const pdfData = ref()
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
pdfData.value.init()
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function loadingStart() {
|
|
|
|
|
spinning.value = true
|
|
|
|
|