Эх сурвалжийг харах

决策驾驶舱-拉货统计不显示问题修复

zhongxiaoyu 2 жил өмнө
parent
commit
f4d593b88d

+ 16 - 10
src/views/dashboard/departure.vue

@@ -560,10 +560,13 @@ const waybillTrendFunc = async () => {
   if (listValues && isValue(listValues)) {
     const dealedList = listValues.reduce((preList, currentValue) => {
       if (typeof currentValue.jobTime === 'string') {
-        return [...preList, {
-          ...currentValue,
-          jobTime: parseDate(currentValue.jobTime)
-        }]
+        return [
+          ...preList,
+          {
+            ...currentValue,
+            jobTime: parseDate(currentValue.jobTime),
+          },
+        ]
       }
       return preList
     }, [])
@@ -740,12 +743,15 @@ const pickingFuncs = async () => {
   if (listValues && isValue(listValues)) {
     const newObj: any = _.cloneDeep(airlineAbnormalBaggage.option.baseOption)
     const dealedList = listValues.reduce((preList, currentValue) => {
-      if (typeof currentValue.jobTime === 'string') {
-        return [...preList, {
-          ...currentValue,
-          jobTime: parseDate(currentValue.jobTime),
-          weight: currentValue.flightNum
-        }]
+      if (typeof currentValue.flightDate === 'string') {
+        return [
+          ...preList,
+          {
+            ...currentValue,
+            jobTime: parseDate(currentValue.flightDate),
+            weight: currentValue.flightNum,
+          },
+        ]
       }
       return preList
     }, [])

+ 2 - 2
src/views/dashboard/internationalDeparture.vue

@@ -706,10 +706,10 @@ const pickingFuncs = async () => {
   if (listValues && isValue(listValues)) {
     const newObj: any = _.cloneDeep(airlineAbnormalBaggage.option.baseOption)
     const dealedList = listValues.reduce((preList, currentValue) => {
-      if (typeof currentValue.jobTime === 'string') {
+      if (typeof currentValue.flightDate === 'string') {
         return [...preList, {
           ...currentValue,
-          jobTime: parseDate(currentValue.jobTime),
+          jobTime: parseDate(currentValue.flightDate),
           weight: currentValue.flightNum
         }]
       }