From 218b72c66ee870c051ee3b1f45e4807aa10f4adf Mon Sep 17 00:00:00 2001 From: LiLongLong <13717757313@163.com> Date: Sun, 20 Apr 2025 21:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AE=BE=E5=A4=87=E6=AD=A3?= =?UTF-8?q?=E5=9C=A8=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=AD=E7=9A=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Index/Regular/TestTube.vue | 34 ++++++++++++++++++++-------------- src/pages/Login/Login.vue | 7 +++++++ src/services/Index/init.ts | 10 ++++++++++ src/utils/getServerInfo.ts | 2 +- tsconfig.app.tsbuildinfo | 2 +- 5 files changed, 39 insertions(+), 16 deletions(-) diff --git a/src/pages/Index/Regular/TestTube.vue b/src/pages/Index/Regular/TestTube.vue index f213555..6016d88 100644 --- a/src/pages/Index/Regular/TestTube.vue +++ b/src/pages/Index/Regular/TestTube.vue @@ -153,7 +153,7 @@ const clickBloodTypeItem = (type) => { } const projIdCntMap = computed(() => { - return R.reduce( + let projMap = R.reduce( (acc, curr) => { const projIdCntRack = R.reduce( (ac, cur) => { @@ -174,6 +174,8 @@ const projIdCntMap = computed(() => { {}, testTubeStore.tubeRacks, ) + console.log('projMap===', projMap) + return projMap; }) //编辑患者信息 @@ -277,22 +279,26 @@ const updateTubeSettings = async (rackIdx: number, tubeIdx: number) => { return } - console.log('rack.tubeSettings---', rack.tubeSettings) - - //检查耗材 - // if(consumablesStore.consumableData && consumablesStore.consumableData.reactionPlateGroup){ - // let reactionPlateGroup = consumablesStore.consumableData.reactionPlateGroup - // let list:reactionPlateGroupItem[] = [] - // reactionPlateGroup.forEach((item:any) => { - // if(item.projId && selectedProjIds.value.includes(item.projId) && item.num <=0){ - // list.push(item.projName) + // console.log('tubeRack---', testTubeStore.tubeRacks) + // console.log('rack---', rack.tubeSettings) + // let hasExistProject = existValidProject(rack) + // if(!hasExistProject){ + // //检查耗材 + // if(consumablesStore.consumableData && consumablesStore.consumableData.reactionPlateGroup){ + // let reactionPlateGroup = consumablesStore.consumableData.reactionPlateGroup + // let list:reactionPlateGroupItem[] = [] + // reactionPlateGroup.forEach((item:any) => { + // if(item.projId && selectedProjIds.value.includes(item.projId) && item.num <=0){ + // list.push(item.projName) + // } + // }) + // if(list.length){ + // eMessage.error(`项目${list.join(',')}耗材不足,请添加耗材`) + // return; // } - // }) - // if(list.length){ - // eMessage.error(`项目${list.join(',')}耗材不足,请添加耗材`) - // return; // } // } + //超出现有数量 // if(consumablesStore.projectsAvailable){ diff --git a/src/pages/Login/Login.vue b/src/pages/Login/Login.vue index 8482ea1..12a26fe 100644 --- a/src/pages/Login/Login.vue +++ b/src/pages/Login/Login.vue @@ -47,10 +47,12 @@