feat(sample): 展示样本状态并支持样本废弃与作废原因 (#131)
This commit was merged in pull request #133.
This commit is contained in:
commit
af02e2cdd2
53 files changed
+1527
-82
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import request from '@/utils/http'
|
||||
|
||||
export type SampleVoidTarget = {
|
||||
receptionSource: 'cell_storage' | 'research_donation'
|
||||
sampleId?: string
|
||||
sampleCode?: string
|
||||
protocolId?: string
|
||||
}
|
||||
|
||||
export type VoidBusinessSamplePayload = SampleVoidTarget & {
|
||||
voidDesc: string
|
||||
}
|
||||
|
||||
export type VoidBusinessSampleResult = {
|
||||
id: string
|
||||
sampleCode: string
|
||||
sampleStatus: string
|
||||
voidDate: string
|
||||
voidDesc: string
|
||||
}
|
||||
|
||||
export function fetchVoidBusinessSample(data: VoidBusinessSamplePayload) {
|
||||
return request.put<VoidBusinessSampleResult>({
|
||||
url: '/web/admin/business-samples/void',
|
||||
data
|
||||
})
|
||||
}
|
||||
@@ -17,6 +17,10 @@ export interface ProductionWorkOrderItem {
|
||||
workOrderType?: string
|
||||
protocolNo?: string
|
||||
sampleCode?: string
|
||||
sampleStatus?: string
|
||||
voidDesc?: string
|
||||
protocolSampleId?: string
|
||||
collectionProtocolId?: string
|
||||
receptionSource?: string
|
||||
receptionSourceLabel?: string
|
||||
sampleTypeName?: string
|
||||
|
||||
@@ -100,6 +100,8 @@ export type QcWorkOrder = {
|
||||
collectionProtocolId: string
|
||||
protocolNo: string
|
||||
sampleCode: string
|
||||
sampleStatus?: string
|
||||
voidDesc?: string
|
||||
labStorageCode?: string
|
||||
receptionSource?: string
|
||||
receptionSourceLabel?: string
|
||||
|
||||
@@ -5,6 +5,8 @@ export type SampleFreightItem = {
|
||||
sampleId: string
|
||||
protocolId?: string
|
||||
sampleCode?: string
|
||||
sampleStatus?: string
|
||||
voidDesc?: string
|
||||
protocolNo?: string
|
||||
sampleTypeName?: string
|
||||
motherName?: string
|
||||
|
||||
Reference in new issue
Block a user