From 07cf94734c36d4eae6ddbc4dd338bf5af81a2193 Mon Sep 17 00:00:00 2001
From: wtt <1985833171@qq.com>
Date: 星期一, 28 十月 2024 16:11:39 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI

---
 WebTM/views/质量管理/巡检记录单/QC_Add_Edit_PatrolProcCheckBill.html |   77 +++++++++++++++++++++++++++++++++++---
 1 files changed, 71 insertions(+), 6 deletions(-)

diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_Add_Edit_PatrolProcCheckBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_Add_Edit_PatrolProcCheckBill.html"
index 53360d2..e0dd644 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_Add_Edit_PatrolProcCheckBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\241\346\243\200\350\256\260\345\275\225\345\215\225/QC_Add_Edit_PatrolProcCheckBill.html"
@@ -95,16 +95,36 @@
                                                     </div>
                                                 </div>
                                                 <div class="layui-inline">
+                                                    <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">鐢熶骇鐝</label>
+                                                    <div class="layui-input-block" style="margin-left: 77px;">
+                                                        <input type="text" class="layui-input" name="HShiftsName" id="HShiftsName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly>
+                                                        <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnHShifts" id="btnHShifts" style="padding: 0 10px;float: right;margin-right: 3px;">
+                                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
+                                                        </button>
+                                                        <input type="hidden" name="HShiftsID" id="HShiftsID" value="0">
+                                                    </div>
+                                                </div>                                               
+                                            </div>
+                                            <div class="layui-row">
+                                                <div class="layui-inline" style="width: 45%;">
+                                                    <label class="layui-form-label" style="width: 85px;">澶囨敞</label>
+                                                    <div class="layui-input-block" style="margin-left: 120px;">
+                                                        <input type="text" class="layui-input" name="HRemark" id="HRemark" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value">
+                                                    </div>
+                                                </div>
+                                                <div class="layui-inline" style="width: 45%">
+                                                    <label class="layui-form-label" style="width: 85px;">寮傚父涓存椂<br />澶勭悊鏂规</label>
+                                                    <div class="layui-input-block" style="margin-left: 120px;">
+                                                        <input type="text" class="layui-input" name="HErrTreatment" id="HErrTreatment" placeholder="璇疯緭鍏ュ唴瀹�" onmouseover="this.title=this.value" style="margin-top:10px;">
+                                                    </div>
+                                                </div>
+                                            </div>
+                                            <div class="layui-row">
+                                                <div class="layui-inline">
                                                     <label class="layui-form-label">鍒ゆ柇缁撹</label>
                                                     <div class="layui-input-block">
                                                         <input type="radio" name="HLastResult" id="HLastResult" value="1" title="鍚堟牸" checked>
                                                         <input type="radio" name="HLastResult" id="HLastResult" value="0" title="涓嶅悎鏍�">
-                                                    </div>
-                                                </div>
-                                                <div class="layui-colorpicker-xs" style="margin-top:15px">
-                                                    <label class="layui-form-label"> 澶囨敞</label>
-                                                    <div class="layui-input-block">
-                                                        <input class="layui-input" name="HRemark" id="HRemark" autocomplete="off">
                                                     </div>
                                                 </div>
                                             </div>
@@ -392,6 +412,10 @@
 
             //鍒ゆ柇鏄惁鏂板
             if (OperationType == 1) {
+
+                $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭妫�楠屽憳ID
+                $("#HEmpName").val(sessionStorage["HCheckEmpName"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭妫�楠屽憳
+
                 //鍒濆鍔犺浇琛ㄦ牸{ "ID": 0, "HWasterReasonName": " ","HBadReasonID":0,"HEmpName": "  ", "HSQProcName": "   ","HProcID":0, "HZRProcName": "  ", "HMRBChecker": "  ", "HRemark": "  ", "HPSProcName": "  ", "HCloseMan": "   " }
                 option.data = [{ "妫�楠岄」鐩垎绫�":"","HQCCheckItemID":0,"HQCCheckItemName": "", "HQCStd": " ", "HQCNote1": " ", "HQCNote2": " ", "HQCNote3": "  ", "HQCNote4": "  ", "HQCNote5": " ", "HQCNote6": " ", "HQCNote7": " ", "HQCNote8": " ", "HQCNote9": " ", "HQCNote10": " ", "HRemark": " " }];
                 table.render(option);
@@ -1071,6 +1095,9 @@
                                 , "HMainProcNumber": data.宸ュ簭浠g爜
                                 , "HMainProcName": data.宸ュ簭鍚嶇О
                                 , "HRemark": data.琛ㄥご澶囨敞
+                                , "HShiftsID": data.HShiftsID
+                                , "HShiftsName": data.鐝鍚嶇О
+                                , "HErrTreatment": data.寮傚父涓存椂澶勭悊鏂规
                             });
 
 
@@ -1183,6 +1210,44 @@
                 })
             });
 
+            //琛ㄥご淇℃伅鐢熶骇鐝寮圭獥
+            form.on('submit(btnHShifts)', function () {
+                //椤甸潰灞�-鑷畾涔�
+                layer.open({
+                    type: 2,
+                    skin: 'layui-layer-rim', //鍔犱笂杈规
+                    title: '鐢熶骇鐝鍒楄〃',
+                    closeBtn: 1,
+                    shift: 2,
+                    area: ['90%', '90%'],
+                    maxmin: true,
+                    content: ['../../鍩虹璧勬枡/鐢熶骇鍩虹璧勬枡/Gy_ShiftsList.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('璇烽�夋嫨鏁版嵁');
+                        }
+                        $("#HShiftsName").val(checkStatus.data[0].鐝鍚嶇О);
+                        $("#HShiftsID").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(HMateria-BT)', function () {//浜у搧
                 layer.open({

--
Gitblit v1.9.1