|
|
@ -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<ReactionPlateGroup>(g => !!g.projName && g.projName !== 'null'), |
|
|
|