chenyc
2022-08-26 94f16f6a5770c10fce8267e9e851dfc35d8dfbc2
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>