|
@ -153,7 +153,7 @@ const clickBloodTypeItem = (type) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const projIdCntMap = computed(() => { |
|
|
const projIdCntMap = computed(() => { |
|
|
return R.reduce( |
|
|
|
|
|
|
|
|
let projMap = R.reduce( |
|
|
(acc, curr) => { |
|
|
(acc, curr) => { |
|
|
const projIdCntRack = R.reduce( |
|
|
const projIdCntRack = R.reduce( |
|
|
(ac, cur) => { |
|
|
(ac, cur) => { |
|
@ -174,6 +174,8 @@ const projIdCntMap = computed(() => { |
|
|
{}, |
|
|
{}, |
|
|
testTubeStore.tubeRacks, |
|
|
testTubeStore.tubeRacks, |
|
|
) |
|
|
) |
|
|
|
|
|
console.log('projMap===', projMap) |
|
|
|
|
|
return projMap; |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
//编辑患者信息 |
|
|
//编辑患者信息 |
|
@ -277,23 +279,27 @@ const updateTubeSettings = async (rackIdx: number, tubeIdx: number) => { |
|
|
return |
|
|
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){ |
|
|
// if(consumablesStore.projectsAvailable){ |
|
|
// let list = [] |
|
|
// let list = [] |
|
|