提交
This commit is contained in:
1 parent
93cd506a90
commit
3b875ec370
93 files changed
+11514
-2304
No files matched your search
@@ -225,3 +225,81 @@ export function fetchDeleteProcess(id: string) {
|
||||
export function fetchProcessDetail(id: string) {
|
||||
return request.get<any>({ url: `/web/admin/processes/${id}` })
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// 工艺路线管理
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function fetchProcessRouteList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
routeName?: string
|
||||
routeCode?: string
|
||||
productTypeId?: string
|
||||
}) {
|
||||
return request.get<{
|
||||
list: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
totalPages: number
|
||||
}>({ url: '/web/admin/process-routes', params })
|
||||
}
|
||||
|
||||
export function fetchProcessRouteDetail(id: string) {
|
||||
return request.get<any>({ url: `/web/admin/process-routes/${id}` })
|
||||
}
|
||||
|
||||
export function fetchCreateProcessRoute(data: Record<string, any>) {
|
||||
return request.post({ url: '/web/admin/process-routes', params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateProcessRoute(id: string, data: Record<string, any>) {
|
||||
return request.put({ url: `/web/admin/process-routes/${id}`, params: data })
|
||||
}
|
||||
|
||||
export function fetchSetCurrentProcessRoute(routeId: string) {
|
||||
return request.put({ url: '/web/admin/process-routes/set-current', params: { routeId } })
|
||||
}
|
||||
|
||||
export function fetchDeleteProcessRoute(id: string) {
|
||||
return request.del({ url: `/web/admin/process-routes/${id}` })
|
||||
}
|
||||
|
||||
// 步骤操作
|
||||
export function fetchAddRouteStep(data: { routeId: string; processId: string; stepOrder?: number }) {
|
||||
return request.post({ url: '/web/admin/process-routes/step/add', params: data })
|
||||
}
|
||||
|
||||
export function fetchCopyRouteStep(data: { stepId: string }) {
|
||||
return request.post({ url: '/web/admin/process-routes/step/copy', params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateRouteStep(data: Record<string, any>) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/update', params: data })
|
||||
}
|
||||
|
||||
export function fetchReorderRouteSteps(data: { routeId: string; stepIds: string[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/reorder', params: data })
|
||||
}
|
||||
|
||||
export function fetchDeleteRouteStep(stepId: string) {
|
||||
return request.del({ url: `/web/admin/process-routes/step/${stepId}` })
|
||||
}
|
||||
|
||||
// 步骤子表
|
||||
export function fetchUpdateStepReagents(data: { stepId: string; items: any[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/reagent/update', params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateStepConsumables(data: { stepId: string; items: any[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/consumable/update', params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateStepOutputs(data: { stepId: string; items: any[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/output/update', params: data })
|
||||
}
|
||||
|
||||
export function fetchUpdateStepDataCollections(data: { stepId: string; items: any[] }) {
|
||||
return request.put({ url: '/web/admin/process-routes/step/data-collection/update', params: data })
|
||||
}
|
||||
@@ -17,7 +17,12 @@ export function fetchQcTaskResults(taskId: string) {
|
||||
|
||||
export function fetchCompleteTaskWithResult(
|
||||
taskId: string,
|
||||
data: { results: QcTaskResultItem[]; thirdPartyAttachments?: string }
|
||||
data: {
|
||||
conclusion: string
|
||||
results: QcTaskResultItem[]
|
||||
remark?: string
|
||||
thirdPartyAttachments?: string
|
||||
}
|
||||
) {
|
||||
return request.post({
|
||||
url: `/web/admin/qc-tasks/${taskId}/complete-with-result`,
|
||||
|
||||
@@ -8,6 +8,36 @@ type PageList<T> = {
|
||||
totalPages: number
|
||||
}
|
||||
|
||||
export type QcTaskReceptionDetail = {
|
||||
protocolNo?: string
|
||||
sampleCode?: string
|
||||
sampleTypeName?: string
|
||||
sourceType?: string
|
||||
sourceTypeLabel?: string
|
||||
receptionTime?: string
|
||||
handlerName?: string
|
||||
receiveTemperature?: string
|
||||
volumeMl?: number
|
||||
netWeightG?: number
|
||||
acceptConclusion?: string
|
||||
acceptConclusionLabel?: string
|
||||
remark?: string
|
||||
transportType?: string
|
||||
expressCompanyName?: string
|
||||
waybillNo?: string
|
||||
carrierName?: string
|
||||
carrierPhone?: string
|
||||
etaTime?: string
|
||||
checkResults?: Array<{ itemName?: string; checked?: boolean }>
|
||||
receiveAttachments?: string
|
||||
receiveAttachmentFiles?: Array<{
|
||||
id?: string
|
||||
fileUrl?: string
|
||||
fileName?: string
|
||||
fileType?: string
|
||||
}>
|
||||
}
|
||||
|
||||
export type QcTask = {
|
||||
id: string
|
||||
workOrderId: string
|
||||
@@ -20,6 +50,18 @@ export type QcTask = {
|
||||
companyName?: string
|
||||
feeAmount?: number
|
||||
taskStatus: string
|
||||
conclusion?: string
|
||||
conclusionLabel?: string
|
||||
qcBizType?: string
|
||||
qcBizTypeLabel?: string
|
||||
receptionSource?: string
|
||||
receptionSourceLabel?: string
|
||||
protocolNo?: string
|
||||
sampleCode?: string
|
||||
sampleTypeName?: string
|
||||
receptionTime?: string
|
||||
handlerName?: string
|
||||
workOrderStatus?: string
|
||||
thirdPartyAttachments?: string
|
||||
attachmentFiles?: Array<{ id?: string; fileUrl: string; fileName?: string; fileType?: string }>
|
||||
completedTime?: string
|
||||
@@ -30,8 +72,7 @@ export type QcTask = {
|
||||
}
|
||||
|
||||
export type QcTaskDetail = QcTask & {
|
||||
protocolNo?: string
|
||||
sampleCode?: string
|
||||
reception?: QcTaskReceptionDetail
|
||||
attachmentFiles?: Array<{ id?: string; fileUrl: string; fileName?: string }>
|
||||
results?: Array<{
|
||||
paramName: string
|
||||
@@ -48,6 +89,7 @@ export function fetchQcTaskList(params?: {
|
||||
taskType?: string
|
||||
taskStatus?: string
|
||||
workOrderId?: string
|
||||
qcBizType?: string
|
||||
}) {
|
||||
return request.get<PageList<QcTask>>({
|
||||
url: '/web/admin/qc-tasks',
|
||||
|
||||
@@ -8,6 +8,45 @@ type PageList<T> = {
|
||||
totalPages: number
|
||||
}
|
||||
|
||||
export type SampleReceptionCheckResult = {
|
||||
itemCode: string
|
||||
itemName: string
|
||||
checked: boolean
|
||||
checkItemId?: string
|
||||
}
|
||||
|
||||
export type QcWorkOrderReceptionDetail = {
|
||||
protocolNo?: string
|
||||
sampleCode?: string
|
||||
sampleTypeName?: string
|
||||
sourceType?: string
|
||||
sourceTypeLabel?: string
|
||||
receptionTime?: string
|
||||
handlerName?: string
|
||||
receiveTemperature?: string
|
||||
volumeMl?: number
|
||||
netWeightG?: number
|
||||
acceptConclusion?: string
|
||||
acceptConclusionLabel?: string
|
||||
remark?: string
|
||||
etaTime?: string
|
||||
transportType?: string
|
||||
expressCompanyName?: string
|
||||
waybillNo?: string
|
||||
carrierName?: string
|
||||
carrierPhone?: string
|
||||
checkResults?: SampleReceptionCheckResult[]
|
||||
receiveAttachments?: string
|
||||
receiveAttachmentFiles?: Array<{
|
||||
id?: string
|
||||
fileUrl?: string
|
||||
fileName?: string
|
||||
fileType?: string
|
||||
fileSize?: number
|
||||
fileSizeDisplay?: string
|
||||
}>
|
||||
}
|
||||
|
||||
export type QcWorkOrder = {
|
||||
id: string
|
||||
workOrderNo: string
|
||||
@@ -16,6 +55,11 @@ export type QcWorkOrder = {
|
||||
collectionProtocolId: string
|
||||
protocolNo: string
|
||||
sampleCode: string
|
||||
receptionSource?: string
|
||||
receptionSourceLabel?: string
|
||||
sampleTypeName?: string
|
||||
receptionTime?: string
|
||||
handlerName?: string
|
||||
workOrderStatus: string
|
||||
hasLab: boolean
|
||||
hasThirdParty: boolean
|
||||
@@ -28,11 +72,7 @@ export type QcWorkOrder = {
|
||||
}
|
||||
|
||||
export type QcWorkOrderDetail = QcWorkOrder & {
|
||||
reception?: {
|
||||
receptionTime?: string
|
||||
handlerName?: string
|
||||
acceptConclusion?: string
|
||||
}
|
||||
reception?: QcWorkOrderReceptionDetail
|
||||
labItems?: Array<{ id: string; labTestItemId: string; itemCode: string; itemName: string }>
|
||||
thirdPartyItems?: Array<{
|
||||
id: string
|
||||
|
||||
@@ -12,6 +12,7 @@ export function fetchSampleReceptionPendingList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
sourceType?: string
|
||||
}) {
|
||||
return request.get<PageList<Record<string, unknown>>>({
|
||||
url: '/web/admin/sample-receptions/pending',
|
||||
@@ -23,6 +24,7 @@ export function fetchSampleReceptionReceivedList(params?: {
|
||||
page?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
sourceType?: string
|
||||
}) {
|
||||
return request.get<PageList<Record<string, unknown>>>({
|
||||
url: '/web/admin/sample-receptions/received',
|
||||
@@ -46,7 +48,9 @@ export type SampleReceptionCheckResult = {
|
||||
}
|
||||
|
||||
export function fetchSampleReceptionSubmit(data: {
|
||||
protocolSampleId: string
|
||||
protocolSampleId?: string
|
||||
sourceType?: 'cell_storage' | 'research_donation'
|
||||
donationSampleId?: string
|
||||
receptionTime: string
|
||||
handlerUserId?: string
|
||||
handlerName?: string
|
||||
|
||||
Reference in new issue
Block a user