提交
This commit is contained in:
1 parent
1ca2668112
commit
5b3edb1700
278 files changed
+53761
-36931
No files matched your search
@@ -0,0 +1,54 @@
|
||||
import request from '@/utils/http'
|
||||
import type { ProductionReceptionRecord, QcReceptionRecord } from '@/utils/sample-production-reception-fields'
|
||||
|
||||
export type ProductionReceptionPayload = {
|
||||
receptionId?: string
|
||||
sampleCode?: string
|
||||
sourceType?: 'cell_storage' | 'research_donation'
|
||||
sampleTypeName?: string
|
||||
handlerUserId?: string
|
||||
handlerName?: string
|
||||
processTime: string
|
||||
originalBloodWeightG?: number
|
||||
hesVolumeMl?: number
|
||||
bloodType?: string
|
||||
infectiousFourTestResult?: string
|
||||
enrichedBloodWeightG?: number
|
||||
cryopreservationVolumeMl?: number
|
||||
inoculationAmount?: number
|
||||
cryopreservationTime?: string
|
||||
storageTotalTubes?: number
|
||||
availableCellCount1e7?: number
|
||||
originalBloodVolumeMl?: number
|
||||
nucleatedCellCount1e8?: number
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export function fetchProductionReceptionBySampleCode(params: {
|
||||
sampleCode: string
|
||||
sourceType?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
receptionId?: string
|
||||
sampleInfo?: Record<string, unknown> | null
|
||||
qcReception?: QcReceptionRecord | null
|
||||
productionReception?: ProductionReceptionRecord | null
|
||||
}>({
|
||||
url: '/web/admin/production-sample-receptions/by-sample-code',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProductionReceptionSubmit(data: ProductionReceptionPayload) {
|
||||
return request.post<ProductionReceptionRecord>({
|
||||
url: '/web/admin/production-sample-receptions',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchProductionReceptionUpdate(id: string, data: ProductionReceptionPayload) {
|
||||
return request.put<ProductionReceptionRecord>({
|
||||
url: `/web/admin/production-sample-receptions/${id}`,
|
||||
data
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user