From c35b25fc7b3f039bb525b73b4f72e9e2abf8b5d9 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期四, 29 五月 2025 15:51:05 +0800
Subject: [PATCH] 1.首检生成表格

---
 H5/Js/IPQC_XJ/Add.js |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/H5/Js/IPQC_XJ/Add.js b/H5/Js/IPQC_XJ/Add.js
index 7df1dbf..757de69 100644
--- a/H5/Js/IPQC_XJ/Add.js
+++ b/H5/Js/IPQC_XJ/Add.js
@@ -158,6 +158,23 @@
             console.log(this.tabActive)
             this.togglePopup(this.tabActive);
         },
+
+        //鐢熸垚妫�楠屽崟
+        createByWomdaa() {
+            const that = this;
+            var guid1 = that.formData.guid;//涓昏〃id
+            return that.AxiosHttp("post", 'Ipqc/createByWomdaa', {
+                inOrderGuid1: guid1,
+                userAccount: that.userInfo.loginAccount,
+                DAA001: that.formData.lotNo
+            }, false).then(res1 => {
+                that.init();
+            }).catch(error => {
+                that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                console.error('Refresh error:', error);
+            });
+        },
+
         //妫�楠屾槑缁嗗埛鏂�
         refreshJYItem() {
             const that = this;
@@ -222,7 +239,7 @@
         submit() {
             var that = this;
             that.ttrre = true;
-            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', {
+            that.AxiosHttp("post", 'FqcManager/EditModelSubmit', {
                 guid: that.formData.guid
             }, true, 1).then(function (res1) {
                 if (res1.rtnData.outSum == 1) {
@@ -422,16 +439,19 @@
                 }, true, 0).then(res1 => {
                     if (res1.status === 0) {
                         that.$notify({ type: 'success', message: '鍒犻櫎鎴愬姛' });
-                        that.init();//鍒锋柊妫�楠岄」鐩�
+                        
                     } else {
                         that.$toast.fail(res1.rtnMsg);
+                        
                     }
+                    that.init();//鍒锋柊妫�楠岄」鐩�
                 }).catch(error => {
                     that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                 });
 
             }).catch(() => {
                 // 鍙栨秷鎿嶄綔
+                that.init();//鍒锋柊妫�楠岄」鐩�
             })
         },
     }

--
Gitblit v1.9.3