feat(web-admin): add storage-cert QC field metadata and API client.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
5546b7aa73
commit
28b10663ee
2 files changed
+182
No files matched your search
@@ -0,0 +1,30 @@
|
||||
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>
|
||||
}
|
||||
|
||||
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
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user