|
|
@ -433,7 +433,7 @@ import { |
|
|
|
getBloodTypes, |
|
|
|
confirmPromptInfo, |
|
|
|
openBuzzer, |
|
|
|
disableDevice, getSystemSettings |
|
|
|
disableDevice, getSystemSettings, getIdCardInfo |
|
|
|
} from '../../services/index' |
|
|
|
|
|
|
|
import { |
|
|
@ -1144,6 +1144,24 @@ const handleConfirm = async () => { |
|
|
|
async function startInit() { |
|
|
|
await initDevice() |
|
|
|
await pollingInitState() |
|
|
|
// 获取挂载ID卡信息 |
|
|
|
const res = await getIdCardInfo() |
|
|
|
if (!res) { |
|
|
|
return |
|
|
|
} |
|
|
|
consumableStore.setIdCardInserted(true) |
|
|
|
consumableStore.setIdCardInfo(res) |
|
|
|
//显示部分id卡信息。 项目名称,过期时间,批次号 |
|
|
|
idCardInserted.value = true |
|
|
|
//接收端是用v-html处理 |
|
|
|
idCardMessage.value = ` |
|
|
|
<div style='line-height:0.5;margin-top: -90px;'> |
|
|
|
<div style='margin-left:25%'> |
|
|
|
<div style='display:flex'><div>项目名称:</div><div>${res.projName}</div></div> |
|
|
|
<div style='display:flex'><div>批次号:</div><div>${res.lotId}</div></div> |
|
|
|
<div style='display:flex'><div>过期时间:</div><div>${formatDate(res.expiryDate)}</div></div> |
|
|
|
</div> |
|
|
|
</div>` |
|
|
|
} |
|
|
|
|
|
|
|
const pollingInitState = async () => { |
|
|
|