Bladeren bron

运单视图-跟踪节点-显示条件修改

zhongxiaoyu 2 jaren geleden
bovenliggende
commit
1ab1da840a

+ 5 - 0
src/views/realTime/components/AirportView/useAirportTable.ts

@@ -261,11 +261,13 @@ const columnGroupsMap: {
           columnName: 'IATACode',
           columnLabel: '航司',
           needFilters: 1,
+          width: 50,
         },
         {
           columnName: 'flightNO',
           columnLabel: '航班号',
           needFilters: 1,
+          width: 60,
         },
         {
           columnName: 'flightDate',
@@ -289,6 +291,7 @@ const columnGroupsMap: {
           columnName: 'planeType',
           columnLabel: '机型',
           needFilters: 1,
+          width: 50,
         },
         {
           columnName: 'flightType',
@@ -361,6 +364,7 @@ const columnGroupsMap: {
         {
           columnName: 'tally',
           columnLabel: '理货\n(运单/件/重量)',
+          width: 120,
         },
         {
           columnName: 'tallyTime_in',
@@ -369,6 +373,7 @@ const columnGroupsMap: {
         {
           columnName: 'outWarehouse',
           columnLabel: '出库\n(运单/件/重量)',
+          width: 120,
         },
         {
           columnName: 'outWarehouseTime',

+ 6 - 2
src/views/realTime/hooks/useTrackData.ts

@@ -309,10 +309,14 @@ export function useTrackData(name: string, trackData: MaybeRef<CommonData[]>) {
       const dealedAirports = airline.airports.map((airport, index) => ({
         ...airport,
         trackSteps: airport.trackSteps.filter(
-          node =>
+          (node, i, steps) =>
             node.flag ||
             (index > 0
-              ? ['IMP_TALLY', 'FSUDLV'].includes(node.nodeCode)
+              ? ['IMP_TALLY', 'FSUDLV'].includes(node.nodeCode) &&
+                steps.some(
+                  node =>
+                    ['IMP_TALLY', 'FSUDLV'].includes(node.nodeCode) && node.flag
+                )
               : !['CARGOS_OFFLOAD', 'OFFLOAD_CONFIRM', 'BILL_RETURN'].includes(
                   node.nodeCode
                 ))