| | |
| | | win = new BrowserWindow({ |
| | | title: 'Main window', |
| | | fullscreen: true, |
| | | autoHideMenuBar:true, |
| | | // autoHideMenuBar:true, |
| | | webPreferences: { |
| | | preload: splash, |
| | | nodeIntegration: true, |
| | |
| | | return de.deviceName===resultInfo.deviceNumber |
| | | }) |
| | | console.log(deviceInfo,'更具设备number查找到的设备') |
| | | console.log(resultInfo) |
| | | if(deviceInfo!==undefined){ |
| | | switch(deviceInfo.deviceType){ |
| | | case '读卡器': |
| | | console.log('读卡器收到消息') |
| | | sockteStore().setdkqSockte( |
| | | { |
| | | deviceName:resultInfo.deviceNumber, |
| | |
| | | xyjSockte.value.state=state |
| | | } |
| | | /** |
| | | * 更新血压计结果 |
| | | * @param info 体重结果 |
| | | * 更新读卡器结果 |
| | | * @param info 读卡器结果 |
| | | */ |
| | | function setdkqSockte(info:info){ |
| | | dkqSockte.value.deviceName=info.deviceName |
| | |
| | | const xyjInfo = computed(() => { |
| | | return sockte.xyjSockte |
| | | }) |
| | | const dkqInfo = computed(() => { |
| | | return sockte.dkqSockte |
| | | }) |
| | | const patientInfo = computed(() => { |
| | | return patientInfoStore().patientInfo |
| | | }) |
| | |
| | | } |
| | | } |
| | | ) |
| | | 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 |
| | |
| | | class="inputCode" |
| | | @change="inputChabge" |
| | | placeholder="请输入患者卡号或扫描条码" |
| | | :prefix-icon="Search" |
| | | /> |
| | | <span class="text_1">自助签到</span> <span class="text_2">{{clockNum}}</span> |
| | | </div> |