|
@ -5,14 +5,14 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="header block flex line40" @click="addVisitor" v-if="(type != 3 && type != 0) || is_preview"> |
|
|
<view class="header block flex line40" @click="addVisitor" v-if="(type != 3 && type != 0) || is_preview"> |
|
|
<img :src="cssUrl+'add.svg'">增加就诊人 |
|
|
<img :src="cssUrl+'add.svg'">增加预约人 |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="list-wrapper" v-if="(type == 1 || type == 0 || is_preview) && visitUsers && visitUsers.length > 0"> |
|
|
<view class="list-wrapper" v-if="(type == 1 || type == 0 || is_preview) && visitUsers && visitUsers.length > 0"> |
|
|
<view :class="'item block'+(item.select?' active':'')" v-for="(item,key) in visitUsers" @click="chooseVisitor(item, key)"> |
|
|
<view :class="'item block'+(item.select?' active':'')" v-for="(item,key) in visitUsers" @click="chooseVisitor(item, key)"> |
|
|
<view class="top flex"> |
|
|
<view class="top flex"> |
|
|
<view class="name PfScSemibold over2">{{item.name}}</view> |
|
|
<view class="name PfScSemibold over2">{{item.name}}</view> |
|
|
<view class="book-date" v-if="type == 0 && item.visit_time && !is_preview">已预约今日 {{ item.visit_time.split('-')[0] }} 就诊</view> |
|
|
<view class="book-date" v-if="type == 0 && item.visit_time && !is_preview">已预约今日 {{ item.visit_time.split('-')[0] }} 预约</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="bot line36"> |
|
|
<view class="bot line36"> |
|
|
身份证号:{{item.idcard_txt}} |
|
|
身份证号:{{item.idcard_txt}} |
|
@ -35,7 +35,6 @@ |
|
|
<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> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="submit" v-if="(type == 1 || type == 0) && !is_preview && visitUsers && visitUsers.length > 0" @click="toPrebook"> |
|
|
<view class="submit" v-if="(type == 1 || type == 0) && !is_preview && visitUsers && visitUsers.length > 0" @click="toPrebook"> |
|
@ -97,7 +96,7 @@ |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
cssUrl:this.cssUrl, |
|
|
cssUrl:this.cssUrl, |
|
|
popContent:'删除张杨明后,就诊记录还可以查到,确定删除吗?', |
|
|
popContent:'删除张杨明后,预约记录还可以查到,确定删除吗?', |
|
|
popTitle:'确认删除', |
|
|
popTitle:'确认删除', |
|
|
popShowCancel:true, |
|
|
popShowCancel:true, |
|
|
visitUsers:false, |
|
|
visitUsers:false, |
|
@ -153,7 +152,7 @@ |
|
|
|
|
|
|
|
|
this.depart_id = uni.getStorageSync('depart_id') |
|
|
this.depart_id = uni.getStorageSync('depart_id') |
|
|
if(!this.depart_id && this.type == 1) { |
|
|
if(!this.depart_id && this.type == 1) { |
|
|
this.$pop.modelShow('请先选择要预约的医院科室!', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的服务机构科室!', '/pages/index/index') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -167,7 +166,7 @@ |
|
|
|
|
|
|
|
|
if(this.type == 2){ |
|
|
if(this.type == 2){ |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title:'就诊人' |
|
|
title:'预约人' |
|
|
}) |
|
|
}) |
|
|
}if(this.type == 3){ |
|
|
}if(this.type == 3){ |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
@ -175,7 +174,7 @@ |
|
|
}) |
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
uni.setNavigationBarTitle({ |
|
|
uni.setNavigationBarTitle({ |
|
|
title:'请选择就诊人' |
|
|
title:'请选择预约人' |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
@ -193,7 +192,7 @@ |
|
|
reback(){ |
|
|
reback(){ |
|
|
this.$nav.navToPath('/pages/index/index') |
|
|
this.$nav.navToPath('/pages/index/index') |
|
|
}, |
|
|
}, |
|
|
// 预约时间 -跳转就诊人页面-预约时间 |
|
|
// 预约时间 -跳转预约人页面-预约时间 |
|
|
getDoctorInfo() { |
|
|
getDoctorInfo() { |
|
|
this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ |
|
|
this.$http.req('api/user/index_info', {}, 'GET').then(data=>{ |
|
|
if(data == -1) return |
|
|
if(data == -1) return |
|
@ -207,7 +206,7 @@ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
if(!hospital || Object.keys(hospital).length === 0) { |
|
|
if(!hospital || Object.keys(hospital).length === 0) { |
|
|
this.$pop.modelShow('请先选择要预约的医院科室~', '/pages/index/index') |
|
|
this.$pop.modelShow('请先选择要预约的服务机构科室~', '/pages/index/index') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -236,7 +235,7 @@ |
|
|
var that = this |
|
|
var that = this |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title:'删除', |
|
|
title:'删除', |
|
|
content:'删除'+visitor.name+'后,就诊记录还可以查到,确定删除吗?', |
|
|
content:'删除'+visitor.name+'后,预约记录还可以查到,确定删除吗?', |
|
|
success(res) { |
|
|
success(res) { |
|
|
if(!res.confirm) return |
|
|
if(!res.confirm) return |
|
|
that.$http.req('api/user/del_visitor', {id:visitor.id},'POST').then(data=>{ |
|
|
that.$http.req('api/user/del_visitor', {id:visitor.id},'POST').then(data=>{ |
|
@ -248,7 +247,7 @@ |
|
|
vistorOption(visitor){ |
|
|
vistorOption(visitor){ |
|
|
var that = this |
|
|
var that = this |
|
|
uni.showActionSheet({ |
|
|
uni.showActionSheet({ |
|
|
itemList: ['修改就诊人信息', '删除就诊人'], |
|
|
itemList: ['修改预约人信息', '删除预约人'], |
|
|
success: function (res) { |
|
|
success: function (res) { |
|
|
if(res.tapIndex == 0){ |
|
|
if(res.tapIndex == 0){ |
|
|
that.modifyVistor(visitor) |
|
|
that.modifyVistor(visitor) |
|
@ -328,7 +327,7 @@ |
|
|
}, |
|
|
}, |
|
|
toPrebook(){ |
|
|
toPrebook(){ |
|
|
if(this.selectCount <= 0){ |
|
|
if(this.selectCount <= 0){ |
|
|
this.$pop.modelShow('请选择就诊人') |
|
|
this.$pop.modelShow('请选择预约人') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|