Browse Source

签到相关

master
kuaileWu 6 months ago
parent
commit
75c044e5b5
  1. 10
      App.vue
  2. 2
      components/preBookList.vue
  3. 4
      components/userCard.vue
  4. 4
      components/visitorAccount.vue
  5. 6
      pages/book_detail/book_detail.vue
  6. 21
      pages/index/index.vue
  7. 6
      pages/modify_visitor/modify_visitor.vue
  8. 6
      pages/visit_detail/visit_detail.vue
  9. 33
      pages/visitors/visitors.vue
  10. 2
      pages/visitors_new/visitors_new.vue

10
App.vue

@ -239,14 +239,14 @@
height: 40rpx !important; height: 40rpx !important;
} }
.pages-visitors-visitors /deep/ .uni-actionsheet__cell{ .pages-visitors-visitors ::v-deep .uni-actionsheet__cell{
color:#31333B !important; color:#31333B !important;
font-size: 34rpx; font-size: 34rpx;
line-height: 112rpx; line-height: 112rpx;
height: 112rpx; height: 112rpx;
padding: 0rpx 6rpx; padding: 0rpx 6rpx;
} }
.pages-visitors-visitors /deep/ uni-actionsheet .uni-actionsheet { .pages-visitors-visitors ::v-deep uni-actionsheet .uni-actionsheet {
left: 0; left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
@ -255,15 +255,15 @@
padding-bottom: constant(safe-area-inset-bottom); padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom);
} }
.pages-visitors-visitors /deep/ .uni-actionsheet__menu{ .pages-visitors-visitors ::v-deep .uni-actionsheet__menu{
border-radius: 20rpx 20rpx 0 0; border-radius: 20rpx 20rpx 0 0;
} }
.pages-visitors-visitors /deep/ uni-actionsheet .uni-actionsheet__cell:before { .pages-visitors-visitors ::v-deep uni-actionsheet .uni-actionsheet__cell:before {
border-top: 2rpx solid #EEEEEE; border-top: 2rpx solid #EEEEEE;
color: #EEEEEE; color: #EEEEEE;
} }
.pages-visitors-visitors /deep/ uni-actionsheet .uni-actionsheet__action{ .pages-visitors-visitors ::v-deep uni-actionsheet .uni-actionsheet__action{
margin-top: 24rpx; margin-top: 24rpx;
margin-bottom: 10rpx; margin-bottom: 10rpx;
} }

2
components/preBookList.vue

@ -13,7 +13,7 @@
<view :class="statusStyleList[item.status_desc]+' status'"><view class="over">{{item.status_desc}}</view></view> <view :class="statusStyleList[item.status_desc]+' status'"><view class="over">{{item.status_desc}}</view></view>
<view class="queue-num" v-if="item.status_desc=='候诊' && item.wait_visit_count && item.wait_visit_count>0"><view>前方<text class="PfScSemibold">{{item.wait_visit_count}}</text></view> </view> <view class="queue-num" v-if="item.status_desc=='候诊' && item.wait_visit_count && item.wait_visit_count>0"><view>前方<text class="PfScSemibold">{{item.wait_visit_count}}</text></view> </view>
<view class="bedDesc">2诊室13床</view> <view class="bedDesc" v-if="item.bed_desc">{{item.bed_desc}}</view>
</view> </view>
</view> </view>
</view> </view>

4
components/userCard.vue

@ -86,7 +86,7 @@ export default {
overflow: hidden; overflow: hidden;
&.popup-user-card{ &.popup-user-card{
/deep/ { ::v-deep {
.uni-card__header{ .uni-card__header{
display: none !important; display: none !important;
} }
@ -109,7 +109,7 @@ export default {
} }
} }
/deep/ { ::v-deep {
.uni-easyinput{ .uni-easyinput{
margin-bottom: 24rpx; margin-bottom: 24rpx;
.uni-easyinput__content-input{ .uni-easyinput__content-input{

4
components/visitorAccount.vue

@ -104,7 +104,7 @@ export default {
height: auto; height: auto;
overflow: hidden; overflow: hidden;
&.default-open{ &.default-open{
/deep/{ ::v-deep{
.uni-collapse-item__title{ .uni-collapse-item__title{
display: none !important; display: none !important;
} }
@ -120,7 +120,7 @@ export default {
} }
} }
} }
/deep/{ ::v-deep{
.uni-collapse-item__wrap{ .uni-collapse-item__wrap{
background: #F9FAFB; background: #F9FAFB;
.uni-collapse-item__wrap-content{ .uni-collapse-item__wrap-content{

6
pages/book_detail/book_detail.vue

@ -199,7 +199,7 @@
box-sizing: border-box; box-sizing: border-box;
.ccpop{ .ccpop{
&.bed-edit-pop{ &.bed-edit-pop{
/deep/{ ::v-deep{
.uni-data-checklist{ .uni-data-checklist{
display: none !important; display: none !important;
} }
@ -211,7 +211,7 @@
} }
} }
} }
/deep/{ ::v-deep{
uni-view[name="content"]{ uni-view[name="content"]{
border-radius: 40rpx; border-radius: 40rpx;
} }
@ -253,7 +253,7 @@
.list-box{ .list-box{
.item-wrapper{ .item-wrapper{
.item-inner /deep/{ .item-inner ::v-deep{
.bi{ .bi{
align-items: center; align-items: center;
column-gap: 12rpx; column-gap: 12rpx;

21
pages/index/index.vue

@ -47,7 +47,7 @@
<!-- 科室 --> <!-- 科室 -->
</text> </text>
<view class="fixed_hospital">医保定点</view> <!-- <view class="fixed_hospital">医保定点</view> -->
<!-- <img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> --> <!-- <img :src="cssUrl+'index_comback.svg'" v-if="item.hospital_pos" @click="toLocation(item)"> -->
</view> </view>
<view class="date over2 over4" v-if="item.address"> <view class="date over2 over4" v-if="item.address">
@ -85,13 +85,13 @@
</uni-collapse-item> </uni-collapse-item>
</uni-collapse> </uni-collapse>
<view class="bot primary btn btn2" hover-class="hover" @click="toVisitors(item)"> <view class="bot primary btn btn2" hover-class="hover" @click="toVisitors(item)" v-if="item.type==0">
预约看病 预约看病
</view> </view>
</view> </view>
</view> </view>
<view class="block visit-wrapper" v-if="recentAppoint"> <view class="block visit-wrapper" v-if="recentAppoint && this.doctorInfo && !this.doctorInfo.is_all_card">
<view class="header flex"> <view class="header flex">
<view class="title-wrapper flex booklist"> <view class="title-wrapper flex booklist">
<view class="title"> <view class="title">
@ -105,9 +105,9 @@
</view> </view>
</view> </view>
</view> </view>
<pre-book-list class="preg-books" :dataList="recentAppoint" :topnopadding="true"></pre-book-list> <pre-book-list class="preg-books" :dataList="recentAppoint" :topnopadding="true" v-if="this.doctorInfo && !this.doctorInfo.is_all_card"></pre-book-list>
<tabbar current="1" leftButtonText="主页"></tabbar> <tabbar current="1" leftButtonText="主页" v-if="this.doctorInfo && !this.doctorInfo.is_all_card"></tabbar>
</view> </view>
</template> </template>
@ -177,6 +177,14 @@
preBookList, preBookList,
}, },
onLoad(option) { onLoad(option) {
// define('DEPART_TYPE_FULL', 0); //
// define('DEPART_TYPE_COUNT', 1); //
// define('DEPART_TYPE_CARD', 2); //
// $GLOBALS['depart_type_list'] = array(
// DEPART_TYPE_FULL => '',
// DEPART_TYPE_COUNT => '',
// DEPART_TYPE_CARD => ''
// );
if(option.code && option.state) { if(option.code && option.state) {
this.code = option.code this.code = option.code
this.state = option.state this.state = option.state
@ -267,7 +275,6 @@
this.pageShow = true; this.pageShow = true;
let visitFlag = true; let visitFlag = true;
this.doctorInfo = data; this.doctorInfo = data;
console.log(data)
if(this.doctorInfo.doctor_info && this.doctorInfo.doctor_info.depart_name && this.doctorInfo.doctor_info.depart_name.length>0){ if(this.doctorInfo.doctor_info && this.doctorInfo.doctor_info.depart_name && this.doctorInfo.doctor_info.depart_name.length>0){
this.doctor_dept = this.doctorInfo.doctor_info.depart_name; this.doctor_dept = this.doctorInfo.doctor_info.depart_name;
} }
@ -542,7 +549,7 @@
} }
.notice-collapse { .notice-collapse {
margin-top: 24rpx; margin-top: 24rpx;
/deep/ { ::v-deep {
.uni-collapse-item__title-box{ .uni-collapse-item__title-box{
padding: 0; padding: 0;
display: flex; display: flex;

6
pages/modify_visitor/modify_visitor.vue

@ -58,7 +58,6 @@
title: '新增就诊人' title: '新增就诊人'
}); });
} }
console.log(88888)
}, },
onShow() { onShow() {
if(this.vid) this.getVisitorInfo() if(this.vid) this.getVisitorInfo()
@ -89,7 +88,10 @@
if(this.vid){ if(this.vid){
uni.removeStorageSync('visitor_info_'+ this.vid) uni.removeStorageSync('visitor_info_'+ this.vid)
} }
this.$func.toPage('/pages/visitors/visitors?type='+this.type)
uni.navigateBack()
// this.$func.toPage('/pages/visitors/visitors?type='+this.type)
}); });
}, },
getVisitorInfo() { getVisitorInfo() {

6
pages/visit_detail/visit_detail.vue

@ -208,7 +208,7 @@
box-sizing: border-box; box-sizing: border-box;
.ccpop{ .ccpop{
&.bed-edit-pop{ &.bed-edit-pop{
/deep/{ ::v-deep{
.uni-data-checklist{ .uni-data-checklist{
display: none !important; display: none !important;
} }
@ -220,7 +220,7 @@
} }
} }
} }
/deep/{ ::v-deep{
uni-view[name="content"]{ uni-view[name="content"]{
border-radius: 40rpx; border-radius: 40rpx;
} }
@ -262,7 +262,7 @@
.list-box{ .list-box{
.item-wrapper{ .item-wrapper{
.item-inner /deep/{ .item-inner ::v-deep{
.bi{ .bi{
align-items: center; align-items: center;
column-gap: 12rpx; column-gap: 12rpx;

33
pages/visitors/visitors.vue

@ -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()
}, },

2
pages/visitors_new/visitors_new.vue

@ -73,7 +73,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.waiting-method-page{ .waiting-method-page{
overflow: hidden; overflow: hidden;
/deep/ { ::v-deep {
.uni-card{ .uni-card{
border-radius: 0; border-radius: 0;
padding: 34rpx 42rpx !important; padding: 34rpx 42rpx !important;

Loading…
Cancel
Save