| | |
| | | <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: 32px; width: 110%;"> |
| | | <input type="date" class="layui-input" name="HDate" id="HDate" style="padding-left: 68px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 100px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <div class="layui-input-block" style="margin-left: 92px;"> |
| | | <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> |
| | | <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> |
| | |
| | | <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" id="hidediv1"> |
| | |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <label class="layui-form-label" style="width: 85px;">å·¥åº</label> |
| | | </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="HBatchNo" id="HBatchNo" style=""> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-row"> |
| | | </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> |
| | |
| | | <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" value="true" title="åæ ¼" > |
| | | <input type="radio" name="HLastResult" value="false" title="ä¸åæ ¼" checked> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1" style="margin-left:20px;"> |
| | | <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="HTakeSampleCheckBillNo" id="HTakeSampleCheckBillNo" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" name="HTakeSampleCheckBillID" id="HTakeSampleCheckBillID" value="0"> |
| | | </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> |
| | |
| | | debugger; |
| | | var rowdata = []; |
| | | var option = []; |
| | | var HDeptID = "";//é¨é¨id è·åçæ¬¡ |
| | | var HCenterID = "";//å·¥ä½ä¸å¿id è·åçæ¬¡ |
| | | |
| | | var rowdata_Value = []; |
| | | var option_Value = []; |
| | |
| | | var UnRightQty_isFied = 0; //ç¨äºå¤ææ¯å¦åæ ¼//æ£éªå¼è¡¨æ ¼ä¸åæ ¼æ°éæ±æ» |
| | | var editIndex = 0;//ç¼è¾ä¸æ |
| | | var SampleNum = [];//æ ·æ¬æ°é |
| | | |
| | | //夿æ¯å¦ç»å½ æªç»å½åè·³å°ç»å½é¡µ |
| | | //if (sessionStorage.login != "login") { |
| | | // layer.confirm("ç»å½å¤±æï¼è¯·éæ°ç»å½ï¼", { |
| | | // icon: 4, skin: 'layui-layer-lan', title: "温馨æç¤º", closeBtn: 0, btn: ['éæ°ç»å½'] |
| | | // }, function () { window.location.href = "../../user/login.html"; }); |
| | | //} |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "7505"; |
| | |
| | | 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(""); |
| | | $("#HBillNo").val(""); |
| | | |
| | | $("#HFirstCheckEmp").val(sessionStorage["HEmpID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªåID |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HEmpName"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªå |
| | | $("#HFirstCheckEmp").val(sessionStorage["HCheckEmpID"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªåID |
| | | $("#HFirstCheckEmpName").val(sessionStorage["HCheckEmpName"]); //æ ¹æ®ç»å½ç¨æ·å¸¦åºæ£éªå |
| | | HDeptID = sessionStorage["HDeptID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºé¨é¨ID |
| | | HCenterID = sessionStorage["HWorkCenterID"]; //æ ¹æ®ç»å½ç¨æ·å¸¦åºå·¥ä½ä¸å¿ID |
| | | |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ææºåæ¶ä¿åæé®ç¦ç¨ |
| | | //è·åæå¤§åæ®å· |
| | |
| | | $("#HMaker").val(sessionStorage["HUserName"]); |
| | | } |
| | | }); |
| | | //è·åçæ¬¡ |
| | | get_HWorkShift(); |
| | | } |
| | | else if (OperationType == 2) { |
| | | $("#HInterID").val(""); |
| | |
| | | |
| | | $("#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); |
| | | //RoadBillSub(linterid); |
| | | } |
| | | //#endregion |
| | | |
| | | $("[name='btnSearchCheckItemID']").addClass("layui-btn-disabled").attr("disabled", true);//ç¦ç¨æ£éªé¡¹ç®æ¾å¤§é |
| | | |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯ |
| | | |
| | | //#region æ ¹æ®æºåè·åä¿¡æ¯ |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯(è¿ç«æ¥æ¶å) |
| | | function LoadingInformation_StationInBill() { |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/QC_FirstPieceCheckBill/get_StationInBill', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯(å·¥åºæµè½¬å¡) |
| | | function LoadingInformation_ProcExchange() { |
| | | $('#btnSearchSource').removeClass("layui-btn-disabled").attr("disabled", false);//çäº§èµæºæé®å¯ç¨ |
| | | |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/CheckBill/get_ProcessExchangeBill', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": linterid, "HEntryID": HEntryID, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | | if (result.count == 1) { |
| | | $("#HProcExchBillNo").val(data.åæ®å·); |
| | | $("#HProcExchInterID").val(data.HInterID); |
| | | $("#HProcExchEntryID").val(data.HProcExchEntryID == null ? 0 : data.HProcExchEntryID);// |
| | | $("#HProcExchQty").val(data.æµè½¬å¡æ°é); |
| | | $("#HICMOBillNo").val(data.ä»»å¡å); |
| | | $("#HICMOInterID").val(data.HICMOInterID); |
| | | $("#HICMOQty").val(data.HICMOQty == null ? 0 : data.HICMOQty);// |
| | | $("#HSourceName").val(data.çäº§èµæº);// |
| | | $("#HSourceID").val(data.HSourceID == null ? 0 : data.HSourceID);// |
| | | $("#HMaterID").val(data.HMaterID); |
| | | $("#HMaterName").val(data.产ååç§°); |
| | | $("#HMainSourceBillNo").val(data.åæ®å·); |
| | | $("#HMainSourceBillType").val(data.HBillType); |
| | | $("#HMainSourceInterID").val(data.HInterID); |
| | | $("#HICMOEntryID").val(data.HICMOEntryID == null ? 0 : data.HICMOEntryID);// |
| | | $("#HQCSchemeName").val(data.æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(data.æ£éªæ¹æ¡ID); |
| | | $("#HProcID").val(data.HProcID);// |
| | | $("#HProcName").val(data.å½åå·¥åº);// |
| | | $("#HBatchNo").val(data.æ¹å·); |
| | | HDeptID = data.HWorkShopID == null ? sessionStorage["HDeptID"] : data.HWorkShopID;//å·¥ä½ä¸å¿id |
| | | HCenterID = data.HCenterID == null ? sessionStorage["HWorkCenterID"] : data.HCenterID;//å·¥ä½ä¸å¿id |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } else { |
| | | layer.alert(result.Message, { icon: 5 }); |
| | | } |
| | | layer.close(wait); |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®æºåidè·åæºåä¿¡æ¯--ç产订å |
| | | function LoadingInformation_ICMO() { |
| | | $("#hidediv1").attr({ "style": "display:none" }); |
| | |
| | | $.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_FirstPieceCheckBill/get_ICMOBillStatus_Tmp", |
| | | type: "GET", |
| | | async:false, |
| | | data: { "HInterID": linterid, "HEntryID": HICMOEntryID, "HBillType": HSouceBillType }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | $("#HICMOEntryID").val(data.HICMOEntryID); |
| | | $("#HQCSchemeName").val(data.æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(data.æ£éªæ¹æ¡ID); |
| | | |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } else { |
| | |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_StationEntrustOutBill/list', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": "and HInterID = " + linterid }, |
| | | success: function (result) { |
| | | var data = result.data[0]; |
| | |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //头工å
·æ äºä»¶ |
| | | //#region 头工å
·æ äºä»¶ |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | //æ°å¢è¡è¡¨æ ¼æ°æ® |
| | | var NewRow = { |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": "0", "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", |
| | | "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": '', |
| | | "HSampleSchemeName": "", "HSampleQty": "", "HSampleDamageQty": "", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | }; |
| | | |
| | |
| | | break; |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | //éåºæé® |
| | | form.on('submit(btn-Exit)', function (data) { |
| | |
| | | }); |
| | | } |
| | | |
| | | var data = obj.data; |
| | | if (obj.event == 'æ£éªä»ªå¨ä»£ç ') { |
| | | var HNumber = data.æ£éªä»ªå¨ä»£ç ; |
| | | var linterid= data.HInspectInstruMentID; |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: 'æ¥çæ£éªä»ªå¨' |
| | | , closeBtn: 1 |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: '../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Add_Edit_Gy_InspectInstruMent.html?OperationType=3&linterid=' + linterid + '' |
| | | , resize: false, |
| | | end: function () { |
| | | } |
| | | , cancel: function () { |
| | | } |
| | | }) |
| | | } |
| | | |
| | | $(document).off('keydown', ".layui-table-edit").on('keydown', '.layui-table-edit', function (e) { |
| | | var rowIndex = Number($(obj.tr).attr("data-index")) + Number(1); |
| | | if (event.key == "F7") { |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_CheckItem.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | , HQCCheckItemID: checkStatus.data[0].HItemID |
| | | , HResult: HResult |
| | | }); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + HResult + "']").attr("selected", true); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + HResult + "']").attr("selected", true); |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMentList.html', 'yes'], |
| | | content: ['../../åºç¡èµæ/å
¬ç¨åºç¡èµæ/Gy_InspectInstruMent.html', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | |
| | | //åæ¥æ´æ°è¡¨æ ¼åç¼å对åºçå¼ |
| | | obj.update({ |
| | | æ£éªä»ªå¨: checkStatus.data[0].æ£éªä»ªå¨åç§° |
| | | æ£éªä»ªå¨ä»£ç : checkStatus.data[0].æ£éªä»ªå¨ä»£ç |
| | | ,æ£éªä»ªå¨: checkStatus.data[0].æ£éªä»ªå¨åç§° |
| | | , HInspectInstruMentID: checkStatus.data[0].HItemID |
| | | }); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | //ä¿å |
| | | function set_SaveBill(data) { |
| | | //èµå¼æåä¸ä¸ªéä¸è¡çæ°æ®ç»option.data |
| | | Assignment(LastIndex, LastIndex); |
| | | //Assignment(LastIndex, LastIndex); |
| | | //ä¿åæå䏿¬¡ç¹å»è¡çæ£éªå¼ |
| | | set_SaveValue($("#HEntryID").val()); |
| | | |
| | |
| | | var ajaxLoad = layer.load(); |
| | | var sWhere = " and hmainid=" + linterid; |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_FirstPieceCheckBill/QC_FirstPieceCheckBillList", |
| | | url: GetWEBURL() + "/QC_FirstPieceCheckBill/QC_FirstPieceCheckBill_Edit", |
| | | type: "GET", |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | success: function (result) { |
| | |
| | | , "HICMOEntryID": data.HICMOEntryID |
| | | , "HMaterID": data.HMaterID |
| | | , "HMaterName": data.ç©æåç§° |
| | | , "HProcID": data.HProcID |
| | | , "HProcName": data.HProcName |
| | | , "HProcExchQty": data.HProcExchQty |
| | | , "HProcExchBillNo": data.HProcExchBillNo |
| | | , "HProcExchInterID": data.HProcExchInterID |
| | |
| | | , "HEntryID": data.hsubid |
| | | , "HQCCheckItemName": data.æ£éªé¡¹ç®åç§° |
| | | , "HQCCheckItemID": data.HQCCheckItemID |
| | | , "HShiftsID": data.HShiftsID |
| | | , "HShiftsName": data.çæ¬¡åç§° |
| | | , "HErrTreatment": data.å¼å¸¸ä¸´æ¶å¤çæ¹æ¡ |
| | | , "HBatchNo": data.æ¹å· |
| | | , "HLastResult": data.å¤å®ç»è®º == "åæ ¼" ? "true" : "false" |
| | | , "HTakeSampleCheckBillID": data.HTakeSampleCheckBillID |
| | | , "HTakeSampleCheckBillNo": data.HTakeSampleCheckBillNo |
| | | }); |
| | | data = result.data; |
| | | //data = result.data.h_v_QC_Edit_FirstPieceCheckBillList; |
| | |
| | | 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].æ£éªä»ªå¨ä»£ç ,"æ£éªä»ªå¨": 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, |
| | |
| | | |
| | | //è¡¨å¤´ä¿¡æ¯æ£éªæ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchQCScheme)', function () { |
| | | var HName = $("#HMaterName").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+'', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | $("#HUpLimit").val(checkStatus.data[0].ä¸éå¼); |
| | | $("#HDownLimit").val(checkStatus.data[0].ä¸éå¼); |
| | | |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeID = checkStatus.data[0].hmainid; |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeName = checkStatus.data[0].æ½æ ·æ¹æ¡åç§°; |
| | | option.data[$("#HEntryID").val() - 1].HSamplingType = checkStatus.data[0].æ½æ ·ç±»å; |
| | | option.data[$("#HEntryID").val() - 1].HInspectionLevel = checkStatus.data[0].æ£éªæ°´å¹³; |
| | | option.data[$("#HEntryID").val() - 1].HStrictness = checkStatus.data[0].ä¸¥æ ¼åº¦; |
| | | option.data[$("#HEntryID").val() - 1].HAQL = checkStatus.data[0].AQL; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty = checkStatus.data[0].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty2 = checkStatus.data[0].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HAcceptQty = checkStatus.data[0].å
许æ°; |
| | | option.data[$("#HEntryID").val() - 1].HRejectQty = checkStatus.data[0].æç»æ°; |
| | | option.data[$("#HEntryID").val() - 1].HUpLimit = checkStatus.data[0].ä¸éå¼; |
| | | option.data[$("#HEntryID").val() - 1].HDownLimit = checkStatus.data[0].ä¸éå¼; |
| | | if ($("#HEntryID").val() - 1 >= 0) { |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeID = checkStatus.data[0].hmainid; |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeName = checkStatus.data[0].æ½æ ·æ¹æ¡åç§°; |
| | | option.data[$("#HEntryID").val() - 1].HSamplingType = checkStatus.data[0].æ½æ ·ç±»å; |
| | | option.data[$("#HEntryID").val() - 1].HInspectionLevel = checkStatus.data[0].æ£éªæ°´å¹³; |
| | | option.data[$("#HEntryID").val() - 1].HStrictness = checkStatus.data[0].ä¸¥æ ¼åº¦; |
| | | option.data[$("#HEntryID").val() - 1].HAQL = checkStatus.data[0].AQL; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty = checkStatus.data[0].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HSampleQty2 = checkStatus.data[0].æ ·æ¬é; |
| | | option.data[$("#HEntryID").val() - 1].HAcceptQty = checkStatus.data[0].å
许æ°; |
| | | option.data[$("#HEntryID").val() - 1].HRejectQty = checkStatus.data[0].æç»æ°; |
| | | option.data[$("#HEntryID").val() - 1].HUpLimit = checkStatus.data[0].ä¸éå¼; |
| | | option.data[$("#HEntryID").val() - 1].HDownLimit = checkStatus.data[0].ä¸éå¼; |
| | | } |
| | | |
| | | rowdata_Value = []; |
| | | for (let i = 1; i <= checkStatus.data[0].æ ·æ¬é; i++) { |
| | |
| | | //#endregion |
| | | |
| | | //#regionãéæ£éªæ¹æ¡è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ã |
| | | window.get_CheckItem = function() { |
| | | function get_CheckItem() { |
| | | var HBatchQty = $("#HProcExchQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | |
| | | //å表 èµå¼ |
| | | 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]["æ£éªä»ªå¨ä»£ç "], "æ£éªä»ªå¨": 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"], |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "", |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": + data[i].ä¸éå¼ , "HDownLimit": + data[i].ä¸éå¼, "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "0", |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": data[i].æ£éªæ°´å¹³, "HRejectQty": data[i].æç»æ°, |
| | | "HStrictness": data[i].ä¸¥æ ¼åº¦, "HSampleUnRightQty": "", "HAQL": data[i].AQL, "HSamplingType": data[i].æ½æ ·ç±»å |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //ç¨äºå廿£éªæ¹æ¡ä½¿ç¨ |
| | | window.get_CheckItem1 = function () { |
| | | var HBatchQty = $("#HProcExchQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "CheckProjectID": $("#HQCSchemeID").val() == '' ? 0 : $("#HQCSchemeID").val(), "HBatchQty": HBatchQty }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | var rowdata = []; |
| | | var data = result.data; |
| | | rowdata_Value = []; |
| | | for (var i = 0; i < result.data.length; i++) { |
| | | //å表 èµå¼ |
| | | rowdata.push( |
| | | { |
| | | "HQCCheckItemID": data[i]["HQCCheckItemID"], "æ£éªé¡¹ç®ä»£ç ": data[i].æ£éªé¡¹ç®ä»£ç , "æ£éªé¡¹ç®": data[i]["æ£éªé¡¹ç®"], "HInspectInstruMentID": data[i]["HInspectInstruMentID"], "æ£éªä»ªå¨ä»£ç ": data[i]["æ£éªä»ªå¨ä»£ç "], "æ£éªä»ªå¨": 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"], |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": + data[i].ä¸éå¼, "HDownLimit": + data[i].ä¸éå¼, "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": "0", |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": data[i].æ£éªæ°´å¹³, "HRejectQty": data[i].æç»æ°, |
| | | "HStrictness": data[i].ä¸¥æ ¼åº¦, "HSampleUnRightQty": "", "HAQL": data[i].AQL, "HSamplingType": data[i].æ½æ ·ç±»å |
| | | } |
| | | ); |
| | | SampleNum.push(5); |
| | | } |
| | | |
| | | //æ£éªé¡¹ç® |
| | | for (let j = 1; j <= 5; j++) { |
| | | rowdata_Value.push({ |
| | | "HSEQ": j, "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "", "rowNum": $("#HEntryID").val() |
| | | }); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | //æ£éªå¼ |
| | | option_Value.data = rowdata_Value; |
| | | //console.log(JSON.stringify(option_Value.data)); |
| | | table.render(option_Value); |
| | | //================================================ |
| | | for (var i = 1; i <= result.data.length; i++) { |
| | | $('#HAnalysisMethod' + i + '').find("option[value='" + option.data[i - 1].HAnalysisMethod + "']").attr("selected", true); |
| | | $('#HResult' + i + '').find("option[value='" + option.data[i - 1].HResult + "']").attr("selected", true); |
| | | } |
| | | form.render('select'); |
| | | |
| | | option_Check = result.data; |
| | | |
| | | $("[name='HEntryID']").attr("value", result.data.length); |
| | | $("[name='HQCCheckItemID']").attr("value", result.data[result.data.length - 1].HQCCheckItemID); |
| | | $("[name='HQCCheckItemName']").attr("value", result.data[result.data.length - 1].æ£éªé¡¹ç®); |
| | | //é»è®¤é䏿åä¸è¡ |
| | | $("tr[data-index = " + (result.data.length - 1) + "] .layui-form-checkbox").dblclick(); |
| | | //$("tr[data-index = " + (result.data.length - 1) + "] .layui-form-checkbox").addClass('layui-form-checked'); |
| | | $("tr[data-index = " + (result.data.length - 1) + "] ").attr({ "style": "background:#ceedfa;color:black" }); |
| | | |
| | | trindex = result.data.length - 1; |
| | | $("#HEntryID").val() - 1 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | //#regionã表头æ¾å¤§éã |
| | | //#region ã表头æ¾å¤§éã |
| | | //表头信æ¯å·¥åºæµè½¬å¡å¼¹çª |
| | | form.on('submit(btnSearchProcExch)', function () { |
| | | //页é¢å±-èªå®ä¹ |
| | |
| | | $("#HSourceName").val(checkStatus.data[0].çäº§èµæºåç§°); |
| | | $("#HSourceID").val(checkStatus.data[0].HItemID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | get_ICMOBillStatusList(); |
| | | get_QC_TakeSampleCheckBillList(); |
| | | GetCheckItemID(); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | //表头信æ¯å·¥åº |
| | | 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(); |
| | | get_QC_TakeSampleCheckBillList(); |
| | | GetCheckItemID(); |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | | //return false å¼å¯è¯¥ä»£ç å¯ç¦æ¢ç¹å»è¯¥æé®å
³é |
| | | }, |
| | | end: function () { |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | |
| | | //表头信æ¯çäº§çæ¬¡å¼¹çª |
| | | 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_WorkShiftList.html?type=HWorkShifts&OperationType=2', '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('è¯·éæ©æ°æ®'); |
| | | } |
| | | $("#HShiftsName").val(checkStatus.data[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(checkStatus.data[0].HInterID); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: 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) { |
| | |
| | | $("#HMakeDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§è¡¨æ ¼æ°æ® |
| | | rowdata = [{ |
| | | "HQCCheckItemID": "", "æ£éªé¡¹ç®": "", "HInspectInstruMentID": "0", "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", "HResult": "", |
| | | "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": '', |
| | | "HSampleSchemeName": "", "HSampleQty": "", "HSampleDamageQty": "", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | }]; |
| | | option = { |
| | |
| | | { 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: 'æ£éªä»ªå¨ä»£ç ', totalRow: true ,templet: function (d) { |
| | | return '<span style="color: blue;" lay-event="æ£éªä»ªå¨ä»£ç ">' + d.æ£éªä»ªå¨ä»£ç + '</span>';}, style: 'cursor: pointer;'} |
| | | , { field: 'æ£éªä»ªå¨', title: 'æ£éªä»ªå¨', edit: 'text', event: 'HInspectInstruMentID' } |
| | | , { field: 'HResult', title: 'ç»è®º', templet: '#HResult', event: 'HResult' } |
| | | , { field: 'HAnalysisMethod', title: 'åææ¹æ³', templet: '#HAnalysisMethod', event: 'HAnalysisMethod' } |
| | | , { field: 'HKeyInspect', title: 'éç¹æ£æ¥', templet: '#HKeyInspect', unresize: false } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | | , { field: 'HUnit', title: 'åä½', edit: 'text' } |
| | | , { field: 'HInspectVal', title: 'æ£éªå¼', edit: 'text'} |
| | | , { field: 'HQCNote', 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 } |
| | | |
| | | , { field: 'HSampleSchemeID', title: 'æ½æ ·æ¹æ¡ID', edit: 'text', hide: true } |
| | | , { field: 'HSampleSchemeName', title: 'æ½æ ·æ¹æ¡', edit: 'text', hide: true } |
| | | , { field: 'HSampleQty', title: 'æ ·æ¬é', edit: 'text', hide: true } |
| | |
| | | , { 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 } |
| | |
| | | table.render(option_Value); |
| | | } |
| | | |
| | | |
| | | //è¡éæ©å¤çï¼ç»è®ºï¼ |
| | | form.on('select(HResult)', function (data) { |
| | | //è·å䏿æ¡éä¸çå¼ |
| | |
| | | |
| | | //éæ©çselect对象å¼ï¼ |
| | | var selectValue = data.value; |
| | | if (selectValue == 1) { |
| | | if (selectValue == "1") { |
| | | selectValue = "åæ ¼" |
| | | $("#HInspectResultToSee").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | |
| | | } |
| | | 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'); |
| | | form.render("radio"); |
| | | } |
| | | |
| | | ////è¡éæ©å¤çï¼æ£éªç»æï¼-- å¤ä»½ |
| | |
| | | set_SaveValue(dataindex + 1); |
| | | } |
| | | //èµå¼ä¸åæ¾ |
| | | Assignment(nowindex, dataindex); |
| | | if ($("#HSampleSchemeID").val() != "0") { |
| | | Assignment(nowindex, dataindex); |
| | | } |
| | | if (isHavingCount == false && OperationType != 3) { |
| | | var row_value = []; |
| | | for (let i = 0; i < SampleNum[nowindex]; i++) { |
| | |
| | | //#endregion |
| | | |
| | | |
| | | //#regionãææ¬æ¡çå¬ï¼å
æ ç§»å¼æ¶è§¦åã |
| | | //#region ãææ¬æ¡çå¬ï¼å
æ ç§»å¼æ¶è§¦åã |
| | | |
| | | //[ å¤å®æ£éªæ¯å¦åæ ¼ ]çå¬ææ¬æ¡ç¼è¾--æ£éªå¼ |
| | | $("#HInspectVal").blur(function () { |
| | |
| | | |
| | | //#endregion |
| | | |
| | | //#regionã夿æ¯å¦åæ ¼æ¹æ³ã |
| | | //#region ã夿æ¯å¦åæ ¼æ¹æ³ã |
| | | function Qualified(HComparator, HEntryID, HAnalysisMethod) { |
| | | var HInspectVal = $("#HInspectVal").val(); //æ£éªå¼ |
| | | var HTargetVal = $("#HTargetVal").val(); //ç®æ å¼ |
| | |
| | | var HStatus = $("#HStatus").val() //ç¶æ |
| | | var HAcceptQty = $("#HAcceptQty").val();//å
è®¸æ° |
| | | |
| | | //#regionã宿§åææ¹æ³ã |
| | | //#region ã宿§åææ¹æ³ã |
| | | if (HAnalysisMethod == 1) { |
| | | //ç¶æä¸ºåæ ¼ |
| | | if (HStatus == 1) { |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | //#regionãå®éåææ¹æ³ã |
| | | //#region ãå®éåææ¹æ³ã |
| | | else if (HAnalysisMethod == 2) { |
| | | //ç¶æä¸ºåæ ¼ |
| | | if (HStatus == 1) { |
| | |
| | | } |
| | | } |
| | | //#endregion |
| | | //#regionãå
¶ä»åææ¹æ³ã |
| | | //#region ãå
¶ä»åææ¹æ³ã |
| | | else if (HAnalysisMethod == 3) { |
| | | //ç¶æä¸ºåæ ¼ |
| | | if (HStatus == 1) { |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | form.render('select'); |
| | | //è·å表ä½ç»è®ºæ°æ®èµå¼ç»æ£éªç»æ |
| | | var HEntryID = $('#HEntryID').val(); |
| | |
| | | }; |
| | | //#endregion |
| | | |
| | | //#regionãèµå¼ä¸åæ¾ã |
| | | //#region ãèµå¼ä¸åæ¾ã |
| | | function Assignment(nowindex, dataindex) { |
| | | if (SummaryIndex.indexOf(nowindex) == -1 && option.data[0].HSampleSchemeID == 0) { |
| | | var dataobj = { |
| | |
| | | $("#HDownLimit").val(0); |
| | | $("#HUpOffSet").val(0); |
| | | $("#HDownOffSet").val(0); |
| | | $("#HSampleDamageQty").val("") |
| | | $("#HSampleQty").val("") |
| | | $("#HSampleDamageQty").val("0") |
| | | $("#HSampleQty").val("0") |
| | | $("#HSampleQty2").val("") |
| | | $("#HAcceptQty").val("0") |
| | | $("#HInspectionLevel").val("") |
| | |
| | | $("#HSampleUnRightQty2").val("") |
| | | $("#HAQL").val("") |
| | | $("#HSamplingType").val("") |
| | | $("#HSampleQty").val("") |
| | | $("#HSampleQty").val("0") |
| | | $("#HInspectResultToSee").val("") |
| | | $("#HInspectResultToSee2").val("") |
| | | $("#HSampleUnRightQty").val("") |
| | |
| | | |
| | | //æ£éªå¼ä¿å |
| | | function set_SaveValue(dataindex) { |
| | | //if (OperationType == 3) { |
| | | // EchoValue(); |
| | | //} |
| | | //for (let i = 0; i < table.cache['ValueTable'].length; i++) { |
| | | // if (table.cache['ValueTable'][i].HInSpectValueB == "" || table.cache['ValueTable'][i].HInSpectValueB == null) { |
| | | // table.cache['ValueTable'][i].HInSpectValueB = 0 |
| | | // } |
| | | // if (table.cache['ValueTable'][i].HInSpectValueT == "" || table.cache['ValueTable'][i].HInSpectValueT == null) { |
| | | // table.cache['ValueTable'][i].HInSpectValueT = 0 |
| | | // } |
| | | // if (table.cache['ValueTable'][i].HInSpectValue == "" || table.cache['ValueTable'][i].HInSpectValue == null) { |
| | | // table.cache['ValueTable'][i].HInSpectValue = 0 |
| | | // } |
| | | //} |
| | | //var sValueTable = JSON.stringify(table.cache['ValueTable']); |
| | | //var HInterID = $("#HInterID").val(); |
| | | //var HEntryID = dataindex; |
| | | //var msg = sValueTable + ";" + HInterID + ";" + HEntryID |
| | | if (OperationType == 3) { |
| | | EchoValue(); |
| | | } |
| | | for (let i = 0; i < table.cache['ValueTable'].length; i++) { |
| | | if (table.cache['ValueTable'][i].HInSpectValueB == "" || table.cache['ValueTable'][i].HInSpectValueB == null) { |
| | | table.cache['ValueTable'][i].HInSpectValueB = 0 |
| | | } |
| | | if (table.cache['ValueTable'][i].HInSpectValueT == "" || table.cache['ValueTable'][i].HInSpectValueT == null) { |
| | | table.cache['ValueTable'][i].HInSpectValueT = 0 |
| | | } |
| | | if (table.cache['ValueTable'][i].HInSpectValue == "" || table.cache['ValueTable'][i].HInSpectValue == null) { |
| | | table.cache['ValueTable'][i].HInSpectValue = 0 |
| | | } |
| | | } |
| | | var sValueTable = JSON.stringify(table.cache['ValueTable']); |
| | | var HInterID = $("#HInterID").val(); |
| | | var HEntryID = dataindex; |
| | | var msg = sValueTable + ";" + HInterID + ";" + HEntryID |
| | | |
| | | //var index = layer.load(); |
| | | //$.ajax({ |
| | | // type: "POST", |
| | | // url: GetWEBURL() + "/QC_FirstPieceCheckBill/set_SaveValue", |
| | | // async: true, |
| | | // data: { "msg": msg }, |
| | | // dataType: "json", |
| | | // success: function (data) { |
| | | // if (data.count == 1) { |
| | | // layer.close(index); |
| | | // //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ä¿åæé® |
| | | // } |
| | | // else { |
| | | // layer.close(index); |
| | | // layer.msg("æ£éªå¼ä¿åé误ï¼" + data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // } |
| | | // }, |
| | | // error: function (err) { |
| | | // layer.close(index); |
| | | // layer.msg("æ£éªå¼ä¿åé误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | // } |
| | | //}); |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/QC_FirstPieceCheckBill/set_SaveValue", |
| | | async: true, |
| | | data: { "msg": msg }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ä¿åæé® |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg("æ£éªå¼ä¿åé误ï¼" + data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ£éªå¼ä¿åé误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ ¹æ®çäº§èµæºæè
å·¥åº æ¥è¯¢ç产工åä¿¡æ¯ |
| | | 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) { |
| | | if (result.data.length > 0) { |
| | | $("#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: "温馨æç¤º" }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //#regionãéèæ£æµå¼å段ã |
| | | function IsHide(HAnalysisMethod_Value) { |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //#region ãåºå¼ä»£ç ã |
| | | //#region ãåºå¼ä»£ç (æ¯è«å°å·²å¯ç¨)ã |
| | | table.on('edit(mainTable)', function (obj) { |
| | | var cell = $(this); |
| | | var rowIndex = cell.closest('tr').data('index'); // è·åå½åè¡æ°æ®ç´¢å¼ |
| | | // åå
æ ¼ç¼è¾ä¹åçå¼ |
| | | var oldText = $(this).prev().text(); |
| | | var value = obj.value //å¾å°ä¿®æ¹åçå¼ |
| | | , data = obj.data //å¾å°æå¨è¡ææé®å¼ |
| | | , field = obj.field; //å¾å°å段 |
| | | //layer.msg('[ID: ' + data.id + '] ' + field + ' åæ®µæ´æ¹ä¸ºï¼' + value); |
| | | |
| | | , field = obj.field; //å¾å°å段 |
| | | var HInspectVal = $("#HInspectVal").val(); //æ£éªå¼ |
| | | var HTargetVal = $("#HTargetVal").val(); //ç®æ å¼ |
| | | var HComparator = $("#HComparator").val(); //æ¯è¾ç¬¦ |
| | | var HEntryID = $("#HEntryID").val() - 1; |
| | | var HEntryID = rowIndex; |
| | | 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 (HInspectVal) { |
| | | value = isNaN(value) ? 0 : parseFloat(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'); |
| | | LastResult(); |
| | | } |
| | | |
| | | break; |
| | | case "HTargetVal": //ç®æ å¼ |
| | | value = isNaN(value) ? 0 : value; |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | //èªå¨å¸¦åºæ£éªé¡¹ç® |
| | | function GetCheckItemID() { |
| | | var HName = $("#HMaterName").val(); |
| | | var HProName = $("#HProcName").val(); |
| | | if (HName != '' && HName != undefined && HProName != '' && HProName != undefined) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HName": HName, "HProName": HProName }, |
| | | 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_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[0].ç©æä»£ç ); |
| | | $("#HMaterName").val(obj[0].ç©æåç§°); |
| | | $("#HMaterID").val(obj[0].HItemID); |
| | | GetCheckItemID(); |
| | | } |
| | | |
| | | function GetHEmpValue(obj) { //è´¨æ£å |
| | |
| | | function GetCheckProjectValue(obj) { //è´¨æ£æ¹æ¡ |
| | | $("#HQCSchemeID").val(obj[0].hmainid); |
| | | $("#HQCSchemeName").val(obj[0].æ£éªæ¹æ¡åç§°); |
| | | get_CheckItem(); |
| | | } |
| | | |
| | | get_CheckItem1(); |
| | | } |
| | | //çæ¬¡ |
| | | function GetHWorkShiftsValue(obj) { |
| | | $("#HShiftsName").val(obj[0].çæ¬¡åç§°); |
| | | $("#HShiftsID").val(obj[0].HInterID); |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |