diff --git a/src/pages/Index/Index.vue b/src/pages/Index/Index.vue
index 18f4ee6..94c837e 100644
--- a/src/pages/Index/Index.vue
+++ b/src/pages/Index/Index.vue
@@ -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 = `
+
+
+
+
+
过期时间:
${formatDate(res.expiryDate)}
+
+
`
}
const pollingInitState = async () => {
diff --git a/src/pages/Login/index.vue b/src/pages/Login/index.vue
index b0b1a87..dd6ac40 100644
--- a/src/pages/Login/index.vue
+++ b/src/pages/Login/index.vue
@@ -146,7 +146,7 @@ const version = __APP_VERSION__
- 版本号:v {{version}}
+
diff --git a/src/services/Index/init.ts b/src/services/Index/init.ts
index f0295bd..e86b8b0 100644
--- a/src/services/Index/init.ts
+++ b/src/services/Index/init.ts
@@ -22,6 +22,18 @@ export const getInitState = async () => {
}
}
+//获取挂载ID卡信息
+export const getIdCardInfo = async () => {
+ try {
+ const res = await apiClient.post(
+ '/api/v1/app/a8kProjectCard/readMountedCardInfo',
+ )
+ return res.data
+ } catch (error) {
+ console.log('获取初始化状态接口出错', error)
+ }
+}
+
export const confirmPromptInfo = async (eventId: string) => {
try {
console.log('confirmPromoptInfo=========',eventId)