在质检管理下增加按来源×样本类型展示的台账页,聚合接收/生产/质检参数, 补录按实验室入库编码关联,支持 Excel 导出与中文时间格式。 Co-authored-by: Cursor <cursoragent@cursor.com>
56 lines
1.2 KiB
TypeScript
56 lines
1.2 KiB
TypeScript
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
|
|
})
|
|
}
|