From 368b525db5f3f4f82b13c074341708a46b9a4111 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 11 三月 2025 09:11:29 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

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

diff --git a/src/views/CNAS/process/complaint/index.vue b/src/views/CNAS/process/complaint/index.vue
index 5a998b3..aadc61c 100644
--- a/src/views/CNAS/process/complaint/index.vue
+++ b/src/views/CNAS/process/complaint/index.vue
@@ -348,40 +348,9 @@
     ...mapGetters(["userId"]),
   },
   mounted() {
-    // this.entityCopy = this.HaveJson(this.componentData.entity);
     this.getList()
   },
   methods: {
-    // 鏉冮檺鍒嗛厤
-    getPower() {
-      let power = JSON.parse(sessionStorage.getItem('power'))
-      let up = false
-      let del = false
-      let add = false
-      let out = false
-      for (var i = 0; i < power.length; i++) {
-        if (power[i].menuMethod == 'doProcessComplain') {
-          up = true
-        }
-        if (power[i].menuMethod == 'addProcessComplain') {
-          add = true
-        }
-        if (power[i].menuMethod == 'delProcessComplain') {
-          del = true
-        }
-        if (power[i].menuMethod == 'exportProcessComplain') {
-          out = true
-        }
-      }
-      if (!up) {
-        this.componentData.do.splice(2, 1)
-      }
-      if (!del) {
-        this.componentData.do.splice(1, 1)
-      }
-      this.outPower = out
-      this.addPower = add
-    },
     openAdd() {
       this.addInfo = {}
       this.addDialogVisible = true
@@ -390,13 +359,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: '鏂板鎴愬姛'
@@ -428,13 +390,6 @@
       }
       doProcessComplain(this.currentInfo0).then((res) => {
         this.addLoading = false
-        if (res.code == 201) {
-          this.$message({
-            type: 'error',
-            message: '鎻愪氦澶辫触'
-          })
-          return
-        }
         this.$message({
           type: 'success',
           message: '鎻愪氦鎴愬姛'
@@ -497,18 +452,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 = '瀵煎嚭'
@@ -531,7 +480,6 @@
       })
         .then(() => {
           delProcessComplain({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refresh();
           });

--
Gitblit v1.9.3