评价 专家问诊

This commit is contained in:
shidongli 2023-11-15 17:21:21 +08:00
parent 854ec07d7e
commit de258800bc
3 changed files with 31 additions and 10 deletions

View File

@ -118,11 +118,12 @@
patientId: '',
openId: '',
orderNo: '',
evaluateSatisfaction: '',
evaluateChannel: 'WE_CHAT_APPLET',
},
openId: '',
orderType: '',
orderSource:'',
}
@ -202,9 +203,9 @@
healthratenurse(item) {
console.log(item, '58')
if (item.orderSource == 'FAMILY_DOCTOR') {
this.list.orderSource = 'FAMILY_DOCTOR'
this.orderSource = 'FAMILY_DOCTOR'
} else if (item.orderSource == 'SPRING_DOCTOR') {
this.list.orderSource = 'SPRING_DOCTOR'
this.orderSource = 'SPRING_DOCTOR'
}
//
if (item.orderType == "FAMILY_DOCTOR") {
@ -234,13 +235,13 @@
//
submit() {
this.list.patientId = this.parentId
this.list.openId = this.openId
this.list.openId = uni.getStorageSync('openid')
console.log(this.list, '45')
if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType ==
"DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") {
this.list.evaluateSatisfaction=this.evaluateSatisfaction
// this.list.evaluateSatisfaction=this.evaluateSatisfaction
this.list.compositeScore=this.rateval
this.list.orderSource=this.orderSource
insertGoodsEvaluate(this.list).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
@ -262,16 +263,15 @@
} else if (this.orderType == "APPOINTMENT_ORDER") {
var obj = {
"patientId": this.list.patientId,
"openid": this.list.openId,
"openid": uni.getStorageSync('openid'),
"orderNo": this.list.orderNo,
"evaluateChannel": "WE_CHAT_APPLET",
"evaluateSatisfaction": this.evaluateSatisfaction,
"orderSource": this.orderSource,
"compositeScore": this.rateval,
"orderSource": this.list.orderSource,
}
addAppointmentEvaluate(obj).then(res => {
if (res.code == 200) {
this.$refs.uToast.show({
title: '评价成功',
type: 'success',

View File

@ -256,8 +256,10 @@
this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.starttime
} else if (item == 'after') {
console.log(this.appointmentTimeList[this.timecurrent].morningList[0],'2222')
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.endtime
}
},
//
@ -276,6 +278,13 @@
.starttime
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
.endtime
if(this.appointmentTimeList[this.timecurrent].morningList[0].status==true){
this.formdata.schedulePlanDetailId = this.appointmentTimeList[this.timecurrent].morningList[0].schedulePlanDetailId
}else{
this.formdata.schedulePlanDetailId=''
}
}
},
updata() {
@ -401,7 +410,18 @@
.morningList[0].starttime : ''
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
.morningList[0].endtime : ''
if(res.data[0]?.morningList[0]?.status==true){
res.data[0]?.morningList[0]?.scheduleDetailId ? this.formdata.scheduleDetailId = res.data[0]
.morningList[0].scheduleDetailId : ''
}else{
this.formdata.scheduleDetailId=''
}
this.appointmentTimeList = res.data
console.log(this.appointmentTimeList,'0000')
})
},
//

View File

@ -100,7 +100,8 @@
"evaluateChannel": "WE_CHAT_APPLET",
"evaluateContent": that.text,
"compositeScore": that.countvalue,
"orderEvaluatePictureInfoList": that.imgs
"orderEvaluatePictureInfoList": that.imgs,
"orderSource":that.orderlist.orderSource
}
insertGoodsEvaluate(obj).then(res => {
if (res.code == 200) {