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_PatrolProcCheckOtherill.html |  183 ++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 155 insertions(+), 28 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_PatrolProcCheckOtherill.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_PatrolProcCheckOtherill.html"
index 702e641..25358d6 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_PatrolProcCheckOtherill.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_PatrolProcCheckOtherill.html"
@@ -211,14 +211,25 @@
                                         <div class="layui-inline">
                                             <label class="layui-form-label">鍒ゆ柇缁撹</label>
                                             <div class="layui-input-block">
-                                                <input type="radio" name="HLastResult" id="HLastResult" value="true" title="鍚堟牸" checked>
-                                                <input type="radio" name="HLastResult" id="HLastResult" value="false" title="涓嶅悎鏍�">
+                                                <input type="radio" name="HLastResult" id="HLastResult" value="true" title="鍚堟牸" >
+                                                <input type="radio" name="HLastResult" id="HLastResult" value="false" title="涓嶅悎鏍�" checked>
                                             </div>
                                         </div>
                                         <div class="layui-inline" id="hidediv1">
-                                            <label class="layui-form-label" style="width: 85px;">宸ュ簭</label>
+                                            <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="HProcName" id="HProcName" style="background-color:#efefef4d;width: 60%;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>
+                                                <input type="hidden" name="HProcID" id="HProcID" value="0">
+                                            </div>
+                                        </div>
+                                        <div class="layui-inline">
+                                            <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="HProcName" id="HProcName" style="background-color:#efefef4d;" readonly value="1">
+                                                <input type="text" class="layui-input" name="HTakeSampleCheckBillNo" id="HTakeSampleCheckBillNo" style="background-color:#efefef4d;" readonly>
+                                                <input type="hidden" name="HTakeSampleCheckBillID" id="HTakeSampleCheckBillID" value="0">
                                             </div>
                                         </div>
                                     </div>
@@ -358,13 +369,13 @@
                                     <div class="layui-inline">
                                         <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="HSampleQty" id="HSampleQty" style="background-color:#efefef4d;" value="0" readonly>
+                                            <input type="text" class="layui-input" name="HSampleQty" id="HSampleQty" value="0" style="background-color:#efefef4d;" readonly>
                                         </div>
                                     </div>
                                     <div class="layui-inline">
                                         <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="HSampleDamageQty" id="HSampleDamageQty" style="" value="0">
+                                            <input type="text" class="layui-input" name="HSampleDamageQty" id="HSampleDamageQty" value="0" style="">
                                         </div>
                                     </div>
                                 </div>
@@ -407,7 +418,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="text" class="layui-input" name="HRejectQty" id="HRejectQty" style="background-color:#efefef4d;" readonly>
+                                            <input type="text" class="layui-input" name="HRejectQty" id="HRejectQty"  value="0" style="background-color:#efefef4d;" readonly>
                                         </div>
                                     </div>
                                     <!--<div class="layui-inline">
@@ -739,7 +750,7 @@
                 $("#HInterID").val("");
                 $("#HBillNo").val("");
                 $('#btn-AddNew').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂鏂板鎸夐挳绂佺敤
-                $('#btnSearchSource').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂鐢熶骇璧勬簮鎸夐挳绂佺敤
+                //$('#btnSearchSource').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂鐢熶骇璧勬簮鎸夐挳绂佺敤
                 $('#btnSearchICMOBill').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂浠诲姟鍗曞彿鎸夐挳绂佺敤
                 $('#btnSearchMater').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂浜у搧鍐呯爜鎸夐挳绂佺敤
                 $('#btnSearchProcExch').addClass("layui-btn-disabled").attr("disabled", true);//鏈夋簮鍗曟椂娴佽浆鍗″彿鎸夐挳绂佺敤
@@ -841,6 +852,7 @@
 
             //鏍规嵁婧愬崟id鑾峰彇婧愬崟淇℃伅(宸ュ簭娴佽浆鍗�)
             function LoadingInformation_ProcExchange() {
+                $('#btnSearchSource').removeClass("layui-btn-disabled").attr("disabled", false);//鐢熶骇璧勬簮鎸夐挳鍚敤
                 var wait = layer.load();
                 $.ajax({
                     url: GetWEBURL() + '/QC_PatrolProcCheckOtherBill/get_ProcessExchangeBill',
@@ -1003,8 +1015,8 @@
                     "HQCCheckItemID": "", "妫�楠岄」鐩�": "", "HInspectInstruMentID": "0", "妫�楠屼华鍣�": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "",
                     "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0,
                     "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0',
-                    "HSampleSchemeName": "", "HSampleQty": 0, "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "",
-                    "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": ""
+                    "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0",
+                    "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": ""
                 };
 
                 switch (obj.event) {
@@ -1512,6 +1524,10 @@
                                 , "HShiftsName": data.鐝鍚嶇О
                                 , "HErrTreatment": data.寮傚父涓存椂澶勭悊鏂规
                                 , "HBatchNo": data.鎵瑰彿
+                                , "HTakeSampleCheckBillID": data.HTakeSampleCheckBillID
+                                , "HTakeSampleCheckBillNo": data.HTakeSampleCheckBillNo
+                                , "HProcID": data.HProcID   
+                                , "HProcName": data.HProcName
                             });
                             $("input[name=HLastResult][value=true]").prop("checked", data.鍒ゅ畾缁撹 === "鍚堟牸");
                             $("input[name=HLastResult][value=false]").prop("checked", data.鍒ゅ畾缁撹 === "涓嶅悎鏍�");
@@ -1523,7 +1539,7 @@
                             for (var i = 0; i < data.length; i++) {
                                 rowdata.push(
                                     {
-                                        "HQCCheckItemID": data[i].HQCCheckItemID, "妫�楠岄」鐩�": data[i].妫�楠岄」鐩悕绉�, "HInspectInstruMentID": data[i].HInspectInstruMentID, "妫�楠屼华鍣�": data[i].妫�楠屼华鍣ㄥ悕绉�, "HQCStd": data[i].妫�楠屾爣鍑�,
+                                        "HQCCheckItemID": data[i].HQCCheckItemID, "妫�楠岄」鐩唬鐮�": data[i].妫�楠岄」鐩唬鐮�, "妫�楠岄」鐩�": data[i].妫�楠岄」鐩悕绉�, "HInspectInstruMentID": data[i].HInspectInstruMentID, "妫�楠屼华鍣�": data[i].妫�楠屼华鍣ㄥ悕绉�, "HQCStd": data[i].妫�楠屾爣鍑�,
                                         "HUnit": data[i].妫�楠屽崟浣�, "HQCNote": data[i].妫�楠岃褰�, "HResult": data[i].缁撹 == "鍚堟牸" ? 1 : 2,
                                         "HMax": data[i].鏈�澶у��, "HMin": data[i].鏈�灏忓��, "HAvg": data[i].骞冲潎鍊�, "HRemark": data[i].琛ㄤ綋澶囨敞,
                                         "HAnalysisMethod": data[i].鍒嗘瀽鏂规硶 == "瀹氭�у垎鏋�" ? 1 : (data[i].鍒嗘瀽鏂规硶 == "瀹氶噺鍒嗘瀽" ? 2 : 3), "HKeyInspect": data[i].閲嶇偣妫�鏌� == "鍚�" ? false : true,
@@ -1848,9 +1864,9 @@
                                 //瀛愯〃  璧嬪��
                                 rowdata.push(
                                     {
-                                        "HQCCheckItemID": data[i]["HQCCheckItemID"], "妫�楠岄」鐩�": data[i]["妫�楠岄」鐩�"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "妫�楠屼华鍣�": data[i]["妫�楠屼华鍣�"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["鍗曚綅鍚嶇О"], "HQCNote": "", "HAnalysisMethod": data[i]["鍒嗘瀽鏂规硶"], "HResult": data[i]["榛樿缁撹"],
+                                        "HQCCheckItemID": data[i]["HQCCheckItemID"], "妫�楠岄」鐩唬鐮�": data[i].妫�楠岄」鐩唬鐮�, "妫�楠岄」鐩�": data[i]["妫�楠岄」鐩�"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "妫�楠屼华鍣�": data[i]["妫�楠屼华鍣�"], "HQCStd": data[i]["HQCStd"], "HUnit": data[i]["鍗曚綅鍚嶇О"], "HQCNote": "", "HAnalysisMethod": data[i]["鍒嗘瀽鏂规硶"], "HResult": data[i]["榛樿缁撹"],
                                         "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["閲嶇偣妫�鏌�"] == 1 ? true : false, "HStatus": 0, "HSampleSchemeID": data[i]["HSampleSchemeID"] == null ? 0 : data[i]["HSampleSchemeID"], "HUnitID": data[i]["HUnitID"],
-                                        "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "0",
+                                        "HInspectVal": '', "HTargetVal": '', "HUpLimit": + data[i].涓婇檺鍊�, "HDownLimit": + data[i].涓嬮檺鍊�, "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "0",
                                         "HSampleSchemeName": data[i].鎶芥牱鏂规鍚嶇О, "HSampleQty": data[i].鏍锋湰閲�, "HAcceptQty": data[i].鍏佽鏁� == null ? 0 : data[i].鍏佽鏁�, "HInspectionLevel": data[i].妫�楠屾按骞�, "HRejectQty": data[i].鎷掔粷鏁� == null ? 0 : data[i].鎷掔粷鏁�,
                                         "HStrictness": data[i].涓ユ牸搴�, "HSampleUnRightQty": "0", "HAQL": data[i].AQL, "HSamplingType": data[i].鎶芥牱绫诲瀷
                                     }
@@ -2040,6 +2056,8 @@
                         $("#HSourceName").val(checkStatus.data[0].鐢熶骇璧勬簮鍚嶇О);
                         $("#HSourceID").val(checkStatus.data[0].HItemID);
                         layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                        get_ICMOBillStatusList();
+                        get_QC_TakeSampleCheckBillList();
                     }
                     , btn2: function (index, layero) {
                         //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
@@ -2053,6 +2071,47 @@
                     }
                 });
             });
+
+            //琛ㄥご淇℃伅宸ュ簭
+            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].宸ュ簭鍚嶇О);
+                        $("#HProcID").val(checkStatus.data[0].HItemID);
+                        layer.close(layer.index); //瀹冭幏鍙栫殑濮嬬粓鏄渶鏂板脊鍑虹殑鏌愪釜灞傦紝鍊兼槸鐢眑ayer鍐呴儴鍔ㄦ�侀�掑璁$畻鐨�
+                        get_ICMOBillStatusList();
+                        get_QC_TakeSampleCheckBillList();
+                    }
+                    , btn2: function (index, layero) {
+                        //鎸夐挳銆愭寜閽簩銆戠殑鍥炶皟
+                        //return false 寮�鍚浠g爜鍙姝㈢偣鍑昏鎸夐挳鍏抽棴
+                    },
+                    end: function () {
+
+                    },
+                    success: function (layero, index) {
+
+                    }
+                });
+            });
+
 
             //琛ㄥご淇℃伅鐢熶骇鐝寮圭獥
             form.on('submit(btnHShifts)', function () {
@@ -2189,7 +2248,7 @@
                     "HQCCheckItemID": "", "妫�楠岄」鐩�": "", "HInspectInstruMentID": "0", "妫�楠屼华鍣�": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "",
                     "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0,
                     "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0',
-                    "HSampleSchemeName": "", "HSampleQty": 0, "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "",
+                    "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0",
                     "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": ""
                 }];
                 option = {
@@ -2203,6 +2262,7 @@
                         { type: 'checkbox', totalRowText: '鍚堣琛�' }
                         , { type: 'numbers', title: '搴忓彿', totalRow: true }
                         , { field: 'HQCCheckItemID', title: 'HQCCheckItemID', hide: true }
+                        , { field: '妫�楠岄」鐩唬鐮�', title: '妫�楠岄」鐩唬鐮�' }
                         , { field: '妫�楠岄」鐩�', title: '妫�楠岄」鐩�', edit: 'text', event: 'HQCCheckItemID' }
                         , { field: 'HInspectInstruMentID', title: 'HInspectInstruMentID', hide: true }
                         , { field: '妫�楠屼华鍣�', title: '妫�楠屼华鍣�', edit: 'text', event: 'HInspectInstruMentID' }
@@ -2212,6 +2272,9 @@
                         , { field: 'HQCStd', title: '妫�楠屾爣鍑�', edit: 'text' }
                         , { field: 'HUnit', title: '鍗曚綅', edit: 'text' }
                         , { field: 'HQCNote', title: '妫�楠岃褰�', edit: 'text' }
+                        , { field: 'HInspectVal', title: '妫�楠屽��', edit: 'text' }
+                        , { field: 'HUpLimit', title: '涓婇檺鍊�' }
+                        , { field: 'HDownLimit', title: '涓嬮檺鍊�'  }
                         , { field: 'HMax', title: '鏈�澶у��', edit: 'text', totalRow: true }
                         , { field: 'HMin', title: '鏈�灏忓��', edit: 'text', totalRow: true }
                         , { field: 'HAvg', title: '骞冲潎鍊�', edit: 'text', totalRow: true }
@@ -2231,10 +2294,7 @@
                         , { field: 'xxx', title: '姣旇緝绗�', edit: 'text', hide: true }
                         , { field: 'HUnitID', title: '鍗曚綅ID', edit: 'text', hide: true }
                         , { field: 'HUnit', title: '鍗曚綅', edit: 'text', hide: true }
-                        , { field: 'HInspectVal', title: '妫�楠屽��', edit: 'text', hide: true }
                         , { field: 'HTargetVal', title: '鐩爣鍊�', edit: 'text', hide: true }
-                        , { field: 'HUpLimit', title: '涓婇檺鍊�', edit: 'text', hide: true }
-                        , { field: 'HDownLimit', title: '涓嬮檺鍊�', edit: 'text', hide: true }
                         , { field: 'HUpOffSet', title: '涓婂亸宸�', edit: 'text', hide: true }
                         , { field: 'HDownOffSet', title: '涓嬪亸宸�', edit: 'text', hide: true }
                         , { fixed: 'right', title: '鎿嶄綔', toolbar: '#barDemo', width: 85 }
@@ -2351,10 +2411,10 @@
                 }
                 if (HQty > 0) {
                     document.querySelectorAll("[name='HLastResult']")[0].removeAttribute('checked'); //鍒犻櫎閫夋嫨灞炴��
-                    $("input:radio[name=HLastResult][value=" + false + "]").attr("checked", "true"); //娣诲姞閫夋嫨灞炴��
+                    $("input:radio[name=HLastResult][value=" + false + "]").prop("checked", "true"); //娣诲姞閫夋嫨灞炴��
                 } else {
                     document.querySelectorAll("[name='HLastResult']")[1].removeAttribute('checked'); //鍒犻櫎閫夋嫨灞炴��
-                    $("input:radio[name=HLastResult][value=" + true + "]").attr("checked", "true"); //娣诲姞閫夋嫨灞炴��
+                    $("input:radio[name=HLastResult][value=" + true + "]").prop("checked", "true"); //娣诲姞閫夋嫨灞炴��
                 }
                 form.render('radio');
             }           
@@ -2629,21 +2689,21 @@
                     $("#HDownLimit").val(0);
                     $("#HUpOffSet").val(0);
                     $("#HDownOffSet").val(0);
-                    $("#HSampleDamageQty").val(0)
-                    $("#HSampleQty").val(0)
-                    $("#HSampleQty2").val(0)
+                    $("#HSampleDamageQty").val("0")
+                    $("#HSampleQty").val("0")
+                    $("#HSampleQty2").val("")
                     $("#HAcceptQty").val("0")
                     $("#HInspectionLevel").val("")
-                    $("#HRejectQty").val(0)
+                    $("#HRejectQty").val("0")
                     $("#HStrictness").val("")
-                    $("#HSampleUnRightQty").val(0)
-                    $("#HSampleUnRightQty2").val(0)
+                    $("#HSampleUnRightQty").val("0")
+                    $("#HSampleUnRightQty2").val("0")
                     $("#HAQL").val("")
                     $("#HSamplingType").val("")
-                    $("#HSampleQty").val(0)
+                    $("#HSampleQty").val("0")
                     $("#HInspectResultToSee").val("")
                     $("#HInspectResultToSee2").val("")
-                    $("#HSampleUnRightQty").val(0)
+                    $("#HSampleUnRightQty").val("0")
                     $("#HUnitID").val("0")
                     $("#HUnitName").val("")
                     $("#HInspectValB").val("0")
@@ -3217,7 +3277,74 @@
                 $("#HInspectResultToSee2").val(HInspectResultToSee);
                 LastResult();
             };
-             //#endregion         
+             //#endregion      
+
+
+            //鏍规嵁鐢熶骇璧勬簮鎴栬�� 宸ュ簭 鏌ヨ鐢熶骇宸ュ崟淇℃伅
+            function get_ICMOBillStatusList() {
+                var sWhere = "";
+                var HProcID = $("#HProcID").val();
+                var HSourceID = $("#HSourceID").val();
+                var HProcExchInterID = $("#HProcExchInterID").val();
+
+                if (HProcID != "0") {
+                    sWhere += " and HProcID=" + HProcID;
+                }
+                if (HSourceID != "0") {
+                    sWhere += " and HSourceID=" + HSourceID
+                }
+
+                sWhere += " and HSourceInterID=" + HProcExchInterID;
+
+                $.ajax({
+                    url: GetWEBURL() + "/CheckBill/GetICMOBillStatusList",
+                    type: "GET",
+                    async: false,
+                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
+                    success: function (result) {
+                        if (result.count == 1) {
+                            $("#HProcID").val(result.data[0]["HProcID"]);
+                            $("#HProcName").val(result.data[0]["宸ュ簭"]);
+                            $("#HSourceID").val(result.data[0]["HSourceID"]);
+                            $("#HSourceName").val(result.data[0]["鐢熶骇璧勬簮"]);
+
+                        } else {
+                            layer.msg(result.Message, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                        }
+                    },
+                    error: function (err) {
+                        layer.msg("鎺ュ彛璇锋眰澶辫触锛�" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    }
+                })
+            }
+
+            //鍙栨牱鍗曟煡璇�
+            function get_QC_TakeSampleCheckBillList() {
+                var HProcID = $("#HProcID").val();
+                var HProcExchInterID = $("#HProcExchInterID").val();
+                var sWhere = "";
+
+                if (HProcID == "0" || HProcID == "") {
+                    return layer.msg("璇烽�夋嫨宸ュ簭!");
+                }
+                sWhere = " and 宸ュ簭娴佽浆鍗′富鍐呯爜='" + HProcExchInterID + "' and HProcID=" + HProcID;
+                $.ajax({
+                    url: GetWEBURL() + "/QC_TakeSampleCheckBill/QC_TakeSampleCheckBillMainList",
+                    type: "GET",
+                    async: false,
+                    data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] },
+                    success: function (result) {
+                        if (result.count == 1) {
+                            $("#HTakeSampleCheckBillID").val(result.data[0]["hmainid"]);
+                            $("#HTakeSampleCheckBillNo").val(result.data[0]["鍗曟嵁鍙�"]);
+                        }
+                    },
+                    error: function (err) {
+                        layer.msg("鎺ュ彛璇锋眰澶辫触锛�" + err, { icon: 5, btn: ['纭'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "娓╅Θ鎻愮ず" });
+                    }
+                })
+            }
+
 
             //鑾峰彇涓嶅悎鏍兼暟鎬绘暟
             function addUnRightQty() {

--
Gitblit v1.9.1