|
|
@@ -114,20 +114,20 @@ const convertData = (data: any) => {
|
|
|
top: [
|
|
|
{
|
|
|
label: 'Booking No.',
|
|
|
- content: data.basicInfo['bookingNo.'] || ''
|
|
|
+ content: data.basicInfo['bookingNo.'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'HAWB/HBL No.',
|
|
|
- content: data.basicInfo['HAWB/HBOL'] || '',
|
|
|
+ content: data.basicInfo['HAWB/HBOL'] || '--',
|
|
|
type: 'link'
|
|
|
},
|
|
|
{
|
|
|
label: 'Carrier Booking No.',
|
|
|
- content: data.basicInfo['Carrier_Booking_No'] || ''
|
|
|
+ content: data.basicInfo['Carrier_Booking_No'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'PO No.',
|
|
|
- content: data.basicInfo['PO_NO'] || ''
|
|
|
+ content: data.basicInfo['PO_NO'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Ref No.',
|
|
|
@@ -137,74 +137,74 @@ const convertData = (data: any) => {
|
|
|
bottom: [
|
|
|
{
|
|
|
label: 'Vessel / Airline',
|
|
|
- content: data.basicInfo['Vessel/Airline'] || ''
|
|
|
+ content: data.basicInfo['Vessel/Airline'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Voyage / Flight',
|
|
|
- content: data.basicInfo['Voyage/Filght'] || ''
|
|
|
+ content: data.basicInfo['Voyage/Filght'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Incoterm',
|
|
|
- content: data.basicInfo['Incoterm'] || ''
|
|
|
+ content: data.basicInfo['Incoterm'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Service Type',
|
|
|
- content: data.basicInfo['Service_Type'] || ''
|
|
|
+ content: data.basicInfo['Service_Type'] || '--'
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
businessPartners: [
|
|
|
{
|
|
|
title: 'Shipper',
|
|
|
- company: data.businessPartners.shipper.company || '',
|
|
|
- address: data.businessPartners.shipper.address || '',
|
|
|
- phone: data.businessPartners.shipper.phone || ''
|
|
|
+ company: data.businessPartners.shipper.company || '--',
|
|
|
+ address: data.businessPartners.shipper.address || '--',
|
|
|
+ phone: data.businessPartners.shipper.phone || '--'
|
|
|
},
|
|
|
{
|
|
|
title: 'Consignee',
|
|
|
- company: data.businessPartners.consignee.company || '',
|
|
|
- address: data.businessPartners.consignee.address || '',
|
|
|
- phone: data.businessPartners.consignee.phone || ''
|
|
|
+ company: data.businessPartners.consignee.company || '--',
|
|
|
+ address: data.businessPartners.consignee.address || '--',
|
|
|
+ phone: data.businessPartners.consignee.phone || '--'
|
|
|
},
|
|
|
{
|
|
|
title: 'Origin Agent',
|
|
|
- company: data.businessPartners.origin.company || '',
|
|
|
- address: data.businessPartners.origin.address || '',
|
|
|
- phone: data.businessPartners.origin.phone || ''
|
|
|
+ company: data.businessPartners.origin.company || '--',
|
|
|
+ address: data.businessPartners.origin.address || '--',
|
|
|
+ phone: data.businessPartners.origin.phone || '--'
|
|
|
},
|
|
|
{
|
|
|
title: 'Destination Agent',
|
|
|
- company: data.businessPartners.destination.company || '',
|
|
|
- address: data.businessPartners.destination.address || '',
|
|
|
- phone: data.businessPartners.destination.phone || ''
|
|
|
+ company: data.businessPartners.destination.company || '--',
|
|
|
+ address: data.businessPartners.destination.address || '--',
|
|
|
+ phone: data.businessPartners.destination.phone || '--'
|
|
|
}
|
|
|
],
|
|
|
packing: [
|
|
|
{
|
|
|
label: 'Quantity / Unit',
|
|
|
- content: data.packing['Quantity/Unit'] || ''
|
|
|
+ content: data.packing['Quantity/Unit'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'G. Weight',
|
|
|
- content: data.packing['G. Weight'] || ''
|
|
|
+ content: data.packing['G. Weight'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Ch. Weight',
|
|
|
- content: data.packing['Ch. Weight'] || ''
|
|
|
+ content: data.packing['Ch. Weight'] || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Volume',
|
|
|
- content: data.packing['Volume'] || ''
|
|
|
+ content: data.packing['Volume'] || '--'
|
|
|
}
|
|
|
],
|
|
|
marksAndDescription: [
|
|
|
{
|
|
|
label: 'Marks',
|
|
|
- content: data.marksAndDescription.marsk || ''
|
|
|
+ content: data.marksAndDescription.marsk || '--'
|
|
|
},
|
|
|
{
|
|
|
label: 'Description',
|
|
|
- content: data.marksAndDescription.description || ''
|
|
|
+ content: data.marksAndDescription.description || '--'
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
@@ -343,10 +343,12 @@ defineExpose({
|
|
|
<div class="item" v-for="item in curShowBusinessPartnersData" :key="item.title">
|
|
|
<div class="title">
|
|
|
{{ item.title }}
|
|
|
- <span
|
|
|
- class="font_family icon-icon_clone_b copy-icon"
|
|
|
- @click="handleCopy([item.company, item.address, item.phone])"
|
|
|
- ></span>
|
|
|
+ <el-button class="el-button--text copy-btn">
|
|
|
+ <span
|
|
|
+ class="font_family icon-icon_clone_b copy-icon"
|
|
|
+ @click="handleCopy([item.company, item.address, item.phone])"
|
|
|
+ ></span
|
|
|
+ ></el-button>
|
|
|
</div>
|
|
|
<div class="content">
|
|
|
<div class="info">
|
|
|
@@ -384,10 +386,12 @@ defineExpose({
|
|
|
<div class="data-item" v-for="item in allData.marksAndDescription" :key="item.label">
|
|
|
<div class="title">
|
|
|
{{ item.label }}
|
|
|
- <span
|
|
|
- class="font_family icon-icon_clone_b copy-icon"
|
|
|
- @click="handleCopy([item.content])"
|
|
|
- ></span>
|
|
|
+ <el-button class="el-button--text copy-btn">
|
|
|
+ <span
|
|
|
+ class="font_family icon-icon_clone_b copy-icon"
|
|
|
+ @click="handleCopy([item.content])"
|
|
|
+ ></span>
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div
|
|
|
ref="descriptionContainerRef"
|
|
|
@@ -634,6 +638,24 @@ defineExpose({
|
|
|
}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
+.copy-btn {
|
|
|
+ display: inline-flex;
|
|
|
+ align-items: center;
|
|
|
+ height: 16px !important;
|
|
|
+ width: 16px;
|
|
|
+ padding: 0 !important;
|
|
|
+
|
|
|
+ color: var(--color-neutral-2);
|
|
|
+ & > span {
|
|
|
+ display: block;
|
|
|
+ height: 16px;
|
|
|
+ width: 16px;
|
|
|
+ }
|
|
|
+ .font_family {
|
|
|
+ font-size: 10px !important;
|
|
|
+ color: var(--color-neutral-1) !important;
|
|
|
+ }
|
|
|
+}
|
|
|
div.el-popper.marks-popover {
|
|
|
border-radius: 12px;
|
|
|
overflow: hidden;
|