啊鑫
2025-07-20 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
pages/QC/LLJ/List.vue
@@ -30,7 +30,6 @@
         </view>
      </view>
      <!-- 检验单列表 -->
      <view class="inspection-list">
         <!-- 检验单卡片1 -->
@@ -302,10 +301,19 @@
         },
         onShow() {
            //每次进入页面都会执行的方法
            // this.pageIndex = 1;
            // this.data = [];
            // //this.current = 0
            // 检查是否需要刷新数据
            const app = getApp();
            if (app.globalData && app.globalData.needRefreshList) {
               // 清除标记
               app.globalData.needRefreshList = false;
               // 强制刷新数据
               this.pageIndex = 1; // 重置页码
               this.inspectionList = []; // 清空列表数据
               this.init(); // 重新加载数据
            } else {
               // 正常刷新
            this.init();
            }
         },
         async onLoad() {
            if (this.$loginInfo.roleid.indexOf("90134") != -1 || this.$loginInfo.account == "PL017") {