zrg
2025-09-05 46cc7a29dc1f9b3dffee5cdcb9b7f9dfdac3b16d
pages/weiwailingliao/table.vue
@@ -2,7 +2,7 @@
   <view class="content">
      <view class="tabs">
         <view :class="tabs == 0 ? 'on':''" @tap="changeTab(0)">缓存列表</view>
         <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">已校验列表</view>
         <view :class="tabs == 1 ? 'on':''" @tap="changeTab(1)">已上传列表</view>
      </view>
      
      <view style="width: 100%;height: 16rpx;background-color: #e5e5e5;"></view>
@@ -66,6 +66,9 @@
      <view class="list" v-for="(item,index) in showList" :key="index" v-if="tabs==1">
         <uni-card :title="item.日期" :extra="item.单据号" style="margin: 10px;" @tap="showDetail = showDetail==index?-1:index">
            <view class="card-detail">
               <view class="detail" v-if="item.状态">
                  <text>状态:</text>{{item.状态}}
               </view>
               <view class="detail" v-if="item.制单人">
                  <text>制单人:</text>{{item.制单人}}
               </view>
@@ -90,6 +93,9 @@
            </view>
      
            <view class="more">
                    <view class="part" style="color: #3a78ff;width: 100%;" @tap.stop="qrCodeDisplay(item)">
                        <uni-icons type="scan" style="color: #3a78ff;margin-right: 10rpx;" size="18"></uni-icons>显示二维码
                    </view>
               <view class="part" style="color: #d98d00;width: 100%;" @tap.stop="revoke(item)">
                  <uni-icons type="undo" style="color: #d98d00;margin-right: 10rpx;" size="18"></uni-icons>撤销
               </view>
@@ -100,12 +106,14 @@
      <view class="over" v-if="!listData || listData.length == 0">暂无数据</view>
      <view class="over" v-if="listData.length != 0 && listData.length != showList.length">加载中...</view>
      <view class="over" v-if="listData.length != 0 && listData.length == showList.length">已到底</view>
   </view>
        <BarCodePopupVue ref="barcodePopup"></BarCodePopupVue>
    </view>
</template>
<script>
   import { getUserInfo } from "@/utils/auth.js";
   export default {
   import BarCodePopupVue from "../../components/BarCodePopup/BarCodePopup.vue";
    export default {
       data() {
           return {
            userInfo:getUserInfo(),
@@ -146,7 +154,15 @@
            uni.stopPullDownRefresh();
         }, 1000);
      },
        components: {
            BarCodePopupVue
        },
       methods: {
            async qrCodeDisplay(item) {
                this.$refs.barcodePopup.setCodeInfo(item.HBillNo)
                await this.$nextTick()
                this.$refs.barcodePopup.open()
            },
         CheckModRight(){
            uni.request({
                url: this.serverUrl + '/WEBSController/CheckModRight_Json',