This commit is contained in:
zlwu committed 2026-07-01 16:37:33 +08:00
1 parent 28f233c922
commit 038a60b09e
478 files changed
+67530 -51951

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import request from '@/utils/http'
export type InboundSampleSpecialMarkPayload = {
receptionSource: 'cell_storage' | 'research_donation'
protocolSampleId: string
isSpecial: boolean
specialRemark?: string
}
export type InboundSampleSpecialMarkResult = {
isSpecial: boolean
specialRemark: string
}
export function fetchUpdateInboundSampleSpecialMark(data: InboundSampleSpecialMarkPayload) {
return request.put<InboundSampleSpecialMarkResult>({
url: '/web/admin/inbound-samples/special-mark',
data
})
}
+1
View File
@@ -28,6 +28,7 @@ export type MaterialUsage = {
stockBefore?: number
stockAfter: number
receiver?: string
operatorName?: string
purpose?: string
useTime?: string
sourceType: string
+13 -9
View File
@@ -88,17 +88,18 @@ export type MaterialBatchOption = {
}
export type StockInPayload = {
stockInNo: string
stockInDate: string
expireDate: string
catalogNo: string
batchNo: string
manufacturer: string
unitPrice: number
amount: number
qty: number
stockInNo?: string
stockInDate?: string
expireDate?: string
catalogNo?: string
batchNo?: string
manufacturer?: string
unitPrice?: number
amount?: number
qty?: number
remark?: string
stockInTime?: string
operatorName?: string
}
export type BatchStockInLine = StockInPayload & {
@@ -184,6 +185,7 @@ export function fetchBatchStockInMaterial(data: {
items: BatchStockInLine[]
remark?: string
stockInTime?: string
operatorName?: string
}) {
return request.post<{ count: number }>({
url: '/web/admin/material-batches/batch-stock-in',
@@ -210,6 +212,7 @@ export function fetchBatchStockOutMaterial(data: {
purpose?: string
remark?: string
stockOutTime?: string
operatorName?: string
}) {
return request.post<{ count: number }>({
url: '/web/admin/material-batches/batch-stock-out',
@@ -222,6 +225,7 @@ export function fetchBatchDiscardMaterial(data: {
discardReason: string
remark?: string
discardTime?: string
operatorName?: string
}) {
return request.post<{ count: number }>({
url: '/web/admin/material-batches/batch-discard',
@@ -20,6 +20,8 @@ export interface ProductionWorkOrderItem {
receptionSource?: string
receptionSourceLabel?: string
sampleTypeName?: string
isSpecial?: boolean
specialRemark?: string
handlerName?: string
receptionTime?: string
workOrderStatus: string
@@ -195,6 +197,19 @@ export function fetchCreateQcFromProduction(
})
}
export type ProductionWorkOrderQcInfoDetail = {
showGateSection?: boolean
gateQcInfo?: import('@/components/business/sample-qc-info-cards/index.vue').SampleQcInfo | null
processQcInfoList?: import('@/components/business/sample-qc-info-cards/index.vue').SampleQcInfo[]
sampleReception?: import('@/components/business/sample-qc-info-cards/index.vue').SampleReceptionBrief | null
}
export function fetchProductionWorkOrderQcInfo(workOrderId: string) {
return request.get<ProductionWorkOrderQcInfoDetail>({
url: `/web/admin/production-work-orders/${workOrderId}/qc-info`
})
}
export type ProductionWorkOrderTabStepCount = {
overdueIncomplete: number
unassigned: number
+8
View File
@@ -17,6 +17,8 @@ export type QcTaskReceptionDetail = {
protocolNo?: string
sampleCode?: string
sampleTypeName?: string
isSpecial?: boolean
specialRemark?: string
sourceType?: string
sourceTypeLabel?: string
receptionTime?: string
@@ -70,6 +72,8 @@ export type QcTask = {
protocolStatusLabel?: string
sampleCode?: string
sampleTypeName?: string
isSpecial?: boolean
specialRemark?: string
receptionTime?: string
handlerName?: string
workOrderStatus?: string
@@ -108,6 +112,8 @@ export type QcTask = {
patientName?: string
motherName?: string
newbornName?: string
isSpecial?: boolean
specialRemark?: string
infusionTime?: string
sortNo?: number | null
totalCourseCount?: number | null
@@ -120,6 +126,8 @@ export type QcTask = {
bizTypeLabel?: string
paymentSummary?: QcProtocolPaymentSummary | null
feeSummary?: QcBasicExperimentFeeSummary | null
/** 列表级工单摘要:未完成标题栏角标数字 */
unfinishedBadgeCount?: number
}
export type QcTaskOperateScope = 'mine' | 'manage'
+4
View File
@@ -103,6 +103,8 @@ export type QcWorkOrder = {
cellProductPassage?: string
cellProductSpecName?: string
sampleTypeName?: string
isSpecial?: boolean
specialRemark?: string
receptionTime?: string
handlerName?: string
workOrderStatus: string
@@ -149,6 +151,8 @@ export type QcWorkOrder = {
protocolStatusLabel?: string
paymentSummary?: QcProtocolPaymentSummary | null
feeSummary?: QcBasicExperimentFeeSummary | null
/** 列表 enrich:未完成工单卡片角标数字(待配置=1,已配置=未完成任务数) */
unfinishedBadgeCount?: number
}
export type QcWorkOrderDetail = QcWorkOrder & {
+2 -2
View File
@@ -27,7 +27,7 @@ export function fetchResearchDonationList(params?: {
})
}
// 下一捐赠样本编码(KYJZ+YYYYMMDD+0001 递增)
// 下一捐赠样本编码(KYJZ+YYYYMM+0001 递增)
export function fetchNextDonationSampleCode(params?: { pendingCodes?: string }) {
return request.get<{ sampleCode: string }>({
url: '/web/admin/research-donations/next-sample-code',
@@ -113,7 +113,7 @@ export function fetchSubmitDonationAudit(
// 状态变更
export function fetchDonationStatusChange(
donationId: string,
data: { newStatus: string; desc?: string; timeVal?: string }
data: { newStatus: string; desc?: string; timeVal?: string; voidType?: string }
) {
return request.post({
url: `/web/admin/research-donations/${donationId}/status-change`,
@@ -32,6 +32,7 @@ export type StorageReleaseReview = {
motherName?: string
protocolStatus?: string
protocolStatusLabel?: string
voidType?: string
storageBy?: string
storageByName?: string
storageTime?: string