feat(qc): 新增实验室样本处理数据台账(4 Tab + 补录 + 导出)
在质检管理下增加按来源×样本类型展示的台账页,聚合接收/生产/质检参数, 补录按实验室入库编码关联,支持 Excel 导出与中文时间格式。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a64dd563bd
commit
acb81cadd5
12 files changed
+2033
-1
No files matched your search
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
export type LabSampleProcessTabKey =
|
||||
| 'cell_hsc'
|
||||
| 'donation_hsc'
|
||||
| 'cell_msc'
|
||||
| 'donation_msc'
|
||||
|
||||
export interface LabSampleProcessListParams {
|
||||
tabKey: LabSampleProcessTabKey
|
||||
page?: number
|
||||
pageSize?: number
|
||||
labStorageCode?: string
|
||||
motherName?: string
|
||||
createTimeStart?: string
|
||||
createTimeEnd?: string
|
||||
}
|
||||
|
||||
export function fetchLabSampleProcessList(params: LabSampleProcessListParams) {
|
||||
return request.get<{
|
||||
list: Record<string, unknown>[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
tabKey: string
|
||||
supplementKeys: string[]
|
||||
}>({
|
||||
url: '/web/admin/lab-sample-process/list',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchLabSampleProcessSupplement(labStorageCode: string) {
|
||||
return request.get<{
|
||||
labStorageCode?: string
|
||||
payload?: Record<string, string>
|
||||
remark?: string
|
||||
}>({
|
||||
url: '/web/admin/lab-sample-process/supplement',
|
||||
params: { labStorageCode }
|
||||
})
|
||||
}
|
||||
|
||||
export function saveLabSampleProcessSupplement(body: {
|
||||
labStorageCode: string
|
||||
receptionSource: string
|
||||
sampleTypeName: string
|
||||
payload: Record<string, string>
|
||||
remark?: string
|
||||
}) {
|
||||
return request.put({
|
||||
url: '/web/admin/lab-sample-process/supplement',
|
||||
data: body
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user