Browse Source

fix: 审核员无限制删除操作

zh 2 năm trước cách đây
mục cha
commit
d2537bf48f

+ 6 - 7
src/views/commercialEngineering/crossDistrict/crossDistrictkList.vue

@@ -84,7 +84,6 @@ export default {
           ]
         ],
         ...(() => {
-          console.log(this.isTradeExaminer, 9999)
           return this.isTradeExaminer
             ? [
               [
@@ -140,12 +139,12 @@ export default {
                         this.$message.error('请选择需要删除的数据')
                         return
                       }
-                      for (let index = 0; index < this.recordSelected.length; index++) {
-                        if (this.recordSelected[index].orderStatus !== '已审核') {
-                          this.$message.error('请选择审核通过的数据')
-                          return
-                        }
-                      }
+                      // for (let index = 0; index < this.recordSelected.length; index++) {
+                      //   if (this.recordSelected[index].orderStatus !== '已审核') {
+                      //     this.$message.error('请选择审核通过的数据')
+                      //     return
+                      //   }
+                      // }
                       this.operateType = 'delete'
                       this.operateTitle = '删除'
                       this.operateVisible = true

+ 6 - 6
src/views/commercialEngineering/frock/frockList.vue

@@ -137,12 +137,12 @@ export default {
                         this.$message.error('请选择需要删除的数据')
                         return
                       }
-                      for (let index = 0; index < this.recordSelected.length; index++) {
-                        if (this.recordSelected[index].orderStatus !== '已审核') {
-                          this.$message.error('请选择审核通过的数据')
-                          return
-                        }
-                      }
+                      // for (let index = 0; index < this.recordSelected.length; index++) {
+                      //   if (this.recordSelected[index].orderStatus !== '已审核') {
+                      //     this.$message.error('请选择审核通过的数据')
+                      //     return
+                      //   }
+                      // }
                       this.operateType = 'delete'
                       this.operateTitle = '删除'
                       this.operateVisible = true

+ 6 - 7
src/views/commercialEngineering/homeDecoration/homeDecorationList.vue

@@ -90,7 +90,6 @@ export default {
           ]
         ],
         ...(() => {
-          console.log(this.isTradeExaminer, 9999)
           return this.isTradeExaminer
             ? [
               [
@@ -146,12 +145,12 @@ export default {
                         this.$message.error('请选择需要删除的数据')
                         return
                       }
-                      for (let index = 0; index < this.recordSelected.length; index++) {
-                        if (this.recordSelected[index].orderStatus !== '已审核') {
-                          this.$message.error('请选择审核通过的数据')
-                          return
-                        }
-                      }
+                      // for (let index = 0; index < this.recordSelected.length; index++) {
+                      //   if (this.recordSelected[index].orderStatus !== '已审核') {
+                      //     this.$message.error('请选择审核通过的数据')
+                      //     return
+                      //   }
+                      // }
                       this.operateType = 'delete'
                       this.operateTitle = '删除'
                       this.operateVisible = true