From 55442ddb05bdadb4672b5de0ce2a1dc6ec78ded3 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期四, 20 三月 2025 14:00:07 +0800
Subject: [PATCH] 1.样式确认。

---
 H5/Js/LLJ/Add.js |  113 ++++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 89 insertions(+), 24 deletions(-)

diff --git a/H5/Js/LLJ/Add.js b/H5/Js/LLJ/Add.js
index a67c2d0..a6621c6 100644
--- a/H5/Js/LLJ/Add.js
+++ b/H5/Js/LLJ/Add.js
@@ -25,9 +25,18 @@
                 boardStyle: ""
             },
             isShowTable: false,
-            tableData: [],
+            tableData: [],//杩斿洖鐨勬楠岄」鐩�
+            jymxData: [],//灞曠ず鐨勬楠岄」鐩�
 
-            ttrre: false
+            ttrre: false,
+            show: false,
+            tableMxData: [],
+            tabActive: 0,
+            inputValue: '',//鐗瑰緛鍊艰緭鍏�
+            resultValue: '',//妫�楠岀粨鏋滃綍鍏�
+            showButton: false,//鍙充笂瑙掕彍鍗曡Е鍙�
+            okValue: '',
+            ngValue: ''
         }
     },
     mounted() {
@@ -42,10 +51,44 @@
         this.init();
     },
     methods: {
-        init() {
+        togglePopup(index) {
+            // 鍒囨崲鎸囧畾绱㈠紩鐨� popup 鐘舵��
             var that = this;
+            this.show = true;
+            console.log(index);
+            console.log(that.tableData[index].guid);
+            var mxguid = that.tableData[index].guid;
+            that.jymxData = that.tableData[index];
+            that.tabActive = index;
+            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/GetModel12', {
+                parentGuid : "",
+                guid : mxguid ,
+            }, true, 1).then(function (res1) {
+                if (res1.rtnCode == 1) {
+                    that.tableMxData = res1.rtnData;
+                } else {
+                    that.$toast.fail(res1.rtnMsg);
+                }
+            }).catch(function (error) {
+                that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+                console.log(error);
+            });
+
+
+        },
+
+        handleTabClick() {
+            console.log(this.tabActive)
+            this.togglePopup(this.tabActive)
+        },
+
+        init() {
+            
+            //alert(this.Request("id"));
+            var that = this;
+            that.showButton = false;
             that.AxiosHttp("post", 'LLJ/getPage', {
-                id: this.formData.id,
+                id: that.Request("id"),
                 pageIndex: 1,
                 limit: 1,
             }, false)
@@ -55,7 +98,7 @@
                         that.formData = data;
 
                         that.AxiosHttp("post", 'LLJ/getJYItem', {
-                            id: that.formData.id,
+                            //id: that.formData.guid,
                             releaseNo: that.formData.releaseNo
                         }, false).then(function (res1) {
                             let tableData = res1.data.tbBillList
@@ -70,9 +113,9 @@
                                 }
                             });
                             that.tableData = tableData;
-                            if (that.tableData.length === 0) {
-                                that.isShowTable = true;
-                            }
+                            //if (that.tableData.length === 0) {
+                            //    that.isShowTable = true;
+                            //}
                         }).catch(function (error) {
                             that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
                             console.log(error);
@@ -87,17 +130,39 @@
         submit() {
             var that = this;
 
+            //if (that.formdata.remarks == undefined && that.formdata.fcheckresu == "涓嶅悎鏍�") {
+            //    that.$toast.fail("妫�楠岀粨鏋滀负涓嶅悎鏍兼椂锛岄渶瑕佸~鍐欎笉鍚堟牸鎻忚堪锛�");
+            //    return;
+            //}
+
+
+
             that.ttrre = true;
 
-            that.AxiosHttp("post", 'LLJ/IqcQaSubmit', {
-                userNo: this.userInfo.loginAccount,
-                releaseNo: this.formData.releaseNo
-            }, false).then(function (res1) {
-                if (res1.status == 1) {
-                    that.$toast.fail(res1.message);
-                } else {
+            //that.AxiosHttp("post", 'LLJ/IqcQaSubmit', {
+            //    userNo: this.userInfo.loginAccount,
+            //    releaseNo: this.formData.releaseNo
+            //}, false).then(function (res1) {
+            //    if (res1.status == 1) {
+            //        that.$toast.fail(res1.message);
+            //    } else {
+            //        that.$notify({ type: 'success', message: '鎻愪氦鎴愬姛' });
+            //        that.init();
+            //    }
+            //    that.ttrre = false
+            //}).catch(function (error) {
+            //    that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
+            //    that.ttrre = false
+            //    console.log(error);
+            //});
+            that.AxiosHttp("post", 'MesQaItemsDetect01Manager/EditModelSubmit', {
+                guid: that.formData.guid
+            }, true, 1).then(function (res1) {
+                if (res1.rtnCode == 1) {
                     that.$notify({ type: 'success', message: '鎻愪氦鎴愬姛' });
                     that.init();
+                } else {
+                    that.$toast.fail(res1.rtnMsg);
                 }
                 that.ttrre = false
             }).catch(function (error) {
@@ -110,27 +175,27 @@
 
             var that = this;
 
-            that.ttrre = true;
 
             that.AxiosHttp("post", 'MesQaItemsDetect01Manager/ReloadModel5', {
-                guid: "158f4324-955e-4a3b-aafa-09babf3c3368"
+                guid: that.formData.guid
             }, true, 1).then(function (res1) {
-                if (res1.status == 1) {
-                    that.$toast.fail(res1.message);
-                } else {
-                    that.$notify({ type: 'success', message: '鎻愪氦鎴愬姛' });
+                if (res1.rtnCode == 1) {
+                    that.$notify({ type: 'success', message: '閲嶆柊鍔犺浇鎴愬姛' });
                     that.init();
+                } else {
+                    that.$toast.fail(res1.rtnMsg);
                 }
-                that.ttrre = false
             }).catch(function (error) {
                 that.$toast.fail("缃戠粶閿欒锛岃閲嶈瘯锛�");
-                that.ttrre = false
                 console.log(error);
             });
 
         },
         GetBack1() {
             window.history.back();
-        }
+        },
+        onClickRight() {
+            
+        },
     }
 })
\ No newline at end of file

--
Gitblit v1.9.3