|
|
@ -291,20 +291,20 @@ const updateTubeSettings = async (rackIdx: number, tubeIdx: number) => { |
|
|
|
} |
|
|
|
|
|
|
|
//超出现有数量 |
|
|
|
if(consumablesStore.projectsAvailable){ |
|
|
|
let list = consumablesStore.projectsAvailable.map((item:any) => { |
|
|
|
console.log('projIdCntMap===', projIdCntMap) |
|
|
|
let cn = projIdCntMap[item.projId || 1]; |
|
|
|
console.log('cn===', cn , item.num) |
|
|
|
if(cn > item.num){ |
|
|
|
return item; |
|
|
|
} |
|
|
|
}) |
|
|
|
if(list && list.length){ |
|
|
|
eMessage.error(`耗材已用尽,请添加耗材`) |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
// if(consumablesStore.projectsAvailable){ |
|
|
|
// let list = consumablesStore.projectsAvailable.map((item:any) => { |
|
|
|
// console.log('projIdCntMap===', projIdCntMap) |
|
|
|
// let cn = projIdCntMap[item.projId || 1]; |
|
|
|
// console.log('cn===', cn , item.num) |
|
|
|
// if(cn > item.num){ |
|
|
|
// return item; |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// if(list && list.length){ |
|
|
|
// eMessage.error(`耗材已用尽,请添加耗材`) |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
if (tubeIdx < rack.tubeSettings.length) { |
|
|
|
const setting = rack.tubeSettings[tubeIdx] |
|
|
|