| | |
| | | { |
| | | "name": "sign-tool", |
| | | "version": "2.0.0", |
| | | "version": "2.1.0", |
| | | "icon":"public/favicon.ico", |
| | | "main": "dist/electron/main/index.js", |
| | | "author": "", |
| | |
| | | switch(deviceInfo.deviceType){ |
| | | case '读卡器': |
| | | console.log('读卡器收到消息') |
| | | sockteStore().setdkqSockte( |
| | | { |
| | | deviceName:resultInfo.deviceNumber, |
| | | type:"读卡器", |
| | | result:resultInfo.result, |
| | | resultTime:resultInfo.resultTime, |
| | | state:2 |
| | | } |
| | | ) |
| | | const res=JSON.parse(resultInfo.result) |
| | | if(res.clientCode!==null){ |
| | | sockteStore().setdkqSockte( |
| | | { |
| | | deviceName:resultInfo.deviceNumber, |
| | | type:"读卡器", |
| | | result:resultInfo.result, |
| | | resultTime:resultInfo.resultTime, |
| | | state:2 |
| | | } |
| | | ) |
| | | } |
| | | break |
| | | case "体重秤": |
| | | console.log(resultInfo,'体重秤') |
| | |
| | | { |
| | | deviceName:resultInfo.deviceNumber, |
| | | type:"体重秤", |
| | | result:resultInfo.result, |
| | | result:Number(resultInfo.result).toString(), |
| | | resultTime:resultInfo.resultTime, |
| | | state:2 |
| | | } |
| | |
| | | |
| | | // 订阅结果事件返回函数 |
| | | const callback = function(message:any) { |
| | | console.log('接收到数据-----',message.body) |
| | | if (message.body!==undefined) { |
| | | const data=JSON.parse(message.body) |
| | | writeResult(data) |
| | |
| | | weightSockte.value.result=info.result |
| | | weightSockte.value.resultTime=info.resultTime |
| | | weightSockte.value.state=info.state |
| | | console.debug('体重秤更新') |
| | | } |
| | | /** |
| | | * 更新体重秤工作状态 |
| | |
| | | } |
| | | ) |
| | | watch( |
| | | () => weightInfo.value.resultTime, |
| | | () => weightInfo.value.result, |
| | | () => { |
| | | settime() |
| | | console.log("体重变化了") |
| | | console.log("体重变化了",weightInfo.value) |
| | | // AudioRef2.value.play() |
| | | if (patientInfo.value.id === 0) { |
| | | AudioRef0.value.play() |
| | |
| | | } |
| | | .rowdiv{ |
| | | /* background: #769AFF; */ |
| | | font-size: 300%; |
| | | height: 15%; |
| | | margin-top: 5%; |
| | | } |
| | |
| | | } |
| | | .tilaft{ |
| | | text-align: left; |
| | | font-size: 2.5rem; |
| | | font-size: 300%; |
| | | font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi; |
| | | font-weight: 400; |
| | | color: #333333; |
| | |
| | | vertical-align:middle; |
| | | width: 100%; |
| | | text-align: center; |
| | | font-size: 120px; |
| | | font-size: 800%; |
| | | font-family: DINAlternate-Bold, DINAlternate; |
| | | font-weight: bold; |
| | | color: #769AFF; |
| | |
| | | .userinfo{ |
| | | padding-top: 6%; |
| | | /* background: #769AFF; */ |
| | | font-size: 2.5rem; |
| | | font-size: 300%; |
| | | text-align: right; |
| | | } |
| | | .lableclass{ |
| | | font-size: 2.5rem; |
| | | text-align: right; |
| | | font-weight: 400; |
| | | color: #777777; |
| | |
| | | |
| | | } |
| | | .textclass{ |
| | | font-size: 2.5rem; |
| | | text-align: left; |
| | | font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi; |
| | | font-weight: 500; |