|
@ -30,7 +30,7 @@ |
|
|
<view>身份证尾号:{{item.id_no}}</view> |
|
|
<view>身份证尾号:{{item.id_no}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="bt"> |
|
|
<view class="bt"> |
|
|
<view class="bt-item flex" v-for="(item2,key2) in item.hospital_info"> |
|
|
<view class="bt-item flex" v-for="(item2,key2) in item.hospital_info" @click="showNotice(item2.popmsgIndex)"> |
|
|
<view class="left flex"> |
|
|
<view class="left flex"> |
|
|
<view class="over3">{{item2.hospital_name}} {{item2.hospital_dept}}</view> |
|
|
<view class="over3">{{item2.hospital_name}} {{item2.hospital_dept}}</view> |
|
|
<view class="status2" v-if="!item2.hospital_state">停诊</view> |
|
|
<view class="status2" v-if="!item2.hospital_state">停诊</view> |
|
@ -86,6 +86,7 @@ |
|
|
var type = uni.getStorageSync('visitor_type') |
|
|
var type = uni.getStorageSync('visitor_type') |
|
|
if(type) this.type = type |
|
|
if(type) this.type = type |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
uni.setStorageSync('visitor_type', this.type) |
|
|
uni.setStorageSync('visitor_type', this.type) |
|
|
|
|
|
|
|
|
this.getVisitors() |
|
|
this.getVisitors() |
|
@ -96,6 +97,15 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
|
|
|
if(this.type == 2){ |
|
|
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
|
|
title:'就诊人' |
|
|
|
|
|
}) |
|
|
|
|
|
}else{ |
|
|
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
|
|
title:'请选择就诊人' |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
chooseVisitor(info, key){ |
|
|
chooseVisitor(info, key){ |
|
@ -115,27 +125,28 @@ |
|
|
var server_time = data.server_time |
|
|
var server_time = data.server_time |
|
|
this.visitUsers = data.data |
|
|
this.visitUsers = data.data |
|
|
this.popMsgs = [] |
|
|
this.popMsgs = [] |
|
|
|
|
|
var popmsgIndex = 0 |
|
|
for (var i = 0; i < this.visitUsers.length; i++) { |
|
|
for (var i = 0; i < this.visitUsers.length; i++) { |
|
|
this.visitUsers[i].select = false |
|
|
this.visitUsers[i].select = false |
|
|
// this.visitUsers[i].hospital_info = [ |
|
|
this.visitUsers[i].hospital_info = [ |
|
|
// { |
|
|
{ |
|
|
// "times": -1, |
|
|
"times": -1, |
|
|
// "hospital_name": "测试医院", |
|
|
"hospital_name": "测试医院", |
|
|
// "hospital_dept": "呼吸科", |
|
|
"hospital_dept": "呼吸科", |
|
|
// "hospital_state": true, |
|
|
"hospital_state": true, |
|
|
// "is_expire":true, |
|
|
"is_expire":true, |
|
|
// "last_visit_time": "2021-01-12 13:16:26" |
|
|
"last_visit_time": "2021-01-12 13:16:26" |
|
|
// }, |
|
|
}, |
|
|
|
|
|
|
|
|
// { |
|
|
{ |
|
|
// "times": 10, |
|
|
"times": 10, |
|
|
// "hospital_name": "测试医院", |
|
|
"hospital_name": "测试医院", |
|
|
// "hospital_dept": "呼吸科", |
|
|
"hospital_dept": "呼吸科", |
|
|
// "hospital_state": true, |
|
|
"hospital_state": true, |
|
|
// "is_expire":true, |
|
|
"is_expire":true, |
|
|
// "last_visit_time": "2021-01-12 13:16:26" |
|
|
"last_visit_time": "2021-01-12 13:16:26" |
|
|
// } |
|
|
} |
|
|
// ] |
|
|
] |
|
|
|
|
|
|
|
|
try{ |
|
|
try{ |
|
|
var dateService = new Date(server_time.replaceAll('-', "/")); |
|
|
var dateService = new Date(server_time.replaceAll('-', "/")); |
|
@ -168,6 +179,8 @@ |
|
|
popobj.popContent = this.visitUsers[i].real_name+'在'+hospitalInfo[j].hospital_name+hospitalInfo[j].hospital_dept+'须补挂号啦,请挂号缴费后告知医生' |
|
|
popobj.popContent = this.visitUsers[i].real_name+'在'+hospitalInfo[j].hospital_name+hospitalInfo[j].hospital_dept+'须补挂号啦,请挂号缴费后告知医生' |
|
|
popobj.popTitle = "挂号提醒" |
|
|
popobj.popTitle = "挂号提醒" |
|
|
} |
|
|
} |
|
|
|
|
|
popmsgIndex = this.popMsgs.length |
|
|
|
|
|
this.visitUsers[i].hospital_info[j].popmsgIndex = popmsgIndex |
|
|
this.popMsgs.push(popobj) |
|
|
this.popMsgs.push(popobj) |
|
|
} |
|
|
} |
|
|
}catch(et){ |
|
|
}catch(et){ |
|
@ -192,18 +205,27 @@ |
|
|
this.$refs.popcom.close() |
|
|
this.$refs.popcom.close() |
|
|
}, |
|
|
}, |
|
|
popConfirm(e, index){ |
|
|
popConfirm(e, index){ |
|
|
if(this.popMsgs.length > 0 && index<(this.popMsgs.length-1)){ |
|
|
if(!uni.getStorageSync('has_noticed')){ |
|
|
this.popIndex = index+1 |
|
|
if(this.popMsgs.length > 0 && index<(this.popMsgs.length-1)){ |
|
|
var popinfo = this.popMsgs[this.popIndex] |
|
|
this.popIndex = index+1 |
|
|
this.popContent = popinfo.popContent |
|
|
var popinfo = this.popMsgs[this.popIndex] |
|
|
this.popTitle = popinfo.popTitle |
|
|
this.popContent = popinfo.popContent |
|
|
this.popShowCancel = popinfo.popShowCancel |
|
|
this.popTitle = popinfo.popTitle |
|
|
this.showPopCom() |
|
|
this.popShowCancel = popinfo.popShowCancel |
|
|
}else{ |
|
|
this.showPopCom() |
|
|
uni.setStorageSync('has_noticed', 1) |
|
|
}else{ |
|
|
this.closePopCom() |
|
|
uni.setStorageSync('has_noticed', 1) |
|
|
|
|
|
this.closePopCom() |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
showNotice(popmshIndex){ |
|
|
|
|
|
var popinfo = this.popMsgs[popmshIndex] |
|
|
|
|
|
this.popContent = popinfo.popContent |
|
|
|
|
|
this.popTitle = popinfo.popTitle |
|
|
|
|
|
this.popShowCancel = popinfo.popShowCancel |
|
|
|
|
|
this.showPopCom() |
|
|
|
|
|
}, |
|
|
popCancel(e){ |
|
|
popCancel(e){ |
|
|
}, |
|
|
}, |
|
|
addVisitor(){ |
|
|
addVisitor(){ |
|
|