| | |
| | | patientTelNo:'', |
| | | patientAvatarIcon:'', |
| | | patientCreditValue:0, |
| | | patientAddress:'', |
| | | clientCode:'', |
| | | }, |
| | | pressure:'', |
| | | weight:'' |
| | | }) |
| | | |
| | | const 最近体重血压 = ref({ |
| | | 血压: '', |
| | | 体重: '' |
| | | }) |
| | | function setInfo(userInfo:{openid:string, headimgurl:string,nickname:string}) { |
| | | info.value.openid=userInfo.openid |
| | | info.value.headimgurl=userInfo.headimgurl |
| | | info.value.nickname=userInfo.nickname |
| | | } |
| | | function setPatient(userInfo:object) { |
| | | function setPatient(userInfo:any) { |
| | | patient.value=userInfo |
| | | set最近体重血压(userInfo.patientInfo.code) |
| | | } |
| | | const setPatientApi= async ()=>{ |
| | | const res= await ajaxPost('/patient/info/getPatientInfo','') |
| | | console.log('-----') |
| | | console.log(res) |
| | | setPatient(res) |
| | | const setPatientApi= async()=>{ |
| | | const res= await ajaxPost('/patient/info/getPatientInfo','') |
| | | setPatient(res) |
| | | } |
| | | const set最近体重血压 = async(patientCode:any)=>{ |
| | | const data= await ajaxPost('/patient/info/getPatientBodyWeightBloodPressure?patientCode='+patientCode,'') |
| | | console.log(data,'最近体重血压数据') |
| | | 最近体重血压.value = { |
| | | 血压: data.透前血压, |
| | | 体重: data.透前称重 |
| | | } |
| | | console.log(最近体重血压.value,'最近体重血压数据') |
| | | } |
| | | |
| | | return { info,patient,setPatient, setInfo,setPatientApi } |
| | | return { info,patient,最近体重血压,setPatient, setInfo,setPatientApi } |
| | | }) |