|
|
@ -98,8 +98,6 @@ import { |
|
|
|
import { ElDialog } from 'element-plus' |
|
|
|
import { BloodType, ReactionPlateGroup, TestTubeRack } from '@/websocket/socket' |
|
|
|
import { eMessage } from '../utils' |
|
|
|
import { reactionPlateGroupItem } from './type' |
|
|
|
|
|
|
|
const router = useRouter() |
|
|
|
|
|
|
|
const settingTubeStore = useSettingTestTubeStore() |
|
|
@ -279,47 +277,6 @@ const updateTubeSettings = async (rackIdx: number, tubeIdx: number) => { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 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(consumablesStore.projectsAvailable){ |
|
|
|
// let list = [] |
|
|
|
// consumablesStore.projectsAvailable.map((item:any) => { |
|
|
|
// console.log('projIdCntMap===', projIdCntMap.value) |
|
|
|
// let cn = projIdCntMap.value[item.projId || 1]; |
|
|
|
// if(cn){ |
|
|
|
// console.log('cn===', cn , item.num) |
|
|
|
// if(cn > item.num){ |
|
|
|
// list.push(item) |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
// }) |
|
|
|
// if(list && list.length){ |
|
|
|
// eMessage.error(`耗材已用尽,请添加耗材`) |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
if (tubeIdx < rack.tubeSettings.length) { |
|
|
|
const setting = rack.tubeSettings[tubeIdx] |
|
|
|
const updSetting = { |
|
|
|