|
|
|
@ -2741,28 +2741,25 @@ const dialogSearchSubmit = () => {
|
|
|
|
|
|
|
|
|
|
console.log(details.query, 'details.query'); |
|
|
|
|
}; |
|
|
|
|
const ProcessSearch = async () => { |
|
|
|
|
if (TopQuery.value.CreateTiem?.length) { |
|
|
|
|
details.query.startCreateTime = await dayjs(TopQuery.value.CreateTiem[0]).format( |
|
|
|
|
'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
); |
|
|
|
|
details.query.endCreateTime = await dayjs(TopQuery.value.CreateTiem[1]).format( |
|
|
|
|
'YYYY-MM-DD HH:mm:ss' |
|
|
|
|
); |
|
|
|
|
const ProcessSearch = () => { |
|
|
|
|
const { CreateTiem, workOrderNumbers, orderCodes } = TopQuery.value; |
|
|
|
|
|
|
|
|
|
const queryKeys = ['workOrderNumbers', 'orderCodes']; |
|
|
|
|
queryKeys.forEach(key => { |
|
|
|
|
if (TopQuery.value[key]) { |
|
|
|
|
details.query[key] = TopQuery.value[key]; |
|
|
|
|
} else { |
|
|
|
|
delete details.query[key]; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if (CreateTiem?.length) { |
|
|
|
|
details.query.startCreateTime = dayjs(CreateTiem[0]).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|
details.query.endCreateTime = dayjs(CreateTiem[1]).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
|
delete details.query.CreateTiem; |
|
|
|
|
} |
|
|
|
|
if (TopQuery.value.workOrderNumbers) { |
|
|
|
|
details.query.workOrderNumbers = TopQuery.value.workOrderNumbers; |
|
|
|
|
} else { |
|
|
|
|
delete details.query.workOrderNumbers; |
|
|
|
|
} |
|
|
|
|
if (TopQuery.value.orderCodes) { |
|
|
|
|
details.query.orderCodes = TopQuery.value.orderCodes; |
|
|
|
|
} else { |
|
|
|
|
delete details.query.orderCodes; |
|
|
|
|
} |
|
|
|
|
console.log(TopQuery.value, 'TopQuery.value'); |
|
|
|
|
|
|
|
|
|
console.log(TopQuery.value, 'TopQuery.value'); |
|
|
|
|
console.log(details.query, 'details.query'); |
|
|
|
|
|
|
|
|
|
delete details.query.inputAll; |
|
|
|
|