更改签约和图文问诊
This commit is contained in:
parent
132e8a6f20
commit
6ca15aef84
@ -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',
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<i class="icon"></i>
|
||||
<input type="text" name="" id="" class="input" placeholder="请输入医生姓名" v-model="realname">
|
||||
</view>
|
||||
<view class="list" v-if="doctorlist">
|
||||
<view class="list" v-if="doctorlist.length>0">
|
||||
<view class="item" v-for="item in doctorlist" @tap='emitdata(item)'>
|
||||
<image src="../../static/docHead.png" mode=""></image>
|
||||
<view class="name">
|
||||
@ -24,8 +24,8 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list" v-if="list">
|
||||
<view class="item" @tap='emitdata(item)'>
|
||||
<view class="list" v-if="list&&list.personName">
|
||||
<view class="item" @tap='emitdata(item)'>
|
||||
<image src="../../static/docHead.png" mode=""></image>
|
||||
<view class="name">
|
||||
{{list.personName}}
|
||||
@ -33,9 +33,6 @@
|
||||
<view class="address">
|
||||
{{list.personPhone}}
|
||||
</view>
|
||||
<!-- <view class="title">
|
||||
{{list.personPhone}}
|
||||
</view> -->
|
||||
<view class="zixunbtn" v-if="list.userNo==userNo">
|
||||
已选择
|
||||
</view>
|
||||
@ -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 @@
|
||||
|
||||
<style lang="scss">
|
||||
@import './choosedoctor.scss';
|
||||
</style>
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user