This commit is contained in:
2024-03-15 16:33:19 +08:00
parent ee9103f49c
commit 85214ad636
5 changed files with 63 additions and 35 deletions

View File

@ -10,3 +10,11 @@ export function rescindapplysave(data) {
} }
}) })
} }
// 新增问诊
export function consultationInfo(data) {
return request({
url: `/nurseApplet/consultationInfo/add`,
method: 'post',
data: data
})
}

View File

@ -6,7 +6,7 @@
<image v-else-if="countyName=='东营经济开发区'" :src="baseurl+ '/profile/weChatPicture/dyjjmainPage.png'" /> <image v-else-if="countyName=='东营经济开发区'" :src="baseurl+ '/profile/weChatPicture/dyjjmainPage.png'" />
<image v-else-if="countyName=='东营区'" :src="baseurl+ '/profile/weChatPicture/dyqmainPage.png'" mode="" /> <image v-else-if="countyName=='东营区'" :src="baseurl+ '/profile/weChatPicture/dyqmainPage.png'" mode="" />
<image v-else-if="countyName=='广饶县'" :src="baseurl+ '/profile/weChatPicture/grgmainPage.png'" mode="" /> <image v-else-if="countyName=='广饶县'" :src="baseurl+ '/profile/weChatPicture/grgmainPage.png'" mode="" />
<image v-else-if="countyName=='河口区'" :src="baseurl+ '/profile/weChatPicture/hkgmainPage.png'" mode="" /> <image v-else-if="countyName=='河口区'" :src="baseurl+ '/profile/weChatPicture/hkmainPage.png'" mode="" />
<image v-else-if="countyName=='垦利区'" :src="baseurl+ '/profile/weChatPicture/klgmainPage.png'" mode="" /> <image v-else-if="countyName=='垦利区'" :src="baseurl+ '/profile/weChatPicture/klgmainPage.png'" mode="" />
<image v-else-if="countyName=='利津县'" :src="baseurl+ '/profile/weChatPicture/ljgmainPage.png'" mode="" /> <image v-else-if="countyName=='利津县'" :src="baseurl+ '/profile/weChatPicture/ljgmainPage.png'" mode="" />
<image v-else :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" mode="" /> <image v-else :src="baseurl+ '/profile/weChatPicture/dysmainPage.png'" mode="" />

View File

@ -141,11 +141,9 @@
consultationInfo, consultationInfo,
detail, detail,
} from '@/api/pagesB/createnewconsultation/createnewconsultation.js' } from '@/api/pagesB/createnewconsultation/createnewconsultation.js'
import { import {
getHospitalPersonInfo getHospitalPersonInfo
} from '@/api/pagesC/contractsigningprotocol/index.js' } from '@/api/pagesC/contractsigningprotocol/index.js'
// import consultationplatformVueHtml from '../consultationplatform/consultationplatform.vue.html';
export default { export default {
components: { components: {
"m-city": gkcity "m-city": gkcity
@ -222,7 +220,7 @@
}, },
info() { info() {
this.$delete(this.formdata, 'id') this.$delete(this.formdata, 'id')
this.formdata.patientId=uni.getStorageSync("patientId") this.formdata.patientId = uni.getStorageSync("patientId")
this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION' this.formdata.consultationType = 'IMAGE_TEXT_CONSULTATION'
if (!this.formdata.address) { if (!this.formdata.address) {
this.$refs.uToast.show({ this.$refs.uToast.show({
@ -320,16 +318,16 @@
}, },
infolist() { infolist() {
detail(this.formdata.cardNo).then(res => { detail(this.formdata.cardNo).then(res => {
if(res.data.provinceName && res.data.cityName && res.data.countyName &&res.data.townName){ if (res.data.provinceName && res.data.cityName && res.data.countyName && res.data.townName) {
this.address=res.data.provinceName+res.data.cityName+res.data.countyName+res.data.townName this.address = res.data.provinceName + res.data.cityName + res.data.countyName + res.data
this.formdata.address=this.address .townName
}else if(res.data.provinceName && res.data.cityName && res.data.countyName){ this.formdata.address = this.address
this.address=res.data.provinceName+res.data.cityName+res.data.countyName } else if (res.data.provinceName && res.data.cityName && res.data.countyName) {
this.formdata.address=this.address this.address = res.data.provinceName + res.data.cityName + res.data.countyName
this.formdata.address = this.address
} }
var status = '1'
if (res.code == 200) { if (res.code == 200) {
getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => { getHospitalPersonInfo(res.data.dutyDoctorNo, '1').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
@ -344,22 +342,9 @@
}) })
}, },
gochoosedoctor() { gochoosedoctor() {
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({ uni.navigateTo({
url: `/pagesC/choosedoctor/choosedoctor?item=${JSON.stringify(this.doctorlist)}` url: `/pagesC/choosedoctor/choosedoctor?item=${JSON.stringify(this.doctorlist)}`
}) })
// })
// })
}, },
} }
} }

View File

@ -35,7 +35,7 @@
</view> </view>
</view> </view>
<view class="item"> <view class="item">
年限{{list.signTime?list.signTime:''}}-{{list.signDeadline?list.signDeadline:''}} 年限{{list.signTime?list.signTime:''}} {{list.signDeadline?list.signDeadline:''}}
</view> </view>
<view class="item"> <view class="item">
机构 机构
@ -114,6 +114,10 @@
<script> <script>
import { import {
getHospitalPersonInfo
} from '@/api/pagesC/contractsigningprotocol/index.js'
import {
consultationInfo,
rescindapplysave rescindapplysave
} from '@/api/pagesB/mysigning/index.js' } from '@/api/pagesB/mysigning/index.js'
import { import {
@ -143,6 +147,16 @@
label: '其他' label: '其他'
}, },
], ],
formdata: {
address: '',
patientId: '',
patientName: '',
cardNo: '',
phone: '',
doctorId: '',
doctorName: '',
consultationType: 'ONLINE_CONSULTATION',
},
}; };
}, },
methods: { methods: {
@ -159,7 +173,7 @@
url: "/pages/homepage/homepage" url: "/pages/homepage/homepage"
}) })
}, 2000) }, 2000)
}else{ } else {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.msg, title: res.msg,
type: 'error', type: 'error',
@ -178,6 +192,10 @@
this.list.rescindReason = null this.list.rescindReason = null
this.list.crowdsName = this.list.crowdsName.split(',') this.list.crowdsName = this.list.crowdsName.split(',')
this.list.packagesName = this.list.packagesName.split(',') this.list.packagesName = this.list.packagesName.split(',')
getHospitalPersonInfo(res.data.dutyDoctorNo, '1').then(resp => {
this.formdata.doctorName = resp.data.personName
this.formdata.doctorId = resp.data.id
})
} }
}) })
}, },
@ -201,12 +219,19 @@
}, },
// //
goseekadvicefrom() { goseekadvicefrom() {
consultationInfo(this.formdata).then(res => {
if (res.code == 200) {
uni.navigateTo({ uni.navigateTo({
url: `/pagesB/imagetextConsultation/imagetextConsultation` url: `/pagesC/seekadvicefrom/seekadvicefrom?item=${JSON.stringify(res.data)}`
})
} else if (res.code == 500) {
this.$refs.uToast.show({
title: res.msg,
type: 'error',
duration: '1500',
})
}
}) })
// uni.navigateTo({
// url: `/pagesC/seekadvicefrom/seekadvicefrom?item=${JSON.stringify(this.list)}`
// })
}, },
maskshowtwoconfirm(e) { maskshowtwoconfirm(e) {
this.list.rescindType = e[0].value this.list.rescindType = e[0].value
@ -214,6 +239,12 @@
}, },
}, },
onLoad(options) { onLoad(options) {
this.formdata.address = uni.getStorageSync('userinfo').address
this.formdata.patientId = uni.getStorageSync("patientId")
this.formdata.consultationType = 'ONLINE_CONSULTATION'
this.formdata.patientName = uni.getStorageSync('userinfo').patientName
this.formdata.cardNo = uni.getStorageSync('userinfo').cardNo
this.formdata.phone = uni.getStorageSync('userinfo').phone
this.detailinfo(); this.detailinfo();
} }
} }

View File

@ -96,6 +96,9 @@
import { import {
socketurl socketurl
} from '@/api/socketurl.js' } from '@/api/socketurl.js'
import {
mapMutations
} from "vuex";
export default { export default {
data() { data() {
return { return {
@ -188,6 +191,7 @@
// }) // })
}, },
methods: { methods: {
...mapMutations(['scoket']),
messagescoket() { messagescoket() {
const that = this const that = this
// this.SOCKETURL = socketurl + this.currentItem.patientId // this.SOCKETURL = socketurl + this.currentItem.patientId