diff --git a/components/bookBox.vue b/components/bookBox.vue
index 1b4b8e9..87f7190 100644
--- a/components/bookBox.vue
+++ b/components/bookBox.vue
@@ -9,9 +9,6 @@
{{item.work_desc}}
-
@@ -61,11 +58,6 @@
export default {
name: "bookBox",
props: {
- // RegistrationTimeList:Object,
- // RegistrationTimeList:{
- // type:Object,
- // default:()=>{}
- // },
visitorList:{
type:Array,
default:()=>[]
@@ -74,7 +66,6 @@ export default {
data() {
return {
cssUrl:this.cssUrl,
- workDate:[],
time2remain:[],
bookTimeList:false,
timeList:true,
@@ -87,16 +78,13 @@ export default {
},
methods: {
dataInit(allDate,chooseDate) {//上下午时间
- // dataInit(firstRegistrationTime,time2remain,chooseDate) {//上下午时间
let firstRegistrationTime = allDate['date2time']
this.RegistrationTimeList = allDate['date2work']
this.nowtime = allDate['nowtime']
this.time2remain = allDate['time2remain'];
for (var key in this.time2remain) {
if (this.time2remain.hasOwnProperty(key)) {
- var element = this.time2remain[key];
var times = key.split('-')
- var start_times = chooseDate+' '+times[0]
var end_times = chooseDate+' '+times[1]
this.time2remainExpire[key] = 0
if(this.nowtime >= end_times) this.time2remainExpire[key] = 1
@@ -119,8 +107,6 @@ export default {
this.selectDay = date
this.bookTimeList = false
this.$emit('getAvailabletRegistrationTime', true,this.selectDay)
- // if(book.am.length > 0 || book.pm.length > 0) this.bookTimeList = true
- // this.timeList = book
},
confirmSubmit(time_interval, type){
let param = new Object()
diff --git a/pages/book_detail/book_detail.vue b/pages/book_detail/book_detail.vue
index d9f574b..798d49e 100644
--- a/pages/book_detail/book_detail.vue
+++ b/pages/book_detail/book_detail.vue
@@ -21,7 +21,6 @@
返回
取消预约
-
@@ -50,12 +49,8 @@
export default {
data() {
return {
- statusList:['status_wait', 'status_ing', 'status_down', 'status_out_num', 'status_expire', 'status_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:"",
list:[
{'leftTitle':'候诊状态','custom':"",show:true,edit:true},
@@ -72,7 +67,6 @@
bookId:false,
depart_id:false,
bookInfo:false,
- showReBook:false,
cssUrl:this.cssUrl,
visitorList:[
{name:'张三',type:1,showuinfo:false}
@@ -82,7 +76,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
@@ -157,10 +150,6 @@
}
var bookInfo = data
- // if(bookInfo && bookInfo.length <= 0){
- // this.$pop.modelShow('预约信息为空')
- // return
- // }
bookInfo = data
this.bookInfo = bookInfo
this.status = this.statusStyleList[bookInfo.status]
@@ -178,8 +167,6 @@
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 = "前方"+bookInfo.wait_visit_count+"人"
- // if(bookInfo.wait_visit_count<=0 || bookInfo.status!=0) this.list[5].show = false
this.list[6].show = false
this.list[7].custom = ""+bookInfo.visit_date+' '+bookInfo.week_desc+' '+bookInfo.visit_time+""
this.notice = bookInfo.notice;
diff --git a/pages/modify_visitor/modify_visitor.vue b/pages/modify_visitor/modify_visitor.vue
index f8d2361..b40901b 100644
--- a/pages/modify_visitor/modify_visitor.vue
+++ b/pages/modify_visitor/modify_visitor.vue
@@ -93,13 +93,13 @@
},
getVisitorInfo() {
this.visitor_info = JSON.parse(uni.getStorageSync('visitor_info_'+ this.vid))
- this.name = this.visitor_info.name
- this.idcard = this.visitor_info.idcard
- this.phone = this.visitor_info.phone
- this.nameRule = true
- this.idcardExtRule = true
- this.phoneRule = true
- this.checkSubmit()
+ this.name = this.visitor_info.name
+ this.idcard = this.visitor_info.idcard
+ this.phone = this.visitor_info.phone
+ this.nameRule = true
+ this.idcardExtRule = true
+ this.phoneRule = true
+ this.checkSubmit()
},
nameBlurEvent(value, res){
this.name = value
diff --git a/pages/prebook/prebook.vue b/pages/prebook/prebook.vue
index 3d3b385..a3b0cd5 100644
--- a/pages/prebook/prebook.vue
+++ b/pages/prebook/prebook.vue
@@ -56,9 +56,6 @@
return {
cssUrl:this.cssUrl,
needSelectMembers:false,
- doctorId:false,
- RegistrationTimeList:[],
- hospitalId:false,
hospital:false,
activeVisitors:[],
nums:['①','②','③','④','⑤','⑥','⑦','⑧','⑨','⑩'],
@@ -201,10 +198,6 @@
this.times.time_desc = '下午';
if(times.type == 1) this.times.time_desc = '上午';
this.$http.req('user/check_appoint_nums', param,'POST').then(data=>{
- // if(data == -1) {
- // this.getAvailabletRegistrationTime(false, chooseDay)
- // return
- // }
if(data.remain < this.activeVisitors.length){
this.needSelectMembers = true
this.$set(this.times, 'remain', data.remain)
diff --git a/pages/prebook_list/prebook_list.vue b/pages/prebook_list/prebook_list.vue
index 315fb33..7729ef4 100644
--- a/pages/prebook_list/prebook_list.vue
+++ b/pages/prebook_list/prebook_list.vue
@@ -45,9 +45,6 @@
uni.hideLoading()
if(data == -1) return
this.bookList = data;
- // if(this.userSelectIndex === 0){
- // this.vistors = JSON.parse(JSON.stringify(data))
- // }
});
},
pageInit() {
diff --git a/pages/user_modify/user_modify.vue b/pages/user_modify/user_modify.vue
index 1c527ae..cc80124 100644
--- a/pages/user_modify/user_modify.vue
+++ b/pages/user_modify/user_modify.vue
@@ -46,9 +46,6 @@
tempFiles:''
}
},
- onLoad() {
- // this.getUser()
- },
methods: {
getUser(){
this.$http.req('user/get_user_info', {}, 'GET').then(data=>{
@@ -94,7 +91,6 @@
});
},
copyUid(uid) {
- var that = this
uni.setClipboardData({
data: uid,
success: function () {
@@ -106,13 +102,11 @@
uni.chooseImage({
count: 1,
success: function(res) {
- console.log(res,'res---');
var tempFilePaths = res.tempFilePaths
let tempFiles = res.tempFiles;
that.tempFilePaths = tempFilePaths[0]
that.tempFiles = tempFiles[0]
that.uinfo.user_avatar = that.tempFilePaths
- console.log(that.uinfo,'=uinfo');
}
});
}
diff --git a/pages/visitors/visitors.vue b/pages/visitors/visitors.vue
index 024552b..bbe54b4 100644
--- a/pages/visitors/visitors.vue
+++ b/pages/visitors/visitors.vue
@@ -12,9 +12,7 @@
{{item.name}}
-
已预约今日 {{ item.visit_time.split('-')[0] }} 就诊
-
身份证号:{{item.idcard_txt}}
@@ -68,7 +66,6 @@
{{ item.hospital?item.hospital:'暂无剩余针灸次数'}}
-
{{item.depart }}
{{ item.doctor_status }}
{{ item.weeks }}周未看病
@@ -100,20 +97,16 @@
data() {
return {
cssUrl:this.cssUrl,
- type:-1,
- res:true,
popContent:'删除张杨明后,就诊记录还可以查到,确定删除吗?',
popTitle:'确认删除',
popShowCancel:true,
visitUsers:false,
selectCount:0,
- hospitalId:false,
activeVisitors:[],
popMsgs:[],
popIndex:0,
depart_id:0,
hospital_depart_name:'',
- hasBaoDaoData:false,
type:-1,
pageshow:false,
is_preview:false,
@@ -177,9 +170,6 @@
},
methods: {
reback(){
- // uni.navigateTo({
- // url:'/'
- // })
this.$nav.navToPath('/')
},
// 预约时间 -跳转就诊人页面-预约时间
@@ -313,13 +303,6 @@
}
}
},
- showNotice(popmshIndex){
- var popinfo = this.popMsgs[popmshIndex]
- this.popContent = popinfo.popContent
- this.popTitle = popinfo.popTitle
- this.popShowCancel = popinfo.popShowCancel
- this.showPopCom()
- },
popCancel(e){
},
addVisitor(){
diff --git a/pages/visitors_new/visitors_new.vue b/pages/visitors_new/visitors_new.vue
index 9b6008e..4a1e7d6 100644
--- a/pages/visitors_new/visitors_new.vue
+++ b/pages/visitors_new/visitors_new.vue
@@ -19,9 +19,7 @@
return {
cssUrl:this.cssUrl,
depart_id:0,
- hospital_depart_name:'',
visitor_list:false,
- value:'',
visitor_id:0,
}
},
diff --git a/pages/waiting_method/waiting_method.vue b/pages/waiting_method/waiting_method.vue
index 44d7ff6..07974bc 100644
--- a/pages/waiting_method/waiting_method.vue
+++ b/pages/waiting_method/waiting_method.vue
@@ -27,10 +27,6 @@
active_visitors:[],
hospital_depart_name:'',
submitting:false,
- visitorList:[
- {name:'张三',type:1},
- {name:'李四', type:1},
- ]
}
},
components:{
@@ -99,9 +95,6 @@
this.$http.req('user/checkin', obj, 'POST').then(data => {
// 成功后跳转到就诊记录页面
if(data == -1) return
- // uni.navigateTo({
- // url: '/pages/prebook_list/prebook_list'
- // });
this.$nav.navToPath('/pages/prebook_list/prebook_list')
}).catch(err => {
this.$pop.msg('提交失败,请重试');