Houjie
2025-06-03 2fda34643bc22e25f6c569415da5f955c81536bf
pages/maintenanceReport/maintenanceReport.vue
@@ -63,7 +63,8 @@
                  <view class="flex">
                     <view class="flex-sub text-light bg-white  padding-xs margin-xs radius">操作:</view>
                     <view class="flex-sub bg-blue padding-xs margin-xs radius text-sm text-center"
                     <view v-if="authIncludes('eam:repair:collect')"
                        class="flex-sub bg-blue padding-xs margin-xs radius text-sm text-center"
                        @click.stop="handleStartWork(item)" hover-class="is-hover">领取</view>
                  </view>
@@ -116,10 +117,17 @@
            announcement1: [],
            msg1Count: 0,
            msg2Count: 0,
            msg1Title: ""
            msg1Title: "",
            equipmentId: ''
         }
      },
      mounted() {
         console.log('从 store 获取的 auth:', this.$store.getters.getAuth)
      },
      computed: {
         authList() {
            return this.$store.getters.getAuth || []
         },
         top() {
            return this.CustomBar * 2 + 50
         },
@@ -132,15 +140,26 @@
      },
      onShow() {
         if (this.mescroll) {
            this.mescroll.resetUpScroll()
         }
      },
      onLoad: function(options) {
         this.equipmentId = options.equipmentId ?
            decodeURIComponent(options.equipmentId) :
            '';
      },
      created() {},
      methods: {
         /**
          * @param {Object} code按钮权限
          */
         authIncludes(code) {
            return this.authList.some(auth => auth.action === code)
         },
         /**
          * 领取
          */
@@ -204,7 +223,8 @@
                  pageSize: page.size,
                  order: 'desc',
                  column: 'createTime',
                  reportStatus: 'WAIT_REPAIR'
                  reportStatus: 'WAIT_REPAIR',
                  equipmentId: this.equipmentId || ''
               },
            }).then(res => {