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"
}
},
{
"path": "pages/myinformation/myinformation",
"style": {

View File

@ -37,6 +37,7 @@
<image :src="item.leadThumbnailUrl" mode=""></image>
</view>
</view>
<u-toast ref="uToast" />
</view>
</template>
@ -74,6 +75,7 @@
methods: {
goAppointmentscreening() {
//
if (!this.userInfo) {
uni.showModal({
title: "提示",
@ -90,7 +92,8 @@
}
},
})
} else {
}
else {
getScreening(this.patientId).then(res => {
if (res.code == 200) {
let userinfo = JSON.stringify(this.userInfo)
@ -115,9 +118,21 @@
},
//item
gohealthitem(item) {
uni.navigateTo({
url: `/pagesB/Healthitem/Healthitem?item=${encodeURIComponent(JSON.stringify(item))}`
})
const value = uni.getStorageSync('openid');
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() {
@ -138,31 +153,79 @@
// this.$store.dispatch("openPopup");
// this.openPopup();
setTimeout(e => {
uni.navigateTo({
url: '/pagesB/materialbenefits/materialbenefits'
})
const value = uni.getStorageSync('openid');
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)
},
//
gosite() {
// this.openPopup();
setTimeout(e => {
uni.navigateTo({
url: '/pagesB/site/site'
})
const value = uni.getStorageSync('openid');
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)
},
//
gohealth() {
uni.navigateTo({
url: '/pagesB/Healthknowledge/Healthknowledge'
})
const value = uni.getStorageSync('openid');
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() {
uni.navigateTo({
url: '/pagesB/SelectItem/SelectItem'
})
const value = uni.getStorageSync('openid');
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() {
// this.openPopup();
setTimeout(e => {
uni.navigateTo({
url: '/pagesB/shopping/shopping'
})
const value = uni.getStorageSync('openid');
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)
},
//

View File

@ -59,6 +59,7 @@
data() {
return {
baseurl: '',
region: '',
tabcurrent: 0,
pageNum: 1,
pageSize: 10,
@ -70,13 +71,32 @@
},
onLoad() {
this.baseurl = baseurl
this.info()
this.selectDepartmentinfo();
},
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() {
var status='1'
selectHospitalPerson(this.pageNum, this.pageSize, this.departmentId,status).then(res => {
var status = '1'
selectHospitalPerson(this.pageNum, this.pageSize, this.departmentId, status).then(res => {
this.HospitalPersonlist = res.rows
this.HospitalPersontotal = res.total
})

View File

@ -172,12 +172,12 @@
},
doctorlist: [],
doctorName: '',
doctorId:'',
doctorId: '',
};
},
onLoad(options) {
this.uoloadaction = baseurl + '/nurseApplet/consultationInfo/uploadConsultationFile'
},
onShow() {
this.areaInfo();
@ -195,8 +195,8 @@
methods: {
updata() {
this.formdata.doctorName=this.doctorName
this.formdata.doctorId=this.doctorId
this.formdata.doctorName = this.doctorName
this.formdata.doctorId = this.doctorId
if (this.imglistlength > 0) {
this.$refs.uUpload.upload()
} else {
@ -215,23 +215,82 @@
this.info();
},
info() {
this.formdata.consultationType='IMAGE_TEXT_CONSULTATION'
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',
})
}
})
this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION'
if (!this.formdata.address) {
this.$refs.uToast.show({
title: '请选择地址',
type: 'error',
duration: '1500',
// url:'/pages/homepage/homepage'
})
} else if (!this.formdata.patientName) {
this.$refs.uToast.show({
title: '请选择姓名',
type: 'error',
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() {
@ -266,7 +325,7 @@
getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
this.doctorName = res.data.personName
this.doctorId = res.data.id
this.doctorlist=res.data
this.doctorlist = res.data
})
@ -274,17 +333,17 @@
},
gochoosedoctor() {
console.log(this.doctorlist,'44444')
console.log(this.doctorlist, '44444')
// detail(this.formdata.cardNo).then(res => {
// var status = '1'
// getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
// console.log(res, '55')
// this.doctorlist = res.data
uni.navigateTo({
url: `/pagesC/choosedoctor/choosedoctor?item=${JSON.stringify(this.doctorlist)}`
})
// })
uni.navigateTo({
url: `/pagesC/choosedoctor/choosedoctor?item=${JSON.stringify(this.doctorlist)}`
})
// })
// })