协议样本、生产产出和盘点明细按行更新并保留原 id;补齐存储证明质检预填、离职人员显示名,以及样本采集通知模板字段。 Co-authored-by: Cursor <cursoragent@cursor.com>
32 lines
802 B
TypeScript
32 lines
802 B
TypeScript
import request from '@/utils/http'
|
|
|
|
export type SampleStorageCertQcDetail = {
|
|
sampleCode: string
|
|
labFlowCode: string
|
|
protocolCode: string
|
|
motherName: string
|
|
sampleTypeName: string
|
|
sampleTypeKey: string | null
|
|
collectionProtocolId?: string
|
|
qcWorkOrderId?: string
|
|
filledFlag: boolean
|
|
payload: Record<string, unknown>
|
|
prefill?: Record<string, unknown>
|
|
}
|
|
|
|
export function fetchSampleStorageCertQc(sampleCode: string) {
|
|
return request.get({
|
|
url: `/web/admin/sample-storage-cert-qc/${encodeURIComponent(sampleCode)}`
|
|
})
|
|
}
|
|
|
|
export function saveSampleStorageCertQc(
|
|
sampleCode: string,
|
|
data: { payload: Record<string, unknown>; qcWorkOrderId?: string }
|
|
) {
|
|
return request.put({
|
|
url: `/web/admin/sample-storage-cert-qc/${encodeURIComponent(sampleCode)}`,
|
|
data
|
|
})
|
|
}
|