|
@ -50,7 +50,7 @@ |
|
|
/> |
|
|
/> |
|
|
<span v-if="runningStore.optScanModuleState?.state === 'SCANNING'">扫描中</span> |
|
|
<span v-if="runningStore.optScanModuleState?.state === 'SCANNING'">扫描中</span> |
|
|
<span v-else>{{ runningStore.optScanModuleState.userid }}</span> |
|
|
<span v-else>{{ runningStore.optScanModuleState.userid }}</span> |
|
|
<span style="font-size: 14px">{{ settingTubeStore.bloodTypeKeyMap[runningStore.optScanModuleState.bloodType] }}</span> |
|
|
|
|
|
|
|
|
<span style="font-size: 14px">{{ settingTubeStore.bloodTypeKeyMap[runningStore.optScanModuleState.bloodType].name }}</span> |
|
|
<span style="font-size: 16px; font-weight: 600">{{ runningStore.optScanModuleState.projInfo.projShortName }}</span> |
|
|
<span style="font-size: 16px; font-weight: 600">{{ runningStore.optScanModuleState.projInfo.projShortName }}</span> |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
@ -126,8 +126,8 @@ |
|
|
<!-- 急诊按钮 --> |
|
|
<!-- 急诊按钮 --> |
|
|
<div |
|
|
<div |
|
|
class="emergency-button" |
|
|
class="emergency-button" |
|
|
:class="{ disabled: hasEmergencyPosition }" |
|
|
|
|
|
@click="confirmEmergency()" |
|
|
|
|
|
|
|
|
:style="`background:${emergencyBackground}`" |
|
|
|
|
|
@click="!hasEmergencyPosition ? confirmEmergency():null" |
|
|
> |
|
|
> |
|
|
<span>急诊</span> |
|
|
<span>急诊</span> |
|
|
</div> |
|
|
</div> |
|
@ -135,7 +135,7 @@ |
|
|
<div class="test-tube-rack-area"> |
|
|
<div class="test-tube-rack-area"> |
|
|
<div class="tube-project-tab"> |
|
|
<div class="tube-project-tab"> |
|
|
<tube-item |
|
|
<tube-item |
|
|
:tube="sampleTube" |
|
|
|
|
|
|
|
|
:tube="emergencyTube" |
|
|
:showNum = "false" |
|
|
:showNum = "false" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
@ -214,8 +214,8 @@ import { |
|
|
onActivated, |
|
|
onActivated, |
|
|
computed, |
|
|
computed, |
|
|
} from 'vue' |
|
|
} from 'vue' |
|
|
import { useRouter, useRoute } from 'vue-router' |
|
|
|
|
|
import { useConsumablesStore, useDeviceStore, useSettingTestTubeStore } from '@/store' |
|
|
|
|
|
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
import { useConsumablesStore, useDeviceStore, useSettingTestTubeStore, useEmergencyStore } from '@/store' |
|
|
import { getBloodTypeLabel } from '../utils' |
|
|
import { getBloodTypeLabel } from '../utils' |
|
|
import { |
|
|
import { |
|
|
PlateDisplay, |
|
|
PlateDisplay, |
|
@ -223,8 +223,6 @@ import { |
|
|
} from '../components' |
|
|
} from '../components' |
|
|
import tubeItem from '../components/TestTube/Tube.vue' |
|
|
import tubeItem from '../components/TestTube/Tube.vue' |
|
|
import BallGrid from '../components/Consumables/BallGrid.vue' |
|
|
import BallGrid from '../components/Consumables/BallGrid.vue' |
|
|
import { getRunningList } from '@/services/Index/running/running' |
|
|
|
|
|
|
|
|
|
|
|
import type { |
|
|
import type { |
|
|
SubTank, |
|
|
SubTank, |
|
|
} from '@/websocket/socket' |
|
|
} from '@/websocket/socket' |
|
@ -233,15 +231,17 @@ const consumablesStore = useConsumablesStore() |
|
|
const runningStore = useRunningStore() |
|
|
const runningStore = useRunningStore() |
|
|
const deviceStore = useDeviceStore() |
|
|
const deviceStore = useDeviceStore() |
|
|
const settingTubeStore = useSettingTestTubeStore() |
|
|
const settingTubeStore = useSettingTestTubeStore() |
|
|
|
|
|
const emergencyStore = useEmergencyStore();//从急诊页面添加的急诊数据 |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
// 示例数据 |
|
|
|
|
|
const sampleTube = { |
|
|
|
|
|
userid: 'user123', |
|
|
|
|
|
projId: [1, 2], |
|
|
|
|
|
bloodType: 'A', |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const hasEmergencyPosition = ref(false) |
|
|
|
|
|
|
|
|
// 急诊试管数据 |
|
|
|
|
|
const emergencyTube = ref(emergencyStore.emergencyInfo) |
|
|
|
|
|
const hasEmergencyPosition = ref(emergencyStore.emergencyInfo.isEmergency) |
|
|
|
|
|
const emergencyBackground = computed(()=>{ |
|
|
|
|
|
if(hasEmergencyPosition){ |
|
|
|
|
|
return '#c7c7c7' |
|
|
|
|
|
} |
|
|
|
|
|
return '' |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
onMounted(() => { |
|
|
// 在页面加载时检查是否有急诊数据传递 |
|
|
// 在页面加载时检查是否有急诊数据传递 |
|
@ -818,7 +818,7 @@ onUnmounted(() => { |
|
|
} |
|
|
} |
|
|
.scan-main{ |
|
|
.scan-main{ |
|
|
position: fixed; |
|
|
position: fixed; |
|
|
top: 880px; |
|
|
|
|
|
|
|
|
top: 54rem; |
|
|
right: 10px; |
|
|
right: 10px; |
|
|
padding: 8px 5px; |
|
|
padding: 8px 5px; |
|
|
background-color: rgb(223, 237, 248); |
|
|
background-color: rgb(223, 237, 248); |
|
|