This commit is contained in:
zlwu committed 2026-06-29 09:21:09 +08:00
1 parent 4daf990fab
commit 1ca2668112
219 files changed
+29817 -20945

No files matched your search

@@ -8,6 +8,7 @@ import {
getProductionWorkOrderTab,
toWorkOrderListQuery
} from '@/utils/production-work-order-tabs'
import { matchesWorkOrderStatusFilter } from '@/utils/status-tag-registry'
export type ProductionTaskMineFilters = {
keyword?: string
@@ -17,7 +18,7 @@ export type ProductionTaskMineFilters = {
export type MineWorkOrderSearchFilters = {
keyword?: string
workOrderStatus?: string
workOrderStatus?: string | string[]
createTimeStart?: string
createTimeEnd?: string
infusionTimeStart?: string
@@ -59,7 +60,7 @@ function keywordMatchesWorkOrder(
? [row.workOrderNo, row.applicationNo, row.projectTitle, row.customerName, row.applicationName]
: tab.group === 'outbound'
? [row.workOrderNo, row.applicationNo, row.applicationName, row.patientName]
: [row.workOrderNo, row.sampleCode, row.labStorageCode]
: [row.workOrderNo, row.sampleCode, row.labStorageCode, row.motherName, row.newbornName]
return fields.some((f) => (f || '').toLowerCase().includes(kw))
}
@@ -100,6 +101,8 @@ export function buildWorkOrderFromTasks(tasks: ProductionTaskRow[]): ProductionW
handlerName: t.handlerName,
receptionTime: t.receptionTime,
labStorageCode: t.labStorageCode,
motherName: t.motherName,
newbornName: t.newbornName,
remark: t.workOrderRemark || t.remark,
createTime: t.workOrderCreateTime || t.createTime || ''
}
@@ -222,7 +225,7 @@ export function filterMineEntriesByWorkOrderSearch(
const row = entry.workOrder
if (resolveTabKeyFromWorkOrder(row) !== tabKey) return false
if (entry.tabKey !== tabKey) return false
if (filters.workOrderStatus && row.workOrderStatus !== filters.workOrderStatus) return false
if (!matchesWorkOrderStatusFilter(row.workOrderStatus, filters.workOrderStatus)) return false
if (!keywordMatchesWorkOrder(row, filters.keyword || '', tabKey)) return false
if (tabUsesInfusionTimeFilter(tab)) {
if (!dateInRange(row.infusionTime, filters.infusionTimeStart, filters.infusionTimeEnd)) {