Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-LayUI
| | |
| | | var WEBURL = "http://localhost:81/API/" //ç¿æ¶æ¶æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é
ç½® |
| | | //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ |
| | | /* var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½®*/ |
| | | var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ä½ææ°æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:81/API/"; // éé岿¬å°é
ç½®*/ |
| | | //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ææä¿æ¬å°é
ç½® |
| | | //var WEBURL = "http://localhost:8088/ARAPI/"; //ä½ææ°æ¬å°é
ç½®(å®ç) |
| | |
| | | $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList); |
| | | form.render('select'); |
| | | |
| | | $("#HInitTimeCycle").val("29"); |
| | | $("#HInitTimeCycle").val("3"); |
| | | } |
| | | //#endregion |
| | | |
| | |
| | | |
| | | if ($("#HMergeDept").val() == "æ¯") { |
| | | //æ ¹æ®è½¦é´å 餿²¡æéå®çæ°æ® |
| | | var sql = "delete from Sc_WorkBillSortBillSub where HLockedSub != 1 and HInterID in (select HInterID from Sc_WorkBillSortBillMain where (HWorkShopID=102357 or HWorkShopID=102359) and HLockOrder != 1 )"; |
| | | } else { |
| | | var sql = "delete from Sc_WorkBillSortBillSub where HLockedSub != 1 and HInterID in (select HInterID from Sc_WorkBillSortBillMain with(nolock) where (HWorkShopID=102357 or HWorkShopID=102359) and HLockOrder != 1 )"; |
| | | }else { |
| | | //æ ¹æ®è½¦é´å 餿²¡æéå®çæ°æ® |
| | | var sql = "delete from Sc_WorkBillSortBillSub where HLockedSub != 1 and HInterID in (select HInterID from Sc_WorkBillSortBillMain where HWorkShopID=" + HWorkShopID + " and HLockOrder != 1 )"; |
| | | var sql = "delete from Sc_WorkBillSortBillSub where HLockedSub != 1 and HInterID in (select HInterID from Sc_WorkBillSortBillMain with(nolock) where HWorkShopID=" + HWorkShopID + " and HLockOrder != 1 )"; |
| | | } |
| | | |
| | | if ($("#HWorkShopID").val() == "15035828") { |
| | | //æ ¹æ®æäº§æ è®°å 餿²¡æéå®çæ°æ®ï¼é
件车é´ï¼ |
| | | var sql = "delete from Sc_WorkBillSortBillSub where HLockedSub != 1 and HInterID in (select HInterID from Sc_WorkBillSortBillMain with(nolock) where HRemark = 'é
件订å' and HLockOrder != 1 )"; |
| | | } |
| | | |
| | | $.ajax({ |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æºåç±»å</label> |
| | | <label class="layui-form-label" style="width: 85px;">æºåç±»å<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <select name="HMainSourceBillType" id="HMainSourceBillType"> |
| | | <option value="1401" selected>éå®è®¢å</option> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æºååå·</label> |
| | | <label class="layui-form-label" style="width: 85px;">æºååå·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMainSourceBillNo" |
| | | id="HMainSourceBillNo" |
| | |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | style="width: 85px;padding: 9px 18px;">产å代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" |
| | | id="HMaterNumber" value="" |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | style="width: 85px;padding: 9px 18px;">æ£éªå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" |
| | | id="HFirstCheckEmpName" |
| | |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡</label> |
| | | style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HQCSchemeName" |
| | | id="HQCSchemeName" |
| | |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1" style="margin-left:20px;"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | style="width: 85px;padding: 9px 18px;">å·¥åº<label style="color:red"> * </label></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;" |
| | |
| | | , { field: 'HQualityStdID', title: 'è´¨éæ åID', edit: 'text', hide: true } |
| | | , { field: 'HQualityStdName', title: 'è´¨éæ å', edit: 'text', event: 'HQualityStdName' } |
| | | , { field: 'HInspectMethodID', title: 'æ£éªæ¹æ³ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName' } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName', style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;' } |
| | | , { field: 'HInspectBasisID', title: 'æ£éªä¾æ®ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectBasisName', title: 'æ£éªä¾æ®', edit: 'text', event: 'HInspectBasisName' } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | if (UnRightQty > HAcceptQty) { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(2); //ä¸åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 2 |
| | | $("#HInspectResultToSee").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee2").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | } else { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(1); //åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 1 |
| | | $("#HInspectResultToSee").val('åæ ¼'); |
| | | $("#HInspectResultToSee2").val('åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HEmpName" name="HEmpName" id="HEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input id="HFirstCheckEmp" name="HFirstCheckEmp" type="hidden" value="0"> |
| | |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åºä»£ç </label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åºä»£ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" lay-verify="HMainProcNumber" name="HMainProcNumber" id="HMainProcNumber" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input id="HMainProcID" name="HMainProcID" type="hidden" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§çæ¬¡</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§çæ¬¡<label style="color:red"> * </label></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;"> |
| | |
| | | <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief"> |
| | | <h1 style="text-align: center; padding: 10px 0;"><b>å·¡æ£å</b></h1> |
| | | <div class="layui-tab-content"> |
| | | <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;">snç ä¿¡æ¯</li> |
| | | </ul> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row" style="display:none"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!--å¶åä¿¡æ¯--> |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN1</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote1_SN" id="HQCNote1_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN2</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote2_SN" id="HQCNote2_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN3</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote3_SN" id="HQCNote3_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN4</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote4_SN" id="HQCNote4_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN5</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote5_SN" id="HQCNote5_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN6</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote6_SN" id="HQCNote6_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN7</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote7_SN" id="HQCNote7_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN8</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote8_SN" id="HQCNote8_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN9</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote9_SN" id="HQCNote9_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 45%;"> |
| | | <label class="layui-form-label" style="width: 85px;">æ½æ£SN10</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HQCNote10_SN" id="HQCNote10_SN" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="toolbarDemo2"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine_Bad"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine_Bad"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <!--<button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button>--> |
| | | </div> |
| | | </script> |
| | | <script type="text/html" id="xuhao"> |
| | |
| | | } |
| | | |
| | | var params = getUrlVars(); |
| | | |
| | | if (typeof (params[params[0]]) == "undefined") { |
| | | var OperationType = 1;//æä½ç±»å |
| | | var closeType = 2; //å
³éç±»å |
| | |
| | | |
| | | //#region ã卿è·å模ååç§°ã |
| | | var HModuleType = "7506"; |
| | | var HModName = "MES_QC_PatrolProcCheckDetail_Json"; |
| | | //éè¿åæ®ç±»åï¼ä»æ°æ®åºå¨æè·ååæ®æ¨¡åå½å,å¼ç¨jsæä»¶ PageTitle.js |
| | | var HPageTitle = get_PageTitle(HModuleType) == "" ? $("h1").html() : get_PageTitle(HModuleType); |
| | | $("h1").html('<b>' + HPageTitle + '</b>'); |
| | |
| | | , cols: [[ //表头 |
| | | { type: 'checkbox', fixed: 'left', totalRowText: 'å计è¡' } |
| | | , { templet: '#xuhao', title: 'åºå·', sort: true, fixed: 'left', event: "qwe", width: 75 } |
| | | , { field: 'HQCNote1_SN', title: 'æ½æ£SN1', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote2_SN', title: 'æ½æ£SN2', width: 185, edit: 'text', hide: true} |
| | | , { field: 'HQCNote3_SN', title: 'æ½æ£SN3', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote4_SN', title: 'æ½æ£SN4', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote5_SN', title: 'æ½æ£SN5', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote6_SN', title: 'æ½æ£SN6', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote7_SN', title: 'æ½æ£SN7', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote8_SN', title: 'æ½æ£SN8', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote9_SN', title: 'æ½æ£SN9', width: 185, edit: 'text', hide: true } |
| | | , { field: 'HQCNote10_SN', title: 'æ½æ£SN10', width: 185, edit: 'text', hide: true } |
| | | , { field: 'æ£éªé¡¹ç®åç±»', title: 'æ£éªé¡¹ç®åç±»', event: "", width: 120 } |
| | | , { field: 'HQCCheckItemID', title: 'æ£éªé¡¹ç®ID', edit: 'text', hide: true } |
| | | , { field: 'HQCCheckItemName', title: 'æ£éªé¡¹ç®åç§°', edit: 'text', width: 230 } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text', event: "", width: 95, hide: true } |
| | | , { field: 'HQCNote1', title: 'æ£éªè®°å½1(09:00--11:00)', width: 185, templet: '#HQCNote1' } |
| | | , { field: 'HQCNote1_SN', title: 'æ½æ£SN1', width: 185, edit: 'text' } |
| | | |
| | | , { field: 'HQCNote2', title: 'æ£éªè®°å½2(11:00--13:00)', width: 185, templet: '#HQCNote2' } |
| | | , { field: 'HQCNote2_SN', title: 'æ½æ£SN2', width: 185, edit: 'text' } |
| | | |
| | | , { field: 'HQCNote3', title: 'æ£éªè®°å½3(13:00--15:00)', width: 185, templet: '#HQCNote3' } |
| | | , { field: 'HQCNote3_SN', title: 'æ½æ£SN3', width: 185, edit: 'text' } |
| | | |
| | | , { field: 'HQCNote4', title: 'æ£éªè®°å½4(15:00--17:00)', width: 185, templet: '#HQCNote4' } |
| | | , { field: 'HQCNote4_SN', title: 'æ½æ£SN4', width: 185, edit: 'text' } |
| | | |
| | | , { field: 'HQCNote5', title: 'æ£éªè®°å½5(17:00--19:00)', width: 185, templet: '#HQCNote5' } |
| | | , { field: 'HQCNote5_SN', title: 'æ½æ£SN5', width: 185, edit: 'text' } |
| | | |
| | | , { field: 'HQCNote6', title: 'æ£éªè®°å½6(18:00--20:00)', edit: 'text', width: 185, hide: true } |
| | | , { field: 'HQCNote6_SN', title: 'æ½æ£SN6', width: 185, edit: 'text', hide: true } |
| | | |
| | | , { field: 'HQCNote7', title: 'æ£éªè®°å½7', edit: 'text', hide: true } |
| | | , { field: 'HQCNote7_SN', title: 'æ½æ£SN7', width: 185, edit: 'text', hide: true } |
| | | |
| | | , { field: 'HQCNote8', title: 'æ£éªè®°å½8', edit: 'text', hide: true } |
| | | , { field: 'HQCNote8_SN', title: 'æ½æ£SN8', width: 185, edit: 'text', hide: true } |
| | | |
| | | , { field: 'HQCNote9', title: 'æ£éªè®°å½9', edit: 'text', hide: true } |
| | | , { field: 'HQCNote9_SN', title: 'æ½æ£SN9', width: 185, edit: 'text', hide: true } |
| | | |
| | | , { field: 'HQCNote10', title: 'æ£éªè®°å½10', edit: 'text', hide: true } |
| | | , { field: 'HQCNote10_SN', title: 'æ½æ£SN10', width: 185, edit: 'text', hide: true } |
| | | |
| | | , { field: 'HRemark', title: '夿³¨', edit: 'text', width: 120 } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo', width: 75 } |
| | | ]] |
| | |
| | | "HQCStd": data[i].HQCStd, "HQCNote1": data[i].HQCNote1, "HQCNote2": data[i].HQCNote2, "HQCNote3": data[i].HQCNote3, |
| | | "HQCNote4": data[i].HQCNote4, "HQCNote5": data[i].HQCNote5, "HQCNote6": data[i].HQCNote6, "HQCNote7": data[i].HQCNote7, |
| | | "HQCNote8": data[i].HQCNote8, "HQCNote9": data[i].HQCNote9, "HQCNote10": data[i].HQCNote10, "HRemark": data[i].表ä½å¤æ³¨, |
| | | "HQCNote1_SN": data[i].æ½æ£SNç 1, "HQCNote2_SN": data[i].æ½æ£SNç 2, "HQCNote3_SN": data[i].æ½æ£SNç 3, "HQCNote4_SN": data[i].æ½æ£SNç 4, "HQCNote5_SN": data[i].æ½æ£SNç 5, "HQCNote6_SN": data[i].æ½æ£SNç 6, "HQCNote7_SN": data[i].æ½æ£SNç 7 |
| | | , "HQCNote8_SN": data[i].æ½æ£SNç 8, "HQCNote9_SN": data[i].æ½æ£SNç 9, "HQCNote10_SN": data[i].æ½æ£SNç 10 |
| | | /* "HQCNote1_SN": data[i].æ½æ£SNç 1, "HQCNote2_SN": data[i].æ½æ£SNç 2, "HQCNote3_SN": data[i].æ½æ£SNç 3, "HQCNote4_SN": data[i].æ½æ£SNç 4, "HQCNote5_SN": data[i].æ½æ£SNç 5, "HQCNote6_SN": data[i].æ½æ£SNç 6, "HQCNote7_SN": data[i].æ½æ£SNç 7*/ |
| | | /*, "HQCNote8_SN": data[i].æ½æ£SNç 8, "HQCNote9_SN": data[i].æ½æ£SNç 9, "HQCNote10_SN": data[i].æ½æ£SNç 10*/ |
| | | }); |
| | | } |
| | | |
| | | |
| | | $("#HQCNote1_SN").val(data[0].æ½æ£SNç 1 || ''); |
| | | $("#HQCNote2_SN").val(data[0].æ½æ£SNç 2 || ''); |
| | | $("#HQCNote3_SN").val(data[0].æ½æ£SNç 3 || ''); |
| | | $("#HQCNote4_SN").val(data[0].æ½æ£SNç 4 || ''); |
| | | $("#HQCNote5_SN").val(data[0].æ½æ£SNç 5 || ''); |
| | | $("#HQCNote6_SN").val(data[0].æ½æ£SNç 6 || ''); |
| | | $("#HQCNote7_SN").val(data[0].æ½æ£SNç 7 || ''); |
| | | $("#HQCNote8_SN").val(data[0].æ½æ£SNç 8 || ''); |
| | | $("#HQCNote9_SN").val(data[0].æ½æ£SNç 9 || ''); |
| | | $("#HQCNote10_SN").val(data[0].æ½æ£SNç 10 || ''); |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | for (var i = 0; i < result.data.length; i++) { |
| | |
| | | }); |
| | | |
| | | } |
| | | |
| | | // å¨é¡µé¢å è½½å®æåï¼å¦æå·²æåè¡¨æ°æ®ï¼åæ¥å°è¡¨å¤´ |
| | | $(document).ready(function () { |
| | | setTimeout(function () { |
| | | syncSubTableToHeader(); |
| | | }, 500); |
| | | }); |
| | | //头工å
·æ äºä»¶ |
| | | var rowid = 0; |
| | | var rows = 0; |
| | |
| | | , data = checkStatus.data;; |
| | | var AddRow = table.cache['mainTable']; |
| | | var NewRow = { |
| | | "HQCCheckItemID": 0, "HQCStd": " ", "HQCNote1": " ", "HQCNote2": " ", "HQCNote3": " ", "HQCNote4": " ", "HQCNote5": " ", "HQCNote6": " ", "HQCNote7": " ", "HQCNote8": " ", "HQCNote9": " ", "HQCNote10": " ", "HRemark": " ", "HQCNote1_SN": "", "HQCNote2_SN": "", "HQCNote3_SN": "", "HQCNote4_SN": "", "HQCNote5_SN": "", "HQCNote6_SN": "", "HQCNote7_SN": "" |
| | | , "HQCNote8_SN": "", "HQCNote9_SN": "", "HQCNote10_SN": ""}; |
| | | "HQCCheckItemID": 0, "HQCStd": " ", "HQCNote1": " ", "HQCNote2": " ", "HQCNote3": " ", "HQCNote4": " ", "HQCNote5": " ", "HQCNote6": " ", "HQCNote7": " ", "HQCNote8": " ", "HQCNote9": " ", "HQCNote10": " ", "HRemark": " " |
| | | , "HQCNote1_SN": $("#HQCNote1_SN").val() || '', "HQCNote2_SN": $("#HQCNote2_SN").val() || '', "HQCNote3_SN": $("#HQCNote3_SN").val() || '', "HQCNote4_SN": $("#HQCNote4_SN").val() || '', "HQCNote5_SN": $("#HQCNote5_SN").val() || '', "HQCNote6_SN": $("#HQCNote6_SN").val() || '', "HQCNote7_SN": $("#HQCNote7_SN").val() || '', "HQCNote8_SN": $("#HQCNote8_SN").val() || '', "HQCNote9_SN": $("#HQCNote9_SN").val() || '', "HQCNote10_SN": $("#HQCNote10_SN").val() || '' |
| | | }; |
| | | switch (obj.event) { |
| | | case 'btn-AddLine': |
| | | //table.cache["mainTable"].push(AddRow[rows]); |
| | |
| | | table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ |
| | | //layer.alert(copyrow); |
| | | } |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn': |
| | | get_HideColumn(); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | } |
| | | }); |
| | | }) |
| | | // åæ¥è¡¨å¤´SNç å°å表 |
| | | function syncHeaderToSubTable() { |
| | | var tableData = table.cache['mainTable']; |
| | | if (tableData && tableData.length > 0) { |
| | | for (var i = 0; i < tableData.length; i++) { |
| | | tableData[i].HQCNote1_SN = $("#HQCNote1_SN").val() || ''; |
| | | tableData[i].HQCNote2_SN = $("#HQCNote2_SN").val() || ''; |
| | | tableData[i].HQCNote3_SN = $("#HQCNote3_SN").val() || ''; |
| | | tableData[i].HQCNote4_SN = $("#HQCNote4_SN").val() || ''; |
| | | tableData[i].HQCNote5_SN = $("#HQCNote5_SN").val() || ''; |
| | | } |
| | | table.reload('mainTable', { |
| | | data: tableData |
| | | }); |
| | | } |
| | | } |
| | | |
| | | // 忥å表SNç å°è¡¨å¤´ |
| | | function syncSubTableToHeader() { |
| | | var tableData = table.cache['mainTable']; |
| | | if (tableData && tableData.length > 0) { |
| | | var firstRow = tableData[0]; |
| | | $("#HQCNote1_SN").val(firstRow.HQCNote1_SN || ''); |
| | | $("#HQCNote2_SN").val(firstRow.HQCNote2_SN || ''); |
| | | $("#HQCNote3_SN").val(firstRow.HQCNote3_SN || ''); |
| | | $("#HQCNote4_SN").val(firstRow.HQCNote4_SN || ''); |
| | | $("#HQCNote5_SN").val(firstRow.HQCNote5_SN || ''); |
| | | $("#HQCNote6_SN").val(firstRow.HQCNote5_SN || ''); |
| | | $("#HQCNote7_SN").val(firstRow.HQCNote5_SN || ''); |
| | | $("#HQCNote8_SN").val(firstRow.HQCNote5_SN || ''); |
| | | $("#HQCNote9_SN").val(firstRow.HQCNote5_SN || ''); |
| | | $("#HQCNote10_SN").val(firstRow.HQCNote5_SN || ''); |
| | | } |
| | | } |
| | | form.on('submit(Saver)', function (data) {//ä¿å |
| | | //debugger; |
| | | syncHeaderToSubTable(); |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache['mainTable']); |
| | | var sBadStr = JSON.stringify(table.cache['BadReTable']); |
| | |
| | | layer.alert(sMsg, { icon: 5 }); |
| | | |
| | | } |
| | | //#region å表1ï¼éèå设置 |
| | | function get_HideColumn() { |
| | | var colName = ""; |
| | | var contentUrl = ""; |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | colName += option.cols[0][i]["title"] + ","; |
| | | } |
| | | var urlStr = window.document.location.pathname;//è·åæä»¶è·¯å¾ |
| | | var urlLen = urlStr.split('/'); |
| | | for (var i = 0; i < urlLen.length - 4; i++) { |
| | | contentUrl += "../"; |
| | | } |
| | | colName = encodeURI(colName.substring(0, colName.length - 1));//对 URI è¿è¡ç¼ç |
| | | |
| | | contentUrl += 'åºç¡èµæ/éèå设置/Gy_GridView_Hide.html?HModName=' + HModName + '&colName=' + colName; |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , skin: "layui-layer-rim" //å ä¸è¾¹æ¡ |
| | | , title: "éèå设置" //æ é¢ |
| | | , closeBtn: 1 //çªä½å³ä¸è§å
³é ç æ ·å¼ |
| | | , shift: 2 //å¼¹åºå¨ç» |
| | | , area: ["50%", "90%"] //çªä½å¤§å° |
| | | , maxmin: true //设置æå¤§æå°æé®æ¯å¦æ¾ç¤º |
| | | , content: [contentUrl, "yes"] |
| | | , btn: ["ç¡®å®", "åæ¶"] |
| | | , btn1: function (index, laero) { |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | //æ´æ°è¡¨æ ¼ç¼åçæ°æ® |
| | | layer.close(index);//å
³éå¼¹çª |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //#region å表1ï¼æ¾ç¤ºåæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HQCCheckItemID", "HInspectInstruMentID"]; |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 2; i++) { |
| | | if (dataCol.length <= i) { |
| | | break; |
| | | } |
| | | var dataCols = dataCol[i].split('|'); |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | //è®¾ç½®è¡¨æ ¼title屿§æ¾ç¤ºå«å |
| | | if (dataCols[4] != null && dataCols[4] != "") { |
| | | option.cols[0][i + 1]["title"] = dataCols[4]; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option.cols[0].length - 1; i++) { |
| | | if (option.cols[0][i]["fixed"] != null) { |
| | | option.cols[0][i]["fixed"] = null; |
| | | } |
| | | else { |
| | | break; |
| | | } |
| | | } |
| | | //å»ç»å |
| | | if (data1.data[0].HFixCols != 0) { |
| | | for (var i = 0; i < data1.data[0].HFixCols; i++) { |
| | | if ($.inArray(option.cols[0][i + 1]["title"], titleData) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option); |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | //çå¬æäº¤ |
| | | form.verify({ |
| | | numberOrEmpty: function (value, item) { |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº<label style="color:red"> * </label></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"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·<label style="color:red"> * </label></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> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: none;" readonly> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" id="HFirstCheckEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HQCSchemeName" id="HQCSchemeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥åº<label style="color:red"> * </label></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"> |
| | |
| | | , { field: 'HQualityStdID', title: 'è´¨éæ åID', edit: 'text', hide: true } |
| | | , { field: 'HQualityStdName', title: 'è´¨éæ å', edit: 'text', event: 'HQualityStdName' } |
| | | , { field: 'HInspectMethodID', title: 'æ£éªæ¹æ³ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName' } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName', style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;' } |
| | | , { field: 'HInspectBasisID', title: 'æ£éªä¾æ®ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectBasisName', title: 'æ£éªä¾æ®', edit: 'text', event: 'HInspectBasisName' } |
| | | , { field: 'HQCStd', title: 'æ£éªæ å', edit: 'text' } |
| | |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | if (UnRightQty > HAcceptQty) { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(2); //ä¸åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 2 |
| | | $("#HInspectResultToSee").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee2").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | } else { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(1); //åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 1 |
| | | $("#HInspectResultToSee").val('åæ ¼'); |
| | | $("#HInspectResultToSee2").val('åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æºåç±»å</label> |
| | | <label class="layui-form-label" style="width: 85px;">æºåç±»å<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <select name="HMainSourceBillType" id="HMainSourceBillType"> |
| | | <option value="1102" selected>éè´è®¢å</option> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æºååå·</label> |
| | | <label class="layui-form-label" style="width: 85px;">æºååå·<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMainSourceBillNo" |
| | | id="HMainSourceBillNo" |
| | |
| | | <label class="layui-form-label" style="width: 85px;">æ£éªSN</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HRemarkSN" id="HRemarkSN" |
| | | style="display: inline-block;"> |
| | | style="display: inline-block;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | style="width: 85px;padding: 9px 18px;">产å代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" |
| | | id="HMaterNumber" value="" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | id="HMaterNumber" value="" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" |
| | | value="0" |
| | | style="background-color:#efefef4d;width: 60%;display: none;" |
| | | readonly> |
| | | value="0" |
| | | style="background-color:#efefef4d;width: 60%;display: none;" |
| | | readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" |
| | | style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | lay-submit="" lay-filter="btnSearchMater" id="btnSearchMater" |
| | | style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | |
| | | <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="HMaterName" id="HMaterName" |
| | | style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | style="width: 85px;padding: 9px 18px;">æ£éªå<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" |
| | | id="HFirstCheckEmpName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | id="HFirstCheckEmpName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" |
| | | value="0"> |
| | | value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchHFirstCheckEmp" |
| | | id="btnSearchHFirstCheckEmp" |
| | | style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | lay-submit="" lay-filter="btnSearchHFirstCheckEmp" |
| | | id="btnSearchHFirstCheckEmp" |
| | | style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡</label> |
| | | style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HQCSchemeName" |
| | | id="HQCSchemeName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | id="HQCSchemeName" |
| | | style="background-color:#efefef4d;width: 60%;display: inline-block;" |
| | | readonly> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" |
| | | lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" |
| | | style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | lay-submit="" lay-filter="btnSearchQCScheme" id="btnSearchQCScheme" |
| | | style="padding: 0 10px;float: right;margin-right: 3px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | | |
| | | </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="HQty" id="HQty" |
| | | style="background-color:#efefef4d;" readonly value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-inline" id="hidediv1" style="margin-left:20px;"> |
| | | <label class="layui-form-label" |
| | | style="width: 85px;padding: 9px 18px;">å·¥åº</label> |
| | | style="width: 85px;padding: 9px 18px;">å·¥åº<label style="color:red"> * </label></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;" |
| | |
| | | |
| | | }, |
| | | success: function (layero, index) { |
| | | btnSearchCheckSampleScheme |
| | | |
| | | } |
| | | }); |
| | |
| | | |
| | | //表ä½ä¿¡æ¯æ½æ ·æ¹æ¡å¼¹çª |
| | | form.on('submit(btnSearchCheckSampleScheme)', function () { |
| | | var nowindex = $("#HEntryID").val()-1; |
| | | var inspectMethod = table.cache["mainTable"][nowindex].HAnalysisMethod; |
| | | //页é¢å±-èªå®ä¹ |
| | | layer.open({ |
| | | type: 2, |
| | |
| | | shift: 2, |
| | | area: ['90%', '90%'], |
| | | maxmin: true, |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_SampleSchemeListView.html', 'yes'], |
| | | content: ['../../../views/Baseset/åºç¡èµæ/Gy_SampleSchemeListView.html?', 'yes'], |
| | | btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) { |
| | | |
| | |
| | | |
| | | //#region ãéæ£éªæ¹æ¡è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ã |
| | | function get_CheckItem() { |
| | | var HBatchQty = $("#HProcExchQty").val() == 0 ? $("#HICMOQty").val() : $("#HProcExchQty").val(); |
| | | var HBatchQty = $("#HQty").val() == 0 ? $("#HICMOQty").val() : $("#HQty").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", |
| | | type: "GET", |
| | |
| | | "HInspectMethodID": data[i]["HInspectMethodID"], "HInspectMethodName": data[i]["æ£éªæ¹æ³"], "HInspectBasisID": data[i]["HInspectBasisID"], "HInspectBasisName": data[i]["æ£éªä¾æ®"], |
| | | } |
| | | ); |
| | | |
| | | SampleNum.push(data[0].æ ·æ¬é); |
| | | } |
| | | |
| | |
| | | , { field: 'HQualityStdName', title: 'è´¨éæ å', edit: 'text', event: "HQualityStdID" }, |
| | | |
| | | , { field: 'HInspectMethodID', title: 'HInspectMethodID', edit: 'text', hide: true }, |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: "HInspectMethodID" }, |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: "HInspectMethodID", style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;'}, |
| | | |
| | | , { field: 'HInspectBasisID', title: 'HInspectBasisID', edit: 'text', hide: true }, |
| | | , { field: 'HInspectBasisName', title: 'æ£éªä¾æ®', edit: 'text', event: "HInspectBasisID" }, |
| | |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | if (UnRightQty > HAcceptQty) { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(2); //ä¸åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 2 |
| | | $("#HInspectResultToSee").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee2").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | } else { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(1); //åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 1 |
| | | $("#HInspectResultToSee").val('åæ ¼'); |
| | | $("#HInspectResultToSee2").val('åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | |
| | | $("#HMainSourceEntryID").val(res.data[0].HEntryID) |
| | | $("#HQCSchemeName").val(res.data[0].æ£éªæ¹æ¡åç§°); |
| | | $("#HQCSchemeID").val(res.data[0].æ£éªæ¹æ¡ID); |
| | | $("#HQty").val(res.data[0].宿¶æ°é); |
| | | //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ |
| | | get_CheckItem(); |
| | | } |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-AddLine"><i class="layui-icon layui-icon-form"></i>å¢å ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-CopyLine"><i class="layui-icon layui-icon-form"></i>å¤å¶ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_up"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn_under"><i class="layui-icon layui-icon-form"></i>ä¸ä¸è¡</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | </div> |
| | | </script> |
| | |
| | | <select name="HCompareSymbol" lay-filter="HCompareSymbol" id="HCompareSymbol{{d.LAY_TABLE_INDEX+1}}"> |
| | | <option value="1" selected="selected">=</option> |
| | | <option value="2">></option> |
| | | <option value="3=">>=</option> |
| | | <option value="3">>=</option> |
| | | <option value="4"><</option> |
| | | <option value="5"><=</option> |
| | | <option value="6"><></option> |
| | |
| | | break; |
| | | //å设置 |
| | | case 'set_HideColumn':get_HideColumn(); |
| | | break; |
| | | //ä¸ä¸è¡ |
| | | case 'btn_up': |
| | | btn_up(); |
| | | break; |
| | | //ä¸ä¸è¡ |
| | | case 'btn_under': |
| | | btn_under(); |
| | | break; |
| | | } |
| | | }); |
| | |
| | | , { field: 'HQualityStdID', title: 'è´¨éæ åID', edit: 'text', hide: true } |
| | | , { field: 'HQualityStdName', title: 'è´¨éæ å', edit: 'text', event: 'HQualityStdName' } |
| | | , { field: 'HInspectMethodID', title: 'æ£éªæ¹æ³ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName' } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName', style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;' } |
| | | , { field: 'HInspectInstruMentID', title: 'æ£éªä»ªå¨ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectInstruMentName', title: 'æ£éªä»ªå¨', edit: 'text', event: 'HInspectInstruMentName' } |
| | | , { field: 'HInspectBasisID', title: 'æ£éªä¾æ®ID', edit: 'text', hide: true } |
| | |
| | | form.render('checkbox'); |
| | | } |
| | | } |
| | | //#region å表1 ä¸ç§» |
| | | function btn_up() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length == 1) { |
| | | var tables = []; |
| | | //è·åè¡¨æ ¼çå
¨é¨è¡ |
| | | var rowList = table.cache['mainTable']; |
| | | for (var i = 0; i < rowList.length; i++) { //éåè¡¨æ ¼çè¡ |
| | | if (rowList[i].LAY_CHECKED == true) { //è·åéä¸è¡çä½ç½® |
| | | //妿æ¯ç¬¬ä¸è¡ä¸ç§»ï¼å失败并æé |
| | | if (i == 0) { |
| | | layer.msg("第ä¸è¡æ°æ®æ æ³ä¸ç§»ï¼"); |
| | | return; |
| | | } |
| | | tables.push(option.data[i - 1]); |
| | | data[0].LAY_CHECKED = true; |
| | | option.data[i - 1] = data[0]; |
| | | option.data[i] = tables[0]; |
| | | table.render(option); |
| | | CheckedSet_tableSub(); |
| | | break; |
| | | } |
| | | } |
| | | } else { |
| | | layer.msg("è¯·éæ©ä¸è¡æ°æ®ï¼"); |
| | | } |
| | | } |
| | | //#endregion |
| | | //#region å表1 ä¸ç§» |
| | | function btn_under() { |
| | | var checkStatus = table.checkStatus('mainTable') |
| | | , data = checkStatus.data; |
| | | if (data.length == 1) { |
| | | var tables = []; |
| | | //è·åè¡¨æ ¼çå
¨é¨è¡ |
| | | var rowList = table.cache['mainTable']; |
| | | for (var i = 0; i < rowList.length; i++) { //éåè¡¨æ ¼çè¡ |
| | | if (rowList[i].LAY_CHECKED == true) { //è·åéä¸è¡çä½ç½® |
| | | //å¦ææ¯æåä¸è¡ä¸ç§»ï¼å失败并æé |
| | | if (i == option.data.length - 1) { |
| | | layer.msg("æåä¸è¡æ°æ®æ æ³ä¸ç§»ï¼"); |
| | | return; |
| | | } |
| | | |
| | | |
| | | tables.push(option.data[i + 1]); |
| | | data[0].LAY_CHECKED = true; |
| | | option.data[i + 1] = data[0]; |
| | | option.data[i] = tables[0]; |
| | | table.render(option); |
| | | CheckedSet_tableSub(); |
| | | break; |
| | | } |
| | | } |
| | | } else { |
| | | layer.msg("è¯·éæ©ä¸è¡æ°æ®ï¼"); |
| | | } |
| | | } |
| | | //#endregion |
| | | //è¡¨æ ¼è¡å
äºä»¶å é¤ |
| | | function set_GridDelete(obj) { |
| | | var data = obj.data; |
| | |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">ç©æä»£ç </label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input ForFilteringSchemes" name="HMatrerNumber" id="HMatrerNumber" style="width:190px;"> |
| | | <input type="hidden" class="layui-input ForFilteringSchemes" name="HMatrerID" id="HMatrerID" style="width:190px;"> |
| | | </div> |
| | | </div> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> |
| | | </button> |
| | |
| | | var HProject = $("#HProject").val();//项ç®å· |
| | | var HQCCheckProjectName = $("#HQCCheckProjectName").val(); |
| | | var HOrgID = $("#HOrgID").val(); //ç»ç» |
| | | var HMatrerNumber = $("#HMatrerNumber").val(); //ç©æ |
| | | var HMatrerID = $("#HMatrerID").val(); //ç©æ |
| | | //ä»»æåæ®µè¿æ»¤ |
| | | var ColName = $("#ColName").val();//å¤éæ¡ |
| | | var Comparator = $("#Comparator").val() |
| | |
| | | sWhere += " and ç©æåç§° = '" + HName + "'"; |
| | | sWhere += " and å·¥åºåç§° = '" + HProcName + "'"; |
| | | } |
| | | if (HMatrerNumber != "") { |
| | | sWhere += " and ç©æä»£ç ='" + HMatrerNumber + "'"; |
| | | } |
| | | addSWhereByOpenType(); |
| | | get_Display(sWhere); |
| | | sWhere = "";//è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | |
| | | function set_ClearQuery() { |
| | | $("#HBillNo").val(""); |
| | | $("#HProject").val(""); |
| | | $("#HMatrerNumber").val(""); |
| | | var HInitTimeCycle = $("#HInitTimeCycle").val() * 1; |
| | | $("#HDate1").val(Format(new Date(new Date() - 1000 * 60 * 60 * 24 * HInitTimeCycle), "yyyy-MM-dd")); |
| | | $("#HDate2").val(Format(new Date(), "yyyy-MM-dd")); |
| | |
| | | margin-left: -15px; |
| | | margin-right: -15px; |
| | | } |
| | | |
| | | </style> |
| | | </head> |
| | | <body> |
| | |
| | | <!-- æ é¢ï¼ä½¿ç¨ç»å¯¹å®ä½ä½¿å
¶å¨ç¶å®¹å¨å
å±
ä¸ --> |
| | | <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"> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <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> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">çäº§èµæº<label style="color:red"> * </label></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;"> |
| | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">ä»»å¡åå·<label style="color:red"> * </label></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> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç </label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">产å代ç <label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HMaterNumber" id="HMaterNumber" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" class="layui-input" name="HMaterID" id="HMaterID" value="0" style="background-color:#efefef4d;width: 60%;display: none;" readonly> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" id="hidediv2"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æµè½¬å¡å·</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æµè½¬å¡å·<label style="color:red"> * </label></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> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªå<label style="color:red"> * </label></label> |
| | | |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HFirstCheckEmpName" id="HFirstCheckEmpName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HFirstCheckEmp" id="HFirstCheckEmp" value="0"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡</label> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">æ£éªæ¹æ¡<label style="color:red"> * </label></label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="text" class="layui-input" name="HQCSchemeName" id="HQCSchemeName" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="hidden" name="HQCSchemeID" id="HQCSchemeID" value="0"> |
| | |
| | | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¹å·</label> |
| | |
| | | var rowdata = []; |
| | | var option = []; |
| | | var HDeptID = "";//é¨é¨id è·åçæ¬¡ |
| | | var HCenterID = "";//å·¥ä½ä¸å¿id è·åçæ¬¡ |
| | | var HCenterID = "";//å·¥ä½ä¸å¿id è·åçæ¬¡ |
| | | |
| | | var rowdata_Value = []; |
| | | var option_Value = []; |
| | |
| | | |
| | | //客æ·ä¸ºæ¯è«å°ï¼è¿å
¥æç
§è´¨æ£æ¹æ¡è¡¨å¤´ä¸çç©æç»å®å¸¦åºé»è®¤æ¹æ¡ |
| | | if ((sessionStorage["OrganizationID"] == "7667152" && sessionStorage["Organization"] == "CMR Technology Mexico S.A. de C.V.") || |
| | | (sessionStorage["OrganizationID"] == "100199" && sessionStorage["Organization"] == "æå·æ¯è«å°ç£æ§æææéå
¬å¸")) |
| | | { |
| | | (sessionStorage["OrganizationID"] == "100199" && sessionStorage["Organization"] == "æå·æ¯è«å°ç£æ§æææéå
¬å¸")) { |
| | | //èªå¨å¸¦åºæ£éªæ¹æ¡ |
| | | GetCheckItemID(); |
| | | } |
| | | |
| | | |
| | | } |
| | | //å·¥åºè¿ç«æ¥æ¶ååè¡¨é¦æ£ |
| | | else if (HSouceBillType == 3790) { |
| | |
| | | , 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": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | |
| | | //#endregion |
| | | |
| | | //éåºæé® |
| | | form.on('submit(btn-Exit)', function (data) { |
| | | form.on('submit(btn-Exit)', function (data) { |
| | | sWhere = " and hmainid = " + $("#HInterID").val(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/QC_FirstPieceCheckBill/QC_FirstPieceCheckBillList", |
| | |
| | | , æ£éªé¡¹ç®ä»£ç : checkStatus.data[0].代ç |
| | | , HQCCheckItemID: checkStatus.data[0].HItemID |
| | | , HResult: HResult |
| | | }); |
| | | }); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + HResult + "']").attr("selected", true); |
| | | form.render('select'); |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | |
| | | } |
| | | } |
| | | //å°æ¹ééæ©çæ°æ®åå
¥æ°ç»ï¼å¤éè¡ï¼ |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | for (var i = 0; i < checkStatus.data.length; i++) { |
| | | buttonArr.push({ |
| | | "æ£éªé¡¹ç®": checkStatus.data[i].åç§°, "æ£éªé¡¹ç®ä»£ç ": checkStatus.data[i].代ç , "HQCCheckItemID": checkStatus.data[i].HItemID, "HResult": 1, |
| | | "HInspectInstruMentID": "0", "æ£éªä»ªå¨ä»£ç ": "", "æ£éªä»ªå¨": "", "HQCStd": "", "HUnit": "", "HQCNote": "", "HAnalysisMethod": "", |
| | | "HMax": "", "HMin": "", "HAvg": "", "HRemark": "", "HKeyInspect": false, "HStatus": 0, "HSampleSchemeID": 0, "HUnitID": 0, |
| | | "HInspectVal": '', "HTargetVal": '', "HUpLimit": '', "HDownLimit": '', "HUpOffSet": '', "HDownOffSet": '', "HSampleDamageQty": '0', |
| | | "HSampleSchemeName": "", "HSampleQty": "0", "HSampleDamageQty": "0", "HAcceptQty": "0", "HInspectionLevel": "", "HRejectQty": "", |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": ""}); |
| | | "HStrictness": "", "HSampleUnRightQty": "", "HAQL": "", "HSamplingType": "" |
| | | }); |
| | | } |
| | | |
| | | table.reload("mainTable", { |
| | |
| | | layer.close(layer.index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | , btn2: function (index, layero) { |
| | | //æé®ãæé®äºãçåè° |
| | |
| | | æ£éªé¡¹ç®ä»£ç : OptionData[0].代ç , |
| | | HQCCheckItemID: OptionData[0].HItemID, |
| | | HResult: 1 |
| | | }); |
| | | }); |
| | | $('#HResult' + rowIndex + '').find("option[value='" + 1 + "']").attr("selected", true); |
| | | form.render('select'); |
| | | OptionData = []; |
| | |
| | | obj.update({ |
| | | æ£éªä»ªå¨ä»£ç : OptionData[0].æ£éªä»ªå¨ä»£ç , |
| | | æ£éªä»ªå¨: OptionData[0].æ£éªä»ªå¨åç§°, |
| | | HInspectInstruMentID: OptionData[0].HItemID |
| | | }); |
| | | HInspectInstruMentID: OptionData[0].HItemID |
| | | }); |
| | | OptionData = []; |
| | | } |
| | | } |
| | |
| | | //#endregion |
| | | |
| | | //ä¿å |
| | | function set_SaveBill(data) { |
| | | async function set_SaveBill(data) { |
| | | //èµå¼æåä¸ä¸ªéä¸è¡çæ°æ®ç»option.data |
| | | //Assignment(LastIndex, LastIndex); |
| | | //ä¿åæå䏿¬¡ç¹å»è¡çæ£éªå¼ |
| | | set_SaveValue($("#HEntryID").val()); |
| | | |
| | | try { |
| | | var rownum = $("#HEntryID").val(); |
| | | |
| | | rowFun = table.cache["mainTable"][rownum].HAnalysisMethod; |
| | | if (rowFun == "") |
| | | throw error |
| | | await set_SaveValue($("#HEntryID").val(), rowFun); |
| | | } catch (error) { |
| | | |
| | | layer.msg('ç¨æ·åæ¶äºæ£éªå¼ä¿å'); |
| | | return; |
| | | } |
| | | if ($("#HICMOQty").val() == "" || $("#HICMOQty").val() <= 0) { |
| | | layer.msg("ä»»å¡åæ°éä¸è½ä¸ºç©ºä¸ä¸è½å°äºçäº0ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return; |
| | |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ä¿åæé® |
| | | $('#set_CheckBill').removeClass("layui-btn-disabled").removeAttr("disabled").addClass("layui-btn-normal"); |
| | | if (isOpenBox=="1") { |
| | | if (isOpenBox == "1") { |
| | | layer.open({ |
| | | type: 2, |
| | | skin: 'layui-layer-rim', |
| | |
| | | "HAnalysisMethod": data[i].åææ¹æ³ == "宿§åæ" ? 1 : (data[i].åææ¹æ³ == "å®éåæ" ? 2 : 3), "HKeyInspect": data[i].éç¹æ£æ¥ == "å¦" ? false : true, |
| | | "HSampleSchemeID": data[i].HSampleSchemeID, "HUnitID": data[i].HUnitID, |
| | | "HInspectVal": data[i].æ£æµå¼, "HTargetVal": data[i].ç®æ å¼, "HUpLimit": data[i].ä¸éå¼, "HDownLimit": data[i].ä¸éå¼, "HUpOffSet": data[i].ä¸åå·®, "HDownOffSet": data[i].ä¸åå·®, "HSampleDamageQty": data[i].æ ·æ¬ç ´åæ°, |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HSampleDamageQty": data[i].æ ·æ¬ç ´åæ°, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": 0, "HRejectQty": data[i].æç»æ°, |
| | | "HStrictness": 0, "HSampleUnRightQty": data[i].æ ·æ¬ä¸åæ ¼æ°, "HAQL": data[i].AQL, "HSamplingType": data[i].æ½æ ·ç±»å, "HStrictness": data[i].ä¸¥æ ¼åº¦, "HCompareSymbol": data[i].æ¯è¾ç¬¦, "HQualityStdID": data[i].HQualityStdID, "HQualityStdName": data[i].è´¨éæ å, "HInspectMethodID": data[i].HInspectMethodID, "HInspectMethodName": data[i].æ£éªæ¹æ³, "HInspectBasisID": data[i].HInspectBasisID, "HInspectBasisName": data[i].æ£éªä¾æ®,"HCompareSymbol":data[i].æ¯è¾ç¬¦ |
| | | "HSampleSchemeName": data[i].æ½æ ·æ¹æ¡åç§°, "HSampleQty": data[i].æ ·æ¬é, "HSampleDamageQty": data[i].æ ·æ¬ç ´åæ°, "HAcceptQty": data[i].å
许æ°, "HInspectionLevel": 0, "HRejectQty": data[i].æç»æ°, |
| | | "HStrictness": 0, "HSampleUnRightQty": data[i].æ ·æ¬ä¸åæ ¼æ°, "HAQL": data[i].AQL, "HSamplingType": data[i].æ½æ ·ç±»å, "HStrictness": data[i].ä¸¥æ ¼åº¦, "HCompareSymbol": data[i].æ¯è¾ç¬¦, "HQualityStdID": data[i].HQualityStdID, "HQualityStdName": data[i].è´¨éæ å, "HInspectMethodID": data[i].HInspectMethodID, "HInspectMethodName": data[i].æ£éªæ¹æ³, "HInspectBasisID": data[i].HInspectBasisID, "HInspectBasisName": data[i].æ£éªä¾æ®, "HCompareSymbol": data[i].æ¯è¾ç¬¦ |
| | | |
| | | } |
| | | ) |
| | |
| | | , 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' |
| | | , content: '../../ç产管ç/ä½ä¸æå¯¼ä¹¦/Gy_SOPBill_Video.html?OperationType=5&HMaterID=' + HMaterID + '&HSourceNo=&HSourceEntryID=&HProcID=' + HProcID + '&HType=SIP' |
| | | , resize: false, |
| | | end: function () { |
| | | } |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | }); |
| | | |
| | | //#region ãè¡¨ä½æ¾å¤§éã |
| | |
| | | $("tr[data-index = " + (result.data.length - 1) + "] ").attr({ "style": "background:#ceedfa;color:black" }); |
| | | |
| | | trindex = result.data.length - 1; |
| | | $("#HEntryID").val() - 1 |
| | | $("#HEntryID").val() - 1 |
| | | |
| | | //æºå¸¦åºæ½æ ·æ¹æ¡ |
| | | ReturnSampleScheme(data); |
| | |
| | | $("#HDownLimit").val(data[data.length - 1].ä¸éå¼); |
| | | //æ¯è¾ç¬¦ |
| | | $("#HComparator").val(data[data.length - 1].æ¯è¾ç¬¦); |
| | | |
| | | |
| | | |
| | | if ($("#HEntryID").val() - 1 >= 0) { |
| | | option.data[$("#HEntryID").val() - 1].HSampleSchemeID = data[data.length - 1].HSampleSchemeID; |
| | |
| | | , { field: 'HQualityStdID', title: 'è´¨éæ åID', edit: 'text', hide: true } |
| | | , { field: 'HQualityStdName', title: 'è´¨éæ å', edit: 'text', event: 'HQualityStdName' } |
| | | , { field: 'HInspectMethodID', title: 'æ£éªæ¹æ³ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName' } |
| | | , { field: 'HInspectMethodName', title: 'æ£éªæ¹æ³', edit: 'text', event: 'HInspectMethodName', style: 'white-space: nowrap; overflow: hidden;text-overflow: ellipsis;' } |
| | | , { field: 'HInspectBasisID', title: 'æ£éªä¾æ®ID', edit: 'text', hide: true } |
| | | , { field: 'HInspectBasisName', title: 'æ£éªä¾æ®', edit: 'text', event: 'HInspectBasisName' } |
| | | , { field: 'HKeyInspect', title: 'éç¹æ£æ¥', templet: '#HKeyInspect', unresize: false } |
| | |
| | | , { field: 'HTargetVal', title: 'ç®æ å¼' } |
| | | , { field: 'HUpLimit', title: 'ä¸éå¼' } |
| | | , { field: 'HDownLimit', title: 'ä¸éå¼' } |
| | | , { field: 'HCompareSymbol', title: 'æ¯è¾ç¬¦'} |
| | | , { field: 'HCompareSymbol', title: 'æ¯è¾ç¬¦' } |
| | | , { field: 'HMax', title: 'æå¤§å¼', edit: 'text', totalRow: true } |
| | | , { field: 'HMin', title: 'æå°å¼', edit: 'text', totalRow: true } |
| | | , { field: 'HAvg', title: 'å¹³åå¼', edit: 'text', totalRow: true } |
| | |
| | | |
| | | //#region ãå廿£éªé¡¹ç®è¡äºä»¶ã |
| | | table.on('rowDouble(mainTable)', function (obj) { |
| | | |
| | | |
| | | |
| | | $("#HInspectResultToSee").css("background-color", "");//å»é¤æ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "");//å»é¤æ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | |
| | |
| | | var nowindex = $(obj.tr).attr("data-index"); |
| | | editIndex = Number(nowindex) + Number(1); |
| | | LastIndex = nowindex; |
| | | //#region |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | if (option_Check.length > 0) { |
| | | $("[name='HEntryID']").attr("value", Number(nowindex) + Number(1)); |
| | |
| | | $("#HUpLimit").val(option_Check[nowindex].ä¸éå¼); |
| | | $("#HDownLimit").val(option_Check[nowindex].ä¸éå¼); |
| | | $("#HComparator").val(option_Check[nowindex].æ¯è¾ç¬¦) |
| | | } |
| | | } |
| | | |
| | | |
| | | //éä¸è¡æ¹åé¢è² |
| | |
| | | var rowIndex = Number($(obj.tr).attr("data-index")) + Number(1); |
| | | //ææ£éªå¼æ°æ®åå°æ°ç» |
| | | //createArr(rowIndex); |
| | | |
| | | var rowFun = table.cache["mainTable"][nowindex].HAnalysisMethod; |
| | | //è·ååå
æ ¼æ£éªå¼æ°æ® |
| | | |
| | | var table_value = table.cache['ValueTable']; |
| | | |
| | | if (OperationType == 3) { |
| | | set_SaveValue(Number(nowindex) + Number(1)); |
| | | set_SaveValue(Number(nowindex) + Number(1), rowFun); |
| | | } else { |
| | | set_SaveValue(dataindex + 1); |
| | | set_SaveValue(dataindex + 1, rowFun); |
| | | } |
| | | //èµå¼ä¸åæ¾ |
| | | if ($("#HSampleSchemeID").val() != "0") { |
| | |
| | | HStatus: $("#HStatus").val(), //ç¶æ |
| | | HSampleSchemeID: $("#HSampleSchemeID").val(), //æ½æ ·æ¹æ¡ID |
| | | HSampleSchemeName: $("#HSampleSchemeName").val(), //æ½æ ·æ¹æ¡ |
| | | //HCompareSymbol: $("#HCompareSymbol").val(), |
| | | //HCompareSymbol: $("#HCompareSymbol").val(), |
| | | HUnitID: $("#HUnitID").val(), //åä½ID |
| | | HUnit: $("#HUnit").val(), //åä½ |
| | | HInspectVal: $("#HInspectVal").val(), //æ£éªå¼ |
| | |
| | | |
| | | $("#HSampleSchemeID").val(0); |
| | | $("#HSampleSchemeName").val(""); |
| | | //HCompareSymbol: $("#HCompareSymbol").val(); |
| | | //HCompareSymbol: $("#HCompareSymbol").val(); |
| | | $("#HUnitID").val(0); |
| | | $("#HUnit").val(""); |
| | | $("#HInspectVal").val(""); |
| | |
| | | HStatus: $("#HStatus").val(), //ç¶æ |
| | | HSampleSchemeID: option.data[nowindex].HSampleSchemeID, //æ½æ ·æ¹æ¡ID |
| | | HSampleSchemeName: option.data[nowindex].HSampleSchemeName, //æ½æ ·æ¹æ¡ |
| | | //HCompareSymbol: $("#HCompareSymbol").val(), |
| | | //HCompareSymbol: $("#HCompareSymbol").val(), |
| | | HUnitID: option.data[nowindex].HUnitID, //åä½ID |
| | | HUnit: option.data[nowindex].HUnit,//åä½ |
| | | HInspectVal: option.data[nowindex].HInspectVal, //æ£éªå¼ |
| | |
| | | $("#HUnitID").val(maindata[nowindex].HUnitID); |
| | | $("#HUnit").val(maindata[nowindex].HUnit); |
| | | $("#HInspectVal").val(maindata[nowindex].HInspectVal); |
| | | $("#HTargetVal").val(maindata[nowindex].HTargetVal == "" ? (option_Check.length > 0 ? option_Check[nowindex].ç®æ å¼ : "") : maindata[nowindex].HTargetVal ); |
| | | $("#HUpLimit").val(maindata[nowindex].HUpLimit == "" ? (option_Check.length > 0 ? option_Check[nowindex].ä¸éå¼ : "") : maindata[nowindex].HUpLimit ); |
| | | $("#HTargetVal").val(maindata[nowindex].HTargetVal == "" ? (option_Check.length > 0 ? option_Check[nowindex].ç®æ å¼ : "") : maindata[nowindex].HTargetVal); |
| | | $("#HUpLimit").val(maindata[nowindex].HUpLimit == "" ? (option_Check.length > 0 ? option_Check[nowindex].ä¸éå¼ : "") : maindata[nowindex].HUpLimit); |
| | | $("#HDownLimit").val(maindata[nowindex].HDownLimit == "" ? (option_Check.length > 0 ? option_Check[nowindex].ä¸éå¼ : "") : maindata[nowindex].HDownLimit); |
| | | $("#HComparator").val(maindata[nowindex].HCompareSymbol == "" ? (option_Check.length > 0 ? option_Check[nowindex].æ¯è¾ç¬¦ : "=") : maindata[nowindex].HCompareSymbol); |
| | | $("#HUpOffSet").val(maindata[nowindex].HUpOffSet); |
| | |
| | | var HAcceptQty = $("#HAcceptQty").val();//å
è®¸æ° |
| | | //var HEntryID = OperationType == 3 ? editIndex : $("#HEntryID").val() - 1; |
| | | if (UnRightQty > HAcceptQty) { |
| | | $("#HResult" + (Number(HEntryID) )).val(2); //ä¸åæ ¼ |
| | | $("#HResult" + (Number(HEntryID))).val(2); //ä¸åæ ¼ |
| | | $("#HInspectResultToSee").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee2").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | } else { |
| | | $("#HResult" + (Number(HEntryID) )).val(1); //åæ ¼ |
| | | $("#HResult" + (Number(HEntryID))).val(1); //åæ ¼ |
| | | $("#HInspectResultToSee").val('åæ ¼'); |
| | | $("#HInspectResultToSee2").val('åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | } |
| | | |
| | | form.render('select'); |
| | | form.render('select'); |
| | | } else { |
| | | option_Value.data = [{ |
| | | "HSEQ": "0", "HInSpectResult": "", "HInSpectValueB": "", "HInSpectValueT": "", "HInSpectValue": "" |
| | |
| | | $("#HSampleUnRightQty2").val(UnRightQty); |
| | | var HAcceptQty = $("#HAcceptQty").val();//å
è®¸æ° |
| | | var HEntryID = $("#HEntryID").val() - 1;//æ°ç»ä¸æ |
| | | if (UnRightQty > HAcceptQty) { |
| | | if (UnRightQty > HAcceptQty) { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(2); //ä¸åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 2 |
| | | $("#HInspectResultToSee").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee2").val('ä¸åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | $("#HInspectResultToSee2").css("background-color", "#F0D6E3");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | | } else { |
| | | $("#HResult" + (Number(HEntryID) + Number(1))).val(1); //åæ ¼ |
| | | table.cache["mainTable"][HEntryID].HResult = 1 |
| | | $("#HInspectResultToSee").val('åæ ¼'); |
| | | $("#HInspectResultToSee2").val('åæ ¼'); |
| | | $("#HInspectResultToSee").css("background-color", "#CEE3F2");//æ¹åæ£éªç»æè¾å
¥æ¡èæ¯é¢è² |
| | |
| | | |
| | | form.render('select'); |
| | | } |
| | | //ä¿åæé® |
| | | form.on('submit(btnSave)', function (data) { |
| | | set_SaveBill(data); |
| | | }); |
| | | //æ£éªå¼ä¿å - è¿åPromise |
| | | function set_SaveValue(dataindex, rowFun) { |
| | | return new Promise((resolve, reject) => { |
| | | var hasEmptyRow = false; |
| | | var emptyRowNumbers = []; |
| | | |
| | | //æ£éªå¼ä¿å |
| | | 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 |
| | | for (let i = 0; i < table.cache['ValueTable'].length; i++) { |
| | | var row = table.cache['ValueTable'][i]; |
| | | if (rowFun == 2) { |
| | | if ( |
| | | (!row.HInSpectValue || row.HInSpectValue === "")) { |
| | | hasEmptyRow = true; |
| | | emptyRowNumbers.push(i + 1); |
| | | } |
| | | } |
| | | } |
| | | 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) { |
| | | |
| | | if (hasEmptyRow) { |
| | | var confirmMsg = "æ£éªå¼è¡¨æ ¼ä¸åå¨ç©ºè¡ï¼ç¬¬ " + emptyRowNumbers.join(", ") + " è¡ï¼ï¼æ¯å¦ç»§ç»ä¿åï¼"; |
| | | layer.confirm(confirmMsg, { |
| | | icon: 3, |
| | | title: 'æç¤º', |
| | | btn: ['确认ä¿å', 'åæ¶ä¿å'] |
| | | }, function (index) { |
| | | |
| | | layer.close(index); |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ä¿åæé® |
| | | } |
| | | else { |
| | | proceedWithSave(dataindex).then(resolve).catch(reject); |
| | | }, function (index) { |
| | | ////è·å䏿¬¡æå¨è¡ä¸æ |
| | | //var dataindex = $("#HEntryID").val() - 1; |
| | | 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: "温馨æç¤º" }); |
| | | //EchoValue(); |
| | | layer.msg('已忶ä¿åï¼è¯·å®åæ°æ®åéæ°æä½', { icon: 2 }); |
| | | //reject(new Error('ç¨æ·åæ¶äºä¿å')); |
| | | }); |
| | | } else { |
| | | |
| | | proceedWithSave(dataindex).then(resolve).catch(reject); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | | function proceedWithSave(dataindex) { |
| | | return new Promise((resolve, reject) => { |
| | | 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) { |
| | | layer.close(index); |
| | | if (data.count == 1) { |
| | | layer.msg('æ£éªå¼ä¿åæå', { icon: 1 }); |
| | | resolve(); // æåæ¶resolve |
| | | } else { |
| | | layer.msg("æ£éªå¼ä¿åé误ï¼" + data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | reject(new Error("æ£éªå¼ä¿åé误ï¼" + data.Message)); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("æ£éªå¼ä¿åé误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | reject(new Error("æ£éªå¼ä¿åé误ï¼" + err)); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | //æ£éªå¼ä¿å |
| | | //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 |
| | | |
| | | // var index = layer.load(); |
| | | // $.ajax({ |
| | | // type: "POST", |
| | | // url: GetWEBURL() + "/QC_FirstPieceCheckBill/set_SaveValue", |
| | | // async: false, |
| | | // 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() { |
| | |
| | | url: GetWEBURL() + "/Web/GetCheckItemID", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HName": HName, "HProName": HProName,"HSourceID": HSourceID }, |
| | | data: { "HName": HName, "HProName": HProName, "HSourceID": HSourceID }, |
| | | success: function (result) { |
| | | if (result.code == 1) { |
| | | $("#HQCSchemeID").val(result.data[0].hmainid); |
| | |
| | | var LoadData = data.data; |
| | | $("#HShiftsID").val(LoadData[0].HInterID); //å½åå·¥åºID |
| | | $("#HShiftsName").val(LoadData[0].çæ¬¡); //å½åå·¥åº |
| | | } |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.alert(err, { icon: 5 }); |
| | |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HQCCheckItemID","HInspectInstruMentID"]; |
| | | var titleData = ["HQCCheckItemID", "HInspectInstruMentID"]; |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | |
| | | option.cols[0][i + 1]["style"] += "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option.cols[0][i + 1]["style"] += "font-size:100%"; |
| | | } |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option.cols[0][i + 1]["title"], titleData) == -1) { |
| | | option.cols[0][i + 1]["hide"] = false; |
| | |
| | | $("#HShiftsID").val(obj[0].HInterID); |
| | | } |
| | | //å·¥åº |
| | | function GetProcessValue (obj) { |
| | | function GetProcessValue(obj) { |
| | | $("#HProcName").val(obj[0].å·¥åºåç§°); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | $("#HProcID").val(obj[0].HItemID); |
| | | } |
| | | //计éåä½ |
| | | function GetHUnitListValue(obj) { |
| | |
| | | $("#HDownLimit").val(obj.æ£æµå¼åç§°); |
| | | } |
| | | //æ£éªé¡¹ç® |
| | | function GetCheckItemValue (obj) { |
| | | function GetCheckItemValue(obj) { |
| | | OptionData = obj; |
| | | } |
| | | //æ£éªä»ªå¨ |
| | |
| | | sWhere += " and DSN like '%" + HBarcode_SN + "%'"; |
| | | } |
| | | if (HBarcode_ZB) { |
| | | sWhere += " and æ æ¿ç like '%" + HBarcode_ZB + "%'"; |
| | | sWhere += "and 管å¶åºå· like 'P%' and 管å¶åºå· like '%XXX' and 管å¶åºå·='" + HBarcode_ZB+"'"; |
| | | } |
| | | if (HBarcode_ZX) { |
| | | sWhere += " and ä¸ç®±ç like '%" + HBarcode_ZX + "%'"; |
| | | sWhere += "and 管å¶åºå· like 'MZXH%' and 管å¶åºå·='" + HBarcode_ZX+"'"; |
| | | } |
| | | |
| | | get_Display(sWhere); |
| | |
| | | $("#ColName2").val("0"); |
| | | $("#Comparator2").val("0"); |
| | | form.render('select'); |
| | | |
| | | |
| | | get_FastQuery("") |
| | | sWhere = ""; |
| | | } |
| | | //#endregion |
| | |
| | | } |
| | | |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere) { |
| | | function get_Display(HDate1,HDate2,txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere) { |
| | | var wait = layer.load();//é®ç½© |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Mes_OrderProcFlowAllReport/OrderProcFlowAllReportList_Tk', |
| | | type: "GET", |
| | | data: {"txtHOrderProcNo": txtHOrderProcNo, "txtHMaterNumber": txtHMaterNumber, "check": check, "txtHDeptName": txtHDeptName, "sWhere": sWhere }, |
| | | data: { "HDate1": HDate1, "HDate2": HDate2,"txtHOrderProcNo": txtHOrderProcNo, "txtHMaterNumber": txtHMaterNumber, "check": check, "txtHDeptName": txtHDeptName, "sWhere": sWhere }, |
| | | success: function (data1) { |
| | | var col = []; |
| | | if (data1.count == 1) { |
| | |
| | | function get_FastQuery() { |
| | | var HDate1 = $("#HDate1").val(); |
| | | var HDate2 = $("#HDate2").val(); |
| | | sWhere = "and å·¥åºå®å·¥æ¥æ1 >='" + HDate1 + "' and å·¥åºå®å·¥æ¥æ1<='" + HDate2 + "'"; |
| | | sWhere = ""; |
| | | //sWhere = "and å·¥åºå®å·¥æ¥æ1 >='" + HDate1 + "' and å·¥åºå®å·¥æ¥æ1<='" + HDate2 + "'"; |
| | | var txtHOrderProcNo = $("#txtHOrderProcNo").val();//订åè·è¸ªå· |
| | | var txtHMaterNumber = $("#txtHMaterNumber").val(); //ç©æ |
| | | var txtHDeptName = $("#txtHDeptName").val(); //ç©æ |
| | |
| | | sWhere += " and " + ColName2 + " " + com2; |
| | | } |
| | | |
| | | get_Display(txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere); |
| | | get_Display(HDate1,HDate2,txtHOrderProcNo, txtHMaterNumber, check, txtHDeptName, sWhere); |
| | | //sWhere = "'" + HDate1 + "','" + HDate2 + "','" + txtHOrderProcNo + "','" + txtHMaterNumber + "','" + check + "'" + ",'" + txtHDeptName + "'"; |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |