From 25affc1f8173f68a8c2de1153c3f280cc3c92f55 Mon Sep 17 00:00:00 2001
From: yusijie <ysj@hz-kingdee.com>
Date: 星期二, 07 五月 2024 15:49:25 +0800
Subject: [PATCH] 点检项目分类;点检方法;三个检验单加字段,点检项目加字段

---
 WebTM/views/质量管理/工序检验单/QC_ProcessCheckBill.html |   71 ++++++++++++++++++++++++++++++++---
 1 files changed, 64 insertions(+), 7 deletions(-)

diff --git "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html" "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html"
index 94d3efc..72e7e77 100644
--- "a/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html"
+++ "b/WebTM/views/\350\264\250\351\207\217\347\256\241\347\220\206/\345\267\245\345\272\217\346\243\200\351\252\214\345\215\225/QC_ProcessCheckBill.html"
@@ -74,7 +74,7 @@
                                         <div class="layui-inline">
                                             <label class="layui-form-label" style="width: 85px;">鏃ユ湡</label>
                                             <div class="layui-input-block" style="margin-left: 120px;">
-                                                <input type="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 47px;">
+                                                <input type="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 68px;">
                                             </div>
                                         </div>
                                         <div class="layui-inline">
@@ -86,7 +86,7 @@
                                                 </button>
                                                 <input type="hidden" name="HSourceID" id="HSourceID" value="0">
                                             </div>
-                                        </div>
+                                        </div>                                        
                                     </div>
                                     <div class="layui-row">
                                         <div class="layui-inline">
@@ -173,12 +173,28 @@
                                                 <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0">
                                             </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: 50%;">
+                                        <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>
@@ -738,8 +754,8 @@
                 $("#HBillNo").val("");
                 $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂淇濆瓨鎸夐挳绂佺敤
 
-                $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭妫�楠屽憳ID
-                $("#HFirstCheckEmpName").val(sessionStorage["HEmpName"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭妫�楠屽憳
+                $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭妫�楠屽憳ID
+                $("#HFirstCheckEmpName").val(sessionStorage["HCheckEmpName"]); //鏍规嵁鐧诲綍鐢ㄦ埛甯﹀嚭妫�楠屽憳
                 //鑾峰彇鏈�澶у崟鎹彿
                 $.ajax({
                     url: GetWEBURL() + "/Web/GetMAXNum",
@@ -755,8 +771,8 @@
                 });
             }
             else if (OperationType == 2) {
-                $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]);
-                $("#HFirstCheckEmpName").val(sessionStorage["HEmpName"]);
+                $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]);
+                $("#HFirstCheckEmpName").val(sessionStorage["HCheckEmpName"]);
 
                 if (HICMOEntryID < 0 || HICMOEntryID == "") {
                     layer.alert("鐢熶骇浠诲姟鍗曞瓙鍐呯爜閿欒锛屾棤娉曞伐搴忔锛�", { icon: 5 });
@@ -1385,6 +1401,9 @@
                                 , "HEntryID": data.hsubid
                                 , "HQCCheckItemName": data.妫�楠岄」鐩悕绉�
                                 , "HQCCheckItemID": data.HQCCheckItemID
+                                , "HShiftsID": data.HShiftsID
+                                , "HShiftsName": data.鐝鍚嶇О
+                                , "HErrTreatment": data.寮傚父涓存椂澶勭悊鏂规
                             });
                             data = result.data;
                             //data = result.data.h_v_QC_Edit_FirstPieceCheckBillList;
@@ -1490,6 +1509,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(btnSearchCheckItemID)', function () {
                 //椤甸潰灞�-鑷畾涔�

--
Gitblit v1.9.1