| WebTM/views/生产管理/制造周期报表/Sc_ProductionCycleBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/出厂检验单/QC_OutCompCheckBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/巡检记录单/QC_Add_Edit_PatrolProcCheckBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/巡检记录单/QC_Add_Edit_PatrolProcCheckBill_XW.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/工序检验单/QC_ProcessCheckBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/来料检验单/QC_Add_Edit_POStockInCheckBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/检验方案单/QC_Add_CheckProject.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/检验方案单/QC_CheckProjectList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/质量管理/首件检验单/QC_Add_Edit_FirstPieceCheckBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/车间管理/单品过站_小卫/Cj_ProcessItemStationPlatform_UnbindList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/车间管理/报表分析/Mes_OrderProcFlowAllReport_TK.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebTM/views/Éú²ú¹ÜÀí/ÖÆÔìÖÜÆÚ±¨±í/Sc_ProductionCycleBillList.html
@@ -1247,7 +1247,7 @@ $("#HInitTimeCycle").append(HInitTimeCycle_ArrayList); form.render('select'); $("#HInitTimeCycle").val("29"); $("#HInitTimeCycle").val("3"); } //#endregion WebTM/views/ÖÊÁ¿¹ÜÀí/³ö³§¼ìÑéµ¥/QC_OutCompCheckBill.html
@@ -87,7 +87,7 @@ </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> @@ -96,7 +96,7 @@ </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" @@ -209,7 +209,7 @@ <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="" @@ -235,7 +235,7 @@ </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" @@ -253,7 +253,7 @@ </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" @@ -285,7 +285,7 @@ </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;" WebTM/views/ÖÊÁ¿¹ÜÀí/Ѳ¼ì¼Ç¼µ¥/QC_Add_Edit_PatrolProcCheckBill.html
@@ -55,7 +55,7 @@ </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"> @@ -79,7 +79,7 @@ <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"> @@ -95,7 +95,7 @@ </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;"> WebTM/views/ÖÊÁ¿¹ÜÀí/Ѳ¼ì¼Ç¼µ¥/QC_Add_Edit_PatrolProcCheckBill_XW.html
@@ -38,6 +38,10 @@ <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"> @@ -189,6 +193,7 @@ </div> </div> </div> </div> <div class="layui-form-item"> <div class="layui-row" style="display:none"> @@ -219,6 +224,75 @@ </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> @@ -244,12 +318,14 @@ <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"> @@ -324,6 +400,7 @@ } var params = getUrlVars(); if (typeof (params[params[0]]) == "undefined") { var OperationType = 1;//æä½ç±»å var closeType = 2; //å ³éç±»å @@ -358,6 +435,7 @@ //#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>'); @@ -374,30 +452,40 @@ , 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 } ]] @@ -496,11 +584,21 @@ "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++) { @@ -542,7 +640,12 @@ }); } // å¨é¡µé¢å è½½å®æåï¼å¦æå·²æåè¡¨æ°æ®ï¼åæ¥å°è¡¨å¤´ $(document).ready(function () { setTimeout(function () { syncSubTableToHeader(); }, 500); }); //å¤´å·¥å ·æ äºä»¶ var rowid = 0; var rows = 0; @@ -551,8 +654,9 @@ , 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]); @@ -578,6 +682,10 @@ table.render(option);//å°æ°æ®æ¸²æå°è¡¨æ ¼ä¸ //layer.alert(copyrow); } break; //å设置 case 'set_HideColumn': get_HideColumn(); break; } }); @@ -1647,9 +1755,43 @@ } }); }) // åæ¥è¡¨å¤´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']); @@ -1684,7 +1826,125 @@ 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) { WebTM/views/ÖÊÁ¿¹ÜÀí/¹¤Ðò¼ìÑéµ¥/QC_ProcessCheckBill.html
@@ -78,7 +78,7 @@ </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"> @@ -100,7 +100,7 @@ </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> @@ -136,7 +136,7 @@ </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> @@ -152,7 +152,7 @@ </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"> @@ -163,7 +163,7 @@ </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;"> @@ -188,7 +188,7 @@ </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"> WebTM/views/ÖÊÁ¿¹ÜÀí/À´ÁϼìÑéµ¥/QC_Add_Edit_POStockInCheckBillList.html
@@ -103,7 +103,7 @@ </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> @@ -113,7 +113,7 @@ </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" @@ -234,7 +234,7 @@ </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="" @@ -260,7 +260,7 @@ </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" @@ -278,7 +278,7 @@ </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" @@ -291,6 +291,13 @@ <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> @@ -311,7 +318,7 @@ </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;" @@ -2475,6 +2482,7 @@ }, success: function (layero, index) { btnSearchCheckSampleScheme } }); @@ -2482,6 +2490,8 @@ //表ä½ä¿¡æ¯æ½æ ·æ¹æ¡å¼¹çª form.on('submit(btnSearchCheckSampleScheme)', function () { var nowindex = $("#HEntryID").val()-1; var inspectMethod = table.cache["mainTable"][nowindex].HAnalysisMethod; //页é¢å±-èªå®ä¹ layer.open({ type: 2, @@ -2491,7 +2501,7 @@ 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) { @@ -2558,7 +2568,8 @@ //#region ãéæ£éªæ¹æ¡è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ã function get_CheckItem() { var HBatchQty = $("#HProcExchQty").val() == 0 ? $("#HICMOQty").val() : $("#HProcExchQty").val(); var HBatchQty = $("#HQty").val() == 0 ? $("#HICMOQty").val() : $("#HQty").val(); //var HBatchQty = $("#HProcExchQty").val() == 0 ? $("#HICMOQty").val() : $("#HProcExchQty").val(); $.ajax({ url: GetWEBURL() + "/Web/GetCheckItemByCheckProjectID", type: "GET", @@ -2582,6 +2593,7 @@ "HInspectMethodID": data[i]["HInspectMethodID"], "HInspectMethodName": data[i]["æ£éªæ¹æ³"], "HInspectBasisID": data[i]["HInspectBasisID"], "HInspectBasisName": data[i]["æ£éªä¾æ®"], } ); SampleNum.push(data[0].æ ·æ¬é); } @@ -4934,6 +4946,7 @@ $("#HMainSourceEntryID").val(res.data[0].HEntryID) $("#HQCSchemeName").val(res.data[0].æ£éªæ¹æ¡åç§°); $("#HQCSchemeID").val(res.data[0].æ£éªæ¹æ¡ID); $("#HQty").val(res.data[0].宿¶æ°é); //è·åè¡¨ä½æ£éªé¡¹ç®ä¿¡æ¯ get_CheckItem(); } WebTM/views/ÖÊÁ¿¹ÜÀí/¼ìÑé·½°¸µ¥/QC_Add_CheckProject.html
@@ -274,6 +274,8 @@ <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> @@ -457,6 +459,14 @@ break; //å设置 case 'set_HideColumn':get_HideColumn(); break; //ä¸ä¸è¡ case 'btn_up': btn_up(); break; //ä¸ä¸è¡ case 'btn_under': btn_under(); break; } }); @@ -1599,7 +1609,66 @@ 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; WebTM/views/ÖÊÁ¿¹ÜÀí/¼ìÑé·½°¸µ¥/QC_CheckProjectList.html
@@ -59,6 +59,13 @@ </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> @@ -565,6 +572,8 @@ 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() @@ -661,6 +670,9 @@ sWhere += " and ç©æåç§° = '" + HName + "'"; sWhere += " and å·¥åºåç§° = '" + HProcName + "'"; } if (HMatrerNumber != "") { sWhere += " and ç©æä»£ç ='" + HMatrerNumber + "'"; } addSWhereByOpenType(); get_Display(sWhere); sWhere = "";//è°ç¨æ¥å£åæ¸ ç©ºsWhereç¼å @@ -671,6 +683,7 @@ 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")); WebTM/views/ÖÊÁ¿¹ÜÀí/Ê×¼þ¼ìÑéµ¥/QC_Add_Edit_FirstPieceCheckBill.html
@@ -83,7 +83,7 @@ </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;"> @@ -105,7 +105,7 @@ </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> @@ -122,7 +122,7 @@ </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> @@ -138,7 +138,7 @@ </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> @@ -174,7 +174,8 @@ </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"> @@ -184,7 +185,7 @@ </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"> @@ -815,8 +816,7 @@ //客æ·ä¸ºæ¯è«å°ï¼è¿å ¥æç §è´¨æ£æ¹æ¡è¡¨å¤´ä¸çç©æç»å®å¸¦åºé»è®¤æ¹æ¡ 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(); } @@ -1360,7 +1360,8 @@ "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", { @@ -1710,12 +1711,23 @@ //#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; @@ -3107,6 +3119,9 @@ //#region ãå廿£éªé¡¹ç®è¡äºä»¶ã table.on('rowDouble(mainTable)', function (obj) { $("#HInspectResultToSee").css("background-color", "");//å»é¤æ£éªç»æè¾å ¥æ¡èæ¯é¢è² $("#HInspectResultToSee2").css("background-color", "");//å»é¤æ£éªç»æè¾å ¥æ¡èæ¯é¢è² @@ -3117,6 +3132,11 @@ 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)); @@ -3136,14 +3156,15 @@ 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") { @@ -4209,12 +4230,61 @@ 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) { 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 (hasEmptyRow) { var confirmMsg = "æ£éªå¼è¡¨æ ¼ä¸åå¨ç©ºè¡ï¼ç¬¬ " + emptyRowNumbers.join(", ") + " è¡ï¼ï¼æ¯å¦ç»§ç»ä¿åï¼"; layer.confirm(confirmMsg, { icon: 3, title: 'æç¤º', btn: ['确认ä¿å', 'åæ¶ä¿å'] }, function (index) { layer.close(index); proceedWithSave(dataindex).then(resolve).catch(reject); }, function (index) { ////è·å䏿¬¡æå¨è¡ä¸æ //var dataindex = $("#HEntryID").val() - 1; layer.close(index); //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 @@ -4226,6 +4296,7 @@ table.cache['ValueTable'][i].HInSpectValue = 0 } } var sValueTable = JSON.stringify(table.cache['ValueTable']); var HInterID = $("#HInterID").val(); var HEntryID = dataindex; @@ -4239,21 +4310,68 @@ data: { "msg": msg }, dataType: "json", success: function (data) { layer.close(index); if (data.count == 1) { layer.close(index); //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true);//ä¿åæé® } else { layer.close(index); 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() { WebTM/views/³µ¼ä¹ÜÀí/µ¥Æ·¹ýÕ¾_СÎÀ/Cj_ProcessItemStationPlatform_UnbindList.html
@@ -506,10 +506,10 @@ 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); @@ -534,6 +534,7 @@ $("#Comparator2").val("0"); form.render('select'); get_FastQuery("") sWhere = ""; } //#endregion WebTM/views/³µ¼ä¹ÜÀí/±¨±í·ÖÎö/Mes_OrderProcFlowAllReport_TK.html
@@ -327,12 +327,12 @@ } //å è½½ç½æ ¼ 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) { @@ -385,7 +385,8 @@ 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(); //ç©æ @@ -469,7 +470,7 @@ 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 = "";