From d6e3826610b518a97c3622c61ffa4cafc3f0cd36 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 21 二月 2025 16:08:58 +0800
Subject: [PATCH] Merge branch 'dev' of http://114.132.189.42:9002/r/lims-ruoyi-before into dev

---
 src/views/business/productOrder/components/add.vue |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/views/business/productOrder/components/add.vue b/src/views/business/productOrder/components/add.vue
index 4a13829..62c5d87 100644
--- a/src/views/business/productOrder/components/add.vue
+++ b/src/views/business/productOrder/components/add.vue
@@ -547,7 +547,7 @@
   selectStandardTreeList2
 } from "@/api/business/rawMaterialOrder";
 import {
-  addInsOrder, delInsOrderTemplate,
+  addInsOrder, addInsOrderTemplate, delInsOrderTemplate,
   getQuarterOnOrder,
   selectOrderManDay,
   updateInsOrder,
@@ -1634,17 +1634,14 @@
               sampleList: this.sampleList,
               selectTree:this.selectTree
             })
-          }, {
-            headers: {
-              'Content-Type': 'application/json'
-            }
           }).then(res => {
-            if (res.code == 201) return
             this.templateLoading = false;
             this.templateDia = false;
             this.$message.success('淇濆瓨鎴愬姛')
             this.selectInsOrderTemplate()
             this.templateName = ''
+          }).catch(e => {
+            this.templateLoading = false;
           })
         } else {
           this.$message.error('璇峰~鍐欐ā鏉垮悕绉�')
@@ -1947,7 +1944,7 @@
       },
       // 杈呭姪绾胯姱閰嶇疆
       openAuxiliaryCore () {
-        if (this.active === 1) {
+        if (this.active == 1) {
           if (this.sampleIds.length === 0) {
             this.$message.error("鏈�夋嫨鏍峰搧")
           } else if (this.sampleIds.length === 1) {
@@ -1975,7 +1972,7 @@
         }
       },
       openCableConfig() {
-        if (this.active === 1) {
+        if (this.active == 1) {
           if (this.sampleIds.length === 0) {
             this.$message.error("鏈�夋嫨鏍峰搧")
           } else if (this.sampleIds.length === 1) {

--
Gitblit v1.9.3