提交
This commit is contained in:
1 parent
4daf990fab
commit
1ca2668112
219 files changed
+29817
-20945
No files matched your search
@@ -52,6 +52,10 @@ export interface ProductionWorkOrderItem {
|
||||
products?: OutboundQcDetailProduct[]
|
||||
paymentSummary?: QcProtocolPaymentSummary | null
|
||||
feeSummary?: QcBasicExperimentFeeSummary | null
|
||||
/** 细胞存储 / 科研捐赠:母亲姓名 */
|
||||
motherName?: string
|
||||
/** 细胞存储 / 科研捐赠:新生儿姓名 */
|
||||
newbornName?: string
|
||||
}
|
||||
|
||||
export type ProductionWorkOrderDetail = ProductionWorkOrderItem & {
|
||||
@@ -231,8 +235,31 @@ export function fetchProductionWorkOrderTabStepCounts() {
|
||||
})
|
||||
}
|
||||
|
||||
let manageTabStepCountsInflight: Promise<ProductionWorkOrderTabStepCounts> | null = null
|
||||
|
||||
/** 并发去重:Tab 栏与侧栏角标共享同一次 tab-step-counts 请求 */
|
||||
export function fetchProductionWorkOrderTabStepCountsDeduped() {
|
||||
if (!manageTabStepCountsInflight) {
|
||||
manageTabStepCountsInflight = fetchProductionWorkOrderTabStepCounts().finally(() => {
|
||||
manageTabStepCountsInflight = null
|
||||
})
|
||||
}
|
||||
return manageTabStepCountsInflight
|
||||
}
|
||||
|
||||
export function fetchMineProductionWorkOrderTabStepCounts() {
|
||||
return request.get<ProductionWorkOrderTabStepCounts>({
|
||||
url: '/web/admin/production-work-orders/mine-tab-step-counts'
|
||||
})
|
||||
}
|
||||
|
||||
let mineTabStepCountsInflight: Promise<ProductionWorkOrderTabStepCounts> | null = null
|
||||
|
||||
export function fetchMineProductionWorkOrderTabStepCountsDeduped() {
|
||||
if (!mineTabStepCountsInflight) {
|
||||
mineTabStepCountsInflight = fetchMineProductionWorkOrderTabStepCounts().finally(() => {
|
||||
mineTabStepCountsInflight = null
|
||||
})
|
||||
}
|
||||
return mineTabStepCountsInflight
|
||||
}
|
||||
Reference in new issue
Block a user