| | |
| | | import { defineStore } from 'pinia' |
| | | import { patientInfoStore } from './patient'; |
| | | import { ref } from 'vue' |
| | | import { Session } from '@/utils/storage' |
| | | import { boolean, string } from 'yargs' |
| | |
| | | * @param infoObj 体重结果 |
| | | */ |
| | | function setweightSockte(infoObj:info){ |
| | | if(Number(infoObj.result)>10||Number(infoObj.result)===0){ |
| | | console.log('写入体重结果',infoObj) |
| | | if(infoObj.result&&Number(infoObj.result)>10){ |
| | | weightSockte.value.deviceName=infoObj.deviceName |
| | | weightSockte.value.result=infoObj.result |
| | | weightSockte.value.resultTime=infoObj.resultTime |
| | | weightSockte.value.state=infoObj.state |
| | | }else{ |
| | | console.log('体重不足10kg') |
| | | console.log('体重不足10kg,我就算他归零状态了') |
| | | } |
| | | |
| | | } |