|
|
@ -1142,22 +1142,23 @@ async function startInit() { |
|
|
|
await pollingInitState() |
|
|
|
// 获取挂载ID卡信息 |
|
|
|
const res = await getIdCardInfo() |
|
|
|
console.log(res) |
|
|
|
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>` |
|
|
|
// //显示部分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 () => { |
|
|
|