From 21e7326b415597938fba463ebb8b3507b7fdbdfd Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 15 三月 2025 13:57:57 +0800
Subject: [PATCH] 修改原材料下单报异常捕获方式

---
 src/views/CNAS/process/uncertainty/index.vue |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/views/CNAS/process/uncertainty/index.vue b/src/views/CNAS/process/uncertainty/index.vue
index 1ec4859..4cb8d52 100644
--- a/src/views/CNAS/process/uncertainty/index.vue
+++ b/src/views/CNAS/process/uncertainty/index.vue
@@ -66,6 +66,7 @@
 } from '@/api/cnas/process/uncertainty.js'
 import { mapGetters } from "vuex";
 export default {
+  name: 'Uncertainty',
   components: {
     limsTable,
     filePreview
@@ -148,7 +149,6 @@
       this.outLoading = true
       exportProcessEvaluate(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');
       })
@@ -194,10 +194,6 @@
         evaluateUser: this.userId
       }).then((res) => {
         this.addLoading = false;
-        if (res.code == 201) {
-          this.$message.error('璇勪环澶辫触');
-          return;
-        }
         this.$message.success('璇勪环鎴愬姛');
         this.addDialogVisible = false;
         this.refreshTable()
@@ -245,7 +241,6 @@
       })
         .then(() => {
           delProcessEvaluate({ id: row.id }).then((res) => {
-            if (res.code == 201) return;
             this.$message.success("鍒犻櫎鎴愬姛");
             this.refresh();
           });

--
Gitblit v1.9.3