|
|
@ -21,7 +21,6 @@ |
|
|
|
<view class="submit"> |
|
|
|
<view :class="'btn cancel'+(showCancelBook?' btn1':' btn3')" hover-class="hover" @click="reback">返回</view> |
|
|
|
<view class="btn primary btn1" hover-class="hover" v-if="showCancelBook" @click="cancelBook">取消预约</view> |
|
|
|
<!-- <view class="btn primary btn1" hover-class="hover" v-if="showReBook && !showCancelBook" @click="rebook">重新预约</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -53,10 +52,7 @@ |
|
|
|
return { |
|
|
|
statusList:{'9':'text_wait', '1':'text_ing', '2':'text_down', '3':'text_out_num', '4':'text_expire', '5':'text_cancle'}, |
|
|
|
statusStyleList:{'0':'status_wait', '1':'status_ing', '2':'status_down', '3':'status_out_num', '4':'status_expire','5':'status_cancle'}, |
|
|
|
statusDescList:['候诊', '就诊中', '已完成','过号', '已过期', '已取消'], |
|
|
|
status:'', |
|
|
|
queueNum:88, |
|
|
|
bookDate:"2024.01.09 周二 09:30-12:00", |
|
|
|
notice:"", |
|
|
|
visit_id:0, |
|
|
|
hasRecord:false, |
|
|
@ -71,7 +67,6 @@ |
|
|
|
{'leftTitle':'就诊时间','custom':"",show:true,edit:false} |
|
|
|
], |
|
|
|
showCancelBook:false, |
|
|
|
redirect:'/pages/prebook_list/prebook_list', |
|
|
|
bookId:false, |
|
|
|
visitor_id:0, |
|
|
|
depart_id:false, |
|
|
@ -87,7 +82,6 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
// if(option.index) this.redirect = '/pages/index/index' |
|
|
|
if(option.id) this.bookId = option.id |
|
|
|
if(option.depart_id) this.depart_id = option.depart_id |
|
|
|
if(option.visitor_id) this.visitor_id = option.visitor_id |
|
|
@ -135,8 +129,6 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
console.log(obj) |
|
|
|
}, |
|
|
|
closepop(){ |
|
|
|
this.$refs.popup.close() |
|
|
@ -203,11 +195,6 @@ |
|
|
|
} |
|
|
|
|
|
|
|
var bookInfo = data |
|
|
|
// if(bookInfo && bookInfo.length <= 0){ |
|
|
|
// this.$pop.modelShow('预约信息为空') |
|
|
|
// return |
|
|
|
// } |
|
|
|
bookInfo = data |
|
|
|
this.bookInfo = bookInfo |
|
|
|
this.status = this.statusStyleList[bookInfo.status] |
|
|
|
if(bookInfo.status==0 || bookInfo.status==2){ |
|
|
@ -219,15 +206,15 @@ |
|
|
|
var status_desc = bookInfo.status_desc; |
|
|
|
if(bookInfo.status == 0) { |
|
|
|
if(bookInfo.bed_desc) { |
|
|
|
bookInfo.status_desc = "床位候诊" |
|
|
|
status_desc = "床位候诊" |
|
|
|
this.wait_type = 1 |
|
|
|
}else{ |
|
|
|
bookInfo.status_desc = "等待叫号" |
|
|
|
status_desc = "等待叫号" |
|
|
|
this.wait_type = 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.list[0].custom = "<view class='bi flex'><view class='"+this.status+" status'><view class='over status_text'>"+bookInfo.status_desc+"</view></view>" |
|
|
|
this.list[0].custom = "<view class='bi flex'><view class='"+this.status+" status'><view class='over status_text'>"+status_desc+"</view></view>" |
|
|
|
this.list[1].custom = "<view class='bi flex'><text>"+bookInfo.bed_desc+"</text>" |
|
|
|
if(bookInfo.bed_desc) { |
|
|
|
this.list[1].show = true |
|
|
@ -251,10 +238,7 @@ |
|
|
|
this.list[3].rightTitle = bookInfo.hospital_name |
|
|
|
this.list[4].rightTitle = bookInfo.depart_name |
|
|
|
this.list[5].rightTitle = bookInfo.doctor_name ? bookInfo.doctor_name : '无' |
|
|
|
// this.list[5].custom = "<view class='queue-text'>前方<text class='queue-num-txt PfScSemibold'>"+bookInfo.wait_visit_count+"</text>人</view>" |
|
|
|
// if(bookInfo.wait_visit_count<=0 || bookInfo.status!=0) this.list[5].show = false |
|
|
|
this.list[6].show = false |
|
|
|
// this.list[7].custom = "<view class='book-date"+(bookInfo.status==0?' wait':' expire')+"'>"+bookInfo.visit_date+' '+bookInfo.week_desc+' '+bookInfo.visit_time+"</view>" |
|
|
|
this.list[7].custom = "<view class='book-date "+this.statusList[bookInfo.status]+"'>"+bookInfo.visit_date+' '+bookInfo.week_desc+' '+bookInfo.visit_time+"</view>" |
|
|
|
this.notice = bookInfo.notice; |
|
|
|
}); |
|
|
|