Browse Source

fix show more record

privacy
刘嘉炜 1 year ago
parent
commit
fc5ca7d142
  1. 22
      src/subpackage/device/components/order/reservation_people_detail/reservation_people_detail.vue

22
src/subpackage/device/components/order/reservation_people_detail/reservation_people_detail.vue

@ -62,7 +62,7 @@
<text>{{orderInfo.date || '-'}}</text>
</view>
<view class="rb-code">
<view class="rc-item" v-for="(e,i) in orderInfo.sessions" :key="i">
<view class="rc-item" v-for="(e, i) in orderInfo.sessions" :key="i">
<view class="ri-container">
<view class="ri-tit">验证码{{i+1}}</view>
<view class="ri-section">
@ -73,7 +73,7 @@
<block v-if="e.status==2">
<block v-if="filterVerifyRecord(e).length> 0">
<block v-for="(k, j) in filterVerifyRecord(e)" :key="j">
<view class="rs-record" v-if="isShowEnterRecord ? true : j == 0">
<view class="rs-record" v-if="isShowEnterRecordIndexArr.includes(i) ? true : j == 0">
<view class="rs-view"><view>核销方式{{ k.verify_desc || '-' }}</view></view>
<view class="rs-view"><view>核销时间{{ k.verify_time || '-' }}</view></view>
<view class="rs-view"><view>离场方式{{ k.verify_leave_desc || '-' }}</view></view>
@ -94,11 +94,11 @@
</view>
<view
class="ri-bar"
@click="isShowEnterRecord = !isShowEnterRecord"
@click="showEnterRecordBtn(i)"
v-if="filterVerifyRecord(e).length > 1"
>
<view class="rb-txt">{{ isShowEnterRecord ? '收起' : '查看全部进场记录' }}</view>
<image :class="['rb-icon', isShowEnterRecord ? 'rb-active' : '']" mode="aspectFit" src="/subpackage/device/static/images/circular_arrow.png"></image>
<view class="rb-txt">{{ isShowEnterRecordIndexArr.includes(i) ? '收起' : '查看全部进场记录' }}</view>
<image :class="['rb-icon', isShowEnterRecordIndexArr.includes(i) ? 'rb-active' : '']" mode="aspectFit" src="/subpackage/device/static/images/circular_arrow.png"></image>
</view>
</view>
</view>
@ -356,13 +356,21 @@ export default {
sucInfo: {}, //IC
// 20230823 ID1001365
isShowEnterRecord: false,
isShowEnterRecordIndexArr: [],
};
},
methods:{
showEnterRecordBtn(i){
let { isShowEnterRecordIndexArr } = this;
if(isShowEnterRecordIndexArr.includes(i)){
this.isShowEnterRecordIndexArr = isShowEnterRecordIndexArr.filter(e=>e!==i);
}else{
this.isShowEnterRecordIndexArr = [ ...isShowEnterRecordIndexArr, i ];
}
},
filterVerifyRecord(e){
if(e?.many_enter_record?.length === -1)return [];
return e?.many_enter_record?.filter(e=>e.verify_type != 0) || [];
return e?.many_enter_record?.filter(e=>e.verify_time !== '') || [];
},
verifyBtn(){
this.$emit('verify');

Loading…
Cancel
Save