From 727ee25aeb5fcaf84e2cf009b2eacd3a86bcb3ca Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期四, 28 十一月 2024 12:55:23 +0800
Subject: [PATCH] 新增 环境检测方案,环境检测单

---
 WebTM/views/模治具管理/模治具管理/Sc_Add_MouldRepairCheckBillList.html |   87 ++++++++++++++++++++++++++++++++++---------
 1 files changed, 69 insertions(+), 18 deletions(-)

diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldRepairCheckBillList.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldRepairCheckBillList.html"
index d4c08b2..75b0048 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldRepairCheckBillList.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/Sc_Add_MouldRepairCheckBillList.html"
@@ -125,6 +125,9 @@
                                                 <div class="layui-input-inline">
                                                     <input type="text" name="HMouldRepairWorkName" id="HMouldRepairWorkName" class="layui-input" value="" style="float:left;width:150px;">
                                                     <input type="hidden" name="HMouldRepairWorkID" id="HMouldRepairWorkID" class="layui-input" value="" style="float:left;width:150px;">
+                                                    <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" class="layui-input" value="" style="float:left;width:150px;">
+                                                    <input type="hidden" name="HMainSourceInterID" id="HMainSourceInterID" class="layui-input" value="0" style="float:left;width:150px;">
+                                                    <input type="hidden" name="HMainSourceEntryID" id="HMainSourceEntryID" class="layui-input" value="0" style="float:left;width:150px;">
                                                     <button type="button" lay-submit="" class="layui-btn" lay-filter="btnHMouldRepairWork" style="width:40px;">
                                                         <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                                     </button>
@@ -175,6 +178,7 @@
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script src="../../../layuiadmin/PubCustom.js"></script>
     <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
+    <script src="../../../layuiadmin/PageTitle.js"></script>
     <script>
         //鑾峰彇鍙傛暟
         var params = get_UrlVars();
@@ -208,6 +212,13 @@
             //#endregion
 
             //#region 杩涘叆椤甸潰鍗冲姞杞�
+
+            //#region 銆愬姩鎬佽幏鍙栨ā鍧楀悕绉般��
+            var HModuleType = "3817";
+            //閫氳繃鍗曟嵁绫诲瀷锛屼粠鏁版嵁搴撳姩鎬佽幏鍙栧崟鎹ā鍧楀懡鍚�,寮曠敤js鏂囦欢 PageTitle.js
+            var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType);
+            $("h1").html('<b>' + HPageTitle + '</b>');
+			//#endregion
 
             //鍒濆鍖栬〃鍗曟彃浠�
             set_InitFrom();
@@ -262,7 +273,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../../PublicPage/MouldInformation.html', 'yes'],
+                    content: ['../../妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileList.html', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -272,8 +283,8 @@
                         if (checkStatus.data.length === 0) {
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
-                        $("#HName").val(checkStatus.data[0].HName);
-                        $("#HMouldID").val(checkStatus.data[0].HItemID);
+                        $("#HName").val(checkStatus.data[0].妯″叿鍚嶇О);
+                        $("#HMouldID").val(checkStatus.data[0].hmainid);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) {
@@ -300,7 +311,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../../PublicPage/UserInformation.html', 'yes'],
+                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HEmp', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -310,7 +321,7 @@
                         if (checkStatus.data.length === 0) {
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
-                        $("#HEmpName").val(checkStatus.data[0].HName);
+                        $("#HEmpName").val(checkStatus.data[0].鑱屽憳鍚嶇О);
                         $("#HEmpID").val(checkStatus.data[0].HItemID);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
@@ -338,7 +349,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../../PublicPage/DeptInformation.html', 'yes'],
+                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_DepartmentList.html', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -348,7 +359,7 @@
                         if (checkStatus.data.length === 0) {
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
-                        $("#HDeptName").val(checkStatus.data[0].HName);
+                        $("#HDeptName").val(checkStatus.data[0].閮ㄩ棬鍚嶇О);
                         $("#HDeptID").val(checkStatus.data[0].HItemID);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
@@ -376,7 +387,7 @@
                     shift: 2,
                     area: ['80%', '80%'],
                     maxmin: true,
-                    content: ['../../PublicPage/UserInformation.html', 'yes'],
+                    content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html?Type=HManager', 'yes'],
                     btn: ['纭畾', '鍙栨秷']
                     , btn1: function (index, layero) {
 
@@ -386,7 +397,7 @@
                         if (checkStatus.data.length === 0) {
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
-                        $("#HManagerName").val(checkStatus.data[0].HName);
+                        $("#HManagerName").val(checkStatus.data[0].鑱屽憳鍚嶇О);
                         $("#HManagerID").val(checkStatus.data[0].HItemID);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
@@ -427,6 +438,10 @@
                         }
                         $("#HMouldRepairWorkName").val(checkStatus.data[0].鍗曟嵁鍙�);
                         $("#HMouldRepairWorkID").val(checkStatus.data[0].hmainid);
+
+                        $("#HMainSourceBillNo").val(checkStatus.data[0].鍗曟嵁鍙�);
+                        $("#HMainSourceInterID").val(checkStatus.data[0].hmainid);
+                        $("#HMainSourceEntryID").val(checkStatus.data[0].hsubid == undefined ? 1 : checkStatus.data[0].hsubid);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
                     }
                     , btn2: function (index, layero) {
@@ -503,7 +518,7 @@
             function Table() {
                 //琛ㄥご
                 columns = [
-                    { type: 'checkbox', fixed: 'left' }
+                    { type: 'checkbox', fixed: 'left', totalRowText: '鍚堣琛�' }
                     , { templet: '#xuhao', title: '搴忓彿', sort: true, fixed: 'left', event: "qwe" }
                     , { field: 'HRepairCheckID', title: 'HRepairCheckID', edit: 'text', hide: true }
                     , { field: 'HRepairCheckCode', title: '楠屾敹椤圭洰浠g爜', edit: 'text', event: "HRepairCheckCode" }
@@ -520,6 +535,7 @@
                     , elem: '#mainTable'
                     , toolbar: '#toolbarDemo'
                     , page: false
+                    , totalRow: true
                     , cellMinWidth: 120
                     , height: 500
                     , cols: [columns]
@@ -591,6 +607,10 @@
                                 , "HRemark": data.澶囨敞
                                 , "HMouldRepairWorkID": data.HMouldRepairWorkID
                                 , "HMouldRepairWorkName": data.HMouldRepairWorkNo
+
+                                , "HMainSourceBillNo": data.HMouldRepairWorkNo                //缁翠慨璁板綍鍗�
+                                , "HMainSourceInterID": data.HMouldRepairWorkID                //缁翠慨璁板綍鍐呯爜
+                                , "HMainSourceEntryID": data.HMouldRepairWorkEntryID == undefined ? 1 : data.HMouldRepairWorkEntryID    //缁翠慨璁板綍瀛愬唴鐮�
                             });
 
                         } else {
@@ -613,7 +633,13 @@
                     success: function (result) {
                         //console.log('gouba' + result);
                         if (result.count == 1) {
-                            option.data = result.data;
+                            var subarr = [];
+                            var data = result.data;
+                            for (var i = 0; i < result.data.length; i++) {
+                                subarr.push({ "HRepairCheckID": data[i].HRepairCheckID, "HRepairCheckCode": data[i].楠屾敹椤圭洰浠g爜, "HRepairCheckName": data[i].楠屾敹椤圭洰, "HRepairCheckContent": data[i].楠屾敹鍐呭, "HManagerID": data[i].HManagerSonID, "HManagerCode": data[i].瀛愯礋璐d汉浠g爜, "HManagerName": data[i].瀛愯礋璐d汉, "HRemark": data[i].琛ㄤ綋澶囨敞});
+                            }
+
+                            option.data = subarr;
                             table.render(option);
 
                         } else {
@@ -706,7 +732,7 @@
                                 shift: 2,
                                 area: ['80%', '80%'],
                                 maxmin: true,
-                                content: ['../../PublicPage/RepairCheckItemInformation.html', 'yes'],
+                                content: ['../../鍩虹璧勬枡/鍩虹璧勬枡/Gy_RepairCheckList.html', 'yes'],
                                 btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
 
@@ -719,9 +745,9 @@
 
                                     //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
                                     obj.update({
-                                        HRepairCheckID: checkStatus.data[0].HItemID,
-                                        HRepairCheckCode: checkStatus.data[0].HNumber,
-                                        HRepairCheckName: checkStatus.data[0].HName,
+                                        HRepairCheckID: checkStatus.data[0].hitemid,
+                                        HRepairCheckCode: checkStatus.data[0].缁翠慨楠屾敹椤圭洰浠g爜,
+                                        HRepairCheckName: checkStatus.data[0].缁翠慨楠屾敹椤圭洰,
                                     });
 
                                     layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
@@ -747,7 +773,7 @@
                                 shift: 2,
                                 area: ['80%', '80%'],
                                 maxmin: true,
-                                content: ['../../PublicPage/UserInformation.html', 'yes'],
+                                content: ['../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_EmployeeList.html', 'yes'],
                                 btn: ['纭畾', '鍙栨秷']
                                 , btn1: function (index, layero) {
 
@@ -761,8 +787,8 @@
                                     //鍚屾鏇存柊琛ㄦ牸鍜岀紦瀛樺搴旂殑鍊�
                                     obj.update({
                                         HManagerID: checkStatus.data[0].HItemID,
-                                        HManagerCode: checkStatus.data[0].HNumber,
-                                        HManagerName: checkStatus.data[0].HName
+                                        HManagerCode: checkStatus.data[0].鑱屽憳浠g爜,
+                                        HManagerName: checkStatus.data[0].鑱屽憳鍚嶇О
                                     });
 
                                     layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
@@ -832,6 +858,31 @@
 
         });
 
+        function GetMouldFileValue(obj) {  //鍣ㄥ叿妗f
+            $("#HMouldID").val(obj[0].hmainid);//鍣ㄥ叿id
+            $("#HName").val(obj[0].妯″叿鍚嶇О);//鍣ㄥ叿鍚嶇О
+        }
+
+        function GetHDeptNameValue(obj) {  //杩斿洖閮ㄩ棬
+            $("#HDeptID").val(obj[0].HItemID);//缁翠慨閮ㄩ棬id
+            $("#HDeptName").val(obj[0].閮ㄩ棬鍚嶇О);//缁翠慨閮ㄩ棬鍚嶇О
+        }
+
+        function GetHManagerValue(obj) {  //杩斿洖璐熻矗浜�
+            $("#HManagerName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HManagerID").val(obj[0].HItemID);
+        }
+
+        function GetHEmpValue(obj) {  //杩斿洖楠屾敹浜�
+            $("#HEmpName").val(obj[0].鑱屽憳鍚嶇О);
+            $("#HEmpID").val(obj[0].HItemID);
+        }
+
+        function GetMouldRepairWorkValue(obj) {  //杩斿洖缁翠慨璁板綍
+            $("#HMouldRepairWorkName").val(obj[0].鍗曟嵁鍙�);
+            $("#HMouldRepairWorkID").val(obj[0].hmainid);
+        }
+
     </script>
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1