|
|
@ -108,6 +108,17 @@ |
|
|
|
@close="confirmWarn" |
|
|
|
@confirm="confirmWarn" |
|
|
|
/> |
|
|
|
<InitWarn |
|
|
|
v-if="warnModal" |
|
|
|
:visible="warnModal" |
|
|
|
title="注意" |
|
|
|
message="设备未初始化, 请先初始化设备" |
|
|
|
cancelText="返回" |
|
|
|
icon="/src/assets/update-pin-icon.svg" |
|
|
|
confirmText="确认" |
|
|
|
@close="warnModal = false" |
|
|
|
@confirm="warnModal = false" |
|
|
|
/> |
|
|
|
<ConfirmModal v-if="confirmVisible" :confirmInfo="confirmInfo"/> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -180,6 +191,8 @@ onActivated(() => { |
|
|
|
// } |
|
|
|
}) |
|
|
|
|
|
|
|
const warnModal = ref(false) |
|
|
|
|
|
|
|
const handleIsLoad = async () => { |
|
|
|
if (deviceStore.deviceState.workState === 'WORKING') { |
|
|
|
eMessage.error('设备正在运行中,不可操作耗材') |
|
|
@ -187,7 +200,7 @@ const handleIsLoad = async () => { |
|
|
|
} |
|
|
|
const res = await getInitState() |
|
|
|
if (res.ecode === 'SUC' && !res.data.deviceInited) { |
|
|
|
eventBus.emit('initDevice') |
|
|
|
warnModal.value = true |
|
|
|
return |
|
|
|
} |
|
|
|
try { |
|
|
|