فهرست منبع

refactor: 移除验收成功后的重复检查

yusheng 2 ماه پیش
والد
کامیت
db2b2f8dd7
1فایلهای تغییر یافته به همراه5 افزوده شده و 7 حذف شده
  1. 5 7
      src/views/bpm/tickets/components/RepairDetailsDialog.vue

+ 5 - 7
src/views/bpm/tickets/components/RepairDetailsDialog.vue

@@ -514,11 +514,9 @@
           workOrderId: this.row.id
         };
         acceptance(params).then((res) => {
-          if (res.success) {
-            this.$message.success('验收成功!');
-            this.$emit('refesh');
-            this.equipmentdialog = false;
-          }
+          this.$message.success('验收成功!');
+          this.$emit('refesh');
+          this.equipmentdialog = false;
         });
       },
       //驳回按钮事件
@@ -547,14 +545,14 @@
           workOrderId: this.row.id
         };
         acceptance(params).then((res) => {
-          if (res.code == 0) {
+          // if (res.code == 0) {
             this.$message.success(
               orderStatus == 4 ? '审核通过!' : '驳回成功!'
             );
             this.$emit('refesh');
             this.btnLoading = false;
             this.equipmentdialog = false;
-          }
+          // }
         });
       }
     },