Browse Source

登录添加刷新

master
LiLongLong 4 months ago
parent
commit
69beee4f12
  1. BIN
      A8000_dist.zip
  2. 46
      src/pages/Index/Regular/TestTube.vue
  3. 4
      src/pages/Login/Login.vue
  4. 2
      tsconfig.app.tsbuildinfo

BIN
A8000_dist.zip

46
src/pages/Index/Regular/TestTube.vue

@ -241,6 +241,7 @@ const projIdsOfTube = (tube) => {
//
const handleActivateChange = async (index: number) => {
const rack = testTubeStore.tubeRacks[index]
console.log('---', rack)
if(rack.tubeSettings.every((tube) => projIdsOfTube(tube).length === 0)) {
eMessage.error('请为试管配置检测项目')
return
@ -275,30 +276,37 @@ const updateTubeSettings = async (rackIdx: number, tubeIdx: number) => {
eMessage.error('试管架已激活,不能修改')
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)
}
})
if(list.length){
eMessage.error(`项目${list.join(',')}耗材不足,请添加耗材`)
return;
}
}
// 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)
// let cn = projIdCntMap[item.projId || 1];
// console.log('cn===', cn , item.num)
// if(cn > item.num){
// return item;
// 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(``)

4
src/pages/Login/Login.vue

@ -37,6 +37,7 @@
<div class="key" @click="clearPin">重输</div>
<div class="key" @click="inputPin('0')">0</div>
<div class="key" @click="submitPin">确定</div>
<div class="key" @click="reloadUser">刷新</div>
</div>
</div>
</main>
@ -88,6 +89,9 @@ onUnmounted(() => {
handleDeviceContextState,
)
})
const reloadUser = () =>{
getUserListData()
}
//
const selectedUser = ref<User | null>(null)
// PIN

2
tsconfig.app.tsbuildinfo
File diff suppressed because it is too large
View File

Loading…
Cancel
Save