This commit is contained in:
zlwu committed 2026-05-24 16:58:51 +08:00
1 parent 9dd7eb56ba
commit 7cec1f2190
112 files changed
+22684 -6952

No files matched your search

+5
View File
@@ -6,6 +6,7 @@ export function fetchCellProductList(params?: {
keyword?: string
productStatus?: string
passage?: string
sourceType?: string
}) {
return request.get<{
list: any[]
@@ -38,3 +39,7 @@ export function fetchNextCellProductCode(count = 1) {
params: count > 1 ? { count } : undefined
})
}
export function fetchCellProductChain(productId: string) {
return request.get<any>({ url: `/web/admin/cell-products/${productId}/chain` })
}
@@ -4,6 +4,7 @@ import type { QcWorkOrderReceptionDetail } from '@/api/qc-work-order'
export interface ProductionWorkOrderItem {
id: string
workOrderNo: string
workOrderType?: string
protocolNo?: string
sampleCode?: string
receptionSource?: string
@@ -25,6 +26,7 @@ export function fetchProductionWorkOrderList(params?: {
pageSize?: number
keyword?: string
workOrderStatus?: string
workOrderType?: string
}) {
return request.get<{
list: ProductionWorkOrderItem[]
@@ -42,3 +44,36 @@ export function fetchProductionWorkOrderDetail(id: string) {
export function fetchCompleteProductionWorkOrder(id: string, data: Record<string, any>) {
return request.put({ url: `/web/admin/production-work-orders/${id}/complete`, params: data })
}
export function fetchCreateProductionWorkOrder(data: {
workOrderType?: string
protocolNo?: string
sampleCode?: string
receptionSource?: string
remark?: string
}) {
return request.post<ProductionWorkOrderItem>({
url: '/web/admin/production-work-orders',
data
})
}
export function fetchConfigureProductionWorkOrder(
id: string,
data: {
taskName?: string
taskType?: string
routeId?: string
description?: string
remark?: string
}
) {
return request.post<ProductionWorkOrderItem>({
url: `/web/admin/production-work-orders/${id}/configure`,
data
})
}
export function fetchDeleteProductionWorkOrder(id: string) {
return request.del({ url: `/web/admin/production-work-orders/${id}` })
}
+29
View File
@@ -42,6 +42,7 @@ export type QcTask = {
id: string
workOrderId: string
workOrderNo?: string
orderSource?: string
taskNo: string
taskType: string
itemCode: string
@@ -62,6 +63,12 @@ export type QcTask = {
receptionTime?: string
handlerName?: string
workOrderStatus?: string
cellProductId?: string
cellProductCode?: string
cellProductName?: string
cellProductTypeName?: string
cellProductPassage?: string
cellProductSpecName?: string
thirdPartyAttachments?: string
attachmentFiles?: Array<{ id?: string; fileUrl: string; fileName?: string; fileType?: string }>
completedTime?: string
@@ -121,3 +128,25 @@ export function fetchUpdateQcTaskAttachments(id: string, thirdPartyAttachments:
data: { thirdPartyAttachments }
})
}
export function fetchCreateQcTask(data: {
taskType: string
itemCode: string
itemName: string
companyId?: string
companyName?: string
feeAmount?: number
sampleCode?: string
qcBizType?: string
workOrderId?: string
remark?: string
}) {
return request.post<QcTask>({
url: '/web/admin/qc-tasks',
params: data
})
}
export function fetchDeleteQcTask(id: string) {
return request.del({ url: `/web/admin/qc-tasks/${id}` })
}
+36
View File
@@ -50,6 +50,7 @@ export type QcWorkOrderReceptionDetail = {
export type QcWorkOrder = {
id: string
workOrderNo: string
workOrderType?: string
receptionId: string
protocolSampleId: string
collectionProtocolId: string
@@ -57,6 +58,14 @@ export type QcWorkOrder = {
sampleCode: string
receptionSource?: string
receptionSourceLabel?: string
qcBizType?: string
qcBizTypeLabel?: string
cellProductId?: string
cellProductCode?: string
cellProductName?: string
cellProductTypeName?: string
cellProductPassage?: string
cellProductSpecName?: string
sampleTypeName?: string
receptionTime?: string
handlerName?: string
@@ -106,6 +115,7 @@ export function fetchQcWorkOrderList(params?: {
pageSize?: number
keyword?: string
workOrderStatus?: string
workOrderType?: string
}) {
return request.get<PageList<QcWorkOrder>>({
url: '/web/admin/qc-work-orders',
@@ -133,3 +143,29 @@ export function fetchConfigureQcWorkOrder(
data
})
}
export function fetchCreateQcWorkOrder(data: {
workOrderType?: string
protocolNo?: string
sampleCode?: string
receptionSource?: string
qcBizType?: string
cellProductId?: string
remark?: string
}) {
return request.post<QcWorkOrder>({
url: '/web/admin/qc-work-orders',
data
})
}
export function fetchUpdateQcWorkOrder(id: string, data: { cellProductId?: string; remark?: string }) {
return request.put<QcWorkOrder>({
url: `/web/admin/qc-work-orders/${id}`,
data
})
}
export function fetchDeleteQcWorkOrder(id: string) {
return request.del({ url: `/web/admin/qc-work-orders/${id}` })
}