This commit is contained in:
闫晓茹 2023-11-09 15:55:25 +08:00
parent 945a37ccd6
commit 83ecf6988b
4 changed files with 203 additions and 48 deletions

View File

@ -17,6 +17,7 @@
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/myinformation/myinformation", "path": "pages/myinformation/myinformation",
"style": { "style": {

View File

@ -37,6 +37,7 @@
<image :src="item.leadThumbnailUrl" mode=""></image> <image :src="item.leadThumbnailUrl" mode=""></image>
</view> </view>
</view> </view>
<u-toast ref="uToast" />
</view> </view>
</template> </template>
@ -74,6 +75,7 @@
methods: { methods: {
goAppointmentscreening() { goAppointmentscreening() {
// //
if (!this.userInfo) { if (!this.userInfo) {
uni.showModal({ uni.showModal({
title: "提示", title: "提示",
@ -90,7 +92,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(this.userInfo) let userinfo = JSON.stringify(this.userInfo)
@ -115,9 +118,21 @@
}, },
//item //item
gohealthitem(item) { gohealthitem(item) {
uni.navigateTo({ const value = uni.getStorageSync('openid');
url: `/pagesB/Healthitem/Healthitem?item=${encodeURIComponent(JSON.stringify(item))}` const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: `/pagesB/Healthitem/Healthitem?item=${encodeURIComponent(JSON.stringify(item))}`
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, },
// //
getHeathHousing() { getHeathHousing() {
@ -138,31 +153,79 @@
// this.$store.dispatch("openPopup"); // this.$store.dispatch("openPopup");
// this.openPopup(); // this.openPopup();
setTimeout(e => { setTimeout(e => {
uni.navigateTo({ const value = uni.getStorageSync('openid');
url: '/pagesB/materialbenefits/materialbenefits' const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: '/pagesB/materialbenefits/materialbenefits'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0) }, 0)
}, },
// //
gosite() { gosite() {
// this.openPopup(); // this.openPopup();
setTimeout(e => { setTimeout(e => {
uni.navigateTo({ const value = uni.getStorageSync('openid');
url: '/pagesB/site/site' const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: '/pagesB/site/site'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0) }, 0)
}, },
// //
gohealth() { gohealth() {
uni.navigateTo({ const value = uni.getStorageSync('openid');
url: '/pagesB/Healthknowledge/Healthknowledge' const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: '/pagesB/Healthknowledge/Healthknowledge'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, },
// //
result() { result() {
uni.navigateTo({ const value = uni.getStorageSync('openid');
url: '/pagesB/SelectItem/SelectItem' const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: '/pagesB/SelectItem/SelectItem'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, },
@ -170,9 +233,21 @@
goshopping() { goshopping() {
// this.openPopup(); // this.openPopup();
setTimeout(e => { setTimeout(e => {
uni.navigateTo({ const value = uni.getStorageSync('openid');
url: '/pagesB/shopping/shopping' const value2 = uni.getStorageSync('patientId');
}) if (value && value2) {
uni.navigateTo({
url: '/pagesB/shopping/shopping'
})
} else {
this.$refs.uToast.show({
title: '您未登录,请先登录',
type: 'error',
duration: '1000',
url: '/pages/login/login'
})
}
}, 0) }, 0)
}, },
// //

View File

@ -59,6 +59,7 @@
data() { data() {
return { return {
baseurl: '', baseurl: '',
region: '',
tabcurrent: 0, tabcurrent: 0,
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
@ -70,13 +71,32 @@
}, },
onLoad() { onLoad() {
this.baseurl = baseurl this.baseurl = baseurl
this.info()
this.selectDepartmentinfo(); this.selectDepartmentinfo();
}, },
methods: { methods: {
info() {
this.region = uni.getStorageSync('region')
console.log(this.region, '859')
if (this.region == 3) {
this.$refs.uToast.show({
title: '当前地区不支持,请重新选择区域',
type: 'error',
duration: '2000',
// url:'/pages/homepage/homepage'
})
uni.navigateTo({
'/pages/homepage/homepage'
})
// uni.navigateBack({
// delta: 1
// })
}
},
// //
selectHospitalPersonInfo() { selectHospitalPersonInfo() {
var status='1' var status = '1'
selectHospitalPerson(this.pageNum, this.pageSize, this.departmentId,status).then(res => { selectHospitalPerson(this.pageNum, this.pageSize, this.departmentId, status).then(res => {
this.HospitalPersonlist = res.rows this.HospitalPersonlist = res.rows
this.HospitalPersontotal = res.total this.HospitalPersontotal = res.total
}) })

View File

@ -172,7 +172,7 @@
}, },
doctorlist: [], doctorlist: [],
doctorName: '', doctorName: '',
doctorId:'', doctorId: '',
}; };
}, },
onLoad(options) { onLoad(options) {
@ -195,8 +195,8 @@
methods: { methods: {
updata() { updata() {
this.formdata.doctorName=this.doctorName this.formdata.doctorName = this.doctorName
this.formdata.doctorId=this.doctorId this.formdata.doctorId = this.doctorId
if (this.imglistlength > 0) { if (this.imglistlength > 0) {
this.$refs.uUpload.upload() this.$refs.uUpload.upload()
} else { } else {
@ -215,23 +215,82 @@
this.info(); this.info();
}, },
info() { info() {
this.formdata.consultationType='IMAGE_TEXT_CONSULTATION' this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION'
consultationInfo(this.formdata).then(res => { if (!this.formdata.address) {
if (res.code == 200) { this.$refs.uToast.show({
this.$refs.uToast.show({ title: '请选择地址',
title: '新建图文问诊成功', type: 'error',
type: 'success', duration: '1500',
duration: '1500', // url:'/pages/homepage/homepage'
back: 1 })
}) } else if (!this.formdata.patientName) {
}else if (res.code == 500){ this.$refs.uToast.show({
this.$refs.uToast.show({ title: '请选择姓名',
title: res.msg, type: 'error',
type: 'error', duration: '1500',
duration: '1500',
}) })
} } else if (!this.formdata.cardNo) {
}) this.$refs.uToast.show({
title: '请选择身份证号',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.phone) {
this.$refs.uToast.show({
title: '请选择手机号',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.doctorName) {
this.$refs.uToast.show({
title: '请选择医生',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.problemDescription) {
this.$refs.uToast.show({
title: '请输入问题简述',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.situationDescription) {
this.$refs.uToast.show({
title: '请输入患者个体说明',
type: 'error',
duration: '1500',
})
} else if (!this.formdata.medicalRecord) {
this.$refs.uToast.show({
title: '请输入既往疾病史',
type: 'error',
duration: '1500',
})
} else {
consultationInfo(this.formdata).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '新建图文问诊成功',
type: 'success',
duration: '1500',
back: 1
})
} else if (res.code == 500) {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: '1500',
})
}
})
}
}, },
// //
showPicker() { showPicker() {
@ -266,7 +325,7 @@
getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => { getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
this.doctorName = res.data.personName this.doctorName = res.data.personName
this.doctorId = res.data.id this.doctorId = res.data.id
this.doctorlist=res.data this.doctorlist = res.data
}) })
@ -274,17 +333,17 @@
}, },
gochoosedoctor() { gochoosedoctor() {
console.log(this.doctorlist,'44444') console.log(this.doctorlist, '44444')
// detail(this.formdata.cardNo).then(res => { // detail(this.formdata.cardNo).then(res => {
// var status = '1' // var status = '1'
// getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => { // getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
// console.log(res, '55') // console.log(res, '55')
// this.doctorlist = res.data // this.doctorlist = res.data
uni.navigateTo({ uni.navigateTo({
url: `/pagesC/choosedoctor/choosedoctor?item=${JSON.stringify(this.doctorlist)}` url: `/pagesC/choosedoctor/choosedoctor?item=${JSON.stringify(this.doctorlist)}`
}) })
// }) // })
// }) // })