From 94f16f6a5770c10fce8267e9e851dfc35d8dfbc2 Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期五, 26 八月 2022 15:42:47 +0800
Subject: [PATCH] 新增读卡器功能
---
src/views/home/index.vue | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/src/views/home/index.vue b/src/views/home/index.vue
index 6b21551..a612b9a 100644
--- a/src/views/home/index.vue
+++ b/src/views/home/index.vue
@@ -34,6 +34,9 @@
const xyjInfo = computed(() => {
return sockte.xyjSockte
})
+ const dkqInfo = computed(() => {
+ return sockte.dkqSockte
+ })
const patientInfo = computed(() => {
return patientInfoStore().patientInfo
})
@@ -193,6 +196,17 @@
}
}
)
+ watch(
+ () => dkqInfo.value.resultTime,
+ () => {
+ console.log(dkqInfo.value,'读卡器')
+ if (dkqInfo.value.result !== ''&&dkqInfo.value.result !== undefined) {
+ const code=dkqInfo.value.result.split(",")[0]
+ console.log('获取读卡器的code',code)
+ sendPationCode(code)
+ }
+ }
+ )
watch(() => viewNumber,
() => {
state.clockNum = viewNumber.value
@@ -252,7 +266,6 @@
class="inputCode"
@change="inputChabge"
placeholder="请输入患者卡号或扫描条码"
- :prefix-icon="Search"
/>
<span class="text_1">自助签到</span> <span class="text_2">{{clockNum}}</span>
</div>
--
Gitblit v1.8.0