From 6ca15aef8478537233b6fc020db3e131e454340f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Fri, 10 Nov 2023 10:43:32 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=AD=BE=E7=BA=A6=E5=92=8C?=
=?UTF-8?q?=E5=9B=BE=E6=96=87=E9=97=AE=E8=AF=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../createnewconsultation.vue | 22 ++++++++----
pagesC/choosedoctor/choosedoctor.vue | 35 ++++++++-----------
2 files changed, 30 insertions(+), 27 deletions(-)
diff --git a/pagesB/createnewconsultation/createnewconsultation.vue b/pagesB/createnewconsultation/createnewconsultation.vue
index 89a1476..3b307e5 100644
--- a/pagesB/createnewconsultation/createnewconsultation.vue
+++ b/pagesB/createnewconsultation/createnewconsultation.vue
@@ -325,12 +325,22 @@
infolist() {
detail(this.formdata.cardNo).then(res => {
var status = '1'
- getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
- this.doctorName = res.data.personName
- this.doctorId = res.data.id
- this.doctorlist = res.data
-
- })
+ if(res.code==200){
+ getHospitalPersonInfo(res.data.dutyDoctorNo, status).then(res => {
+ this.doctorName = res.data.personName
+ this.doctorId = res.data.id
+ this.doctorlist = res.data
+
+ })
+ }else if (res.code==500){
+ this.$refs.uToast.show({
+ title: res.msg,
+ type: 'error',
+ duration: '1500',
+
+ })
+ }
+
})
},
diff --git a/pagesC/choosedoctor/choosedoctor.vue b/pagesC/choosedoctor/choosedoctor.vue
index 5c6d7e6..7f0cd56 100644
--- a/pagesC/choosedoctor/choosedoctor.vue
+++ b/pagesC/choosedoctor/choosedoctor.vue
@@ -4,7 +4,7 @@
-
+
@@ -24,8 +24,8 @@
-
-
+
+
{{list.personName}}
@@ -33,9 +33,6 @@
{{list.personPhone}}
-
已选择
@@ -57,23 +54,21 @@
export default {
data() {
return {
- show:"",
+ show: "",
orgNo: null,
userNo: null,
teamNo: null,
realname: '',
doctorlist: [],
doctortotal: 0,
- list:[{
- personPhone:'',
- personName:'',
- }],
+ list: null,
pageNum: 1,
};
},
watch: {
realname: {
handler(newval, oldval) {
+ console.log(newval, oldval)
this.getDoctorListinfo();
}
}
@@ -93,15 +88,15 @@
}
},
emitdata(item) {
- console.log(this.list,'474')
- if(item){
+ console.log(this.list, '474')
+ if (item) {
uni.$emit('doctordata', {
data: JSON.stringify(item),
})
uni.navigateBack({
delta: 1
});
- }else{
+ } else {
uni.$emit('doctordata', {
data: JSON.stringify(this.list),
})
@@ -113,16 +108,14 @@
},
},
onLoad(options) {
- console.log(options,'888')
- if(options.static=="1"){
- this.show=true
-
+ console.log(options, '888')
+ if (options.static == "1") {
+ this.show = true
}
if (options.item) {
this.list = JSON.parse(options.item)
console.log(this.list, '58')
- }
- if (options.orgNo) {
+ } else if (options.orgNo) {
this.orgNo = options.orgNo
this.userNo = options.userNo
this.getDoctorListinfo();
@@ -163,4 +156,4 @@
+
\ No newline at end of file