Browse Source

删除

master
kuaileWu 1 year ago
parent
commit
be80f81a98
  1. 42
      pages/visitors/visitors.vue

42
pages/visitors/visitors.vue

@ -25,11 +25,11 @@
<view class="list-wrapper2" v-if="type == 2">
<view class="item block" v-for="(item,key) in visitUsers">
<view class="top flex">
<view class="top flex" @click="vistorOption(item)">
<view class="PfScSemibold">{{item.real_name}}</view>
<view>身份证尾号{{item.id_no}}</view>
</view>
<view class="bt">
<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="left flex">
<view class="over3">{{item2.hospital_name}} {{item2.hospital_dept}}</view>
@ -108,6 +108,44 @@
}
},
methods: {
modifyVistor(visitor){
},
delVistor(visitor){
console.log(visitor)
var that = this
uni.showModal({
title:'删除',
content:'确认删除就诊人('+visitor.real_name+')?',
success(res) {
if(!res.confirm) return
that.$http.req('client/user/visit_user/'+visitor.id, {}, 'DELETE').then(data=>{
if(data == -1) return
that.getVisitors()
});
}
})
return;
},
vistorOption(visitor){
var that = this
uni.showActionSheet({
itemList: ['修改就诊人信息', '删除就诊人'],
success: function (res) {
if(res.tapIndex == 0){
that.modifyVistor(visitor)
return
}
if(res.tapIndex == 1){
that.delVistor(visitor)
return
}
},
fail: function (res) {
}
});
console.log(visitor)
},
chooseVisitor(info, key){
this.selectCount = 0
this.visitUsers[key].select = !this.visitUsers[key].select

Loading…
Cancel
Save