Browse Source

删除无用代码

master
zq 4 months ago
parent
commit
fc7d3a6fe7
  1. 7
      components/userCard.vue
  2. 22
      pages/visit_detail/visit_detail.vue

7
components/userCard.vue

@ -29,10 +29,6 @@ export default {
name: "visitorList", name: "visitorList",
options: { styleIsolation: "shared" }, options: { styleIsolation: "shared" },
props: { props: {
add: {
type: Boolean,
default: () => false
},
showuinfo: { showuinfo: {
type: Boolean, type: Boolean,
default: () => true default: () => true
@ -61,8 +57,6 @@ export default {
} }
}, },
methods: { methods: {
confirm() {
},
inputevent(e) { inputevent(e) {
var obj = new Object() var obj = new Object()
obj.key = this.index obj.key = this.index
@ -85,7 +79,6 @@ export default {
setTimeout(function () { setTimeout(function () {
this.type = typeval this.type = typeval
}.bind(this)) }.bind(this))
// this.type = typeval
}, },
getData() { getData() {
var obj = new Object() var obj = new Object()

22
pages/visit_detail/visit_detail.vue

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

Loading…
Cancel
Save