Crunchy
2024-07-22 ab87478ba941f90cd60252cf4d34aa585dc1a63f
src/components/view/b1-inspect-order-plan.vue
@@ -233,7 +233,10 @@
                     font: '检验',
                     type: 'text',
                     method: 'handleInspection',
                     disabFun: (row, index) => {
                     // disabFun: (row, index) => {
                     //    return row.userId == null || row.insState == 3 || row.insState == 5||JSON.parse(localStorage.getItem("user")).name != row.userName
                     // }
              disabFun: (row, index) => {
                        return row.userId == null || row.insState == 3 || row.insState == 5
                     }
                  }, {
@@ -242,7 +245,7 @@
                     type: 'text',
                     method: 'handleConnect',
                     disabFun: (row, index) => {
                        return row.userId == null || row.orderUserId == null || row.insState == 5  || row.insState == 3
                        return row.userId == null || row.orderUserId == null || row.insState == 5  || row.insState == 3||JSON.parse(localStorage.getItem("user")).name != row.userName
                     }
                  },
                  {
@@ -251,7 +254,7 @@
                     type: 'text',
                     method: 'handleReview',
                     disabFun: (row, index) => {
                        return row.userId == null || row.insState != 3 || row.verifyUser != 1
                        return row.userId == null || row.insState != 3 || row.verifyUser != 1||JSON.parse(localStorage.getItem("user")).name != row.userName
                     }
                  }, {
                     id: '',
@@ -388,15 +391,15 @@
            this.loading = false;
                  this.$message.success("认领成功")
                  this.claimVisible = false
                  this.refreshTable()
                  this.refreshTable('page')
               }
            }).catch(error => {
               console.error(error)
          this.loading = false;
            })
         },
         refreshTable() {
            this.$refs.insOrderPlan.selectList()
         refreshTable(e) {
            this.$refs.insOrderPlan.selectList(e)
         },
         changeRowClass({
            row,
@@ -491,7 +494,7 @@
         },
         goback() {
            this.state = 0
            this.refreshTable()
            this.refreshTable('page')
         },
      handleInspection(row){
        this.state = 1;
@@ -511,7 +514,7 @@
               if (res.code === 200) {
            this.loading = false;
                  this.$message.success("操作成功")
                  this.refreshTable()
                  this.refreshTable('page')
               }
          this.connectVisible = false
            }).catch(error => {