评价 专家问诊
This commit is contained in:
parent
854ec07d7e
commit
de258800bc
@ -118,11 +118,12 @@
|
|||||||
patientId: '',
|
patientId: '',
|
||||||
openId: '',
|
openId: '',
|
||||||
orderNo: '',
|
orderNo: '',
|
||||||
evaluateSatisfaction: '',
|
|
||||||
evaluateChannel: 'WE_CHAT_APPLET',
|
evaluateChannel: 'WE_CHAT_APPLET',
|
||||||
},
|
},
|
||||||
openId: '',
|
openId: '',
|
||||||
orderType: '',
|
orderType: '',
|
||||||
|
orderSource:'',
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -202,9 +203,9 @@
|
|||||||
healthratenurse(item) {
|
healthratenurse(item) {
|
||||||
console.log(item, '58')
|
console.log(item, '58')
|
||||||
if (item.orderSource == 'FAMILY_DOCTOR') {
|
if (item.orderSource == 'FAMILY_DOCTOR') {
|
||||||
this.list.orderSource = 'FAMILY_DOCTOR'
|
this.orderSource = 'FAMILY_DOCTOR'
|
||||||
} else if (item.orderSource == 'SPRING_DOCTOR') {
|
} else if (item.orderSource == 'SPRING_DOCTOR') {
|
||||||
this.list.orderSource = 'SPRING_DOCTOR'
|
this.orderSource = 'SPRING_DOCTOR'
|
||||||
}
|
}
|
||||||
// 家医模块立即评价
|
// 家医模块立即评价
|
||||||
if (item.orderType == "FAMILY_DOCTOR") {
|
if (item.orderType == "FAMILY_DOCTOR") {
|
||||||
@ -234,13 +235,13 @@
|
|||||||
// 提交评价
|
// 提交评价
|
||||||
submit() {
|
submit() {
|
||||||
this.list.patientId = this.parentId
|
this.list.patientId = this.parentId
|
||||||
this.list.openId = this.openId
|
this.list.openId = uni.getStorageSync('openid')
|
||||||
console.log(this.list, '45')
|
console.log(this.list, '45')
|
||||||
|
|
||||||
if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType ==
|
if (this.orderType == "HEALTH_CONSULTATION" || this.orderType == "INTEGRAL_EXCHANGE" || this.orderType ==
|
||||||
"DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") {
|
"DIRECT_BUY" || this.orderType == "FAMILY_DOCTOR") {
|
||||||
this.list.evaluateSatisfaction=this.evaluateSatisfaction
|
// this.list.evaluateSatisfaction=this.evaluateSatisfaction
|
||||||
this.list.compositeScore=this.rateval
|
this.list.compositeScore=this.rateval
|
||||||
|
this.list.orderSource=this.orderSource
|
||||||
insertGoodsEvaluate(this.list).then(res => {
|
insertGoodsEvaluate(this.list).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
@ -262,16 +263,15 @@
|
|||||||
} else if (this.orderType == "APPOINTMENT_ORDER") {
|
} else if (this.orderType == "APPOINTMENT_ORDER") {
|
||||||
var obj = {
|
var obj = {
|
||||||
"patientId": this.list.patientId,
|
"patientId": this.list.patientId,
|
||||||
"openid": this.list.openId,
|
"openid": uni.getStorageSync('openid'),
|
||||||
"orderNo": this.list.orderNo,
|
"orderNo": this.list.orderNo,
|
||||||
"evaluateChannel": "WE_CHAT_APPLET",
|
"evaluateChannel": "WE_CHAT_APPLET",
|
||||||
"evaluateSatisfaction": this.evaluateSatisfaction,
|
"evaluateSatisfaction": this.evaluateSatisfaction,
|
||||||
|
"orderSource": this.orderSource,
|
||||||
"compositeScore": this.rateval,
|
"compositeScore": this.rateval,
|
||||||
"orderSource": this.list.orderSource,
|
|
||||||
}
|
}
|
||||||
addAppointmentEvaluate(obj).then(res => {
|
addAppointmentEvaluate(obj).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|
||||||
this.$refs.uToast.show({
|
this.$refs.uToast.show({
|
||||||
title: '评价成功',
|
title: '评价成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
|
|||||||
@ -256,8 +256,10 @@
|
|||||||
this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
||||||
.starttime
|
.starttime
|
||||||
} else if (item == 'after') {
|
} else if (item == 'after') {
|
||||||
|
console.log(this.appointmentTimeList[this.timecurrent].morningList[0],'2222')
|
||||||
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
||||||
.endtime
|
.endtime
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//选择时间
|
//选择时间
|
||||||
@ -276,6 +278,13 @@
|
|||||||
.starttime
|
.starttime
|
||||||
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
||||||
.endtime
|
.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() {
|
updata() {
|
||||||
@ -401,7 +410,18 @@
|
|||||||
.morningList[0].starttime : ''
|
.morningList[0].starttime : ''
|
||||||
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
|
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
|
||||||
.morningList[0].endtime : ''
|
.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
|
this.appointmentTimeList = res.data
|
||||||
|
console.log(this.appointmentTimeList,'0000')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 显示三级地址联动
|
// 显示三级地址联动
|
||||||
|
|||||||
@ -100,7 +100,8 @@
|
|||||||
"evaluateChannel": "WE_CHAT_APPLET",
|
"evaluateChannel": "WE_CHAT_APPLET",
|
||||||
"evaluateContent": that.text,
|
"evaluateContent": that.text,
|
||||||
"compositeScore": that.countvalue,
|
"compositeScore": that.countvalue,
|
||||||
"orderEvaluatePictureInfoList": that.imgs
|
"orderEvaluatePictureInfoList": that.imgs,
|
||||||
|
"orderSource":that.orderlist.orderSource
|
||||||
}
|
}
|
||||||
insertGoodsEvaluate(obj).then(res => {
|
insertGoodsEvaluate(obj).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user