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