提交
This commit is contained in:
1 parent
0b50eff3d8
commit
ee364e24aa
323 files changed
+57731
-35766
No files matched your search
@@ -1,4 +1,6 @@
|
||||
import request from '@/utils/http'
|
||||
import type { QcInspectionBatch } from '@/utils/qc-inspection-batch'
|
||||
import type { QcWorkOrderTabKey } from '@/utils/qc-work-order-tabs'
|
||||
|
||||
type PageList<T> = {
|
||||
list: T[]
|
||||
@@ -176,6 +178,25 @@ export type QcWorkOrderDetail = QcWorkOrder & {
|
||||
assigneeUserNames?: string
|
||||
attachmentFiles?: Array<{ id?: string; fileUrl?: string; fileName?: string }>
|
||||
}>
|
||||
inspectionBatches?: QcInspectionBatch[]
|
||||
}
|
||||
|
||||
export type QcWorkOrderTabUnfinishedCounts = Record<QcWorkOrderTabKey, number>
|
||||
|
||||
export function formatQcWorkOrderTabBadgeCount(count: number): string {
|
||||
return count > 99 ? '99+' : String(count)
|
||||
}
|
||||
|
||||
export function fetchQcWorkOrderTabUnfinishedCounts() {
|
||||
return request.get<QcWorkOrderTabUnfinishedCounts>({
|
||||
url: '/web/admin/qc-work-orders/tab-unfinished-counts'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchMineQcWorkOrderTabUnfinishedCounts() {
|
||||
return request.get<QcWorkOrderTabUnfinishedCounts>({
|
||||
url: '/web/admin/qc-work-orders/mine-tab-unfinished-counts'
|
||||
})
|
||||
}
|
||||
|
||||
export function fetchQcWorkOrderList(params?: {
|
||||
@@ -207,10 +228,19 @@ export function fetchQcWorkOrderDetail(id: string) {
|
||||
export function fetchConfigureQcWorkOrder(
|
||||
id: string,
|
||||
data: {
|
||||
hasLab: boolean
|
||||
hasThirdParty: boolean
|
||||
labItemIds: string[]
|
||||
thirdPartyItemIds: string[]
|
||||
batches?: Array<{
|
||||
id?: string
|
||||
batchName?: string
|
||||
assigneeUserIds: string[]
|
||||
hasLab: boolean
|
||||
hasThirdParty: boolean
|
||||
labItemIds: string[]
|
||||
thirdPartyItemIds: string[]
|
||||
}>
|
||||
hasLab?: boolean
|
||||
hasThirdParty?: boolean
|
||||
labItemIds?: string[]
|
||||
thirdPartyItemIds?: string[]
|
||||
labItemAssignees?: Record<string, string[]>
|
||||
thirdPartyItemAssignees?: Record<string, string[]>
|
||||
}
|
||||
@@ -317,6 +347,7 @@ export type OutboundQcDetail = {
|
||||
infusionSchedule?: OutboundQcDetailInfusionSchedule
|
||||
products?: OutboundQcDetailProduct[]
|
||||
tasks?: QcWorkOrderDetail['tasks']
|
||||
inspectionBatches?: QcInspectionBatch[]
|
||||
}
|
||||
|
||||
export function fetchOutboundQcDetail(id: string) {
|
||||
|
||||
Reference in new issue
Block a user