From 99f2f628ef969772a98081475bdee88180f28012 Mon Sep 17 00:00:00 2001 From: zhangjiming Date: Fri, 11 Apr 2025 17:15:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/consumables.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/consumables.ts b/src/store/modules/consumables.ts index a02cf8c..d421af6 100644 --- a/src/store/modules/consumables.ts +++ b/src/store/modules/consumables.ts @@ -104,7 +104,9 @@ export const useConsumablesStore = defineStore( function setIdCardInserted(status: boolean) { isIdCardInserted.value = status } - + // 每种项目还能做多少次,也就是项目对应的耗材总数。 + // 比如 如果有两组同类型的反应板和缓冲液(假设都是PCT),一个剩余20,一个剩余15. 那PCT耗材数目就是35. + // 也就是反应板组 要经过 分组(去重)、累加。 const projectsAvailable = computed(() => { return R.pipe( R.filter(g => !!g.projName && g.projName !== 'null'),