|
|
@ -1,5 +1,5 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class='add-visitor-page'> |
|
|
<view class='add-visitor-page' v-show="pageshow"> |
|
|
<view class="h-name over PfScSemibold"> |
|
|
<view class="h-name over PfScSemibold"> |
|
|
{{hospital_depart_name}} |
|
|
{{hospital_depart_name}} |
|
|
</view> |
|
|
</view> |
|
|
@ -28,20 +28,19 @@ |
|
|
<text>今日没有预约哦,请先预约时间</text> |
|
|
<text>今日没有预约哦,请先预约时间</text> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="submit flex baodao-submit" v-if="type == 3 && !hasBaoDaoData"> |
|
|
<view class="submit flex baodao-submit" v-if="type == 3 && !hasBaoDaoData"> |
|
|
<view :class="'btn cancel btn1 PfScMedium'" hover-class="hover" @click="reback">返回</view> |
|
|
<view :class="'btn cancel btn1 PfScMedium'" hover-class="hover" @click="reback">返回</view> |
|
|
<view class="btn primary btn1 PfScMedium" hover-class="hover" @click="appointTime">预约时间</view> |
|
|
<view class="btn primary btn1 PfScMedium" hover-class="hover" @click="appointTime">预约时间</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="submit" v-if="type == 1" @click="toPrebook"> |
|
|
<view class="submit" v-if="type == 0" @click="toPrebook"> |
|
|
<view class="bot primary btn btn2 submitbtn" hover-class="hover"> |
|
|
<view class="bot primary btn btn2 submitbtn" hover-class="hover"> |
|
|
确认预约(已选{{selectCount}}位) |
|
|
确认预约(已选{{selectCount}}位) |
|
|
</view> |
|
|
</view> |
|
|
<view class="tip height40">请确保预约就诊前在门诊先挂号</view> |
|
|
<view class="tip height40">请确保预约就诊前在门诊先挂号</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="submit" v-if="type == 3 && hasBaoDaoData" @click="toPrebook"> |
|
|
<view class="submit" v-if="type == 1" @click="toPrebook"> |
|
|
<view class="bot primary btn btn2 submitbtn" hover-class="hover"> |
|
|
<view class="bot primary btn btn2 submitbtn" hover-class="hover"> |
|
|
确认以上患者已到(已选{{selectCount}}位) |
|
|
确认以上患者已到(已选{{selectCount}}位) |
|
|
</view> |
|
|
</view> |
|
|
@ -101,7 +100,7 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
cssUrl:this.cssUrl, |
|
|
cssUrl:this.cssUrl, |
|
|
type:1, |
|
|
type:-1, |
|
|
res:true, |
|
|
res:true, |
|
|
popContent:'删除张杨明后,就诊记录还可以查到,确定删除吗?', |
|
|
popContent:'删除张杨明后,就诊记录还可以查到,确定删除吗?', |
|
|
popTitle:'确认删除', |
|
|
popTitle:'确认删除', |
|
|
@ -114,7 +113,9 @@ |
|
|
popIndex:0, |
|
|
popIndex:0, |
|
|
depart_id:0, |
|
|
depart_id:0, |
|
|
hospital_depart_name:'', |
|
|
hospital_depart_name:'', |
|
|
hasBaoDaoData:false |
|
|
hasBaoDaoData:false, |
|
|
|
|
|
type:-1, |
|
|
|
|
|
pageshow:false, |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components:{ |
|
|
components:{ |
|
|
@ -142,6 +143,14 @@ |
|
|
this.$pop.modelShow('请先选择要预约的医院科室', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的医院科室', '/pages/index/index') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(this.type == 3 && !option.depart_id) { |
|
|
|
|
|
this.$pop.modelShow('签到二维码有误或已过期!', '/pages/index/index') |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(this.type == 3) this.depart_id = option.depart_id |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onReady() { |
|
|
onReady() { |
|
|
if(this.type == 2){ |
|
|
if(this.type == 2){ |
|
|
@ -152,11 +161,13 @@ |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title:'确认报到' |
|
|
title:'确认报到' |
|
|
}) |
|
|
}) |
|
|
|
|
|
this.getDepartInfo(); |
|
|
}else{ |
|
|
}else{ |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title:'请选择就诊人' |
|
|
title:'请选择就诊人' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
reback(){ |
|
|
reback(){ |
|
|
@ -231,6 +242,16 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
getDepartInfo() { |
|
|
|
|
|
this.$http.req('user/get_depart_info', {depart_id:this.depart_id}, 'POST').then(data=>{ |
|
|
|
|
|
this.type = data.type |
|
|
|
|
|
if(this.type == 2){ |
|
|
|
|
|
this.$pop.modelShow('签到二维码已过期', '/pages/index/index') |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
this.pageshow = true |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
showPopCom() { |
|
|
showPopCom() { |
|
|
this.$refs.popcom.open() |
|
|
this.$refs.popcom.open() |
|
|
}, |
|
|
}, |
|
|
|