From 4bd9ecdb092c88d050e58d5a150b62e5e90b65b0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 14 三月 2025 16:10:14 +0800
Subject: [PATCH] 删除无用代码

---
 src/views/CNAS/process/complaint/index.vue |   22 +---------------------
 1 files changed, 1 insertions(+), 21 deletions(-)

diff --git a/src/views/CNAS/process/complaint/index.vue b/src/views/CNAS/process/complaint/index.vue
index 93604ef..c654149 100644
--- a/src/views/CNAS/process/complaint/index.vue
+++ b/src/views/CNAS/process/complaint/index.vue
@@ -280,6 +280,7 @@
 } from '@/api/cnas/process/complaint.js'
 import { mapGetters } from "vuex";
 export default {
+  name: 'Complaint',
   components: {
     limsTable
   },
@@ -359,13 +360,6 @@
       this.addLoading = true
       addProcessComplain(this.addInfo).then((res) => {
         this.addLoading = false
-        if (res.code == 201) {
-          this.$message({
-            type: 'error',
-            message: '鏂板澶辫触'
-          })
-          return
-        }
         this.$message({
           type: 'success',
           message: '鏂板鎴愬姛'
@@ -397,13 +391,6 @@
       }
       doProcessComplain(this.currentInfo0).then((res) => {
         this.addLoading = false
-        if (res.code == 201) {
-          this.$message({
-            type: 'error',
-            message: '鎻愪氦澶辫触'
-          })
-          return
-        }
         this.$message({
           type: 'success',
           message: '鎻愪氦鎴愬姛'
@@ -466,18 +453,12 @@
       this.outLoading = true
       exportProcessComplain(this.queryParams).then(res => {
         this.outLoading = false
-        if (res.code == 201) {
-          return
-        }
         const blob = new Blob([res], { type: 'application/octet-stream' });
         this.$download.saveAs(blob, '鎶曡瘔鎯呭喌姹囨�昏〃.xlsx');
       })
     },
     handleOut(row) {
       getProcessComplain({ id: row.id }).then((res) => {
-        if (res.code == 201) {
-          return
-        }
         this.currentInfo = res.data
         this.currentInfo0 = this.HaveJson(res.data)
         this.title = '瀵煎嚭'
@@ -500,7 +481,6 @@
       })
         .then(() => {
           delProcessComplain({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refresh();
           });

--
Gitblit v1.9.3