| | |
| | | <div class="layui-card" style="padding: 2px;background-color: #efefef;"> |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" style="margin-left: 0px" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | <div style="position: relative; display: flex; align-items: center; padding: 10px;"> |
| | | <!-- æé®ç» --> |
| | | <div style="z-index: 1;"> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn-AddNew" id="btn-AddNew">æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn-Exit" id="btn-Exit">éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="btn-SIP" id="btn-SIP">SIPæ¥ç</button> |
| | | </div> |
| | | <!-- æ é¢ï¼ä½¿ç¨ç»å¯¹å®ä½ä½¿å
¶å¨ç¶å®¹å¨å
å±
ä¸ --> |
| | | <h1 style="position: absolute; left: 50%; transform: translateX(-50%); z-index: 0; text-align: center; width: fit-content; margin: 0; padding: 0 10px;"><b>车é´èªæ£å</b></h1> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>车é´èªæ£å</b></h1> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | | <li lay-id="1" style="padding:1px;" class="layui-this">åºæ¬ä¿¡æ¯</li> |
| | | <li lay-id="2" style="padding:1px;">å¶åä¿¡æ¯</li> |
| | |
| | | <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="HSourceName" id="HSourceName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HSourceID" id="HSourceID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchSource" id="btnSearchSource" 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="HSourceID" id="HSourceID" 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> |
| | | <input type="hidden" name="HShiftsID" id="HShiftsID" value="0"> |
| | | <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> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <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="HICMOBillNo" id="HICMOBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HICMOInterID" id="HICMOInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchICMOBill" id="btnSearchICMOBill" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | <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="HICMOQty" id="HICMOQty" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <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;"> |
| | | <input type="text" class="layui-input" name="HICMOInterID" id="HICMOInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HICMOEntryID" id="HICMOEntryID" 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="display: none"> |
| | | <label class="layui-form-label" style="width: 85px;">æµè½¬å¡ID</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchInterID" id="HProcExchInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="display: none"> |
| | | <label class="layui-form-label" style="width: 85px;">æµè½¬å¡åID</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchEntryID" id="HProcExchEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" name="HICMOQty" id="HICMOQty" style="background-color:#efefef4d;" readonly value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv2"> |
| | | <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="HProcExchBillNo" id="HProcExchBillNo" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HProcExchInterID" id="HProcExchInterID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" class="layui-input" name="HProcExchEntryID" id="HProcExchEntryID" value="0" style="background-color:#efefef4d;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchProcExch" id="btnSearchProcExch" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <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="HProcExchQty" id="HProcExchQty" style="background-color:#efefef4d;" readonly value="1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <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="HProcExchQty" id="HProcExchQty" style="background-color:#efefef4d;" readonly value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 58%"> |
| | | <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" style="width: 58%;"> |
| | | <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> |
| | | <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="true" title="åæ ¼" checked> |
| | | <input type="radio" name="HLastResult" id="HLastResult" value="false" title="ä¸åæ ¼"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <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> |
| | | <input type="hidden" name="HProcID" id="HProcID" value="0"> |
| | | <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> |
| | | <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-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;" 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=""> |
| | | <input type="text" class="layui-input" name="HSampleDamageQty" id="HSampleDamageQty" value="0" style=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label">æ£éªç»æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HResult" lay-filter="HResult" style="width:190px;"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label">æ£éªç»æ</label> |
| | | <div class="layui-input-block"> |
| | | <select name="HResult" lay-filter="HResult" style="width:190px;"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline"> |
| | |
| | | <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"> |
| | | <label class="layui-form-label" style="width: 85px;">éç¹æ£æ¥</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="checkbox" name="HKeyInspect" id="HKeyInspect" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 85px;">éç¹æ£æ¥</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="checkbox" name="HKeyInspect" id="HKeyInspect" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline"> |
| | |
| | | </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="checkbox" name="HKeyInspect" id="HKeyInspect2" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 85px;">éç¹æ£æ¥</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="checkbox" name="HKeyInspect" id="HKeyInspect2" value="false" lay-skin="primary" lay-filter="HKeyInspect"> |
| | | </div> |
| | | </div>--> |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <div class="layui-inline" style="border-bottom:2px solid #9C9C9C;width:290px;margin-left:10px"> |
| | |
| | | </div> |
| | | <div class="layui-row" style="margin-top:5px;"> |
| | | <!--<div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px !important;">åææ¹æ³</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | | <select name="HAnalysisMethod" lay-filter="HAnalysisMethod"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <label class="layui-form-label" style="width: 70px !important;">åææ¹æ³</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | | <select name="HAnalysisMethod" lay-filter="HAnalysisMethod"> |
| | | <option value="åæ ¼" selected="selected">åæ ¼</option> |
| | | <option value="ä¸åæ ¼">ä¸åæ ¼</option> |
| | | </select> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 70px !important;">ç¶æ</label> |
| | | <div class="layui-input-block" style="margin-left: 100px; width: 182px"> |
| | |
| | | //å
¬ç¨åé |
| | | var rowdata = []; |
| | | var option = []; |
| | | var HDeptID = "";//é¨é¨id è·åçæ¬¡ |
| | | var HCenterID = "";//å·¥ä½ä¸å¿id è·åçæ¬¡ |
| | | |
| | | var rowdata_Value = []; |
| | | var option_Value = []; |
| | |
| | | var linterid = params[params[1]];//æºåid |
| | | var HSouceBillType = params[params[2]];//æºåç±»å |
| | | var HICMOEntryID = params[params[3]];//æºååid |
| | | var HEntryID = params[params[4]];//æºååid |
| | | } |
| | | /*åºå®ä»£ç ï¼æ¯å¼ åæ®é½è¦begin*/ |
| | | //////æµè¯ç¨æ°æ® |
| | |
| | | //var linterid = 11880; |
| | | //var HSouceBillType = 3722; |
| | | //var HICMOEntryID = 100027; |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //#region 夿æ¯å¦æ°å¢ |
| | | if (OperationType == 1) { |
| | | $("#HInterID").val(""); |
| | |
| | | |
| | | $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªåID |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HCheckEmpName"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªå |
| | | HDeptID = sessionStorage["HDeptID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ID |
| | | HCenterID = sessionStorage["HWorkCenterID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºå·¥ä½ä¸å¿ID |
| | | |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //è·åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | else if (OperationType == 2) { |
| | | $("#HInterID").val(""); |
| | | $("#HBillNo").val(""); |
| | | $('#btn-AddNew').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);//ææºåæ¶æµè½¬å¡å·æé®ç¦ç¨ |
| | | |
| | | $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]); |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HEmpName"]); |
| | | HDeptID = sessionStorage["HDeptID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ID |
| | | HCenterID = sessionStorage["HWorkCenterID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºå·¥ä½ä¸å¿ID |
| | | |
| | | //è·åæå¤§åæ®å· |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | if (HSouceBillType == 3722 || HSouceBillType == 4610) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation2(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | //å·¥åºè¿ç«æ¥æ¶ååè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3790) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_StationInBill(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | //å·¥åºå§å¤æ¥æ¶ååè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3793) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation3(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | //ç产订ååè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3710) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_ICMO(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | //å·¥åºæµè½¬å¡åè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3772) { |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | LoadingInformation_ProcExchange(); |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | else { |
| | | layer.alert("æºåç±»åæ æï¼", { icon: 5 }); |
| | | } |
| | | //è·åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | else if (OperationType == 3) { |
| | | RoadBillMain(linterid); |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QC_WorkSelfCheckBill/get_StationInBill', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QC_WorkSelfCheckBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | |
| | | $("#HICMOEntryID").val(data.HICMOEntryID == null ? 0 : data.HICMOEntryID);// |
| | | $("#HQCSchemeName").val(data.æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(data.æ£éªæ¹æ¡ID); |
| | | $("#HProcID").val(data.HProcID);// |
| | | $("#HProcName").val(data.å½åå·¥åº);// |
| | | HDeptID = data.HWorkShopID == null ? sessionStorage["HDeptID"] : data.HWorkShopID;//å·¥ä½ä¸å¿id |
| | | HCenterID = data.HCenterID == null ? sessionStorage["HWorkCenterID"] : data.HCenterID;//å·¥ä½ä¸å¿id |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } else { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/LEMS/MES_IF_ICMOBillList_Json', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": "and hmainid = " + linterid, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_WorkSelfCheckBill/get_ICMOBillStatus_Tmp", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "HEntryID": HICMOEntryID, "HBillType": HSouceBillType }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationEntrustOutBill/list', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": "and HInterID = " + linterid }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | "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": "", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | "HSampleSchemeName": "", "HSampleQty": "", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0", |
| | | "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": "" |
| | | }; |
| | | |
| | | switch (obj.event) { |
| | |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //表头信æ¯å·¥åº |
| | | 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çelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HProcName").val(checkStatus.data[0].å·¥åºåç§°); |
| | | $("#HProcID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_ICMOBillStatusList(); |
| | | GetCheckItemID(); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //SIPæ¥çæé® |
| | | form.on('submit(btn-SIP)', function () { |
| | | var HProcID = $("#HProcID").val(); |
| | | var HMaterID = $("#HMaterID").val(); |
| | | if (HProcID == 0 && HMaterID == 0) { |
| | | layer.alert("ç©æåç§°ä¸å·¥åºä¸è½ä¸ºç©º", { icon: 5 }); |
| | | } |
| | | else { |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ¥çä½ä¸æå¯¼ä¹¦' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../ç产管ç/ä½ä¸æå¯¼ä¹¦/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=&HSourceEntryID=&HProcID=' + HProcID + '&HType=SIP' |
| | | , resize: false, |
| | | end: function () { |
| | | } |
| | | , cancel: function () { |
| | | } |
| | | }) |
| | | } |
| | | |
| | | }); |
| | | |
| | | |
| | | |
| | | //éåºæé® |
| | | form.on('submit(btn-Exit)', function (data) { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectValue.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | } |
| | | form.render('select'); |
| | | addUnRightQty(); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | table.on('edit(mainTable)', function (obj) { |
| | | // åå
æ ¼ç¼è¾ä¹åçå¼ |
| | | var oldText = $(this).prev().text(); |
| | | var value = obj.value //å¾å°ä¿®æ¹åçå¼ |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | var HInspectVal = $("#HInspectVal").val(); //æ£éªå¼ |
| | | //var HTargetVal = $("#HTargetVal").val(); //ç®æ å¼ |
| | | //var HComparator = $("#HComparator").val(); //æ¯è¾ç¬¦ |
| | | var HEntryID = $("#HEntryID").val() - 1; |
| | | var HAnalysisMethod = table.cache["mainTable"][HEntryID].HAnalysisMethod; //åææ¹æ³ |
| | | var HUpLimit = table.cache["mainTable"][HEntryID].HUpLimit; //ä¸éå¼ |
| | | var HDownLimit = table.cache["mainTable"][HEntryID].HDownLimit; //ä¸éå¼ |
| | | switch (field) { |
| | | case "HInspectVal": //æ£éªå¼ |
| | | value = isNaN(value) ? 0 : value; |
| | | |
| | | if (HAnalysisMethod == "2") { |
| | | if (value <= HUpLimit && value >= HDownLimit) { |
| | | obj.update({ |
| | | "HResult": "1" |
| | | }); |
| | | |
| | | $('#HResult' + (HEntryID + 1)).find("option[value='1']").attr("selected", true); |
| | | |
| | | } else { |
| | | obj.update({ |
| | | "HResult": "2" |
| | | }); |
| | | |
| | | $('#HResult' + (HEntryID + 1)).find("option[value='2']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | } |
| | | break; |
| | | } |
| | | }); |
| | |
| | | var ajaxLoad = layer.load(); |
| | | var sWhere = " and hmainid=" + linterid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_WorkSelfCheckBill/QC_WorkSelfCheckBillList", |
| | | url: GetWEBURL() + "/QC_WorkSelfCheckBill/QC_WorkSelfCheckBillEdit", |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | |
| | | , "HCloseDate": data.å
³éæ¥æ |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | , "HSampleSchemeID": data.HSampleSchemeID |
| | | , "HSampleSchemeID": data.HSampleSchemeID == '' ? 0 : data.HSampleSchemeID |
| | | , "HSampleSchemeName": data.æ½æ ·æ¹æ¡åç§° |
| | | , "HSampleQty": data.æ ·æ¬é |
| | | , "HSampleQty2": data.æ ·æ¬é |
| | | , "HSampleDamageQty": data.æ ·æ¬ç ´åæ° |
| | | , "HSampleDamageQty": data.æ ·æ¬ç ´åæ° == '' ? 0 : data.HSampleDamageQty |
| | | , "HSamplingType": data.æ½æ ·ç±»å |
| | | , "HAcceptQty": data.å
è®¸æ° |
| | | , "HInspectResultToSee2":data.æ£éªç»æ |
| | | , "HInspectionLevel": data.æ£éªæ°´å¹³ |
| | | , "HRejectQty": data.æç»æ° |
| | | , "HRejectQty": data.æç»æ° == '' ? 0 : data.æç»æ° |
| | | , "HStrictness": data.ä¸¥æ ¼åº¦ |
| | | , "HSampleUnRightQty": data.æ ·æ¬ä¸åæ ¼æ° |
| | | , "HSampleUnRightQty2": data.æ ·æ¬ä¸åæ ¼æ° |
| | | , "HSampleUnRightQty": data.æ ·æ¬ä¸åæ ¼æ° == '' ? 0 : data.æ ·æ¬ä¸åæ ¼æ° |
| | | , "HSampleUnRightQty2": data.æ ·æ¬ä¸åæ ¼æ° == '' ? 0 : data.æ ·æ¬ä¸åæ ¼æ° |
| | | , "HAQL": data.AQL |
| | | , "HEntryID": data.hsubid |
| | | , "HQCCheckItemName": data.æ£éªé¡¹ç®åç§° |
| | |
| | | , "HShiftsID": data.HShiftsID |
| | | , "HShiftsName": data.çæ¬¡åç§° |
| | | , "HErrTreatment": data.å¼å¸¸ä¸´æ¶å¤çæ¹æ¡ |
| | | , "HProcID": data.HProcID |
| | | , "HProcName": data.HProcName |
| | | }); |
| | | $("input[name=HLastResult][value=true]").prop("checked", data.å¤å®ç»è®º === "åæ ¼"); |
| | | $("input[name=HLastResult][value=false]").prop("checked", data.å¤å®ç»è®º === "ä¸åæ ¼"); |
| | |
| | | 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]["é»è®¤ç»è®º"], |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": data[i]["éç¹æ£æ¥"] == 1 ? true : false, "HStatus": 0, "HSampleSchemeID": data[i]["HSampleSchemeID"], "HUnitID": data[i]["HUnitID"], |
| | | "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", |
| | | "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].æ½æ ·ç±»å |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_Source.html?Htype=&openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | } |
| | | $("#HSourceName").val(checkStatus.data[0].çäº§èµæºåç§°); |
| | | $("#HSourceID").val(checkStatus.data[0].HItemID); |
| | | get_ICMOBillStatusList(); |
| | | GetCheckItemID(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_ShiftsList.html?type=HShifts', 'yes'], |
| | | content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_WorkShiftList.html?type=HWorkShifts', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HShiftsName").val(checkStatus.data[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(checkStatus.data[0].HItemID); |
| | | $("#HShiftsID").val(checkStatus.data[0].HInterID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_Material.html?openType=2', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | $("#HMaterNumber").val(checkStatus.data[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(checkStatus.data[0].ç©æåç§°); |
| | | $("#HMaterID").val(checkStatus.data[0].HItemID); |
| | | GetCheckItemID(); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").val(); |
| | | var HProcName = $("#HProcName").val(); |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html', 'yes'], |
| | | content: ['../../è´¨é管ç/æ£éªæ¹æ¡å/QC_CheckProjectList.html?OperationType=1&HName=' + HName + '&HProcName=' + HProcName + '', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | |
| | | //éåº |
| | | form.on('submit(Cancel)', function () { |
| | | //sessionStorage["SourceFlag"] = false; |
| | | parent.location.href = "../../../views/index.html" |
| | | //window.close();//å
³éå½å页 |
| | | }) |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | "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": "", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "0", |
| | | "HStrictness": "", "HSampleUnRightQty": "0", "HAQL": "", "HSamplingType": "" |
| | | }]; |
| | | option = { |
| | |
| | | } |
| | | 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'); |
| | | } |
| | |
| | | $("#HDownLimit").val(0); |
| | | $("#HUpOffSet").val(0); |
| | | $("#HDownOffSet").val(0); |
| | | $("#HSampleDamageQty").val("") |
| | | $("#HSampleQty").val("") |
| | | $("#HSampleQty2").val("") |
| | | $("#HSampleDamageQty").val("0") |
| | | $("#HSampleQty").val("0") |
| | | $("#HSampleQty2").val("0") |
| | | $("#HAcceptQty").val("0") |
| | | $("#HInspectionLevel").val("") |
| | | $("#HRejectQty").val("") |
| | | $("#HRejectQty").val("0") |
| | | $("#HStrictness").val("") |
| | | $("#HSampleUnRightQty").val("") |
| | | $("#HSampleUnRightQty2").val("") |
| | | $("#HSampleUnRightQty").val("0") |
| | | $("#HSampleUnRightQty2").val("0") |
| | | $("#HAQL").val("") |
| | | $("#HSamplingType").val("") |
| | | $("#HSampleQty").val("") |
| | | $("#HSampleQty").val("0") |
| | | $("#HInspectResultToSee").val("") |
| | | $("#HInspectResultToSee2").val("") |
| | | $("#HSampleUnRightQty").val("") |
| | | $("#HSampleUnRightQty").val("0") |
| | | $("#HUnitID").val("0") |
| | | $("#HUnitName").val("") |
| | | $("#HInspectValB").val("0") |
| | |
| | | } |
| | | //#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: "温馨æç¤º" }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //#region ãéèæ£æµå¼å段ã |
| | | function IsHide(HAnalysisMethod_Value) { |
| | | if (HAnalysisMethod_Value == 1) { //妿éä¸ã宿§åæãï¼åéèå®éãå
¶ä»åæ |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | function GetCheckItemID() { |
| | | var HName = $("#HMaterName").val(); |
| | | var HProName = $("#HProcName").val(); |
| | | var HSourceID = $("#HSourceID").val(); |
| | | if (HName != '' && HName != undefined && HProName != '' && HProName != undefined) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HName": HName, "HProName": HProName, "HSourceID": HSourceID}, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | $("#HQCSchemeID").val(result.data[0].hmainid); |
| | | $("#HQCSchemeName").val(result.data[0].æ£éªæ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | } else { |
| | | layer.msg(result.code + result.Message, { icon: 5 }); |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | |
| | | //表头 è·åæ£éªæ¹æ¡ |
| | | function get_CheckItem()//å 载表头 |
| | | { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Gy_BaseInformation/Gy_EnvironmentTestSchemeBillMainEditList", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "linterid": $("#HEnvironmentTestSchemeID").val() == "" ? 0 : $("#HEnvironmentTestSchemeID").val(), "user": sessionStorage["HUserName"] }, |
| | | success: function (d) { |
| | | //å表 èµå¼ |
| | | var rowdata = []; |
| | | for (var i = 0; i < d.data.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HEnvironmentItemID": d.data[i].HEnvironmentItemID, "HEnvironmentItemName": d.data[i].æ£æµé¡¹ç®, |
| | | "HMeasure": "0", "HTargetVal": d.data[i].ç®æ å¼, "HUpLimit": d.data[i].ä¸éå¼, "HDownLimit": d.data[i].ä¸éå¼ |
| | | } |
| | | ) |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | //è·åçæ¬¡ |
| | | function get_HWorkShift() { |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Gy_ShiftsController/Get_HWorkShift", //æ¹æ³æå¨é¡µé¢åæ¹æ³å |
| | | data: { |
| | | "HDeptID": HDeptID, |
| | | "HCenterID": HCenterID |
| | | }, |
| | | success: function (data) { |
| | | if (data.count == 1)// 说æéªè¯æåäºï¼ |
| | | { |
| | | var LoadData = data.data; |
| | | $("#HShiftsID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HShiftsName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | else { |
| | | layer.alert(data.Message, { icon: 5 }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | //以ä¸ä¸ºlayui模å |
| | | }); |
| | | |
| | |
| | | $("#HMaterNumber").val(obj.ç©æä»£ç ); |
| | | $("#HMaterName").val(obj.ç©æåç§°); |
| | | $("#HMaterID").val(obj.HItemID); |
| | | GetCheckItemID(); |
| | | } |
| | | |
| | | function GetHEmpValue(obj) { //è´¨æ£å |
| | |
| | | $("#HQCSchemeName").val(obj[0].æ£éªæ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | } |
| | | function GetHShiftsValue(obj) { //çäº§çæ¬¡ |
| | | //çæ¬¡ |
| | | function GetHWorkShiftsValue(obj) { |
| | | $("#HShiftsName").val(obj[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(obj[0].HItemID); |
| | | $("#HShiftsID").val(obj[0].HInterID); |
| | | } |
| | | </script> |
| | | </body> |