提交
This commit is contained in:
1 parent
1ca2668112
commit
5b3edb1700
278 files changed
+53761
-36931
No files matched your search
@@ -56,6 +56,23 @@ export function fetchMaxPassageProductSeq(productCode: string, passages: string[
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchMaxProductSuffixSeq(productCode: string) {
|
||||
return request.get<{ maxSeq?: number; nextSeq?: number }>({
|
||||
url: '/web/admin/cell-products/max-suffix-seq',
|
||||
params: { productCode: productCode.trim() }
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCheckCellProductCode(productCode: string, excludeId?: string) {
|
||||
return request.get<{ exists?: boolean; productCode?: string }>({
|
||||
url: '/web/admin/cell-products/check-code',
|
||||
params: {
|
||||
productCode: productCode.trim(),
|
||||
...(excludeId ? { excludeId } : {})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchCellProductChain(productId: string) {
|
||||
return request.get<any>({ url: `/web/admin/cell-products/${productId}/chain` })
|
||||
}
|
||||
@@ -60,6 +60,7 @@ export interface ProductionWorkOrderItem {
|
||||
|
||||
export type ProductionWorkOrderDetail = ProductionWorkOrderItem & {
|
||||
reception?: QcWorkOrderReceptionDetail
|
||||
productionReception?: import('@/utils/sample-production-reception-fields').ProductionReceptionRecord | null
|
||||
bizType?: string
|
||||
bizTypeLabel?: string
|
||||
/** 临床应用出库:简要申请单 */
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
@@ -65,8 +65,6 @@ export function fetchSampleReceptionUpdate(
|
||||
handlerUserId?: string
|
||||
handlerName?: string
|
||||
receiveTemperature?: string
|
||||
volumeMl?: number
|
||||
netWeightG?: number
|
||||
checks: Array<{ checkItemId: string; checked: boolean }>
|
||||
acceptConclusion: 'js' | 'bj'
|
||||
receiveAttachments?: string
|
||||
@@ -88,8 +86,6 @@ export function fetchSampleReceptionSubmit(data: {
|
||||
handlerUserId?: string
|
||||
handlerName?: string
|
||||
receiveTemperature?: string
|
||||
volumeMl?: number
|
||||
netWeightG?: number
|
||||
checks: Array<{ checkItemId: string; checked: boolean }>
|
||||
acceptConclusion: 'js' | 'bj'
|
||||
receiveAttachments?: string
|
||||
|
||||
Reference in new issue
Block a user