|
@@ -1,6 +1,14 @@
|
|
|
import { Query } from '@/api/webApi'
|
|
|
import { CommonValue, CommonData, CommonTableColumn } from '~/common'
|
|
|
|
|
|
+const idGetter = (name: string) => {
|
|
|
+ if (name.endsWith('WaybillGoods')) {
|
|
|
+ return DATACONTENT_ID.waybillGoods
|
|
|
+ } else {
|
|
|
+ return DATACONTENT_ID[name.slice(0, 1).toLowerCase() + name.slice(1)]
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
const tableColumnsMap: {
|
|
|
[tableName: string]: ({
|
|
|
columnLabel: string
|
|
@@ -8,125 +16,164 @@ const tableColumnsMap: {
|
|
|
} & { [x: string]: any })[]
|
|
|
} = {
|
|
|
DepartureFlightContainer: [
|
|
|
- { columnLabel: '集装器编号', columnName: 'C0', width: 120 },
|
|
|
- { columnLabel: '运单数', columnName: 'C1', width: 60, needCount: 1 },
|
|
|
- { columnLabel: '件数', columnName: 'C2', width: 60, needCount: 1 },
|
|
|
+ { columnLabel: '集装器编号', columnName: 'stowageNo', width: 120 },
|
|
|
+ { columnLabel: '运单数', columnName: 'list', width: 60, needCount: 1 },
|
|
|
+ { columnLabel: '件数', columnName: 'number', width: 60, needCount: 1 },
|
|
|
{
|
|
|
columnLabel: '理货',
|
|
|
- columnName: 'C3',
|
|
|
+ columnName: 'tally',
|
|
|
className: 'cell-filter cell-filter-yellow',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '拉下',
|
|
|
- columnName: 'C4',
|
|
|
+ columnName: 'pull',
|
|
|
className: 'cell-filter cell-filter-yellow',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '待运区',
|
|
|
- columnName: 'C5',
|
|
|
+ columnName: 'wait',
|
|
|
className: 'cell-filter cell-filter-yellow',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '货站交接',
|
|
|
- columnName: 'C6',
|
|
|
+ columnName: 'depot',
|
|
|
className: 'cell-filter cell-filter-yellow',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '机下交接',
|
|
|
- columnName: 'C7',
|
|
|
+ columnName: 'planeDown',
|
|
|
className: 'cell-filter cell-filter-yellow',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '装机',
|
|
|
- columnName: 'C8',
|
|
|
+ columnName: 'loadPlane',
|
|
|
className: 'cell-filter cell-filter-yellow',
|
|
|
},
|
|
|
],
|
|
|
DepartureFlightWaybill: [
|
|
|
- { columnLabel: '运单号', columnName: 'C0', width: 120 },
|
|
|
- { columnLabel: '集装器数量', columnName: 'C1', needCount: 1 },
|
|
|
+ { columnLabel: '运单号', columnName: 'stockCode', width: 120 },
|
|
|
+ { columnLabel: '集装器数量', columnName: 'stowageNum', needCount: 1 },
|
|
|
{
|
|
|
columnLabel: '品名',
|
|
|
- columnName: 'C2',
|
|
|
+ columnName: 'typeCode',
|
|
|
width: 160,
|
|
|
showOverflowTooltip: true,
|
|
|
},
|
|
|
- { columnLabel: '特货信息', columnName: 'C3' },
|
|
|
- { columnLabel: '货物件数', columnName: 'C4', needCount: 1 },
|
|
|
- { columnLabel: '拉下件数', columnName: 'C5', needCount: 1 },
|
|
|
- { columnLabel: '退运件数', columnName: 'C6', needCount: 1 },
|
|
|
- { columnLabel: '最新节点', columnName: 'C7' },
|
|
|
- { columnLabel: '最新位置', columnName: 'C8' },
|
|
|
- { columnLabel: '处理结果', columnName: 'C9' },
|
|
|
- { columnLabel: '处理时间', columnName: 'C10', width: 130 },
|
|
|
- { columnLabel: '中转进航班号', columnName: 'C11' },
|
|
|
- { columnLabel: '中转航班降落时间', columnName: 'C12', width: 130 },
|
|
|
- { columnLabel: '装载序号', columnName: 'C13' },
|
|
|
+ { columnLabel: '特货信息', columnName: 'speCargoInfo' },
|
|
|
+ { columnLabel: '货物件数', columnName: 'luggageCount', needCount: 1 },
|
|
|
+ { columnLabel: '拉下件数', columnName: 'pullNum', needCount: 1 },
|
|
|
+ { columnLabel: '退运件数', columnName: 'returnNum', needCount: 1 },
|
|
|
+ { columnLabel: '最新节点', columnName: 'nodeCode' },
|
|
|
+ { columnLabel: '最新位置', columnName: 'execPosition' },
|
|
|
+ { columnLabel: '处理结果', columnName: 'execResult' },
|
|
|
+ { columnLabel: '处理时间', columnName: 'execTime', width: 130 },
|
|
|
+ { columnLabel: '中转进航班号', columnName: 'inFlightNO' },
|
|
|
+ {
|
|
|
+ columnLabel: '中转航班降落时间',
|
|
|
+ columnName: 'inFlightNOLandTime',
|
|
|
+ width: 130,
|
|
|
+ },
|
|
|
+ { columnLabel: '装载序号', columnName: 'queueNo' },
|
|
|
],
|
|
|
DepartureWaybillGoods: [
|
|
|
- { columnLabel: '航班号', columnName: 'C0', needFilters: 1 },
|
|
|
- { columnLabel: '集装器编号', columnName: 'C1', width: 120, needFilters: 1 },
|
|
|
- { columnLabel: '货物编码', columnName: 'C2', needFilters: 1 },
|
|
|
- { columnLabel: '拉下', columnName: 'C3', needFilters: 1 },
|
|
|
- { columnLabel: '退运', columnName: 'C4', needFilters: 1 },
|
|
|
+ { columnLabel: '航班号', columnName: 'flightNO', needFilters: 1, width: 70 },
|
|
|
+ {
|
|
|
+ columnLabel: '集装器编号',
|
|
|
+ columnName: 'stowageNo',
|
|
|
+ width: 100,
|
|
|
+ needFilters: 1,
|
|
|
+ },
|
|
|
+ { columnLabel: '货物编码', columnName: 'CargoNo', needFilters: 1 },
|
|
|
+ { columnLabel: '拉下', columnName: 'pullMark', needFilters: 1, width: 60 },
|
|
|
+ { columnLabel: '退运', columnName: 'returnMark', needFilters: 1, width: 60 },
|
|
|
{
|
|
|
columnLabel: '收货核单',
|
|
|
- columnName: 'C5',
|
|
|
+ columnName: 'DEH',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '安检',
|
|
|
- columnName: 'C6',
|
|
|
+ columnLabel: '查验',
|
|
|
+ columnName: 'ACC_CHECK',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '理货',
|
|
|
- columnName: 'C7',
|
|
|
+ columnLabel: '拒运',
|
|
|
+ columnName: 'ACC_CHECK_2',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '拉下',
|
|
|
- columnName: 'C8',
|
|
|
+ columnLabel: '安检',
|
|
|
+ columnName: '安检',
|
|
|
+ className: 'cell-filter cell-filter-green',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnLabel: '加货',
|
|
|
+ columnName: 'ACC_BUP',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '待运区',
|
|
|
- columnName: 'C9',
|
|
|
+ columnName: 'WAT_LOC',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '货站交接',
|
|
|
- columnName: 'C10',
|
|
|
+ columnName: 'CARGOS_DEP_ULD_HANDOVER',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '机下交接',
|
|
|
- columnName: 'C11',
|
|
|
+ columnName: '出港货邮',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '装机',
|
|
|
- columnName: 'C12',
|
|
|
+ columnName: '装载完成',
|
|
|
+ className: 'cell-filter cell-filter-green',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnLabel: '拉下',
|
|
|
+ columnName: 'CARGOS_OFFLOAD',
|
|
|
+ className: 'cell-filter cell-filter-green',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnLabel: '拉回',
|
|
|
+ columnName: 'OFFLOAD_CONFIRM',
|
|
|
+ className: 'cell-filter cell-filter-green',
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // columnLabel: '起飞',
|
|
|
+ // columnName: 'C15',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ columnLabel: '退运',
|
|
|
+ columnName: 'BILL_RETURN',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '卸机',
|
|
|
- columnName: 'C13',
|
|
|
+ columnName: 'CARGOS_ARR_HANDOVER',
|
|
|
className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '机下交接',
|
|
|
- columnName: 'C14',
|
|
|
+ columnName: 'CARGOS_HANDOVER_STATUS',
|
|
|
className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '货站交接',
|
|
|
- columnName: 'C15',
|
|
|
+ columnName: '货站交接',
|
|
|
className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '提取',
|
|
|
- columnName: 'C16',
|
|
|
+ columnLabel: '理货',
|
|
|
+ columnName: 'IMP_TALLY',
|
|
|
+ className: 'cell-filter cell-filter-cyan',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnLabel: '出库',
|
|
|
+ columnName: 'FSU_DLV',
|
|
|
className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
],
|
|
@@ -148,90 +195,112 @@ const tableColumnsMap: {
|
|
|
{ columnLabel: '集装器编号', columnName: 'C14' },
|
|
|
],
|
|
|
ArrivalFlightWaybill: [
|
|
|
- { columnLabel: '运单号', columnName: 'C0', width: 120 },
|
|
|
+ { columnLabel: '运单号', columnName: 'stockCode', width: 120 },
|
|
|
{
|
|
|
columnLabel: '品名',
|
|
|
- columnName: 'C1',
|
|
|
+ columnName: 'typeCode',
|
|
|
width: 160,
|
|
|
showOverflowTooltip: true,
|
|
|
},
|
|
|
- { columnLabel: '特货信息', columnName: 'C2', needCount: 1 },
|
|
|
- { columnLabel: '进港报文货物件数', columnName: 'C3', needCount: 1 },
|
|
|
- { columnLabel: '进港实际货物件数', columnName: 'C4', needCount: 1 },
|
|
|
- { columnLabel: '最新节点', columnName: 'C5' },
|
|
|
- { columnLabel: '最新位置', columnName: 'C6' },
|
|
|
- { columnLabel: '处理结果', columnName: 'C7' },
|
|
|
- { columnLabel: '处理时间', columnName: 'C8', width: 130 },
|
|
|
- { columnLabel: '中转出航班号', columnName: 'C9' },
|
|
|
- { columnLabel: '中转航班降落时间', columnName: 'C10', width: 130 },
|
|
|
- { columnLabel: '装载序号', columnName: 'C11' },
|
|
|
- ],
|
|
|
- ArrivalWaybillGoods: [
|
|
|
- { columnLabel: '航班号', columnName: 'C0', needFilters: 1 },
|
|
|
- { columnLabel: '货物编码', columnName: 'C1', width: 120, needFilters: 1 },
|
|
|
- { columnLabel: '中转', columnName: 'C2', needFilters: 1 },
|
|
|
- { columnLabel: '拉下', columnName: 'C3', needFilters: 1 },
|
|
|
- { columnLabel: '退运', columnName: 'C4', needFilters: 1 },
|
|
|
+ { columnLabel: '特货信息', columnName: 'speCargoInfo', needCount: 1 },
|
|
|
{
|
|
|
- columnLabel: '卸机',
|
|
|
- columnName: 'C5',
|
|
|
- className: 'cell-filter cell-filter-cyan',
|
|
|
- },
|
|
|
- {
|
|
|
- columnLabel: '机下交接',
|
|
|
- columnName: 'C6',
|
|
|
- className: 'cell-filter cell-filter-cyan',
|
|
|
+ columnLabel: '进港报文货物件数',
|
|
|
+ columnName: 'messageCargos_in',
|
|
|
+ needCount: 1,
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '货站交接',
|
|
|
- columnName: 'C7',
|
|
|
- className: 'cell-filter cell-filter-cyan',
|
|
|
+ columnLabel: '进港实际货物件数',
|
|
|
+ columnName: 'acCargos_in',
|
|
|
+ needCount: 1,
|
|
|
},
|
|
|
+ { columnLabel: '最新节点', columnName: 'nodeCode' },
|
|
|
+ { columnLabel: '最新位置', columnName: 'execPosition' },
|
|
|
+ { columnLabel: '处理结果', columnName: 'execResult' },
|
|
|
+ { columnLabel: '处理时间', columnName: 'execTime', width: 130 },
|
|
|
+ { columnLabel: '中转出航班号', columnName: 'transferFlightNO' },
|
|
|
{
|
|
|
- columnLabel: '提取',
|
|
|
- columnName: 'C8',
|
|
|
- className: 'cell-filter cell-filter-cyan',
|
|
|
- },
|
|
|
- {
|
|
|
- columnLabel: '收货核单',
|
|
|
- columnName: 'C9',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
- },
|
|
|
- {
|
|
|
- columnLabel: '安检',
|
|
|
- columnName: 'C10',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnLabel: '中转航班起飞时间',
|
|
|
+ columnName: 'transferFlightDepTime',
|
|
|
+ width: 130,
|
|
|
},
|
|
|
+ { columnLabel: '装载序号', columnName: 'queueNo' },
|
|
|
+ ],
|
|
|
+ ArrivalWaybillGoods: [
|
|
|
+ { columnLabel: '航班号', columnName: 'flightNO', needFilters: 1 },
|
|
|
{
|
|
|
- columnLabel: '理货',
|
|
|
- columnName: 'C11',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnLabel: '货物编码',
|
|
|
+ columnName: 'CargoNo',
|
|
|
+ width: 120,
|
|
|
+ needFilters: 1,
|
|
|
},
|
|
|
+ { columnLabel: '中转', columnName: 'transMark', needFilters: 1 },
|
|
|
+ { columnLabel: '拉下', columnName: 'pullMark', needFilters: 1 },
|
|
|
+ { columnLabel: '退运', columnName: 'returnMark', needFilters: 1 },
|
|
|
{
|
|
|
- columnLabel: '拉下',
|
|
|
- columnName: 'C12',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnLabel: '卸机',
|
|
|
+ columnName: 'CARGOS_ARR_HANDOVER',
|
|
|
+ className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '待运区',
|
|
|
- columnName: 'C13',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnLabel: '机下交接',
|
|
|
+ columnName: 'CARGOS_HANDOVER_STATUS',
|
|
|
+ className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
columnLabel: '货站交接',
|
|
|
- columnName: 'C14',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnName: '货站交接',
|
|
|
+ className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '机下交接',
|
|
|
- columnName: 'C15',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnLabel: '理货',
|
|
|
+ columnName: 'IMP_TALLY',
|
|
|
+ className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '装机',
|
|
|
- columnName: 'C16',
|
|
|
- className: 'cell-filter cell-filter-green',
|
|
|
+ columnLabel: '出库',
|
|
|
+ columnName: 'FSU_DLV',
|
|
|
+ className: 'cell-filter cell-filter-cyan',
|
|
|
},
|
|
|
+ // {
|
|
|
+ // columnLabel: '收货核单',
|
|
|
+ // columnName: 'C9',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '安检',
|
|
|
+ // columnName: 'C10',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '理货',
|
|
|
+ // columnName: 'C11',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '拉下',
|
|
|
+ // columnName: 'C12',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '待运区',
|
|
|
+ // columnName: 'C13',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '货站交接',
|
|
|
+ // columnName: 'C14',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '机下交接',
|
|
|
+ // columnName: 'C15',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // columnLabel: '装机',
|
|
|
+ // columnName: 'C16',
|
|
|
+ // className: 'cell-filter cell-filter-green',
|
|
|
+ // },
|
|
|
],
|
|
|
ArrivalGoodsFlight: [
|
|
|
{ columnLabel: '航班号', columnName: 'C0' },
|
|
@@ -386,24 +455,35 @@ const tableColumnsMap: {
|
|
|
{ columnLabel: '集装器编号', columnName: 'C14' },
|
|
|
],
|
|
|
InternationalArrivalFlightWaybill: [
|
|
|
- { columnLabel: '运单号', columnName: 'C0', width: 120 },
|
|
|
- { columnLabel: '运单类型', columnName: 'C1' },
|
|
|
+ { columnLabel: '运单号', columnName: 'stockCode', width: 120 },
|
|
|
{
|
|
|
columnLabel: '品名',
|
|
|
- columnName: 'C2',
|
|
|
+ columnName: 'typeCode',
|
|
|
width: 160,
|
|
|
showOverflowTooltip: true,
|
|
|
},
|
|
|
- { columnLabel: '特货信息', columnName: 'C3' },
|
|
|
- { columnLabel: '进港报文货物件数', columnName: 'C4', needCount: 1 },
|
|
|
- { columnLabel: '进港实际货物件数', columnName: 'C5', needCount: 1 },
|
|
|
- { columnLabel: '最新节点', columnName: 'C6' },
|
|
|
- { columnLabel: '最新位置', columnName: 'C7' },
|
|
|
- { columnLabel: '处理结果', columnName: 'C8' },
|
|
|
- { columnLabel: '处理时间', columnName: 'C9', width: 130 },
|
|
|
- { columnLabel: '中转出航班号', columnName: 'C10' },
|
|
|
- { columnLabel: '中转航班起飞时间', columnName: 'C11', width: 130 },
|
|
|
- { columnLabel: '装载序号', columnName: 'C12' },
|
|
|
+ { columnLabel: '特货信息', columnName: 'speCargoInfo', needCount: 1 },
|
|
|
+ {
|
|
|
+ columnLabel: '进港报文货物件数',
|
|
|
+ columnName: 'messageCargos_in',
|
|
|
+ needCount: 1,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ columnLabel: '进港实际货物件数',
|
|
|
+ columnName: 'acCargos_in',
|
|
|
+ needCount: 1,
|
|
|
+ },
|
|
|
+ { columnLabel: '最新节点', columnName: 'nodeCode' },
|
|
|
+ { columnLabel: '最新位置', columnName: 'execPosition' },
|
|
|
+ { columnLabel: '处理结果', columnName: 'execResult' },
|
|
|
+ { columnLabel: '处理时间', columnName: 'execTime', width: 130 },
|
|
|
+ { columnLabel: '中转出航班号', columnName: 'transferFlightNO' },
|
|
|
+ {
|
|
|
+ columnLabel: '中转航班起飞时间',
|
|
|
+ columnName: 'transferFlightDepTime',
|
|
|
+ width: 130,
|
|
|
+ },
|
|
|
+ { columnLabel: '装载序号', columnName: 'queueNo' },
|
|
|
],
|
|
|
InternationalArrivalWaybillGoods: [
|
|
|
{ columnLabel: '航班号', columnName: 'C0', needFilters: 1 },
|
|
@@ -432,7 +512,7 @@ const tableColumnsMap: {
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '海关',
|
|
|
+ columnLabel: '海关放行',
|
|
|
columnName: 'C9',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
@@ -442,7 +522,7 @@ const tableColumnsMap: {
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
|
{
|
|
|
- columnLabel: '退运',
|
|
|
+ columnLabel: '海关罚没',
|
|
|
columnName: 'C11',
|
|
|
className: 'cell-filter cell-filter-green',
|
|
|
},
|
|
@@ -720,7 +800,7 @@ export default function useTable(
|
|
|
returnData: { listValues },
|
|
|
message,
|
|
|
} = await Query<CommonData>({
|
|
|
- id: DATACONTENT_ID[tableName.slice(0, 1).toLocaleLowerCase + tableName.slice(1)],
|
|
|
+ id: idGetter(tableName),
|
|
|
dataContent,
|
|
|
})
|
|
|
if (Number(code) !== 0) {
|
|
@@ -738,8 +818,8 @@ export default function useTable(
|
|
|
onMounted(() => {
|
|
|
if (tableColumnsMap[tableName]) {
|
|
|
getTableColumns()
|
|
|
- // getTableData()
|
|
|
- getSimulateTableData()
|
|
|
+ getTableData()
|
|
|
+ // getSimulateTableData()
|
|
|
}
|
|
|
})
|
|
|
|