修改预约筛查

This commit is contained in:
闫晓茹 2023-10-13 15:41:07 +08:00
parent fad8140fcc
commit efb0bd7cde
2 changed files with 6 additions and 5 deletions

View File

@ -91,8 +91,8 @@
} else { } else {
getScreening(this.patientId).then(res => { getScreening(this.patientId).then(res => {
if (res.code == 200) { if (res.code == 200) {
let userinfo = JSON.stringify(userInfo) let userinfo = JSON.stringify(this.userInfo)
if (!res.data) { if (!res.data||res.data==null) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}` url: `/pagesB/screenorder/screenorder?userinfo=${userinfo}`
}) })

View File

@ -187,8 +187,9 @@
this.$refs.form1.setRules(this.rules); this.$refs.form1.setRules(this.rules);
}, },
onLoad(e) { onLoad(e) {
// console.log(e,'4')
if (e) { if (e) {
this.userInfo = JSON.parse(e.userInfo) this.userInfo = JSON.parse(e.userinfo)
this.formData.disease = this.userInfo.diseaseList.join(',') this.formData.disease = this.userInfo.diseaseList.join(',')
if (this.userInfo.sex == 'MALE') { if (this.userInfo.sex == 'MALE') {