From 39b32178b123b032c6a4b466181461954cd9d9ee Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期三, 04 九月 2024 18:06:51 +0800
Subject: [PATCH] 1

---
 WebTM/WebTM.csproj.user                                         |    2 
 WebTM/views/计划管理/工艺路线/Gy_MaterialTechParamBillMain.html         |    2 
 WebTM/views/质量管理/质量报表/QC_FiveMenOneRingList.html                |  562 +++++++++++++++++++++++++-------
 WebTM/views/模治具管理/器具报表/Sc_MouldLifeUsePicReport.html            |  290 +++--------------
 WebTM/views/采购管理/采购订单/Cg_POOrderBillEdit.html                   |   45 ++
 WebTM/views/基础资料/公用基础资料/Add_Edit_Gy_Material.html               |   57 +-
 WebTM/views/设备管理/设备工艺参数订单点检表/SB_EquipICMOTechParamBillEdit.html |   56 +-
 WebTM/views/home/console111.html                                |    5 
 8 files changed, 594 insertions(+), 425 deletions(-)

diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index e39639b..9f5f7b5 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -1,7 +1,7 @@
 锘�<?xml version="1.0" encoding="utf-8"?>
 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
   <PropertyGroup>
-    <NameOfLastUsedPublishProfile>D:\鏅轰簯杩堟�漒MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
+    <NameOfLastUsedPublishProfile>D:\vs\椤圭洰浠g爜\MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
     <ProjectView>ProjectFiles</ProjectView>
     <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
diff --git a/WebTM/views/home/console111.html b/WebTM/views/home/console111.html
index ee6e0f3..f0816c8 100644
--- a/WebTM/views/home/console111.html
+++ b/WebTM/views/home/console111.html
@@ -28,6 +28,7 @@
         .layui-table-box {
             height: 400px;
         }
+
         .welcome .layui-card {
             border: 1px solid #f2f2f2;
             border-radius: 5px;
@@ -71,7 +72,7 @@
     <script>
         /^http(s*):\/\//.test(location.href) || alert('璇峰厛閮ㄧ讲鍒� localhost 涓嬪啀璁块棶');
     </script>
-
+    <script src="./js/index.js"></script>
 </head>
 <body layadmin-themealias="default">
     <div class="layui-fluid">
@@ -303,7 +304,6 @@
     <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
     <script src="../../../layuiadmin/PubCustom.js"></script>
     <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script>
-    <script src="./js/index.js"></script>
     <script>
         layui.config({
             base: '../../layuiadmin/' //闈欐�佽祫婧愭墍鍦ㄨ矾寰�
@@ -462,6 +462,7 @@
                                 var liObj = document.createElement("li");
                                 liObj.innerHTML = "<span>" + layui.util.toDateString(noticeInfoList[i].鏃ユ湡, 'MM-dd') + "</span>";
                                 /* + " < a href = \"viewpage.html\" >" + noticeInfoList[i].涓婚 + "</a >";*/
+                                console.log(liObj);
                                 list.appendChild(liObj);
                             }
                         } else {
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_Material.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_Material.html"
index e050fa4..e2e88f9 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_Material.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\345\205\254\347\224\250\345\237\272\347\241\200\350\265\204\346\226\231/Add_Edit_Gy_Material.html"
@@ -101,15 +101,15 @@
                                                         </div>
                                                     </div>
                                                     <!--<div class="layui-inline">
-                        <label class="layui-form-label">涓昏閲忓崟浣嶏細</label>
-                        <div class="layui-input-inline">
-                            <input class="layui-input" type="text" name="HUnitName" id="HUnitName" value="0" readonly>
-                            <input class="layui-input" type="hidden" name="HUnitID" id="HUnitID" value="0" readonly>
-                            <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;">
-                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
-                            </button>
-                        </div>
-                    </div>-->
+                                                        <label class="layui-form-label">涓昏閲忓崟浣嶏細</label>
+                                                        <div class="layui-input-inline">
+                                                            <input class="layui-input" type="text" name="HUnitName" id="HUnitName" value="0" readonly>
+                                                            <input class="layui-input" type="hidden" name="HUnitID" id="HUnitID" value="0" readonly>
+                                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="Department" style="width:40px;">
+                                                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                                            </button>
+                                                        </div>
+                                                    </div>-->
                                                 </div>
                                                 <div class="layui-inline">
                                                     <label class="layui-form-label">鍏嬮噸</label>
@@ -229,7 +229,7 @@
                                                     </div>
                                                 </div>
                                                 <div class="layui-inline">
-                                                    <label class="layui-form-label">涓�娆″悎鏍�<br/>鐜囨爣鍑嗗��</label>
+                                                    <label class="layui-form-label">涓�娆″悎鏍�<br />鐜囨爣鍑嗗��</label>
                                                     <div class="layui-input-inline">
                                                         <input class="layui-input" name="HOnceRightRate" id="HOnceRightRate" autocomplete="off" onfocus="this.select();" value="0" style="margin-top:10px;">
                                                     </div>
@@ -332,8 +332,8 @@
                                                     <div class="layui-input-inline">
                                                         <input class="layui-input" name="HSecUnitRate" lay-verify="HSecUnitRate" id="HSecUnitRate" autocomplete="off" value="0">
                                                         <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="HDormID-BT">
-                    <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
-                </button>-->
+                                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                                        </button>-->
                                                         <!--<input id="HDormID" name="HDormID" type="hidden" />-->
                                                     </div>
                                                 </div>
@@ -432,9 +432,9 @@
                                             </div>
                                             <div class="layui-inline">
                                                 <!--<label class="layui-form-label"> 璁¢噺鍗曚綅缁勶細</label>
-        <div class="layui-input-inline">
-            <input class="layui-input" name="HUnitGroupID" lay-verify="HUnitGroupID" id="HUnitGroupID">
-        </div>-->
+                                                <div class="layui-input-inline">
+                                                    <input class="layui-input" name="HUnitGroupID" lay-verify="HUnitGroupID" id="HUnitGroupID">
+                                                </div>-->
                                                 <div class="layui-inline">
                                                     <label class="layui-form-label">璁¢噺鍗曚綅缁�</label>
                                                     <div class="layui-input-inline">
@@ -503,7 +503,18 @@
                                                     </button>
                                                 </div>
                                             </div>
-
+                                            <div class="layui-inline">
+                                                <label class="layui-form-label">浜嬩笟閮細</label>
+                                                <div class="layui-input-inline">
+                                                    <div class="layui-form-item">
+                                                        <select name="HDivisionID" id="HDivisionID" lay-verify="HDivisionID">
+                                                            <option value="0" selected>璇烽�夋嫨</option>
+                                                            <option value="3" selected>娉ㄥ浜嬩笟閮�</option>
+                                                            <option value="4">杞浜嬩笟閮�</option>
+                                                        </select>
+                                                    </div>
+                                                </div>
+                                            </div>
                                             <div class="layui-row">
 
                                                 <div class="layui-inline">
@@ -796,7 +807,7 @@
             if (OperationType == 4) {
                 $("#HNumber").attr("readonly", true);
                 setHNumber(HMaterTypeID);
-     
+
             }
 
             $(this).removeAttr("lay-key");
@@ -913,8 +924,8 @@
                 } else {
                     var TaxRate = $("#HTaxRate").val();
                     var HProfitRate = $("#HProfitRate").val();
-                    var HTaxCost = Number((value * (100 + TaxRate*1) / 100).toFixed(4))   //鍚◣鎴愭湰浠� = 涓嶅惈绋庢垚鏈� * 锛�100 + 绋庣巼锛�/100 
-                    var HFootPrice = Number((HTaxCost * (100 + HProfitRate*1) / 100).toFixed(4))// 缁撶畻浠� = 鍚◣鎴愭湰浠� * 锛�100+ 鍒╂鼎鐜囷級/100
+                    var HTaxCost = Number((value * (100 + TaxRate * 1) / 100).toFixed(4))   //鍚◣鎴愭湰浠� = 涓嶅惈绋庢垚鏈� * 锛�100 + 绋庣巼锛�/100
+                    var HFootPrice = Number((HTaxCost * (100 + HProfitRate * 1) / 100).toFixed(4))// 缁撶畻浠� = 鍚◣鎴愭湰浠� * 锛�100+ 鍒╂鼎鐜囷級/100
                     $("#HTaxCost").val(HTaxCost);
                     $("#HFootPrice").val(HFootPrice);
                 }
@@ -929,8 +940,8 @@
                 } else {
                     var TaxRate = $("#HTaxRate").val();
                     var HProfitRate = $("#HProfitRate").val();
-                    var HNoTaxCost = Number((value / (100 + TaxRate*1) * 100).toFixed(4))//涓嶅惈绋庢垚鏈环 = 鍚◣鎴愭湰/ 锛�100 + 绋庣巼锛�/100 缁撶畻浠� 
-                    var HFootPrice = Number((value * (100 + HProfitRate*1) / 100).toFixed(4))
+                    var HNoTaxCost = Number((value / (100 + TaxRate * 1) * 100).toFixed(4))//涓嶅惈绋庢垚鏈环 = 鍚◣鎴愭湰/ 锛�100 + 绋庣巼锛�/100 缁撶畻浠�
+                    var HFootPrice = Number((value * (100 + HProfitRate * 1) / 100).toFixed(4))
                     $("#HNoTaxCost").val(HNoTaxCost);
                     $("#HFootPrice").val(HFootPrice);
                 }
@@ -1105,7 +1116,7 @@
                 $.ajax({
                     url: GetWEBURL() + '/Gy_Material/getMaxNum',
                     type: "GET",
-                    data: { "HMaterTypeID": TypeID, "user": sessionStorage["HUserName"], "Organization": sessionStorage["Organization"]},
+                    data: { "HMaterTypeID": TypeID, "user": sessionStorage["HUserName"], "Organization": sessionStorage["Organization"] },
                     success: function (data1) {
                         if (data1.data != null) {
                             layer.close(ajaxLoad);
@@ -1674,8 +1685,6 @@
                         if (checkStatus.data.length === 0) {
                             return layer.msg('璇烽�夋嫨鏁版嵁');
                         }
-                        console.log(checkStatus.data[0].椤圭洰缁�);
-                        console.log(checkStatus.data[0].HInterID);
                         $("#HProjectName").val(checkStatus.data[0].椤圭洰缁�);
                         $("#HProjectBillMainID ").val(checkStatus.data[0].HInterID);
                         layer.close(index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
diff --git "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\345\231\250\345\205\267\346\212\245\350\241\250/Sc_MouldLifeUsePicReport.html" "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\345\231\250\345\205\267\346\212\245\350\241\250/Sc_MouldLifeUsePicReport.html"
index 5b68379..b20ffc2 100644
--- "a/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\345\231\250\345\205\267\346\212\245\350\241\250/Sc_MouldLifeUsePicReport.html"
+++ "b/WebTM/views/\346\250\241\346\262\273\345\205\267\347\256\241\347\220\206/\345\231\250\345\205\267\346\212\245\350\241\250/Sc_MouldLifeUsePicReport.html"
@@ -32,13 +32,6 @@
                                     </div>
                                 </div>
                                 <div class="layui-inline">
-                                    <label class="layui-form-label">鏃ユ湡闂撮殧</label>
-                                    <div class="layui-input-block">
-                                        <select name="HInitTimeCycle" id="HInitTimeCycle" class="ForFilteringSchemes" lay-filter="HInitTimeCycle" style="width:190px;">
-                                        </select>
-                                    </div>
-                                </div>
-                                <div class="layui-inline">
                                     <label class="layui-form-label">寮�濮嬫棩鏈�</label>
                                     <div class="layui-input-block">
                                         <input type="date" class="layui-input ForFilteringSchemes" id="HBeginDate" style="width:190px;">
@@ -51,11 +44,14 @@
                                     </div>
                                 </div>
                                 <div class="layui-inline">
-                                    <label class="layui-form-label">妯″叿缂栧彿</label>
+                                    <label class="layui-form-label" >妯″叿缂栧彿</label>
                                     <div class="layui-input-block">
-                                        <input type="text" class="layui-input ForFilteringSchemes" name="HMouldNo" id="HMouldNo" style="width:190px;">
+                                        <input type="text" class="layui-input" lay-verify="HMouldNo" name="HMouldNo" id="HMouldNo" value="" style="background-color: #efefef4d; width: 75%; display: inline-block;" readonly>
+                                        <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHMouldNo" id="btnHMouldNo" style="padding: 0 10px;float: right;margin-right: 3px;">
+                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                        </button>
                                     </div>
-                                </div>
+                                </div>                              
                                 <div class="layui-inline">
                                     <label class="layui-form-label">妯″叿鍚嶇О</label>
                                     <div class="layui-input-block">
@@ -65,90 +61,7 @@
                                 <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">
                                     <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
                                 </button>
-                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>
-                                <div class="layui-colla-content" style="padding: 0px; margin-left: 6%;">
-                                    <div class="layui-row" style="margin-top:5px">
-                                        <div class="layui-inline">
-                                            <label class="layui-form-label">杩囨护</label>
-                                            <div class="layui-input-block">
-                                                <select name="ColName" id="ColName" class="ForFilteringSchemes" lay-filter="ColName" style="width:190px;">
-                                                </select>
-                                            </div>
-                                        </div>
-                                        <div class="layui-inline">
-                                            <select name="Comparator" id="Comparator" class="ForFilteringSchemes" lay-filter="Comparator" style="width:190px;">
-                                                <option value="0" selected="selected"></option>
-                                                <option value="=">=</option>
-                                                <option value=">=">>=</option>
-                                                <option value=">">></option>
-                                                <option value="<="><=</option>
-                                                <option value="<"><</option>
-                                                <option value="<>"><></option>
-                                                <option value="7">鍖呭惈</option>
-                                                <option value="8">宸﹀寘鍚�</option>
-                                                <option value="9">鍙冲寘鍚�</option>
-                                                <option value="10">涓嶅寘鍚�</option>
-                                            </select>
-                                        </div>
-                                        <div class="layui-inline">
-                                            <input type="text" class="layui-input ForFilteringSchemes" value="" name="ColContent" id="ColContent">
-                                        </div>
-                                    </div>
-                                    <div class="layui-row" style="margin-top:5px">
-                                        <div class="layui-inline">
-                                            <label class="layui-form-label">杩囨护</label>
-                                            <div class="layui-input-block">
-                                                <select name="ColName1" id="ColName1" lay-filter="ColName1" style="width:190px;">
-                                                </select>
-                                            </div>
-                                        </div>
-                                        <div class="layui-inline">
-                                            <select name="Comparator1" id="Comparator1" lay-filter="Comparator1" style="width:190px;">
-                                                <option value="0" selected="selected"></option>
-                                                <option value="=">=</option>
-                                                <option value=">=">>=</option>
-                                                <option value=">">></option>
-                                                <option value="<="><=</option>
-                                                <option value="<"><</option>
-                                                <option value="<>"><></option>
-                                                <option value="7">鍖呭惈</option>
-                                                <option value="8">宸﹀寘鍚�</option>
-                                                <option value="9">鍙冲寘鍚�</option>
-                                                <option value="10">涓嶅寘鍚�</option>
-                                            </select>
-                                        </div>
-                                        <div class="layui-inline">
-                                            <input type="text" class="layui-input" value="" name="ColContent1" id="ColContent1">
-                                        </div>
-                                    </div>
-                                    <div class="layui-row" style="margin-top:5px">
-                                        <div class="layui-inline">
-                                            <label class="layui-form-label">杩囨护</label>
-                                            <div class="layui-input-block">
-                                                <select name="ColName2" id="ColName2" lay-filter="ColName2" style="width:190px;">
-                                                </select>
-                                            </div>
-                                        </div>
-                                        <div class="layui-inline">
-                                            <select name="Comparator2" id="Comparator2" lay-filter="Comparator2" style="width:190px;">
-                                                <option value="0" selected="selected"></option>
-                                                <option value="=">=</option>
-                                                <option value=">=">>=</option>
-                                                <option value=">">></option>
-                                                <option value="<="><=</option>
-                                                <option value="<"><</option>
-                                                <option value="<>"><></option>
-                                                <option value="7">鍖呭惈</option>
-                                                <option value="8">宸﹀寘鍚�</option>
-                                                <option value="9">鍙冲寘鍚�</option>
-                                                <option value="10">涓嶅寘鍚�</option>
-                                            </select>
-                                        </div>
-                                        <div class="layui-inline">
-                                            <input type="text" class="layui-input" value="" name="ColContent2" id="ColContent2">
-                                        </div>
-                                    </div>
-                                </div>
+                                <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnReSearch" id="btnReSearch" style="padding:0 5px">閲嶇疆</button>                               
                             </div>
                         </div>
                         <div>
@@ -159,13 +72,7 @@
                             </div>
                         </div>
                         <script type="text/html" id="toolbarDemo">
-                            <div class="layui-btn-container">
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh" id="RefreshButton"><i class="layui-icon layui-icon-refresh-3"></i>鍒锋柊</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_export" id="get_export"><i class="layui-icon layui-icon-export"></i>瀵煎嚭</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn" id="HideButton"><i class="layui-icon layui-icon-form"></i>鍒楄缃�</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>鎸夐挳璁剧疆</button>
-                                <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit" id="ExitButton"><i class="layui-icon layui-icon-logout"></i>閫�鍑�</button>
-                            </div>
+                            
                         </script>
 
                     </form>
@@ -238,6 +145,43 @@
             form.on('submit(btnReSearch)', function (data) {
                 set_ClearQuery();
             });
+            //宸ュ簭
+            form.on('submit(btnHMouldNo)', function () {
+                //椤甸潰灞�-鑷畾涔�
+                layer.open({
+                    type: 2,
+                    skin: 'layui-layer-rim', //鍔犱笂杈规
+                    title: '妯″叿鍒楄〃',
+                    closeBtn: 1,
+                    shift: 2,
+                    area: ['90%', '90%'],
+                    maxmin: true,
+                    content: ['../../妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFileList.html', 'yes'],
+                    btn: ['纭畾', '鍙栨秷']
+                    , btn1: function (index, layero) {
+
+                        //鎸夐挳銆愭寜閽竴銆戠殑鍥炶皟
+                        var iframeWindow = window['layui-layer-iframe' + index]  //鑾峰彇寮规椤甸潰
+                        var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//鑾峰彇table鐨別lem:"#test"
+                        if (checkStatus.data.length === 0) {
+                            return layer.msg('璇烽�夋嫨鏁版嵁');
+                        }
+                        $("#HMouldNo").val(checkStatus.data[0].妯″叿缂栧彿);
+                        $("#HName").val(checkStatus.data[0].妯″叿鍚嶇О);
+                        layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                    }
+                    , btn2: function (index, layero) {
+                        //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                        //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                    },
+                    end: function () {
+
+                    },
+                    success: function (layero, index) {
+
+                    }
+                });
+            });
             //#endregion
 
             //#region 鐐瑰嚮琛岄�変腑楂樹寒
@@ -260,43 +204,14 @@
                 });
             })
             //#endregion
-
-            //鏃ユ湡闂撮殧涓嬫媺鍒楄〃鐩戝惉
-            form.on('select(HInitTimeCycle)', function (data) {
-                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
-                //鑻ユ棩鏈熼棿闅斾笉涓� 浠绘剰闂撮殧锛屽垯绂佺敤寮�濮嬫棩鏈熶笌缁撴潫鏃ユ湡鐨勯�夋嫨
-                if (HInitTimeCycle != -1) {
-                    $('#HBeginDate').prop('disabled', true);
-                    $('#HEndDate').prop('disabled', true);
-
-                    $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
-                    $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
-
-                    //鎵ц鏌ヨ鏂规硶
-                    get_FastQuery();
-                } else {
-                    $('#HBeginDate').prop('disabled', false);
-                    $('#HEndDate').prop('disabled', false);
-                }
-            });
+         
 
             //#region 姝ら〉闈㈡墍鏈夋柟娉�
             // 鍒濆鍖栫晫闈�
             function set_ClearBill() {
-                //鍒濆鍖栨棩鏈熼棿闅斻�佸紑濮嬫棩鏈熴�佺粨鏉熸棩鏈�
-                setSelect_HInitTimeCycle();
-                //鑻ユ棩鏈熼棿闅斾笉涓� 浠绘剰闂撮殧锛屽垯绂佺敤寮�濮嬫棩鏈熶笌缁撴潫鏃ユ湡鐨勯�夋嫨
-                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
-                if (HInitTimeCycle != -1) {
-                    $('#HBeginDate').prop('disabled', true);
-                    $('#HEndDate').prop('disabled', true);
-                } else {
-                    $('#HBeginDate').prop('disabled', false);
-                    $('#HEndDate').prop('disabled', false);
-                }
-
+             
                 //鏍规嵁鏃ユ湡闂撮殧璁剧疆寮�濮嬫椂闂翠笌缁撴潫鏃堕棿
-                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd"));
+                $("#HBeginDate").val(Format(new Date(new Date().setMonth(new Date().getMonth() - 3)), "yyyy-MM-dd"));
                 $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));
                 //鍒濆鍖栬〃
                 set_InitGrid();
@@ -397,82 +312,7 @@
                 var HBeginDate = $("#HBeginDate").val();
                 var HEndDate = $("#HEndDate").val();
                 var HMouldNo = $("#HMouldNo").val();
-                var HName = $("#HName").val();
-
-                var ColName = $("#ColName").val();//澶嶉�夋
-                var Comparator = $("#Comparator").val()
-                var ColContent = $("#ColContent").val();
-
-                var ColName1 = $("#ColName1").val();//澶嶉�夋
-                var Comparator1 = $("#Comparator1").val()
-                var ColContent1 = $("#ColContent1").val();
-                var ColName2 = $("#ColName2").val();//澶嶉�夋
-                var Comparator2 = $("#Comparator2").val()
-                var ColContent2 = $("#ColContent2").val();
-
-                if (ColName != 0 && Comparator != 0) {
-                    var com = "";
-                    switch (Comparator) {
-                        case "7":
-                            com = "like'%" + ColContent + "%'";
-                            break;
-                        case "8":
-                            com = "like'%" + ColContent + "'";
-                            break;
-                        case "9":
-                            com = "like'" + ColContent + "%'";
-                            break;
-                        case "10":
-                            com = "not like'%" + ColContent + "%'";
-                            break;
-                        default:
-                            com = "" + Comparator + "'" + ColContent + "'";
-                            break;
-                    }
-                    sWhere += " and " + ColName + " " + com;
-                }
-                if (ColName1 != 0 && Comparator1 != 0) {
-                    var com1 = "";
-                    switch (Comparator1) {
-                        case "7":
-                            com1 = "like'%" + ColContent1 + "%'";
-                            break;
-                        case "8":
-                            com1 = "like'%" + ColContent1 + "'";
-                            break;
-                        case "9":
-                            com1 = "like'" + ColContent1 + "%'";
-                            break;
-                        case "10":
-                            com1 = "not like'%" + ColContent1 + "%'";
-                            break;
-                        default:
-                            com1 = "" + Comparator1 + "'" + ColContent1 + "'";
-                            break;
-                    }
-                    sWhere += " and " + ColName1 + " " + com1;
-                }
-                if (ColName2 != 0 && Comparator2 != 0) {
-                    var com2 = "";
-                    switch (Comparator2) {
-                        case "7":
-                            com2 = "like'%" + ColContent2 + "%'";
-                            break;
-                        case "8":
-                            com2 = "like'%" + ColContent2 + "'";
-                            break;
-                        case "9":
-                            com2 = "like'" + ColContent2 + "%'";
-                            break;
-                        case "10":
-                            com2 = "not like'%" + ColContent2 + "%'";
-                            break;
-                        default:
-                            com2 = "" + Comparator + "'" + ColContent + "'";
-                            break;
-                    }
-                    sWhere += " and " + ColName2 + " " + com2;
-                }
+                var HName = $("#HName").val();            
 
                 if (HBeginDate) {
                     sWhere += " and CONVERT(varchar(7),鏃ユ湡, 23) >= '" + HBeginDate + "'";
@@ -506,41 +346,15 @@
             }
             //閲嶇疆蹇�熸煡璇�
             function set_ClearQuery() {
-                var HInitTimeCycle = $("#HInitTimeCycle").val() * 1;
-                $("#HBeginDate").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd")); //寮�濮嬫棩鏈�
+                $("#HBeginDate").val(Format(new Date(new Date().setMonth(new Date().getMonth() - 3)), "yyyy-MM-dd"));
                 $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd"));  //缁撴潫鏃ユ湡          
 
-                $("#btnSearch").click();
-                $("#ColContent").val("");
-                $("#ColName").val("0");
-                $("#Comparator").val("0");
-                $("#ColContent2").val("");
-                $("#ColName2").val("0");
-                $("#Comparator2").val("0");
-                $("#ColContent1").val("");
-                $("#ColName1").val("0");
-                $("#Comparator1").val("0");
+                $("#btnSearch").click();             
                 form.render('select');
 
                 sWhere = "";
             }
-            //#region 鍒濆鏃ユ湡闂撮殧 涓嬫媺鍒楄〃
-            function setSelect_HInitTimeCycle() {
-                var valueList = [0, 1, 2, 3, 4, 5, 6, 29];
-                var titleList = ["浠婂ぉ", "杩戜袱澶�", "杩戜笁澶�", "杩戝洓澶�", "杩戜簲澶�", "杩戝叚澶�", "杩戜竷澶�", "杩�30澶�"];
-
-                var HInitTimeCycle_ArrayList = '<option  value="-1" selected="selected" >浠绘剰闂撮殧</option>';
-                for (var i = 0; i < valueList.length; i++) {
-                    HInitTimeCycle_ArrayList += '<option  style="color:blue;" value="' + valueList[i] + '">' + titleList[i] + '</option>';
-                }
-
-                $("#HInitTimeCycle").empty();
-                $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList);
-                form.render('select');
-
-                $("#HInitTimeCycle").val("29");
-            }
-            //#endregion
+         
             //鍒锋柊
             function get_Refresh() {
                 $("#btnSearch").trigger('click');
diff --git "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_MaterialTechParamBillMain.html" "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_MaterialTechParamBillMain.html"
index 967f337..129360f 100644
--- "a/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_MaterialTechParamBillMain.html"
+++ "b/WebTM/views/\350\256\241\345\210\222\347\256\241\347\220\206/\345\267\245\350\211\272\350\267\257\347\272\277/Gy_MaterialTechParamBillMain.html"
@@ -974,7 +974,7 @@
                                             "HStd": "0",
                                             "HMax": "0",
                                             "HMin": "0",
-                                            "HDataForm": "鎵嬪伐褰曞叆",
+                                            "HDataForm": "璁惧閲囬泦",
                                             "HDataUnit": "绉�",
                                             "HDataTimes": "0",
                                             "HTechParamClassID": "0",
diff --git "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\345\267\245\350\211\272\345\217\202\346\225\260\350\256\242\345\215\225\347\202\271\346\243\200\350\241\250/SB_EquipICMOTechParamBillEdit.html" "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\345\267\245\350\211\272\345\217\202\346\225\260\350\256\242\345\215\225\347\202\271\346\243\200\350\241\250/SB_EquipICMOTechParamBillEdit.html"
index b4b4428..8dad322 100644
--- "a/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\345\267\245\350\211\272\345\217\202\346\225\260\350\256\242\345\215\225\347\202\271\346\243\200\350\241\250/SB_EquipICMOTechParamBillEdit.html"
+++ "b/WebTM/views/\350\256\276\345\244\207\347\256\241\347\220\206/\350\256\276\345\244\207\345\267\245\350\211\272\345\217\202\346\225\260\350\256\242\345\215\225\347\202\271\346\243\200\350\241\250/SB_EquipICMOTechParamBillEdit.html"
@@ -592,11 +592,11 @@
                     , cols: [[
                         { type: 'checkbox', totalRowText: '鍚堣琛�' }
                         , { type: 'numbers', title: '搴忓彿', width: 100 }
-                        , { field: 'HTechParamClassID', title: '宸ヨ壓鍙傛暟澶х被', width: 100 ,hide: true,}
-                        , { field: 'HTechParamClassName', title: '宸ヨ壓鍙傛暟鍚嶇О', width: 120, style: 'background-color:#efefef4d;' }
+                        , { field: 'HTechParamClassID', title: '宸ヨ壓鍙傛暟澶х被', width: 100, hide: true, }
+                        , { field: 'HTechParamClassName', title: '宸ヨ壓鍙傛暟澶х被鍚嶇О', width: 120, style: 'background-color:#efefef4d;' }
                         , { field: 'HTechParamID', title: 'HTechParamID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                         , { field: 'HTechParamNumber', title: '宸ヨ壓鍙傛暟浠g爜', width: 110, edit: 'text', event: "HTechParamNumber" }                 //F7
-                        , { field: 'HTechParamName', title: '宸ヨ壓鍙傛暟鍚嶇О', width: 110, style: 'background-color:#efefef4d;' }                      
+                        , { field: 'HTechParamName', title: '宸ヨ壓鍙傛暟鍚嶇О', width: 110, style: 'background-color:#efefef4d;' }
                         , { field: 'HTechParamUnitID', title: 'HTechParamUnitID', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                         , { field: 'HTechParamUnitNumber', title: '宸ヨ壓鍙傛暟鍗曚綅浠g爜', width: 130, edit: 'text', event: "HTechParamUnitNumber" }         //F7
                         , { field: 'HTechParamUnitName', title: '宸ヨ壓鍙傛暟鍗曚綅鍚嶇О', width: 130, style: 'background-color:#efefef4d;' }
@@ -604,14 +604,14 @@
                         , { field: 'HTechParamIDStd', title: 'HTechParamIDStd', width: 100, hide: true, style: 'background-color:#efefef4d;' }
                         , { field: 'HTechParamIDStdName', title: '璁惧璁惧畾鍊煎伐鑹哄弬鏁�', width: 130, edit: 'text', event: "HTechParamIDStdName" }
                         , { field: 'HResultStd', title: '璁惧璁惧畾鍊�', width: 130, edit: 'text' }
-                        , { field: 'HVaule', title: '宸ヨ壓鍙傛暟鍊�', width: 100, edit: 'text' }
+                        , { field: 'HVaule', title: '宸ヨ壓鍙傛暟鍊�', width: 100, edit: 'text', event: "HVaule"  }
                         , { field: 'HStd', title: '鏍囧噯鍊�', width: 100, edit: 'text' }
                         , { field: 'HMax', title: '涓婇檺', width: 100, edit: 'text' }
                         , { field: 'HMin', title: '涓嬮檺', width: 100, edit: 'text' }
-                        , { field: 'HResult', title: '妫�娴嬬粨鏋�', width: 100, templet: "#HResult" }                       
+                        , { field: 'HResult', title: '妫�娴嬬粨鏋�', width: 100, templet: "#HResult" }
                         , { field: 'HRemark', title: '澶囨敞', width: 100, edit: 'text' }
                         , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 70 }
-                    ]]
+                    ]]                  
                 }
 
                 var rowdata = [{
@@ -1230,21 +1230,28 @@
                 set_GridDelete(obj);    //琛屽唴鍒犻櫎
                 set_GridCellCheck(obj); //琛屽唴蹇嵎閿瓫閫�
 
-                var data = obj.data;
-                if (obj.event == 'HDate') {
+                var data = obj.data;               
+                if (obj.event == 'HVaule') {
                     var field = $(this).data('field');
-                    laydate.render({
-                        elem: this.firstChild
-                        , show: true //鐩存帴鏄剧ず
-                        , closeStop: this
-                        , done: function (nowDate) {
-                            //鏃堕棿閫夋嫨瀹屾垚锛岃鏁版嵁鏇存柊
-                            data[field] = nowDate;
-                            obj.update(data);
-                        }
-                    });
+                    var row = obj.data; // 鑾峰彇褰撳墠琛屾暟鎹�
+                    if (row['HRemark'] === '璁惧閲囬泦') {
+                        layer.msg('姝ゅ崟鍏冩牸鐨勫�间负鈥滆澶囬噰闆嗏��,鏃犳硶缂栬緫'); // 鎻愮ず淇℃伅
+                    } else {
+                        // 鍏佽缂栬緫鍗曞厓鏍�
+                        $(this).attr('contenteditable', 'true'); // 浣垮崟鍏冩牸鍙紪杈�
+                        $(this).focus(); // 鑱氱劍鍒扮紪杈戠殑鍗曞厓鏍�
+                    }
                 }
-            });
+                // 鐩戝惉鍗曞厓鏍肩紪杈戠粨鏉熶簨浠�
+                $(document).on('blur', '[contenteditable]', function () {
+                    var newValue = $(this).text(); // 鑾峰彇鏂板��
+                    var field = $(this).data('field');
+                    var row = obj.data; // 鑾峰彇褰撳墠琛屾暟鎹�
+                    row[field] = newValue; // 鏇存柊鏁版嵁
+                    obj.update(row); // 鏇存柊琛屾暟鎹�
+                    $(this).removeAttr('contenteditable'); // 鍙栨秷缂栬緫鐘舵��
+                });
+            });          
             //#endregion
 
             //#region 琛屽唴鍒犻櫎
@@ -1423,20 +1430,21 @@
                                     {
                                         "HTechParamClassID": result.data[i]["HTechParamClassID"] == null ? 0 : result.data[i]["HTechParamClassID"],
                                         "HTechParamClassName": result.data[i]["宸ヨ壓鍙傛暟澶х被鍚嶇О"],
-                                        "HTechParamID": result.data[i]["HTechParamID"] == null ? 0 : result.data[i]["HTechParamClassID"],
+                                        "HTechParamID": result.data[i]["HTechParamID"] == null ? 0 : result.data[i]["HTechParamID"],
                                         "HTechParamNumber": result.data[i]["宸ヨ壓鍙傛暟浠g爜"],
                                         "HTechParamName": result.data[i]["宸ヨ壓鍙傛暟鍚嶇О"],
-                                        "HTechParamUnitID": result.data[i]["HTechParamUnitID"] == null ? 0 : result.data[i]["HTechParamClassID"],
+                                        "HTechParamUnitID": result.data[i]["HTechParamUnitID"] == null ? 0 : result.data[i]["HTechParamUnitID"],
                                         "HTechParamUnitNumber": result.data[i]["宸ヨ壓鍙傛暟鍗曚綅浠g爜"],
                                         "HTechParamUnitName": result.data[i]["宸ヨ壓鍙傛暟鍗曚綅鍚嶇О"] ,
-                                        "HSNO": result.data[i]["宸ヨ壓娆″簭"] == null ? 0 : result.data[i]["HTechParamClassID"],
-                                        "HTechParamIDStd": result.data[i]["HTechParamIDStd"] == null ? 0 : result.data[i]["HTechParamClassID"],
+                                        "HSNO": result.data[i]["宸ヨ壓娆″簭"] == null ? 0 : result.data[i]["宸ヨ壓娆″簭"],
+                                        "HTechParamIDStd": result.data[i]["HTechParamIDStd"] == null ? 0 : result.data[i]["HTechParamIDStd"],
                                         "HTechParamIDStdName": result.data[i]["瀵瑰簲璁惧畾鍊煎伐鑹哄弬鏁�"],
                                         "HResultStd": "",
                                         "HVaule": result.data[i]["鏁伴噰鍊�"],
                                         "HStd": result.data[i]["鏍囧噯鍊�"],
                                         "HMax": result.data[i]["涓婇檺鍊�"],
                                         "HMin": result.data[i]["涓嬮檺鍊�"],
+                                        "HRemark": result.data[i]["閲囬泦鏉ユ簮"]
                                     }
                                 );
                             }
@@ -1455,7 +1463,7 @@
                 })
             }
             //#endregion
-
+                    
             //#region 鍔熻兘鎺т欢
 
             //#region 鎻愪氦
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/QC_FiveMenOneRingList.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/QC_FiveMenOneRingList.html"
index 9d9133e..1900430 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/QC_FiveMenOneRingList.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\350\264\250\351\207\217\346\212\245\350\241\250/QC_FiveMenOneRingList.html"
@@ -88,41 +88,43 @@
                                     <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table>
                                 </div>
                             </div>
-                            <div  class="layui-col-xs7 layui-inline"  style="margin-top:20px;">
-                                <ul class="layui-tab-title">
-                                    <li class="layui-this">浜�</li>
-                                    <li>鏈�</li>
-                                    <li>鏂�</li>
-                                    <li>娉�</li>
-                                    <li>鐜�</li>
-                                    <li>娴�</li>
-                                </ul>
-                                <div class="layui-tab-content">
-                                    <div class="layui-tab-item layui-show">
-                                        <!--浜�-->
-                                        <table class="layui-hide" id="mainTable_Man" lay-filter="mainTable_Man"></table>
+                            <div class="layui-col-xs7 layui-inline" style="margin-top:20px;">
+                                <div class="layui-tab layui-tab-card">
+                                    <ul class="layui-tab-title">
+                                        <li class="layui-this">浜�</li>
+                                        <li>鏈�</li>
+                                        <li>鏂�</li>
+                                        <li>娉�</li>
+                                        <li>鐜�</li>
+                                        <li>娴�</li>
+                                    </ul>
+                                    <div class="layui-tab-content">
+                                        <div class="layui-tab-item layui-show">
+                                            <!--浜�-->
+                                            <table class="layui-hide" id="mainTable_Man" lay-filter="mainTable_Man"></table>
+                                        </div>
+                                        <div class="layui-tab-item">
+                                            <!--鏈�-->
+                                            <table class="layui-hide" id="mainTable_Machine" lay-filter="mainTable_Machine"></table>
+                                        </div>
+                                        <div class="layui-tab-item">
+                                            <!--鏂�-->
+                                            <table class="layui-hide" id="mainTable_Material" lay-filter="mainTable_Material"></table>
+                                        </div>
+                                        <div class="layui-tab-item">
+                                            <!--娉�-->
+                                            <table class="layui-hide" id="mainTable_Method" lay-filter="mainTable_Method"></table>
+                                        </div>
+                                        <div class="layui-tab-item">
+                                            <!--鐜�-->
+                                            <table class="layui-hide" id="mainTable_Environments" lay-filter="mainTable_Environments"></table>
+                                        </div>
+                                        <div class="layui-tab-item">
+                                            <!--娴�-->
+                                            <table class="layui-hide" id="mainTable_Measure" lay-filter="mainTable_Measure"></table>
+                                        </div>
                                     </div>
-                                    <div class="layui-tab-item">
-                                        <!--鏈�-->
-                                        <table class="layui-hide" id="mainTable_Machine" lay-filter="mainTable_Machine"></table>
-                                    </div>
-                                    <div class="layui-tab-item">
-                                        <!--鏂�-->
-                                        <table class="layui-hide" id="mainTable_Material" lay-filter="mainTable_Material"></table>
-                                    </div>
-                                    <div class="layui-tab-item">
-                                        <!--娉�-->
-                                        <table class="layui-hide" id="mainTable_Method" lay-filter="mainTable_Method"></table>
-                                    </div>
-                                    <div class="layui-tab-item">
-                                        <!--鐜�-->
-                                        <table class="layui-hide" id="mainTable_Environments" lay-filter="mainTable_Environments"></table>
-                                    </div>
-                                    <div class="layui-tab-item">
-                                        <!--娴�-->
-                                        <table class="layui-hide" id="mainTable_Measure" lay-filter="mainTable_Measure"></table>
-                                    </div>
-                                </div>
+                                </div>                               
                             </div>
                         </div>                       
                         <script type="text/html" id="toolbarDemo">
@@ -166,7 +168,7 @@
             //
             var HModName = "QC_FiveMenOneRingList";
             //涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞� 锛堜汉锛�
-            var titleData = ["涓绘祦杞崱id", "閰嶄欢娴佽浆鍗d", "鎴愬搧鐗╂枡id", "閰嶄欢鐗╂枡id", "涓荤敓浜ц鍗�", "閰嶄欢鐢熶骇璁㈠崟", "鎴愬搧鐗╂枡浠g爜", "鎴愬搧瑙勬牸鍨嬪彿", "閰嶄欢鐗╂枡浠g爜", "閰嶄欢瑙勬牸鍨嬪彿", "鍗曟嵁涓籭d"];
+            var titleData = ["涓绘祦杞崱id", "閰嶄欢娴佽浆鍗d", "鎴愬搧鐗╂枡id", "閰嶄欢鐗╂枡id", "涓荤敓浜ц鍗�", "閰嶄欢鐢熶骇璁㈠崟", "鎴愬搧鐗╂枡浠g爜", "鎴愬搧瑙勬牸鍨嬪彿", "閰嶄欢鐗╂枡浠g爜", "閰嶄欢瑙勬牸鍨嬪彿", "鍗曟嵁涓籭d","鐗╂枡id","鐢熶骇璧勬簮id","鑱屽憳id","妯″叿id"];
             //鍒濆鍖栫晫闈�
             set_ClearBill();
             //#endregion
@@ -190,7 +192,7 @@
             //#endregion
 
              //#region  SN鐮佸洖杞︽柟娉�
-            $('#HICNumber').on('keydown', function (event) {
+            $('#SN').on('keydown', function (event) {
                 if (event.keyCode == 13) {
                     get_FastQuery();//鏌ヨ
                 }
@@ -363,25 +365,7 @@
                     , cellMinWidth: 90
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '涓绘祦杞崱id', title: '涓绘祦杞崱id', sort: true, hide: true }
-                        //    , { field: '涓绘祦杞崱', title: '涓绘祦杞崱', sort: true }
-                        //    , { field: '涓荤敓浜ц鍗�', title: '涓荤敓浜ц鍗�', sort: true }
-                        //    , { field: '閰嶄欢娴佽浆鍗d ', title: '閰嶄欢娴佽浆鍗d ', sort: true, hide: true }
-                        //    , { field: '閰嶄欢娴佽浆鍗� ', title: '閰嶄欢娴佽浆鍗� ', sort: true }
-                        //    , { field: '閰嶄欢鐢熶骇璁㈠崟 ', title: '閰嶄欢鐢熶骇璁㈠崟 ', sort: true }
-                        //    , { field: '鎴愬搧鐗╂枡id ', title: '鎴愬搧鐗╂枡id ', sort: true, hide: true }
-                        //    , { field: '鎴愬搧鐗╂枡浠g爜 ', title: '鎴愬搧鐗╂枡浠g爜 ', sort: true }
-                        //    , { field: '鎴愬搧鐗╂枡 ', title: '鎴愬搧鐗╂枡 ', sort: true }
-                        //    , { field: '鎴愬搧瑙勬牸鍨嬪彿 ', title: '鎴愬搧瑙勬牸鍨嬪彿 ', sort: true }
-                        //    , { field: '閰嶄欢鐗╂枡id ', title: '閰嶄欢鐗╂枡id ', sort: true, hide: true }
-                        //    , { field: '閰嶄欢鐗╂枡浠g爜 ', title: '閰嶄欢鐗╂枡浠g爜 ', sort: true }
-                        //    , { field: '閰嶄欢鐗╂枡 ', title: '閰嶄欢鐗╂枡 ', sort: true }
-                        //    , { field: '閰嶄欢瑙勬牸鍨嬪彿 ', title: '閰嶄欢瑙勬牸鍨嬪彿 ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     ,data:[]
                 };
             }
@@ -397,15 +381,7 @@
                     , cellMinWidth: 90
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
-                        //    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
-                        //    , { field: '鍗曟嵁涓籭d', title: '鍗曟嵁涓籭d', sort: true, hide: true }
-                        //    , { field: '妯″潡鍚嶇О ', title: '妯″潡鍚嶇О ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     , data: []
                 };                
             }
@@ -421,15 +397,7 @@
                     , cellMinWidth: 90
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
-                        //    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
-                        //    , { field: '鍗曟嵁涓籭d', title: '鍗曟嵁涓籭d', sort: true, hide: true }
-                        //    , { field: '妯″潡鍚嶇О ', title: '妯″潡鍚嶇О ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     , data: []
                 };
             }
@@ -445,15 +413,7 @@
                     , cellMinWidth: 90
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
-                        //    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
-                        //    , { field: '鍗曟嵁涓籭d', title: '鍗曟嵁涓籭d', sort: true, hide: true }
-                        //    , { field: '妯″潡鍚嶇О ', title: '妯″潡鍚嶇О ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     , data: []
                 };
             }
@@ -469,15 +429,7 @@
                     , cellMinWidth: 90
                     , limit: 50
                     , limits: [50, 500, 5000, 20000]
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
-                        //    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
-                        //    , { field: '鍗曟嵁涓籭d', title: '鍗曟嵁涓籭d', sort: true, hide: true }
-                        //    , { field: '妯″潡鍚嶇О ', title: '妯″潡鍚嶇О ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     , data: []
                 };
             }
@@ -491,15 +443,7 @@
                     , totalRow: true
                     , cellMinWidth: 90
                     , limit: Number.MAX_VALUE//榛樿鏄剧ず鍏ㄩ儴
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
-                        //    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
-                        //    , { field: '鍗曟嵁涓籭d', title: '鍗曟嵁涓籭d', sort: true, hide: true }
-                        //    , { field: '妯″潡鍚嶇О ', title: '妯″潡鍚嶇О ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     , data: []
                 };
             }
@@ -513,15 +457,7 @@
                     , totalRow: true
                     , cellMinWidth: 90
                     , limit: Number.MAX_VALUE//榛樿鏄剧ず鍏ㄩ儴
-                    , cols: [
-                        //[
-                        //    { type: 'checkbox', totalRowText: '鍚堣琛�' }
-                        //    , { field: '鍗曟嵁绫诲瀷', title: '鍗曟嵁绫诲瀷', sort: true }
-                        //    , { field: '鍗曟嵁鍙�', title: '鍗曟嵁鍙�', sort: true }
-                        //    , { field: '鍗曟嵁涓籭d', title: '鍗曟嵁涓籭d', sort: true, hide: true }
-                        //    , { field: '妯″潡鍚嶇О ', title: '妯″潡鍚嶇О ', sort: true }
-                        //]
-                    ]
+                    , cols: []
                     , data: []
                 };
             }
@@ -551,14 +487,28 @@
                                     if ($.inArray(data[j].name, titleData) > -1) {
                                         col.push({ field: data[j].id, title: data[j].name, align: 'center', hide: true }); //闅愯棌id鍒�
                                     }
+                                    else if (data[j].name == '閰嶄欢娴佽浆鍗�') {//娣诲姞瓒呴摼鎺�
+                                        col.push({
+                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '閰嶄欢娴佽浆鍗�', templet: function (d) {
+                                                return '<span style="color: blue;">' + d.閰嶄欢娴佽浆鍗� + '</span>'
+                                            }, style: 'cursor: pointer;'
+                                        });
+                                    }
+                                    else if (data[j].name == '涓绘祦杞崱') {//娣诲姞瓒呴摼鎺�
+                                        col.push({
+                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '涓绘祦杞崱', templet: function (d) {
+                                                return '<span style="color: blue;">' + d.涓绘祦杞崱 + '</span>'
+                                            }, style: 'cursor: pointer;'
+                                        });
+                                    }
                                     else {
-                                        switch (data[i].Type) {
+                                        switch (data[j].Type) {
                                             //int
                                             case 'DateTime':
                                                 col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, templet: "<div>{{d." + data[j].name + " ==null ?'':layui.util.toDateString(d." + data[j].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                                 break;
                                             default:
-                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200 });
+                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200});
                                         }
                                     }
                                 }
@@ -657,32 +607,386 @@
 
             }
             //#endregion                 
-
-            // 鑾峰彇鏍囩
-            function getActiveTab() {
-                var tabs = document.getElementsByClassName("layui-tab-title")[0].getElementsByTagName("li");
-                var activeTab;
-                for (var i = 0; i < tabs.length; i++) {
-                    if (tabs[i].classList.contains("layui-this")) {
-                        activeTab = tabs[i].innerText;
-                        break;
-                    }
-                }
-                return activeTab;
-
-            }
-
-            //涓昏〃鏍�  閰嶄欢娴佽浆鍗$偣鍑绘椂闂�
+                     
             //#endregion  鐩戝惉缃戞牸琛ㄤ綋浜嬩欢
+
+             //#region  涓昏〃鏍�  娴佽浆鍗$偣鍑绘椂闂�
             table.on('tool(mainTable)', function (obj) {
                 var data = obj.data;
+                var ajaxLoad = layer.load();
+                var linterid;
                 //鍗曟嵁鍙疯秴閾炬帴
                 if (obj.event == '閰嶄欢娴佽浆鍗�') {                  //妫�鏌� obj.event 鏄惁绛変簬瀛楃涓� '鍗曟嵁鍙�'銆傚鏋滅瓑浜庯紝鍒欐墽琛宨f寰幆
-                    var linterid = data.閰嶄欢娴佽浆鍗d;    //澹版槑鍙橀噺linterid 涓� data.hmainid
-                   
+                    linterid = data.閰嶄欢娴佽浆鍗d;                      
+                } else if (obj.event == '涓绘祦杞崱') {
+                    linterid = data.涓绘祦杞崱id;                    
+                }
+                $.ajax({
+                    url: GetWEBURL() + '/QC_CustomerAppealReport/Get_QC_FiveMenOneRingList_Right',
+                    type: "GET",
+                    data: { "linterid": linterid, "user": sessionStorage["HUserName"] },
+                    success: function (data1) {
+                        if (data1.count == 1) {
+                            var Listcol = [];
+                            for (var i = 0; i < data1.list.length; i++) {
+                                var data = [];
+                                //缁欑┖鐨勬暟缁勮祴鍊�
+                                for (var key in data1.list[i].Columns) {
+                                    data.push({ "id": data1.list[i].Columns[key].ColmCols, "name": data1.list[i].Columns[key].ColmCols, "Type": data1.list[i].Columns[key].ColmType });
+                                }
+                                var col = [];
+                                col.push({ type: 'checkbox', fixed: 'left' });
+                                for (var j = 0; j < data.length; j++) {
+                                    if ($.inArray(data[j].name, titleData) > -1) {
+                                        col.push({ field: data[j].id, title: data[j].name, align: 'center', hide: true }); //闅愯棌id鍒�
+                                    }
+                                    else if (data[j].name == '鍗曟嵁鍙�') {//娣诲姞瓒呴摼鎺�
+                                        col.push({
+                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '鍗曟嵁鍙�', templet: function (d) {
+                                                return '<span style="color: blue;">' + d.鍗曟嵁鍙� + '</span>'
+                                            }, style: 'cursor: pointer;'
+                                        });
+                                    }
+                                    else if (data[j].name == '鑱屽憳') {//娣诲姞瓒呴摼鎺�
+                                        col.push({
+                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '鑱屽憳', templet: function (d) {
+                                                return '<span style="color: blue;">' + d.鑱屽憳 + '</span>'
+                                            }, style: 'cursor: pointer;'
+                                        });
+                                    }
+                                    else if (data[j].name == '妯″叿鍚嶇О') {//娣诲姞瓒呴摼鎺�
+                                        col.push({
+                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '妯″叿鍚嶇О', templet: function (d) {
+                                                return '<span style="color: blue;">' + d.妯″叿鍚嶇О + '</span>'
+                                            }, style: 'cursor: pointer;'
+                                        });
+                                    }
+                                    else if (data[j].name == '璁惧鍚嶇О') {//娣诲姞瓒呴摼鎺�
+                                        col.push({
+                                            field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: '璁惧鍚嶇О', templet: function (d) {
+                                                return '<span style="color: blue;">' + d.璁惧鍚嶇О + '</span>'
+                                            }, style: 'cursor: pointer;'
+                                        });
+                                    }
+                                    else {
+                                        switch (data[j].Type) {
+                                            //int
+                                            case 'DateTime':
+                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, templet: "<div>{{d." + data[j].name + " ==null ?'':layui.util.toDateString(d." + data[j].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
+                                                break;
+                                            default:
+                                                col.push({ field: data[j].id, title: data[j].name, align: 'center', sort: true, width: 200, event: data[j].name });
+                                        }
+                                    }
+                                }
+                                Listcol.push(col);
+                            }
+                            //浜�
+                            option_Man = {
+                                elem: '#mainTable_Man'
+                                , toolbar: '#toolbarDemo'
+                                , cols: [Listcol[0]]
+                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query
+                                , height: 'full-80'
+                                , cellMinWidth: 90
+                            }
+                            table.render(option_Man);
+                            //鏈�
+                            option_Machine = {
+                                elem: '#mainTable_Machine'
+                                , toolbar: '#toolbarDemo'
+                                , cols: [Listcol[1]]
+                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query1
+                                , height: 'full-80'
+                                , cellMinWidth: 90
+                            }
+                            table.render(option_Machine);
+                            //鏂�
+                            option_Material = {
+                                elem: '#mainTable_Material'
+                                , toolbar: '#toolbarDemo'
+                                , cols: [Listcol[2]]
+                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query2
+                                , height: 'full-80'
+                                , cellMinWidth: 90
+                            }
+                            table.render(option_Material);
+                            //娉�
+                            option_Method = {
+                                elem: '#mainTable_Method'
+                                , toolbar: '#toolbarDemo'
+                                , cols: [Listcol[3]]
+                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query3
+                                , height: 'full-80'
+                                , cellMinWidth: 90
+                            }
+                            table.render(option_Method);
+                            //鐜�
+                            option_Environments = {
+                                elem: '#mainTable_Environments'
+                                , toolbar: '#toolbarDemo'
+                                , cols: [Listcol[4]]
+                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query4
+                                , height: 'full-80'
+                                , cellMinWidth: 90
+                            }
+                            table.render(option_Environments);
+                            //娴�
+                            option_Measure = {
+                                elem: '#mainTable_Measure'
+                                , toolbar: '#toolbarDemo'
+                                , cols: [Listcol[5]]
+                                , data: data1.data.h_p_QC_FiveMenOneRingList_Query5
+                                , height: 'full-80'
+                                , cellMinWidth: 90
+                            }
+                            table.render(option_Measure);
+                            layer.close(ajaxLoad);
+                        } else {
+                            layer.close(ajaxLoad);
+                            layer.alert(data1.code + data1.Message, { icon: 5 });
+                        }
+                    }, error: function () {
+                        layer.close(ajaxLoad);
+                        layer.alert("鎺ュ彛璇锋眰澶辫触!", { icon: 5 });
+                    }
+                });
+            });
+            //#endregion  
+
+            //#region鍓〃鏍�  
+            //浜�
+            table.on('tool(mainTable_Man)', function (obj) {
+                var data = obj.data;
+                if (obj.event == '鍗曟嵁鍙�') {
+                    var linterid = data.鍗曟嵁涓籭d;
+                    var HBillNo = data.鍗曟嵁鍙�;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅鍑虹珯鍗�'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../杞﹂棿绠$悊/宸ュ簭鍑虹珯姹囨姤鍗�/Cj_StationOutBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0&HBillNo=' + HBillNo + '&closeType=1'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '鑱屽憳') {
+                    var linterid = data.鑱屽憳id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅鑱屽憳妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                }
+
+            });
+
+            //鏈�
+            table.on('tool(mainTable_Machine)', function (obj) {
+                var data = obj.data;
+                if (obj.event == '鍗曟嵁鍙�') {
+                    var linterid = data.鍗曟嵁涓籭d;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅璁惧鍚姩鐐规娓呭崟'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../杞﹂棿绠$悊/鍚姩鐐规鍗�/Sc_WorkBeginDotCheckBill.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '妯″叿鍚嶇О') {
+                    var linterid = data.妯″叿id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅妯″叿妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFile.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '璁惧鍚嶇О') {
+                    var linterid = data.璁惧id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅璁惧妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../璁惧绠$悊/璁惧妗f/Gy_EquipFileMainEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '鑱屽憳') {
+                    var linterid = data.鑱屽憳id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅鑱屽憳妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
                 }
             });
 
+            //鏂�
+            table.on('tool(mainTable_Material)', function (obj) {
+                var data = obj.data;
+                if (obj.event == '鍗曟嵁鍙�') {
+                    var linterid = data.鍗曟嵁涓籭d;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅涓婃枡闃查敊鍗�'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../鐢熶骇绠$悊/鎶ュ伐鍙板伐搴�/闃查敊/Sc_Add_MaterToSourceStepBillList.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '鑱屽憳') {
+                    var linterid = data.鑱屽憳id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅鑱屽憳妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                }
+            });
+
+            //娉�
+            table.on('tool(mainTable_Method)', function (obj) {
+                var data = obj.data;
+                if (obj.event == '鍗曟嵁鍙�') {
+                    var linterid = data.鍗曟嵁涓籭d;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅璁惧宸ヨ壓鍙傛暟鐐规'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../璁惧绠$悊/璁惧宸ヨ壓鍙傛暟璁㈠崟鐐规琛�/SB_EquipICMOTechParamBillEdit.html?OperationType=2&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '鑱屽憳') {
+                    var linterid = data.鑱屽憳id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅鑱屽憳妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../鍩虹璧勬枡/鍏敤鍩虹璧勬枡/Gy_Employee_Add_Edit_.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '妯″叿鍚嶇О') {
+                    var linterid = data.妯″叿id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅妯″叿妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../妯℃不鍏风鐞�/妯℃不鍏风鐞�/Gy_MouldFile.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                } else if (obj.event == '璁惧鍚嶇О') {
+                    var linterid = data.璁惧id;
+                    layer.open({
+                        type: 2
+                        , area: ['100%', '100%']
+                        , title: '鏌ョ湅璁惧妗f'
+                        , closeBtn: 1
+                        , shade: 0.6 //閬僵閫忔槑搴�
+                        , maxmin: true //鍏佽鍏ㄥ睆鏈�灏忓寲
+                        , anim: 0 //0-6鐨勫姩鐢诲舰寮忥紝-1涓嶅紑鍚�
+                        , content: '../../璁惧绠$悊/璁惧妗f/Gy_EquipFileMainEdit.html?OperationType=3&linterid=' + linterid + '&HSouceBillType=0'
+                        , resize: false,
+                        end: function () {
+                        }
+                        , cancel: function () {
+                        }
+                    })
+                }
+            });
+
+            //#endregion     
+           
             //#region 闅愯棌鍒楄缃�
             function get_HideColumn() {
                 var colName = "";
diff --git "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillEdit.html" "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillEdit.html"
index 5484d63..bf8bc15 100644
--- "a/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillEdit.html"
+++ "b/WebTM/views/\351\207\207\350\264\255\347\256\241\347\220\206/\351\207\207\350\264\255\350\256\242\345\215\225/Cg_POOrderBillEdit.html"
@@ -934,6 +934,27 @@
             }
             //#endregion
 
+            //#region  鍏蜂綋鏃堕棿杞崲
+            function formatSpecificDate(date) {
+                var d = new Date(date),      //瀹氫箟涓�涓皢date鍊艰浆鎹负鏃堕棿绫诲瀷璧嬪�肩粰d     鍒涘缓涓�涓柊鐨凞ate瀵硅薄d锛屼娇鐢ㄤ紶鍏ョ殑date鍙傛暟锛堝瓧绗︿覆鎴栨椂闂存埑锛変綔涓烘瀯閫犲嚱鏁扮殑鍙傛暟
+                    month = '' + (d.getMonth() + 1),  //浠巇瀵硅薄涓幏鍙栨湀浠�,灏嗚繖涓湀浠芥暟瀛楄浆鎹㈡垚瀛楃涓�
+                    day = '' + d.getDate(),             //浠巇瀵硅薄涓幏鍙�,灏嗚繖涓棩瀛楄浆鎹㈡垚瀛楃涓�
+                    year = d.getFullYear(),
+                    hour = '' + d.getHours(),
+                    minutes = '' + d.getMinutes(),
+                    secondes = '' + d.getSeconds(); // 浠巇瀵硅薄涓幏鍙栧畬鏁寸殑骞翠唤
+
+                if (month.length < 2) month = '0' + month;  //鍒ゆ柇鏈堜唤鐨勯暱搴︽槸鍚﹀皬浜�2浣嶆暟  灏忎簬杩欏湪鍓嶅姞涓�0
+                if (day.length < 2) day = '0' + day;        //鍒ゆ柇澶╂暟闀垮害鏄惁灏忎簬2浣嶆暟  灏忎簬杩欏湪鍓嶅姞涓�0
+                if (hour.length < 2) hour = '0' + hour;
+                if (minutes.length < 2) minutes = '0' + minutes;
+                if (secondes.length < 2) secondes = '0' + secondes;
+                var specific = hour + ':' + minutes + ':' + secondes;
+                var time = [year, month, day].join('-');
+                return [time, specific].join(' '); //灏嗗勾浠姐�佹湀浠藉拰鏃ュ瓧绗︿覆鏀惧叆涓�涓暟缁勪腑锛屽苟浣跨敤join鏂规硶灏嗗畠浠繛鎺ユ垚涓�涓瓧绗︿覆
+            }
+            //#endregion
+
             //#region 鎵撳嵃
             function get_PrintReport() {
                 if (linterid == null || linterid == "") {
@@ -1039,11 +1060,11 @@
                                 , "HMaker": data[0].鍒跺崟浜�       // 璁剧疆鈥滃埗鍗曚汉鈥濆悕绉板瓧娈电殑鍊笺��
                                 , "HChecker": data[0].瀹℃牳浜�       // 璁剧疆鈥滃鏍镐汉鈥濆悕绉板瓧娈电殑鍊笺��
                                 , "HCloseMan": data[0].鍏抽棴浜�       // 璁剧疆鈥滃叧闂汉鈥濆悕绉板瓧娈电殑鍊笺��
-                                , "HMakeDate": data[0].鍒跺崟鏃ユ湡       // 璁剧疆鈥滃埗鍗曟棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
-                                , "HCheckDate": data[0].瀹℃牳鏃ユ湡       // 璁剧疆鈥滃鏍告棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
-                                , "HCloseDate": data[0].鍏抽棴鏃ユ湡       // 璁剧疆鈥滃叧闂棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
-                                , "HUpDateDate": data[0].淇敼鏃ユ湡       // 璁剧疆鈥滀慨鏀规棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
-                                , "HDeleteDate": data[0].浣滃簾鏃ユ湡       // 璁剧疆鈥滀綔搴熸棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
+                                , "HMakeDate": formatSpecificDate(data[0].鍒跺崟鏃ユ湡)       // 璁剧疆鈥滃埗鍗曟棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
+                                , "HCheckDate": formatSpecificDate(data[0].瀹℃牳鏃ユ湡)       // 璁剧疆鈥滃鏍告棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
+                                , "HCloseDate": formatSpecificDate(data[0].鍏抽棴鏃ユ湡)       // 璁剧疆鈥滃叧闂棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
+                                , "HUpDateDate": formatSpecificDate(data[0].淇敼鏃ユ湡)       // 璁剧疆鈥滀慨鏀规棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
+                                , "HDeleteDate": formatSpecificDate(data[0].浣滃簾鏃ユ湡)       // 璁剧疆鈥滀綔搴熸棩鏈熲�濆悕绉板瓧娈电殑鍊笺��
                             });
 
                            //缁勭粐鐨勫�糎OrgID鍙樺寲锛岄噸鏂版覆鏌�
@@ -2063,7 +2084,19 @@
            $("#HPSStyleID").val(obj[0].HPSStyleID == "" ? 0 : obj[0].HPSStyleID);
         } 
 
-        
+        //鏃堕棿鏍煎紡
+        function formatDateTime(date) {
+            const year = date.getFullYear();
+            const month = date.getMonth() + 1;
+            const day = date.getDate();
+            const hour = date.getHours();
+            const minute = date.getMinutes();
+            const second = date.getSeconds();
+            return `${year}-${pad(month)}-${pad(day)} ${pad(hour)}:${pad(minute)}:${pad(
+                second
+            )}`;
+        }
+
         function GetSettleStyleValue(obj)  //杩斿洖缁撶畻鏂瑰紡
         {
             $("#HSSName").val(obj[0].缁撶畻鏂瑰紡鍚嶇О);

--
Gitblit v1.9.1