From 64a428fff40f4304a81fcb37a82af2dc0aa60583 Mon Sep 17 00:00:00 2001
From: zrg <z18737863051@163.com>
Date: 星期五, 25 十月 2024 12:02:14 +0800
Subject: [PATCH] 异常反馈处理单增加字段 HBadReasonID int //处理原因 取样单根据当前登录人带出换样员 逃逸率报表图表修改 启动点检增加根据上模单带出磨模具

---
 WebTM/views/基础资料/生产基础资料/Gy_BadReason.html                       |    2 
 WebTM/WebTM.csproj.user                                         |    2 
 WebTM/views/生产管理/异常反馈单/OA_ErrMsgBackHandleBillMain.html         |   51 ++++++++++
 WebTM/views/质量管理/检验取样还样单/QC_Add_BackSampleCheckBill.html        |    3 
 WebTM/views/质量管理/质量报表/QC_BadProductsReport.html                 |   58 ++++++++++-
 WebTM/views/质量管理/质量报表/QC_QualityStatisticsDailyReport.html      |   71 +++++++++++++
 WebTM/views/质量管理/质量报表/QC_QualityMonthSumReport.html             |   55 ++++++----
 WebTM/views/车间管理/工序进站接收单/Cj_StationInBill.html                  |    2 
 WebTM/views/设备管理/设备工艺参数订单点检表/SB_EquipICMOTechParamBillEdit.html |    2 
 WebTM/views/车间管理/启动点检单/Sc_WorkBeginDotCheckBill.html            |   33 ++++++
 10 files changed, 242 insertions(+), 37 deletions(-)

diff --git a/WebTM/WebTM.csproj.user b/WebTM/WebTM.csproj.user
index 005e8c8..e39639b 100644
--- a/WebTM/WebTM.csproj.user
+++ b/WebTM/WebTM.csproj.user
@@ -3,7 +3,7 @@
   <PropertyGroup>
     <NameOfLastUsedPublishProfile>D:\鏅轰簯杩堟�漒MES\MES-WEB-LayUI\WebTM\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
     <ProjectView>ProjectFiles</ProjectView>
-    <LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
+    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
     <UseIISExpress>true</UseIISExpress>
     <Use64BitIISExpress />
     <IISExpressSSLPort />
diff --git "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReason.html" "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReason.html"
index 5cccf2b..0bfee42 100644
--- "a/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReason.html"
+++ "b/WebTM/views/\345\237\272\347\241\200\350\265\204\346\226\231/\347\224\237\344\272\247\345\237\272\347\241\200\350\265\204\346\226\231/Gy_BadReason.html"
@@ -186,7 +186,7 @@
             var option = [];
             var HModName = "Gy_BadReason";
             //涓嶉渶瑕佹樉绀虹殑瀛楁 鍙墿灞�
-            var titleData = ["HItemID"];
+            var titleData = ["HItemID","榛樿宸ュ簭"];
             //#endregion
 
 
diff --git "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackHandleBillMain.html" "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackHandleBillMain.html"
index 101f624..f104892 100644
--- "a/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackHandleBillMain.html"
+++ "b/WebTM/views/\347\224\237\344\272\247\347\256\241\347\220\206/\345\274\202\345\270\270\345\217\215\351\246\210\345\215\225/OA_ErrMsgBackHandleBillMain.html"
@@ -321,6 +321,16 @@
                                                                 </div>
                                                             </div>
                                                         </div>
+                                                        <div class="layui-inline">
+                                                            <label class="layui-form-label">澶勭悊鍘熷洜:</label>
+                                                            <div class="layui-input-inline">
+                                                                <input type="text" name="HBadReasonName" id="HBadReasonName" class="layui-input" value="" style="float:left;width:150px;" disabled>
+                                                                <input type="hidden" name="HBadReasonID" id="HBadReasonID" class="layui-input" value="0" style="float:left;width:150px;">
+                                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="HBadReasonList" id="HBadReasonList" style="width:40px;">
+                                                                    <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
+                                                                </button>
+                                                            </div>
+                                                        </div>
                                                     </div>
                                                 </div>
                                             <div class="layui-tab-item">
@@ -666,6 +676,8 @@
                                 , "HHandleEmpName": data[0]["澶勭悊浜�"]
                                 , "HHandleNote": data[0]["澶勭悊鍐呭"]
                                 , "HHandleDate": data[0]["澶勭悊瀹屾垚鏃堕棿"]
+                                , "HBadReasonID": data[0]["HBadReasonID"]
+                                , "HBadReasonName": data[0]["澶勭悊鍘熷洜"]
                              
 
                                 , "HMainSourceInterID": data[0]["婧愬崟ID"]                 //婧愬崟ID
@@ -1147,6 +1159,45 @@
                 });
             });
 
+            //澶勭悊鍘熷洜
+            form.on('submit(HBadReasonList)', function () {
+                //椤甸潰灞�-鑷畾涔�
+                layer.open({
+                    type: 2,
+                    skin: 'layui-layer-rim', //鍔犱笂杈规
+                    title: '澶勭悊鍘熷洜',
+                    closeBtn: 1,
+                    shift: 2,
+                    area: ['80%', '80%'],
+                    maxmin: true,
+                    content: ['../../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_DisposeWayList.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('璇烽�夋嫨鏁版嵁');
+                        }
+                        $("#HBadReasonName").val(checkStatus.data[0].澶勭悊鏂规鍚嶇О);
+                        $("#HBadReasonID").val(checkStatus.data[0].HItemID);
+                        layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                    }
+                    , btn2: function (index, layero) {
+                        //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                        //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                    },
+                    end: function () {
+
+                    },
+                    success: function (layero, index) {
+
+                    }
+                });
+            });
+
+
             //澶勭悊浜�
             form.on('submit(HHandleEmpList)', function () {
                 //椤甸潰灞�-鑷畾涔�
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 b9c55dc..762ce7e 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"
@@ -1577,7 +1577,7 @@
             form.on('submit(btn_Cancel)', function () {
                 layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
                     //鎿嶄綔绫诲瀷锛圤perationType=1鏂板銆丱perationType=2缂栬緫锛�
-                    if (OperationType == 2) {
+                    if (OperationType == 2 || OperationType == 1) {
                         Pub_Close(1);
                     }
                     else {
diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_Add_BackSampleCheckBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_Add_BackSampleCheckBill.html"
index 39f09a5..4e0023e 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_Add_BackSampleCheckBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\346\243\200\351\252\214\345\217\226\346\240\267\350\277\230\346\240\267\345\215\225/QC_Add_BackSampleCheckBill.html"
@@ -301,7 +301,8 @@
                 //鍒濆鍖栧埗鍗曚汉鍜屽埗鍗曟椂闂�
                 $("#HMaker").val(sessionStorage["HUserName"]);
                 $("#HMakerDate").val(Format(new Date(), "yyyy-MM-dd"));
-
+                $("#HEmp").val(sessionStorage["HEmpID"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭鎿嶄綔鍛業D
+                $("#HEmpName").val(sessionStorage["HEmpName"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭鎿嶄綔鍛�
                 //鍒濆鍖栨棩鏈�
                 $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
 
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_BadProductsReport.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_BadProductsReport.html"
index f1b5920..ee40cdf 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_BadProductsReport.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_BadProductsReport.html"
@@ -49,7 +49,16 @@
                                     <div class="layui-input-block">
                                         <input type="date" class="layui-input ForFilteringSchemes" id="HEndDate" style="width:190px;">
                                     </div>
-                                </div>                               
+                                </div>
+                                <div class="layui-inline">
+                                    <label class="layui-form-label" style="width: 85px;">宸ュ簭鍚嶇О</label>
+                                    <div class="layui-input-block">
+                                        <input type="text" class="layui-input" lay-verify="HProcName" name="HProcName" id="HProcName" value="" style="background-color: #efefef4d; width: 65%; display: inline-block;" readonly>
+                                        <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;">
+                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                        </button>
+                                    </div>
+                                </div>
                                 <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;">
                                     <div class="layui-inline">
                                         <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐗╂枡缂栫爜</label>
@@ -79,7 +88,7 @@
                                         </div>
                                     </div>
                                 </div>
-                                <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;">                                   
+                                <div class="layui-row" style="margin-top:5px;margin-left:82px;margin-bottom:5px;">
                                     <div class="layui-inline">
                                         <label class="layui-form-label" style="width: 85px;">鏄惁閲忎骇</label>
                                         <div class="layui-input-block" style="margin-left: 120px; width: 185px;">
@@ -266,7 +275,6 @@
                     if (data1.count == 1) {
                         var data = [];//鍒楀瓧娈垫暟鎹�
                         var col = [];
-                        var totalArray = ["鏁伴噺", "鍏宠仈鏁伴噺", "鏈叧鑱旀暟閲�", "鎵撳嵃鏉$爜鏁伴噺", "鏈墦鍗版潯鐮佹暟閲�", "瀹炴敹鏁伴噺", "閲戦"];
                         //缁欑┖鐨勬暟缁勮祴鍊�
                         for (var key in data1.list) {
                             data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
@@ -278,9 +286,7 @@
                             if ($.inArray(data[i].name, titleData) > -1) {
                                 col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //闅愯棌id鍒�
                             }
-                            else if ($.inArray(data[i].name, totalArray) > -1) { //璁$畻鍒�
-                                col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, totalRow: true, width: 120 });
-                            } else if (data[i].name == '鍗曟嵁鍙�') {//娣诲姞瓒呴摼鎺�
+                            else if (data[i].name == '鍗曟嵁鍙�') {//娣诲姞瓒呴摼鎺�
                                 col.push({
                                     field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200, event: '鍗曟嵁鍙�', templet: function (d) {
                                         return '<span style="color: blue;">' + d.鍗曟嵁鍙� + '</span>'
@@ -347,6 +353,7 @@
             var HMaterName = $("#HMaterName").val();//鐗╂枡鍚嶇О
             var HBatchNo = $("#HBatchNo").val();//鎵规鍙�
             var HProjectNum = $("#HProjectNum").val();//椤圭洰鍙�
+            var HProcName = $("#HProcName").val();//宸ュ簭鍚嶇О
 
             sWhere = {
                 HBeginDate: HBeginDate
@@ -358,6 +365,7 @@
                 , HMaterName: HMaterName
                 , HBatchNo: HBatchNo
                 , HProjectNum: HProjectNum
+                , HProcName: HProcName
             }
             set_InitGrid();
             get_Display(JSON.stringify(sWhere));
@@ -375,6 +383,7 @@
             $("#HMaterName").val("");//鐗╂枡鍚嶇О
             $("#HBatchNo").val("");//鎵规鍙�
             $("#HProjectNum").val("");//椤圭洰鍙�
+            $("#HProcName").val("");//宸ュ簭鍚嶇О
             form.render('select');
 
             sWhere = "";
@@ -456,6 +465,43 @@
         }
 
 
+        //宸ュ簭
+        form.on('submit(btnHProc)', function () {
+            //椤甸潰灞�-鑷畾涔�
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '宸ュ簭鍒楄〃',
+                closeBtn: 1,
+                shift: 2,
+                area: ['90%', '90%'],
+                maxmin: true,
+                content: ['../../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_Process.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('璇烽�夋嫨鏁版嵁');
+                    }
+                    $("#HProcName").val(checkStatus.data[0].宸ュ簭鍚嶇О);
+                    layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                }
+                , btn2: function (index, layero) {
+                    //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                    //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                },
+                end: function () {
+
+                },
+                success: function (layero, index) {
+
+                }
+            });
+        });
+
 
         //闅愯棌鍒楄缃�
         function get_HideColumn() {
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_QualityMonthSumReport.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_QualityMonthSumReport.html"
index 283b4e5..e1587bc 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_QualityMonthSumReport.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_QualityMonthSumReport.html"
@@ -69,7 +69,7 @@
                                         </select>
                                     </div>
                                 </div>
-                                <div class="layui-inline">
+                                <div class="layui-inline" style="display:none">
                                     <label class="layui-form-label" style="width: 85px;">椤圭洰鍙�</label>
                                     <div class="layui-input-block" style="margin-left: 120px; width: 185px;">
                                         <select name="HProject" id="HProject" class=" ForFilteringSchemes" lay-verify="HProject">
@@ -704,13 +704,13 @@
 
                 //鏌辩姸鍥剧粦瀹氭暟鎹�
                 var H_X = ['1鏈�', '2鏈�', '3鏈�', '4鏈�', '5鏈�', '6鏈�', '7鏈�', '8鏈�', '9鏈�', '10鏈�', '11鏈�', '12鏈�'];//X杞存爣棰�
-                var HAverage = [];      //y杞达細璐ㄩ噺闂ㄩ�冮�哥巼
+                var HAverage = [];      //X杞达細璐ㄩ噺闂ㄩ�冮�哥巼
                 var HTarget = [];       //y杞达細涓婇檺鍊�
                 for (let i = 0; i < option.data.length; i++) {
                     //鑾峰彇璐ㄩ噺闂ㄩ�冮�哥巼琛屾暟鍊�
                     if (option.data[i].椤圭洰 == '璐ㄩ噺闂ㄩ�冮�哥巼') {
                         for (let j = 1; j <= 12; j++) {
-                            HAverage.push(option.data[i][j + "鏈�"]);
+                            HAverage.push((option.data[i][j + "鏈�"]).replace('%', ''));
                         }
                     }
                     //鑾峰彇涓婇檺鍊艰鏁板��
@@ -737,19 +737,25 @@
                         top: 'bottom',  // 灏嗗浘渚嬫斁缃湪鍥捐〃鐨勪笅鏂�
                         left: 'center'  // 鎴栬�� 'right'锛屾牴鎹渶瑕佽皟鏁存按骞充綅缃�
                     },
-                    //toolbox: {                            //宸ュ叿鏍�
-                    //    show: true,
-                    //    orient: 'vertical',
-                    //    left: 'right',
-                    //    top: 'center',
-                    //    feature: {
-                    //        mark: { show: true },
-                    //        dataView: { show: true, readOnly: false },
-                    //        magicType: { show: true, type: ['line', 'bar', 'stack'] },
-                    //        restore: { show: true },
-                    //        saveAsImage: { show: true }
-                    //    }
-                    //},
+                    tooltip: {
+                        trigger: 'axis',
+                        axisPointer: {
+                            type: 'shadow'
+                        },
+                        formatter: function (params) {
+                            let tooltipHtml = params[0].axisValue + '<br>'; // X杞存暟鍊�
+
+                            params.forEach(function (item) {
+                                if (item.seriesType === 'line') {
+                                    let valueToShow = parseFloat(item.value); // 灏嗗瓧绗︿覆杞崲涓烘暟鍊�
+                                    tooltipHtml += item.seriesName + ': ' + valueToShow.toFixed(3) + '%' + '<br>'; // 鎶樼嚎鍥炬暟鎹牸寮忓寲涓虹櫨鍒嗘瘮
+                                }
+                            });
+
+                            return tooltipHtml;
+                        }
+
+                    },
                     grid:
                     {
                         left: '5%',
@@ -774,11 +780,7 @@
                                             temp += '\n' + value.slice(i);
                                         }
                                     }
-
                                     return temp;
-
-                                    // 浣跨敤 '\n' 瀹炵幇鎹㈣
-                                    //return value.length > 5 ? value.slice(0, 5) + '\n' + value.slice(5) : value;
                                 },
                                 width: 30 // 璁剧疆鍒诲害鏍囩鐨勫搴︼紝瓒呰繃杩欎釜瀹藉害浼氳嚜鍔ㄦ崲琛�
                             }
@@ -786,16 +788,23 @@
                     ],
                     yAxis: [                                //璁剧疆y杞存暟鎹被鍨�
                         {
-                            type: 'value'
+                            type: 'value',
+                            name: '涓婇檺鍊�',
+                            axisLabel: {
+                                formatter: '{value}'
+                            }
                         }
                     ],
                     series: [                               //璁剧疆y杞存暟鎹�
                         {
                             name: '璐ㄩ噺闂ㄩ�冮�哥巼',
                             type: 'line',
-                            barWidth: 30,
+                            barWidth: 10,
                             barGap: 0,
-                            label: labelOption,
+                            label: {
+                                show: true,
+                                formatter: '{c}%'
+                            },
                             emphasis: {
                                 focus: 'series'
                             },
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_QualityStatisticsDailyReport.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_QualityStatisticsDailyReport.html"
index 4606c0d..fb5e90e 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_QualityStatisticsDailyReport.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_QualityStatisticsDailyReport.html"
@@ -64,7 +64,7 @@
                                 </div>                            
                                 <div class="layui-inline">
                                     <label class="layui-form-label" style="width: 85px;">缁勭粐</label>
-                                    <div class="layui-input-block" style="margin-left: 120px; width: 125px;">
+                                    <div class="layui-input-block" style="margin-left: 120px; width: 140px;">
                                         <select name="HOrgID" id="HOrgID" lay-verify="HOrgID">
                                             <!--鍔ㄦ�佹覆鏌撳勾浠�-->
                                         </select>
@@ -99,6 +99,30 @@
                                             <select name="HDivisionName" id="HDivisionName" class=" ForFilteringSchemes" lay-verify="HDivisionName">
                                                 <!--鍔ㄦ�佹覆鏌撶粍缁�-->
                                             </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label" style="width: 85px;">鍒ゆ柇缁撴灉</label>
+                                        <div class="layui-input-block" style="margin-left: 120px; width: 185px;">
+                                            <select name="HResult" id="HResult" lay-verify="HResult">
+                                                <option value="">璇烽�夋嫨</option>
+                                                <option value="鎶ュ簾">鎶ュ簾</option>
+                                                <option value="杩斿伐">杩斿伐</option>
+                                                <option value="鐗归噰">鐗归噰</option>
+                                                <option value="鏀捐">鏀捐</option>
+                                                <option value="宸ュ簾">宸ュ簾</option>
+                                                <option value="鏂欏簾">鏂欏簾</option>
+                                                <option value="鏍蜂欢淇濈暀">鏍蜂欢淇濈暀</option>
+                                            </select>
+                                        </div>
+                                    </div>
+                                    <div class="layui-inline">
+                                        <label class="layui-form-label" style="width: 85px;">宸ュ簭鍚嶇О</label>
+                                        <div class="layui-input-block">
+                                            <input type="text" class="layui-input" lay-verify="HProcName" name="HProcName" id="HProcName" value="" style="background-color: #efefef4d; width: 65%; display: inline-block;" readonly>
+                                            <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHProc" id="btnHProc" style="padding: 0 10px;float: right;margin-right: 3px;">
+                                                <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                            </button>
                                         </div>
                                     </div>
                                 </div>
@@ -257,6 +281,43 @@
             })
         }
 
+        //宸ュ簭
+        form.on('submit(btnHProc)', function () {
+            //椤甸潰灞�-鑷畾涔�
+            layer.open({
+                type: 2,
+                skin: 'layui-layer-rim', //鍔犱笂杈规
+                title: '宸ュ簭鍒楄〃',
+                closeBtn: 1,
+                shift: 2,
+                area: ['90%', '90%'],
+                maxmin: true,
+                content: ['../../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_Process.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('璇烽�夋嫨鏁版嵁');
+                    }
+                    $("#HProcName").val(checkStatus.data[0].宸ュ簭鍚嶇О);
+                    layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                }
+                , btn2: function (index, layero) {
+                    //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                    //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                },
+                end: function () {
+
+                },
+                success: function (layero, index) {
+
+                }
+            });
+        });
+
         function set_InitGrid() {
 
             var columns = [];
@@ -338,6 +399,8 @@
             var HProject = $("#HProject").val();//椤圭洰鍙�
             var HBatchWork = $("#HBatchWork").val();//鏄惁閲忎骇
             var HDivisionName = $("#HDivisionName").val();//浜嬩笟閮�
+            var HResult = $("#HResult").val();//鍒ゅ畾缁撴灉
+            var HProcName = $("#HProcName").val();//宸ュ簭鍚嶇О
             sWhere = {
                 HYear: HYear
                 , HMonth: HMonth
@@ -346,6 +409,8 @@
                 , HProject: HProject
                 , HBatchWork: HBatchWork
                 , HDivisionName: HDivisionName
+                , HResult: HResult
+                , HProcName: HProcName
             }
             set_InitGrid();
             get_Display(JSON.stringify(sWhere));
@@ -358,7 +423,9 @@
             $("#HProcExchBillNo").val("");
             $("#HProject").val("");
             $("#HBatchWork").val("0");
-            $("#HDivisionName").val("0");           
+            $("#HDivisionName").val("0");
+            $("#HBatchWork").val("");
+            $("#HDivisionName").val("");
             form.render('select');
 
             sWhere = "";
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\220\257\345\212\250\347\202\271\346\243\200\345\215\225/Sc_WorkBeginDotCheckBill.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\220\257\345\212\250\347\202\271\346\243\200\345\215\225/Sc_WorkBeginDotCheckBill.html"
index 3559bc0..b7d7a6f 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\220\257\345\212\250\347\202\271\346\243\200\345\215\225/Sc_WorkBeginDotCheckBill.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\220\257\345\212\250\347\202\271\346\243\200\345\215\225/Sc_WorkBeginDotCheckBill.html"
@@ -295,7 +295,7 @@
     <!--鍒犻櫎-->
     <script type="text/html" id="barDemo">
         <a class="layui-btn layui-btn-xs" lay-event="edit">鏌ョ湅</a>
-        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>
+        <!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">鍒犻櫎</a>-->
     </script>
     <!--琛屼笅鎷夐�夋嫨(缁撴灉)-->
     <script type="text/html" id="HCheckResult">
@@ -425,6 +425,7 @@
                 get_InitGrid();
                 //鑾峰彇鎶ュ伐鍙拌烦杞暟鎹�
                 RoadBillEdit(HMaterID, HProcID, HSourceID, SCOrder);
+                Get_HNowMould(HSourceID);
                 //绂佺敤缁勭粐閫夐」
                 $('#HOrgID').attr("disabled", true);
             }
@@ -1394,6 +1395,36 @@
             }
             //#endregion
 
+            //#region  鑾峰彇鏈�杩戠殑涓�娆′笂妯″崟璧嬪��
+            function Get_HNowMould(HSourceID)
+            {
+                $.ajax({
+                    url: GetWEBURL() + "/Sc_WorkBeginDotCheckBill/锘縎c_WorkBeginDotCheckBill_HMould",
+                    type: "GET",
+                    async: false,
+                    data: {  "HSourceID": HSourceID, "user": sessionStorage["HUserName"] },
+                    success: function (result) {
+                        var tableSub = result.data;
+                        //瀛愯〃  璧嬪��
+                       
+                        for (var i = 0; i < option.data.length; i++) {
+                            if (option.data[i]["HDotCheckType"] == "妯″叿") {
+                                option.data[i]["HRelationName"] = tableSub[0]["妯″叿鍚嶇О"];
+                                option.data[i]["HRelationID"] = tableSub[0]["HMouldID"] == null ? "0" : tableSub[0]["HMouldID"];
+                            }
+                        }                       
+                        var tables = option.data;
+                        option.data = option.data;
+                        table.render(option);
+                        for (var i = 0; i < tables.length; i++) {
+                            $('#HDotCheckType' + (i + 1)).find("option[value='" + tables[i]["HDotCheckType"] + "']").attr("selected", true);
+                        }
+                        form.render('select');
+                    }
+                })
+            }
+            //#endregion
+
             //#endregion
 
         });
diff --git "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html" "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html"
index 8fce09d..ff0ee97 100644
--- "a/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html"
+++ "b/WebTM/views/\350\275\246\351\227\264\347\256\241\347\220\206/\345\267\245\345\272\217\350\277\233\347\253\231\346\216\245\346\224\266\345\215\225/Cj_StationInBill.html"
@@ -554,7 +554,7 @@
             //#region 閫�鍑烘寜閽�
             form.on('submit(Cancel)', function () {
                 layer.confirm('鎮ㄧ‘瀹氳閫�鍑哄悧锛�', { icon: 3, title: '鎻愮ず' }, function (index) {
-                    if (OperationType == 1) {
+                    if (OperationType == 1) {                        
                         Pub_Close(closeType);
                     } else if (OperationType == 3) {
                         Pub_Close(1);

--
Gitblit v1.9.1