|
@ -26,17 +26,17 @@ |
|
|
<view class="list-wrapper2" v-if="type == 2"> |
|
|
<view class="list-wrapper2" v-if="type == 2"> |
|
|
<view class="item block" v-for="(item,key) in visitUsers"> |
|
|
<view class="item block" v-for="(item,key) in visitUsers"> |
|
|
<view class="top flex" @click="vistorOption(item)"> |
|
|
<view class="top flex" @click="vistorOption(item)"> |
|
|
<view class="PfScSemibold">{{item.real_name}}</view> |
|
|
<view class="PfScSemibold">{{item.visitor_name}}</view> |
|
|
<view>身份证尾号:{{item.id_no}}</view> |
|
|
<view>身份证尾号:{{item.idcard_ext}}</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="bt" v-if="item.hospital_info.length>0"> |
|
|
<view class="bt" v-if="item.hospital_info.length>0"> |
|
|
<view class="bt-item flex" v-for="(item2,key2) in item.hospital_info" @click="showNotice(item2.popmsgIndex)"> |
|
|
<!-- <view class="bt-item flex" v-for="(item2,key2) in item.hospital_info" @click="showNotice(item2.popmsgIndex)"> --> |
|
|
|
|
|
<view class="bt-item flex" v-for="(item2,key2) in item.hospital_info"> |
|
|
<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> |
|
|
<view class="status2" v-else-if="item2.is_expire">{{item2.expire_day}}未看病</view> |
|
|
<view class="status2" v-else-if="item2.is_expire">{{item2.expire_desc}}</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
<view class="more right" v-if="item2.times>=0">剩余<text>{{item2.times}}</text>次</view> |
|
|
<view class="more right" v-if="item2.times>=0">剩余<text>{{item2.times}}</text>次</view> |
|
|
<view class="owe right" v-else>超<text>{{-item2.times}}</text>次</view> |
|
|
<view class="owe right" v-else>超<text>{{-item2.times}}</text>次</view> |
|
|
</view> |
|
|
</view> |
|
@ -117,10 +117,10 @@ |
|
|
var that = this |
|
|
var that = this |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title:'删除', |
|
|
title:'删除', |
|
|
content:'确认删除就诊人('+visitor.real_name+')?', |
|
|
content:'确认删除就诊人('+visitor.visitor_name+')?', |
|
|
success(res) { |
|
|
success(res) { |
|
|
if(!res.confirm) return |
|
|
if(!res.confirm) return |
|
|
that.$http.req('client/user/visit_user/'+visitor.id, {}, 'DELETE').then(data=>{ |
|
|
that.$http.req('setting_visitor', {id:visitor.id,is_del:1}).then(data=>{ |
|
|
if(data == -1) return |
|
|
if(data == -1) return |
|
|
that.getVisitors() |
|
|
that.getVisitors() |
|
|
}); |
|
|
}); |
|
|