|
@@ -13,7 +13,7 @@ const columnGroupsMap: {
|
|
children: SimpleColumn[]
|
|
children: SimpleColumn[]
|
|
}[]
|
|
}[]
|
|
} = {
|
|
} = {
|
|
- departure: [
|
|
|
|
|
|
+ DepartureAirport: [
|
|
{
|
|
{
|
|
groupName: '航班相关',
|
|
groupName: '航班相关',
|
|
children: [
|
|
children: [
|
|
@@ -179,7 +179,225 @@ const columnGroupsMap: {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- arrival: [
|
|
|
|
|
|
+ InternationalDepartureAirport: [
|
|
|
|
+ {
|
|
|
|
+ groupName: '航班相关',
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ columnName: 'flightNO',
|
|
|
|
+ columnLabel: '航班号',
|
|
|
|
+ needFilters: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'flightDate',
|
|
|
|
+ columnLabel: '执飞日期',
|
|
|
|
+ width: 73,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'planDepartureTime',
|
|
|
|
+ columnLabel: '起飞时间',
|
|
|
|
+ width: 73,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'landingAirport',
|
|
|
|
+ columnLabel: '目的站',
|
|
|
|
+ needFilters: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'takeOffStand',
|
|
|
|
+ columnLabel: '停机位',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'inFlightNO',
|
|
|
|
+ columnLabel: '前序航班',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'planLandingTime',
|
|
|
|
+ columnLabel: '实际降落\n时间',
|
|
|
|
+ width: 73,
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ groupName: '货站相关',
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C1',
|
|
|
|
+ columnLabel: '特货信息',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C2',
|
|
|
|
+ columnLabel: '预计装载数\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C3',
|
|
|
|
+ columnLabel: '中转进\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C4',
|
|
|
|
+ columnLabel: '退运\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ groupName: '地服相关',
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C5',
|
|
|
|
+ columnLabel: '入园\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C5_time',
|
|
|
|
+ columnLabel: '入园时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C6',
|
|
|
|
+ columnLabel: '进入海关\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C6_time',
|
|
|
|
+ columnLabel: '进入海关时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C7',
|
|
|
|
+ columnLabel: '海关放行\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C7_time',
|
|
|
|
+ columnLabel: '海关放行\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C8',
|
|
|
|
+ columnLabel: '海关不通过\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C8_time',
|
|
|
|
+ columnLabel: '海关不通过\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C9',
|
|
|
|
+ columnLabel: '运抵货站\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C9_time',
|
|
|
|
+ columnLabel: '运抵货站\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C10',
|
|
|
|
+ columnLabel: '退运\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C10_time',
|
|
|
|
+ columnLabel: '退运时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C11',
|
|
|
|
+ columnLabel: '安检放行\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C11_time',
|
|
|
|
+ columnLabel: '安检放行\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C12',
|
|
|
|
+ columnLabel: '收运核单\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C12_time',
|
|
|
|
+ columnLabel: '收运核单\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C13',
|
|
|
|
+ columnLabel: '核单不通过\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C13_time',
|
|
|
|
+ columnLabel: '核单不通过\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C14',
|
|
|
|
+ columnLabel: '理货\n(板卡/运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C14_time',
|
|
|
|
+ columnLabel: '理货时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C15',
|
|
|
|
+ columnLabel: '计划交接\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C16',
|
|
|
|
+ columnLabel: '待运区\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C16_time',
|
|
|
|
+ columnLabel: '待运区\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C17',
|
|
|
|
+ columnLabel: '预配载\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C18',
|
|
|
|
+ columnLabel: '发起货站交接\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C18_time',
|
|
|
|
+ columnLabel: '发起货站交接\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C19',
|
|
|
|
+ columnLabel: '货站交接\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C19_time',
|
|
|
|
+ columnLabel: '货站交接\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C20',
|
|
|
|
+ columnLabel: '运输前复核\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C20_time',
|
|
|
|
+ columnLabel: '运输前复核\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C21',
|
|
|
|
+ columnLabel: '机下交接\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C21_time',
|
|
|
|
+ columnLabel: '机下交接\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C22',
|
|
|
|
+ columnLabel: '装机单确认\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C22_time',
|
|
|
|
+ columnLabel: '装机单确认\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C23',
|
|
|
|
+ columnLabel: '装机\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C23_time',
|
|
|
|
+ columnLabel: '装机时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C24',
|
|
|
|
+ columnLabel: '拉下登记\n(板卡/运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C24_time',
|
|
|
|
+ columnLabel: '拉下登记\n时间',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ ArrivalAirport: [
|
|
{
|
|
{
|
|
groupName: '航班相关',
|
|
groupName: '航班相关',
|
|
children: [
|
|
children: [
|
|
@@ -270,10 +488,129 @@ const columnGroupsMap: {
|
|
],
|
|
],
|
|
},
|
|
},
|
|
],
|
|
],
|
|
|
|
+ InternationalArrivalAirport: [
|
|
|
|
+ {
|
|
|
|
+ groupName: '航班相关',
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ columnName: 'flightNO',
|
|
|
|
+ columnLabel: '航班号',
|
|
|
|
+ needFilters: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'flightDate',
|
|
|
|
+ columnLabel: '执飞日期',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'planLandingTime',
|
|
|
|
+ columnLabel: '降落时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'landingAirport',
|
|
|
|
+ columnLabel: '目的站',
|
|
|
|
+ needFilters: 1,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'landingStand',
|
|
|
|
+ columnLabel: '停机位',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ groupName: '货站相关',
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C1',
|
|
|
|
+ columnLabel: '特货信息',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C2',
|
|
|
|
+ columnLabel: '预计卸载数\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C3',
|
|
|
|
+ columnLabel: '中转出\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C4',
|
|
|
|
+ columnLabel: '收货差异\n(板卡/件)',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ groupName: '地服相关',
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C5',
|
|
|
|
+ columnLabel: '卸机单\n(板/箱/卡)',
|
|
|
|
+ },
|
|
|
|
+ // {
|
|
|
|
+ // columnName: 'C5_time',
|
|
|
|
+ // columnLabel: '卸机时间',
|
|
|
|
+ // },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C6',
|
|
|
|
+ columnLabel: '卸机\n(板/箱/卡)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C6_time',
|
|
|
|
+ columnLabel: '卸机时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C7',
|
|
|
|
+ columnLabel: '机下交接\n(板/箱/卡)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C7_time',
|
|
|
|
+ columnLabel: '机下交接\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C8',
|
|
|
|
+ columnLabel: '货站交接\n(板/箱/卡)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C8_time',
|
|
|
|
+ columnLabel: '货站交接\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C9',
|
|
|
|
+ columnLabel: '理货\n(板卡/运单/件/重量)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C9_time',
|
|
|
|
+ columnLabel: '理货时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C10',
|
|
|
|
+ columnLabel: '海关放行\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C10_time',
|
|
|
|
+ columnLabel: '海关放行\n时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C11',
|
|
|
|
+ columnLabel: '出库\n(批/运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C11_time',
|
|
|
|
+ columnLabel: '出库时间',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C12',
|
|
|
|
+ columnLabel: '海关罚没\n(运单/件)',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ columnName: 'C12_time',
|
|
|
|
+ columnLabel: '海关罚没\n时间',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
}
|
|
}
|
|
|
|
|
|
const simulateTableDataMap = {
|
|
const simulateTableDataMap = {
|
|
- departure: Array.from({ length: 3 }, (_, i) => ({
|
|
|
|
|
|
+ DepartureAirport: Array.from({ length: 3 }, (_, i) => ({
|
|
flightNO: 'ZH3423',
|
|
flightNO: 'ZH3423',
|
|
flightDate: '2022/09/10',
|
|
flightDate: '2022/09/10',
|
|
planDepartureTime: '22/09/10 12:01',
|
|
planDepartureTime: '22/09/10 12:01',
|
|
@@ -311,7 +648,58 @@ const simulateTableDataMap = {
|
|
C17: '0/5',
|
|
C17: '0/5',
|
|
C17_time: '12:02',
|
|
C17_time: '12:02',
|
|
})),
|
|
})),
|
|
- arrival: Array.from({ length: 3 }, (_, i) => ({
|
|
|
|
|
|
+ InternationalDepartureAirport: Array.from({ length: 3 }, (_, i) => ({
|
|
|
|
+ flightNO: 'ZH3423',
|
|
|
|
+ flightDate: '2022/09/10',
|
|
|
|
+ planDepartureTime: '22/09/10 12:01',
|
|
|
|
+ landingAirport: '-NGK-PEK',
|
|
|
|
+ takeOffStand: '84',
|
|
|
|
+ inFlightNO: 'HU2451',
|
|
|
|
+ planLandingTime: '2022/09/10 11:01',
|
|
|
|
+ C1: '锂2/冷1',
|
|
|
|
+ C2: '365/536',
|
|
|
|
+ C3: '1/2',
|
|
|
|
+ C4: '',
|
|
|
|
+ C5: '364/534',
|
|
|
|
+ C5_time: '12:02',
|
|
|
|
+ C6: '364/534',
|
|
|
|
+ C6_time: '12:02',
|
|
|
|
+ C7: '364/534',
|
|
|
|
+ C7_time: '12:02',
|
|
|
|
+ C8: '0/7',
|
|
|
|
+ C8_time: '12:02',
|
|
|
|
+ C9: '8/536',
|
|
|
|
+ C9_time: '12:02',
|
|
|
|
+ C10: '8/536',
|
|
|
|
+ C10_time: '12:02',
|
|
|
|
+ C11: '8/536',
|
|
|
|
+ C11_time: '12:02',
|
|
|
|
+ C12: '8/536',
|
|
|
|
+ C12_time: '12:02',
|
|
|
|
+ C13: '8/536',
|
|
|
|
+ C13_time: '12:02',
|
|
|
|
+ C14: '8/365/536',
|
|
|
|
+ C14_time: '12:02',
|
|
|
|
+ C15: '11:45',
|
|
|
|
+ C16: '8/536',
|
|
|
|
+ C16_time: '12:02',
|
|
|
|
+ C17: '8/536',
|
|
|
|
+ C18: '8/536',
|
|
|
|
+ C18_time: '12:02',
|
|
|
|
+ C19: '8/536',
|
|
|
|
+ C19_time: '12:02',
|
|
|
|
+ C20: '8/536',
|
|
|
|
+ C20_time: '12:02',
|
|
|
|
+ C21: '8/536',
|
|
|
|
+ C21_time: '12:02',
|
|
|
|
+ C22: '8/536',
|
|
|
|
+ C22_time: '12:02',
|
|
|
|
+ C23: '8/536',
|
|
|
|
+ C23_time: '12:02',
|
|
|
|
+ C24: '8/365/536',
|
|
|
|
+ C24_time: '12:02',
|
|
|
|
+ })),
|
|
|
|
+ ArrivalAirport: Array.from({ length: 3 }, (_, i) => ({
|
|
flightNO: 'ZH3423',
|
|
flightNO: 'ZH3423',
|
|
flightDate: '2022/09/10',
|
|
flightDate: '2022/09/10',
|
|
planLandingTime: '22/09/10 12:01',
|
|
planLandingTime: '22/09/10 12:01',
|
|
@@ -332,6 +720,32 @@ const simulateTableDataMap = {
|
|
C9: '3/363/537',
|
|
C9: '3/363/537',
|
|
C9_time: '12:02',
|
|
C9_time: '12:02',
|
|
})),
|
|
})),
|
|
|
|
+ InternationalArrivalAirport: Array.from({ length: 3 }, (_, i) => ({
|
|
|
|
+ flightNO: 'ZH3423',
|
|
|
|
+ flightDate: '2022/09/10',
|
|
|
|
+ planLandingTime: '22/09/10 12:01',
|
|
|
|
+ landingAirport: 'NKG-PEK-',
|
|
|
|
+ landingStand: '84',
|
|
|
|
+ C1: '锂2/冷1',
|
|
|
|
+ C2: '363/543',
|
|
|
|
+ C3: '',
|
|
|
|
+ C4: i === 0 ? '0/6' : '',
|
|
|
|
+ C5: '8/8/8',
|
|
|
|
+ C6: '8/8/8',
|
|
|
|
+ C6_time: '12:02',
|
|
|
|
+ C7: '8/8/8',
|
|
|
|
+ C7_time: '12:02',
|
|
|
|
+ C8: '8/8/8',
|
|
|
|
+ C8_time: '12:02',
|
|
|
|
+ C9: '8/363/537/1254KG',
|
|
|
|
+ C9_time: '12:02',
|
|
|
|
+ C10: '8/536',
|
|
|
|
+ C10_time: '12:02',
|
|
|
|
+ C11: '1/8/536',
|
|
|
|
+ C11_time: '12:02',
|
|
|
|
+ C12: '8/536',
|
|
|
|
+ C12_time: '12:02',
|
|
|
|
+ })),
|
|
}
|
|
}
|
|
const headerClassMap = ['bg-yellow', 'bg-green', 'bg-cyan']
|
|
const headerClassMap = ['bg-yellow', 'bg-green', 'bg-cyan']
|
|
|
|
|
|
@@ -358,8 +772,7 @@ export default function useAirportTable(name: string, formData: CommonData) {
|
|
const tableColumns = ref<CommonTableColumn[]>([])
|
|
const tableColumns = ref<CommonTableColumn[]>([])
|
|
const tableData = ref<CommonData[]>([])
|
|
const tableData = ref<CommonData[]>([])
|
|
const getTableColumns = () => {
|
|
const getTableColumns = () => {
|
|
- const groups =
|
|
|
|
- columnGroupsMap[name.includes('Departure') ? 'departure' : 'arrival']
|
|
|
|
|
|
+ const groups = columnGroupsMap[name]
|
|
tableColumns.value = groups.reduce(
|
|
tableColumns.value = groups.reduce(
|
|
(columns: CommonTableColumn[], group, groupIndex) => {
|
|
(columns: CommonTableColumn[], group, groupIndex) => {
|
|
group.children.forEach(column => {
|
|
group.children.forEach(column => {
|
|
@@ -431,8 +844,7 @@ export default function useAirportTable(name: string, formData: CommonData) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const getSimulateTableData = () => {
|
|
const getSimulateTableData = () => {
|
|
- tableData.value =
|
|
|
|
- simulateTableDataMap[name.includes('Departure') ? 'departure' : 'arrival']
|
|
|
|
|
|
+ tableData.value = simulateTableDataMap[name]
|
|
}
|
|
}
|
|
let queryLoop: number | null = null
|
|
let queryLoop: number | null = null
|
|
const startQuery = async () => {
|
|
const startQuery = async () => {
|