| | |
| | | <File Include="views/车é´ç®¡ç/å·¥åºæµè½¬/MES_ColorRecordBill_PDA.html"> |
| | | <publishTime>09/14/2023 13:59:10</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºæµè½¬/MES_ProcessExchangeBillList_PDA_QiaoYi.html"> |
| | | <publishTime>11/09/2023 15:19:24</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºæµè½¬/MES_SampleRecordBill_PDA.html"> |
| | | <publishTime>09/14/2023 13:59:10</publishTime> |
| | | </File> |
| | |
| | | <File Include="views/车é´ç®¡ç/å·¥åºæµè½¬/MES_SampleRecordBill_PDA.html"> |
| | | <publishTime>09/14/2023 13:59:10</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºæµè½¬/MES_Sc_ICMOBillList_PDA_QiaoYi.html"> |
| | | <publishTime>11/10/2023 17:07:24</publishTime> |
| | | </File> |
| | | <File Include="views/车é´ç®¡ç/å·¥åºæµè½¬/MES_Sc_ProcessExchangeBillMain_Note_PDA.html"> |
| | | <publishTime>09/22/2023 08:58:26</publishTime> |
| | | </File> |
| | |
| | | <Content Include="views\车é´ç®¡ç\ååè¿ç«\Cj_CollectionOfSingleProductDefects.html" /> |
| | | <Content Include="views\è´¨é管ç\é¦ä»¶æ£éªå\QC_FirstPieceCheckReport_ZTFB.html" /> |
| | | <Content Include="views\è´¨é管ç\é¦ä»¶æ£éªå\QC_FirstPieceCheckReport_ZDQX.html" /> |
| | | <Content Include="views\车é´ç®¡ç\ååè¿ç«\Cj_ProcessItemBGA.html" /> |
| | | <Content Include="views\车é´ç®¡ç\ååè¿ç«\Cj_ProcessItemBGA_PJGH.html" /> |
| | | <Content Include="views\车é´ç®¡ç\ååè¿ç«\Cj_ProcessItemStationPlatform.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_ProcessExchangeBillList_PDA_QiaoYi.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_Sc_ICMOBillList_PDA_QiaoYi.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_Sc_ProcessExchangeBillMain_Note_PDA.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_StationInBillList_PDA_QiaoYi.html" /> |
| | | <Content Include="views\车é´ç®¡ç\å·¥åºæµè½¬\MES_StationOutBillList_PDA_QiaoYi.html" /> |
| | |
| | | <!DOCTYPE html> |
| | |  |
| | | <!DOCTYPE html> |
| | | <html> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | |
| | | å·¥åºè¿ç«æ¥æ¶åå表æ¥è¯¢ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_ProcessExchangeBillList_PDA_QiaoYi.html?type=czd" target="main_self_frame" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | å·¥åºæµè½¬å¡å表æ¥è¯¢ |
| | | </a> |
| | | </dd> |
| | | <dd> |
| | | <a href="车é´ç®¡ç/å·¥åºæµè½¬/MES_Sc_ICMOBillList_PDA_QiaoYi.html?type=czd" target="main_self_frame" style="color: aqua;"> |
| | | <img src="../layuiadmin/myicon/åæ®å½å¶.svg" alt="åæ®å½å¶" style="width:25px;height:25px;margin-right: 5px;" /> |
| | | ç产订åå表æ¥è¯¢ |
| | | </a> |
| | | </dd> |
| | | </dl> |
| | | </li> |
| | | <li data-name="set" class="layui-nav-item"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">计åå¼å®å·¥æ</label> |
| | | <label class="layui-form-label" style="width: 85px;">计åå®å·¥æ</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="date" class="layui-input" lay-verify="HPlanEndDate" name="HPlanEndDate" id="HPlanEndDate" style="padding-left: 80px;"> |
| | | </div> |
| | |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 10px;"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">ä¿å</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">éåº</button> |
| | | <!--<button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnSave" id="btnSave">éåº</button>--> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" value="" style="background-color:#efefef4d;"> |
| | | <input type="hidden" class="layui-input" name="HProcExchInterID" lay-verify="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | <input type="hidden" class="layui-input" name="HProcExchEntryID" lay-verify="HProcExchEntryID" id="HProcExchEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">æ¶é´åä½</label> |
| | | <div class="layui-input-block" style="margin-left: 120px;width: 184px;"> |
| | | <select name="HMainTimeUnit" lay-verify="HMainTimeUnit" id="HMainTimeUnit"> |
| | | <option value="å°æ¶">å°æ¶</option> |
| | | <option value="天">天</option> |
| | | <option value="天">天</option> |
| | | </select> |
| | | </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="HMaterTexture" lay-verify="HMaterTexture" id="HMaterTexture" value="" onmouseover="this.title=this.value"> |
| | | </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" lay-verify="HPicNumVer" name="HPicNumVer" id="HPicNumVer"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HPicNumAssemble" id="HPicNumAssemble" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;padding: 9px 18px;">å·¥èºè·¯çº¿å¤§ç±»</label> |
| | | <div class="layui-input-block" style="margin-left: 77px;"> |
| | | <input type="hidden" class="layui-input" lay-verify="HRoutingGroupID" name="HRoutingGroupID" id="HRoutingGroupID" value="0" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HRoutingGroupIDName" name="HRoutingGroupIDName" id="HRoutingGroupIDName" value="" style="background-color:#efefef4d;width: 60%;display: inline-block;" readonly> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnRoutingGroup" id="btnRoutingGroup" 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: 115px;"> |
| | | <input type="text" class="layui-input" name="HProductNum" lay-verify="HProductNum" id="HProductNum" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <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="HVerNum" lay-verify="HVerNum" id="HVerNum" value="" onmouseover="this.title=this.value"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 185px;"> |
| | | <input type="checkbox" name="checkboxIsProNo" id="checkboxIsProNo" lay-skin="primary" lay-filter="checkboxIsProNo" title="转工åº"> |
| | | <input type="hidden" value="1" name="IsProNo" id="IsProNo" lay-verify="IsProNo"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <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> |
| | | <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="btn_Refresh"><i class="layui-icon layui-icon-form"></i>å·æ°æµæ°´å·</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | | </div> |
| | | </div> |
| | |
| | | $("#hmakedate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | |
| | | //夿æ¯å¦æ°å¢ |
| | | if (linterid == null || linterid == 0) { |
| | | //$("#HIDDEN").hide(); |
| | | OperationType = 1; |
| | | if (OperationType == 1) { |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | |
| | | }); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | } else if (OperationType == 2) { |
| | | //ç¦ç¨ç»ç»é项 |
| | | //$("#HOrgID").attr("disabled", true); |
| | | RoadBillMain(linterid); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillType": '3717' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | $("#HBillNo_bak").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | |
| | |
| | | //æ°å¢ |
| | | form.on('submit(set_AddNew)', function () { |
| | | layer.confirm('æ°å¢å页颿°æ®å°æ¶å¤±ï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | location.replace('Cj_CollectionOfSingleProductDefects.html?OperationType=1&linterid=0'); |
| | | location.replace('Cj_CollectionOfSingleProductDefects.html?OperationType=1&linterid=' + linterid); |
| | | }); |
| | | }); |
| | | |
| | |
| | | $("#HICMOEntryID").val(data1.data[0]["HICMOEntryID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HProcExchEntryID").val(data1.data[0]["HProcExchEntryID"]); |
| | | $("#HMaterNumber").val(data1.data[0]["ç©æç¼ç "]); |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | |
| | | var sMainSub = sMainStr + ';' + HResult + ";" + sessionStorage["HUserName"] ; |
| | | var sMainSub = sMainStr + ';' + HResult + ";" + sessionStorage["HUserName"] +";"+ linterid ; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | |
| | | <div class="layui-card-body" style="padding: 1px;"> |
| | | <form class="layui-form" action="" lay-filter="formData" style="background-color:white;"> |
| | | <div style="padding: 2px; "> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnAdd" id="btnSave">æå°</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnAdd" id="btnSave">æ°å¢</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnCancel" id="btnEdit">éåº</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnPrint" id="btnPrint">æå°</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnAdd" id="btnAdd">æ°å¢</button> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="btnCancel" id="btnCancel">éåº</button> |
| | | </div> |
| | | <div class="layui-tab" lay-filter="tab-POStockInBill" style="width: 49.5%; float: left; background-color: white;height:430px;"> |
| | | <ul class="layui-tab-title" lay-filter="tab-all"> |
| | |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">æ¡å½¢ç </label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="text" class="layui-input" lay-verify="HBarCode" name="HBarCode" id="HBarCode"> |
| | | <input type="text" class="layui-input" lay-verify="HBarCodeSN" name="HBarCodeSN" id="HBarCodeSN"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <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" lay-verify="HMaterSN" name="HMaterSN" id="HMaterSN" style="background-color:#efefef4d;" readonly> |
| | | <input type="text" class="layui-input" lay-verify="HBarCode" name="HBarCode" id="HBarCode" style="background-color:#efefef4d;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <input type="hidden" name="HCreator" id="HCreator" lay-verify="HCreator"> |
| | | <input type="hidden" name="HCreateDate" id="HCreateDate" lay-verify="HCreateDate"> |
| | | |
| | | <input type="hidden" name="HProcExchInterID" id="HProcExchInterID" lay-verify="HProcExchInterID" value="0"> |
| | | <input type="hidden" name="HProcExchEntryID" id="HProcExchEntryID" lay-verify="HProcExchEntryID" value="0"> |
| | | <input type="hidden" name="HSourceInterID" id="HSourceInterID" lay-verify="HSourceInterID" value="0"> |
| | | <input type="hidden" name="HSourceEntryID" id="HSourceEntryID" lay-verify="HSourceEntryID" value="0"> |
| | | <input type="hidden" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" value=""> |
| | |
| | | , laydate = layui.laydate |
| | | , tree = layui.tree |
| | | var titleData = ["HInterID", "HEntryID", "HBadReasonID", "HSourceInterID","HSourceEntryID"];//å表ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | var hpj =0; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | $('#HBarCodeSN').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCodeSN').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | |
| | | get_checkSearchChangeMater(); |
| | | }); |
| | | |
| | | //å表è¡å
äºä»¶ |
| | | table.on('tool(mainTable)', function (obj) { |
| | | set_GridDelete(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | // NGä¿å |
| | | form.on('submit(NGSave)', function (data) { |
| | | get_Save(data,"NG"); |
| | | }); |
| | | |
| | | // OKä¿å |
| | | form.on('submit(OKSave)', function (data) { |
| | | get_Save(data,"OK"); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | $('#btnAdd').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //åå§ååæ® |
| | | createBillNo(); |
| | | var mychart1 = echarts.init(document.getElementById('mychart1')); |
| | | |
| | | get_Display(); |
| | | get_Histogram1(mychart1);//æ±ç¶å¾1 |
| | | get_UsreList(); |
| | | get_Display(); |
| | | } |
| | | |
| | | // çæåæ®å· |
| | |
| | | |
| | | //æ¥è¯¢åè¡¨æ°æ® |
| | | function get_Display() { |
| | | var HSourceInterID = $("#HSourceInterID").val(); |
| | | var HSourceEntryID = $("#HSourceEntryID").val(); |
| | | var HBarCode = $("#HBarCode").val(); |
| | | var sWhere = ""; |
| | | if (HSourceInterID != 0 && HSourceEntryID != 0) { |
| | | sWhere = " and HSourceInterID=" + HSourceInterID + " and HSourceEntryID=" + HSourceEntryID; |
| | | } else { |
| | | sWhere = " and HSourceInterID=0 and HSourceEntryID=0 "; |
| | | } |
| | | sWhere = " and SNç ='" + HBarCode + "'"; |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessItemRepair", |
| | |
| | | } |
| | | } |
| | | col.push({ fixed: 'right', title: 'æä½', toolbar: '#barDemo' }); |
| | | |
| | | if (data1.data.length != 0) { |
| | | $("#HBadReasonID").val(data1.data[0]["HBadReasonID"]); |
| | | $("#HBadReasonName").val(data1.data[0]["ä¸è¯åå "]); |
| | | //$("#HBadTypeID").val(); |
| | | //$("#HBadTypeName").val(); |
| | | //$("#HBadResultID").val(); |
| | | //$("#HBadResultName").val(); |
| | | } |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | |
| | | $("#HDeptID").val(data1.data[0]["HDeptID"]); |
| | | $("#HDeptName").val(data1.data[0]["车é´"]); |
| | | $("#HProName").val(data1.data[0]["å·¥åº"]); |
| | | $("#HProcess").val(data1.data[0]["HProcID"]); |
| | | $("#HSourceID").val(data1.data[0]["HSourceID"]); |
| | | $("#HSourceName").val(data1.data[0]["çäº§èµæº"]); |
| | | $("#HEmpID").val(data1.data[0]["HEmpID"]); |
| | | $("#HEmpName").val(data1.data[0]["è´¨æ£å"]); |
| | | $("#HCreator").val(data1.data[0]["è´¨æ£å"]); |
| | | //$("#HGroupID").val(data1.data[0]["HGroupID"]); |
| | | //$("#HGroupName").val(data1.data[0]["ç产çç»"]); |
| | | layer.close(ajaxLoad); |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeList", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HFBardCodeList", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | |
| | | $("#HICMOEntryID").val(data1.data[0]["HICMOEntryID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HProcExchEntryID").val(data1.data[0]["HProcExchEntryID"]); |
| | | $("#HUnitID").val(data1.data[0]["HUnitID"]); |
| | | $("#HUnitName").val(data1.data[0]["åä½"]); |
| | | $("#HOrgName").val(data1.data[0]["ç»ç»"]); |
| | |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | | $("#HMaterModel").val(data1.data[0]["è§æ ¼åå·"]); |
| | | $("#HMaterSN").val(data1.data[0]["æ¡ç "]); |
| | | $("#HBarCode").val(data1.data[0]["æ¡ç "]); |
| | | $("#HBadReasonID").val(data1.data[0]["HBadReasonID"]); |
| | | $("#HBadReasonName").val(data1.data[0]["ä¸è¯åå "]); |
| | | if (data1.data.length != 0) { |
| | | |
| | | //$("#HBadTypeID").val(); |
| | | //$("#HBadTypeName").val(); |
| | | //$("#HBadResultID").val(); |
| | | //$("#HBadResultName").val(); |
| | | } |
| | | |
| | | //æ¥è¯¢è¿ä¿®è®°å½ |
| | | get_Display(); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCode").val(""); |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //å 餿¹æ³ |
| | | function set_GridDelete(obj) { |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | var HInterID = obj.data.HInterID; |
| | | var HEntryID = obj.data.HEntryID; |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessItemRepairDel", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": HInterID, "HEntryID": HEntryID, "user": sessionStorage["HUserName"],"HBill":"ZB" }, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg("å 餿åï¼"); |
| | | layer.close(ajaxLoad); |
| | | //æ¥è¯¢è¿ä¿®è®°å½ |
| | | get_Display(); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(ajaxLoad); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(ajaxLoad); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //ä¸è¯åå éæ©é¡µé¢ |
| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | //æ¢é
ä»¶é¡µé¢ |
| | | function get_checkSearchChangeMater() { |
| | | var HMaterSN = $("#HMaterSN").val(); |
| | | if (HMaterSN == "") { |
| | | var HBarCode = $("#HBarCode").val(); |
| | | if (HBarCode == "") { |
| | | return layer.msg("请å
æ«æ¡ç !"); |
| | | } |
| | | |
| | | if (hpj == 0) { |
| | | return layer.msg("请å
ä¿åè¿ä¿®è®°å½!"); |
| | | } |
| | | |
| | | var HInterID = $("#HInterID").val(); |
| | | var HBillNo = $("#HBillNo").val(); |
| | | //var HEmpName = $("#HEmpName").val(); |
| | | //var HProdMac = $("#HProdMac").val(); |
| | | //var HSourceInterID = $("#HSourceInterID").val(); |
| | | //var HSourceEntryID = $("#HSourceEntryID").val(); |
| | | //var HSourceBillNo = $("#HSourceBillNo").val(); |
| | | //var HSourceBillType = $("#HSourceBillType").val(); |
| | | //var HBarCode = $("#HBarCode").val(); |
| | | var HEmpName = $("#HEmpName").val(); |
| | | var HProdMac = $("#HProdMac").val(); |
| | | var HSourceInterID = $("#HSourceInterID").val(); |
| | | var HSourceEntryID = $("#HSourceEntryID").val(); |
| | | var HSourceBillNo = $("#HSourceBillNo").val(); |
| | | var HSourceBillType = $("#HSourceBillType").val(); |
| | | var HProcExchBillNo = $("#HProcExchBillNo").val(); |
| | | var HProcess = $("#HProcess").val(); |
| | | |
| | | var dataParams = { |
| | | 'OperationType': 1 |
| | | , 'HMaterSN': HMaterSN |
| | | , 'HInterID': HInterID |
| | | , 'HBillNo': HBillNo |
| | | //, 'HEmpName': HEmpName |
| | | //, 'HProdMac': HProdMac |
| | | //, 'HSourceInterID': HSourceInterID |
| | | //, 'HSourceEntryID': HSourceEntryID |
| | | //, 'HSourceBillNo': HSourceBillNo |
| | | //, 'HSourceBillType': HSourceBillType |
| | | //, 'HBarCode': HBarCode |
| | | //, 'subMaterList_Temp': $("#subMaterList_Temp").val() |
| | | , 'HMaterSN': HBarCode |
| | | , 'HEmpName': HEmpName |
| | | , 'HProdMac': HProdMac |
| | | , 'HSourceInterID': HSourceInterID |
| | | , 'HSourceEntryID': HSourceEntryID |
| | | , 'HSourceBillNo': HSourceBillNo |
| | | , 'HSourceBillType': HSourceBillType |
| | | , 'HBarCode': HBarCode |
| | | , 'HProcExchBillNo': HProcExchBillNo |
| | | , 'HProcess': HProcess |
| | | , 'subMaterList_Temp': $("#subMaterList_Temp").val() |
| | | } |
| | | var datajson = JSON.stringify(dataParams); |
| | | url = encodeURI('../../车é´ç®¡ç/ååè¿ç«/Cj_ProcessItemBGA_PJGH.html?OperationType=1&datajson=' + datajson); |
| | |
| | | }) |
| | | } |
| | | |
| | | //ä¿å |
| | | function get_Save(data, HResult) { |
| | | var sMainStr = JSON.stringify(data.field); |
| | | var sSubStr = JSON.stringify(table.cache["mainTable"]); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + HResult; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HFXAddRepairBill", |
| | | async: false, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | $('#NGSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#OKSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#btnAdd').removeClass("layui-btn-disabled").attr("disabled", false); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | hpj = 1; |
| | | get_Display(); |
| | | var mychart1 = echarts.init(document.getElementById('mychart1')); |
| | | get_Histogram1(mychart1);//æ±ç¶å¾1 |
| | | } |
| | | 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: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | }); |
| | |
| | | <input type="text" class="layui-input" name="HRemark" id="HRemark" lay-verify="HRemark" placeholder="请è¾å
¥å
容" onmouseover="this.title=this.value" style=" width: 500px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 501px;"> |
| | | <input type="hidden" name="HSourceInterID" id="HSourceInterID" lay-verify="HSourceInterID" value="0"> |
| | | <input type="hidden" name="HSourceEntryID" id="HSourceEntryID" lay-verify="HSourceEntryID" value="0"> |
| | | <input type="hidden" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" value=""> |
| | | <input type="hidden" name="HSourceBillType" id="HSourceBillType" lay-verify="HSourceBillType" value=""> |
| | | <input type="hidden" name="HRelationQty" id="HRelationQty" lay-verify="HRelationQty" value="0"> |
| | | <input type="hidden" name="HRelationMoney" id="HRelationMoney" lay-verify="HRelationMoney" value="0"> |
| | | |
| | | <input type="hidden" name="HMaterID" id="HMaterID" lay-verify="HMaterID" value="0"> |
| | | <input type="hidden" name="HMaterNumber" id="HMaterNumber" lay-verify="HMaterNumber" value=""> |
| | | <input type="hidden" name="HMaterName" id="HMaterName" lay-verify="HMaterName" value=""> |
| | | <input type="hidden" name="HUnitID" id="HUnitID" lay-verify="HUnitID" value="0"> |
| | | <input type="hidden" name="HQty" id="HQty" lay-verify="HQty" value="0"> |
| | | <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0"> |
| | | <input type="hidden" name="HBatchNo" id="HBatchNo" lay-verify="HBatchNo"> |
| | | <input type="hidden" name="HProcExchBillNo" id="HProcExchBillNo" lay-verify="HProcExchBillNo"> |
| | | <input type="hidden" name="HProcess" id="HProcess" lay-verify="HProcess"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | //å®ä¹å
¨å±åé |
| | | |
| | | var HModName = "Cj_CollectionOfSingleProductDefects"; |
| | | var option2 = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | $("#HInterID").val(datajson.HInterID); |
| | | $("#HBillNo").val(datajson.HBillNo); |
| | | $("#HBillNo_bak").val(datajson.HBillNo); |
| | | $("#HProcExchBillNo").val(datajson.HProcExchBillNo); |
| | | $("#HProcess").val(datajson.HProcess); |
| | | //åå§åçé¢ |
| | | set_ClearBill(); |
| | | } |
| | |
| | | //#region 触åäºä»¶ï¼å
æ¬form.on(){}æ ¼å¼çææç¹å»äºä»¶ãéæ©äºä»¶ç |
| | | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCodeSN').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCodeSN').val(); |
| | | $('#HBarCode').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCode').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | get_Accessory(HBarCode); |
| | | } |
| | | }); |
| | | |
| | | //éæ©ä¸è¯åå |
| | | form.on('submit(btnHBadReason)', function () { |
| | | btnHBadReason(); |
| | | //é
ä»¶æ´æ¢è®°å½å表è¡å
äºä»¶ |
| | | table.on('tool(mainTable1)', function (obj) { |
| | | set_GridDelete1(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | //ç©ææ¸
åå表è¡å
äºä»¶ |
| | | table.on('tool(mainTable2)', function (obj) { |
| | | set_GridDelete2(obj); //è¡å
å é¤ |
| | | }); |
| | | |
| | | //éæ©è´¨æ£å |
| | |
| | | }); |
| | | }); |
| | | |
| | | //ä¿åæäº¤ |
| | | form.on('submit(btnSave_BL)', function (data) {//æäº¤ |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data, "ä¸è¯"); |
| | | } |
| | | }); |
| | | |
| | | form.on('submit(btnSave_BF)', function (data) {//æäº¤ |
| | | if (AllowLoadData(data)) { |
| | | set_AddNew(data, "æ¥åº"); |
| | | } |
| | | }); |
| | | |
| | | //éåº |
| | | form.on('submit(btnEdit)', function (data) { |
| | |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //å
æ 跳转å°é
ä»¶ææ¬æ¡ä¸ |
| | | $("#HBarCode").focus(); |
| | | //æ¥è¯¢ç»å®ç¨æ· |
| | | get_Display(); |
| | | //æ¥è¯¢æ¡ç ç»å®çè¿ä¿®è®°å½ |
| | | get_RepairRecord(); |
| | | //æ¥è¯¢ç©ææ¸
åæ°æ® |
| | | get_BomList($("#HProcExchBillNo").val()); |
| | | } |
| | | |
| | | //æ¥è¯¢ |
| | |
| | | }); |
| | | } |
| | | |
| | | //æ¡ç å车æ¥è¯¢ |
| | | function txtHBarCode_KeyDown(HBarCode) { |
| | | |
| | | //æ¡ç å车æ¥è¯¢æ´æ¢é
ä»¶ |
| | | var KNum = 0; |
| | | function get_Accessory(HBarCode) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeList", |
| | | async: true, |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeAccessoryList", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | $("#HICMOBillNo").val(data1.data[0]["ç产订å"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HMaterNumber").val(data1.data[0]["ç©æç¼ç "]); |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | | $("#HModel").val(data1.data[0]["è§æ ¼åå·"]); |
| | | $("#HBarCode").val(data1.data[0]["æ¡ç "]); |
| | | |
| | | for (var i = 0; i < option2.data.length; i++) { |
| | | if (data1.data[0]["HMaterNumber"] == option2.data[i]["é
件代ç "] && option2.data[i]["HBatchNo"] == data1.data[0]["HBatchNo"] && option2.data[i]["HBatchNo"] != "") { |
| | | return layer.msg("å½åæ¹æ¬¡å·²æ«å
¥,请ä¸è¦é夿«å
¥!"); |
| | | } |
| | | if (data1.data[0]["HMaterNumber"] == option2.data[i]["é
件代ç "] && option2.data[i]["HBatchNo"] != data1.data[0]["HBatchNo"] && option2.data[i]["HBatchNo"] != "") { |
| | | layer.confirm('æ¯å¦è¦æ¿æ¢å½åæ¹æ¬¡', function (index) { |
| | | layer.close(index); |
| | | $('#HProcName').val(HBarCode); |
| | | option2.data[i]["HBatchNo"] = data1.data[0]["HBatchNo"]; |
| | | option2.data[i]["HBarCode"] = HBarCode; |
| | | table.render(option2); |
| | | //ä¿åé
ä»¶æ´æ¹è®°å½ |
| | | set_AddNew(); |
| | | }); |
| | | break; |
| | | } |
| | | KNum += 1; |
| | | } |
| | | |
| | | $('#HBarCode').val(""); |
| | | |
| | | |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ä¸è¯åå éæ©é¡µé¢ |
| | | function btnHBadReason() { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['90%', '90%']//å¤§å° |
| | | , title: 'ä¸è¯åå å表'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../åºç¡èµæ/ç产åºç¡èµæ/Gy_BadReason.html', 'yes'] |
| | | , btn: ['ç¡®å®', 'åæ¶'] |
| | | , btn1: function (index, layero) {//æé®ãæé®ä¸ãçåè° |
| | | var iframeWindow = window['layui-layer-iframe' + index] //è·åå¼¹æ¡é¡µé¢ |
| | | var checkStatus = iframeWindow.layui.table.checkStatus('mainTable');//è·åtableçelem:"#test" |
| | | if (checkStatus.data.length === 0) { |
| | | return layer.msg('è¯·éæ©æ°æ®'); |
| | | } |
| | | //è·åæ°æ® |
| | | $("#HBadReasonID").val(checkStatus.data[0].HItemID); |
| | | $("#HBadReasonName").val(checkStatus.data[0].ä¸è¯åå åç§°); |
| | | |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //è´¨æ£åéæ©é¡µé¢ |
| | |
| | | |
| | | //æ¥è¯¢æ¡ç ç»å®çè¿ä¿®è®°å½ |
| | | function get_RepairRecord() { |
| | | var sWhere = " and HBarCodeSN='" + $("#HMaterSN").val() + "' and HBarCode is not null"; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/Sc_SourceLineRepairBillSub_MaterList", |
| | | async: false, |
| | | data: { "sWhere": " and HSourceBillNo='" + $("#HMaterSN").val() + "'", "user": sessionStorage["HUserName"] }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | |
| | | var option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | elem: '#mainTable1' |
| | | //, toolbar: '#toolbarDemo' |
| | | , page: false |
| | | , totalRow: true |
| | | , data: data1.data |
| | |
| | | }); |
| | | } |
| | | |
| | | //é
ä»¶è®°å½å 餿¹æ³ |
| | | function set_GridDelete1(obj) { |
| | | if (obj.event === 'del') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | var HInterID = obj.data.HInterID; |
| | | var HEntryID = obj.data.HEntryID; |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessItemRepairDel", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": HInterID, "HEntryID": HEntryID, "user": sessionStorage["HUserName"], "HBill": "PJ"}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg("å 餿åï¼"); |
| | | layer.close(ajaxLoad); |
| | | //æ¥è¯¢æ¡ç ç»å®çè¿ä¿®è®°å½ |
| | | get_RepairRecord(); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(ajaxLoad); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(ajaxLoad); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //ç©ææ¸
åå 餿¹æ³ |
| | | function set_GridDelete2(obj) { |
| | | if (obj.event === 'del2') { |
| | | layer.confirm('ççå é¤è¡åï¼', function (index) { |
| | | var HInterID = obj.data.BomHInterID; |
| | | var HEntryID = obj.data.BomHEntryID; |
| | | |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Cj_SingleStation/DelBomTempList", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HInterID": HInterID, "HEntryID": HEntryID, "user": sessionStorage["HUserName"]}, |
| | | success: function (result) { |
| | | if (result.count == 1) { |
| | | layer.msg("å 餿åï¼"); |
| | | layer.close(ajaxLoad); |
| | | //æ¥è¯¢æ¸
å |
| | | get_BomList($("#HProcExchBillNo").val()); |
| | | } else { |
| | | layer.alert(result.code + result.Message, { icon: 5 }); |
| | | layer.close(ajaxLoad); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | layer.close(ajaxLoad); |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | } |
| | | |
| | | //æµè½¬å¡æ¥è¯¢å
³é®ä»¶æ¸
å |
| | | function get_BomList(HBarCode) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeBomList", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | |
| | | $("#HMaterNumber").val(data1.data[0]["HMainMaterNumber"]); |
| | | $("#HMaterID").val(data1.data[0]["HMainMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["HMainMaterName"]); |
| | | //$("#HProcExchInterID").val(data1.data[0]["HProcExchInterID"]); |
| | | //$("#HProcExchEntryID").val(data1.data[0]["HProcExchEntryID"]); |
| | | //$("#HProcExchBillNo").val(data1.data[0]["HProcExchBillNo"]); |
| | | //$("#HICMOBillNo").val(data1.data[0]["HICMOBillNo"]); |
| | | //$("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | //$("#HICMOEntryID").val(data1.data[0]["HICMOEntryID"]); |
| | | //$("#HProcNo").val(data1.data[0]["HProcNo"]); |
| | | //$("#HPieceQty").val(data1.data[0]["HPieceQty"]); |
| | | //$("#HICMOQty").val(data1.data[0]["HICMOQty"]); |
| | | |
| | | option2 = { |
| | | elem: '#mainTable2' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , data: data1.data |
| | | , height: 185 |
| | | , cols: [[ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: 'é
件代ç ', title: 'é
件代ç ' } |
| | | , { field: 'é
ä»¶åç§°', title: 'é
ä»¶åç§°' } |
| | | , { field: 'é
ä»¶è§æ ¼', title: 'é
ä»¶è§æ ¼' } |
| | | , { field: 'é
ä»¶æ°é', title: 'é
ä»¶æ°é' } |
| | | , { field: 'HBatchNo', title: 'å½åæ¹æ¬¡' } |
| | | , { field: 'BomHInterID', title: 'BomHInterID', hide: true } |
| | | , { field: 'BomHEntryID', title: 'BomHEntryID', hide: true } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', hide: true } |
| | | , { field: 'HProcExchInterID', title: 'HProcExchInterID', hide: true } |
| | | , { field: 'HProcExchEntryID', title: 'HProcExchEntryID', hide: true } |
| | | , { field: 'HProcExchBillNo', title: 'HProcExchBillNo', hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'HBarCode', title: 'HBarCode', hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo2' } |
| | | ]] |
| | | } |
| | | table.render(option2) |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //è·ååæ° |
| | | function getUrlVars() { |
| | |
| | | } |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data, HResult) { |
| | | function set_AddNew() { |
| | | var data1 = { "field": { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HProcExchBillNo": $("#HProcExchBillNo").val(), "HProcExchInterID": $("#HProcExchInterID").val(), "HProcExchEntryID": $("#HProcExchEntryID").val(), "HProcess": $("#HProcess").val() } }; |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | |
| | | var sMainSub = sMainStr + ';' + HResult + ";" + sessionStorage["HUserName"]; |
| | | var HResult = "é
ä»¶"; |
| | | var sMainStr = JSON.stringify(data1.field); |
| | | var sSubStr = JSON.stringify(table.cache["mainTable2"][KNum]); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] + ";" + HResult; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessBLSave", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HFXAddRepairBill", |
| | | async: false, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | //æ¥è¯¢æ´æ¢è®°å½ |
| | | get_RepairRecord(); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | <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="HBarCode" lay-verify="HBarCode" placeholder="请é®å
¥åå车" id="HBarCode" style="width: 500px;"> |
| | | <input type="text" class="layui-input" name="HBarCodeSN" lay-verify="HBarCodeSN" placeholder="请é®å
¥åå车" id="HBarCodeSN" style="width: 500px;"> |
| | | </div> |
| | | </div> |
| | | </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" lay-verify="HMaterNumber" name="HMaterNumber" id="HMaterNumber" style="background-color:#efefef4d;" readonly> |
| | | <input type="hidden" class="layui-input" lay-verify="HMaterID" name="HMaterID" id="HMaterID"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HProcExchBillNo" lay-verify="HProcExchBillNo" id="HProcExchBillNo" value="" style="background-color:#efefef4d;"> |
| | | <input type="hidden" class="layui-input" name="HProcExchInterID" lay-verify="HProcExchInterID" id="HProcExchInterID" value="0"> |
| | | <input type="hidden" class="layui-input" name="HProcExchEntryID" lay-verify="HProcExchEntryID" id="HProcExchEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | |
| | | <div class="layui-input-block" style="margin-left: 120px;"> |
| | | <input type="text" class="layui-input" name="HICMOBillNo" lay-verify="HICMOBillNo" id="HICMOBillNo" value="" style="background-color:#efefef4d;"> |
| | | <input type="hidden" class="layui-input" name="HICMOInterID" lay-verify="HICMOInterID" id="HICMOInterID" value="0"> |
| | | <input type="hidden" class="layui-input" name="HICMOEntryID" lay-verify="HICMOEntryID" id="HICMOEntryID" value="0"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="layui-inline"> |
| | | <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="HBarCode" lay-verify="HBarCode" id="HBarCode" value="" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | <input type="text" class="layui-input" name="HBarCode_P" lay-verify="HBarCode_P" id="HBarCode_P" value="" style="background-color:#efefef4d;display: inline-block;" readonly> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">ä¸è¯è®°å½</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-content" style="background-color: white;"> |
| | | <div class="layui-row" style="margin-bottom: 5px;"> |
| | | <div class="layui-inline"> |
| | | <button class="layui-btn layui-btn-normal" style="margin-left: 0px" type="button" lay-submit="" lay-filter="BadReport" id="BadReport">ä¸è¯æ±æ¥</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--ä¸è¯è®°å½--> |
| | | <table class="layui-hide" id="mainTable2" lay-filter="mainTable2"></table> |
| | | <table class="layui-hide" id="mainTable3" lay-filter="mainTable3"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <ul class="layui-tab-title"> |
| | | <li class="layui-this">åæ ¼è®°å½</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-content" style="background-color: white;"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--åæ ¼è®°å½--> |
| | | <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> |
| | |
| | | </div> |
| | | </script> |
| | | <input type="hidden" id="HProdOrgID" name="HProdOrgID" value="0" /> |
| | | <input type="hidden" name="HPieceQty" id="HPieceQty" value="0"> |
| | | <input type="hidden" name="HICMOQty" id="HICMOQty" value="0"> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script type="text/html" id="barDemo2"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del2">å é¤</a> |
| | | </script> |
| | | <script type="text/html" id="barDem03"> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del3">å é¤</a> |
| | | </script> |
| | | <script> |
| | | |
| | | layui.config({ |
| | |
| | | |
| | | //å®ä¹å
¨å±åé |
| | | |
| | | var HModName = "Cj_CollectionOfSingleProductDefects"; |
| | | var HModName = "Cj_ProcessItemStationPlatform"; |
| | | var option = []; |
| | | var option2 = []; |
| | | var option3 = []; |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢å³å è½½ |
| | |
| | | //æ¡å½¢ç åè½¦æ¹æ³ |
| | | $('#HBarCodeSN').on('keydown', function (event) { |
| | | var HBarCode = $('#HBarCodeSN').val(); |
| | | var HBardCodeProcExchBillNo = $('#HBardCodeProcExchBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBardCodeProcExchBillNo) { |
| | | layer.msg("请å
æ«æµè½¬å¡ï¼") |
| | | return; |
| | | } else { |
| | | if (!HBarCode) { |
| | | layer.msg("æ¡å½¢ç ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | } |
| | | txtHBarCode_KeyDown(HBarCode); |
| | | } |
| | |
| | | return; |
| | | } |
| | | get_BomList(HBarCode); |
| | | if (option.data != 0) { |
| | | //ä¿åå°ä¸´æ¶è¡¨ |
| | | get_AddBomTempList(); |
| | | } |
| | | //æ¥è¯¢ä¸è¯è®°å½ |
| | | get_BadRecords(HBarCode); |
| | | //æ¥è¯¢åæ ¼è®°å½ |
| | | get_HGRecords(HBarCode); |
| | | } |
| | | }); |
| | | |
| | | //é
ä»¶åè½¦æ¹æ³ |
| | | $('#HBardCodeMater').on('keydown', function (event) { |
| | | var HBarCode = $('#HBardCodeMater').val(); |
| | | var HBardCodeProcExchBillNo = $('#HBardCodeProcExchBillNo').val(); |
| | | if (event.keyCode == 13) { |
| | | if (!HBardCodeProcExchBillNo) { |
| | | layer.msg("请å
æ«æµè½¬å¡ï¼") |
| | | return; |
| | | } else { |
| | | if (!HBarCode) { |
| | | layer.msg("é
ä»¶ä¸è½ä¸ºç©ºï¼") |
| | | return; |
| | | } |
| | | } |
| | | get_Accessory(HBarCode); |
| | | } |
| | | }); |
| | | |
| | | //ä¸è¯æ±æ¥ |
| | | form.on('submit(BadReport)', function () { |
| | | BadReport(); |
| | | }); |
| | | |
| | | //éæ©è´¨æ£å |
| | | form.on('submit(btnHEmp)', function () { |
| | |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //è¿å
¥é¡µé¢é»è®¤å
æ 卿µè½¬å¡ä¸ |
| | | $("#HBardCodeProcExchBillNo").focus(); |
| | | createBillNo(); |
| | | get_Display(); |
| | | get_CriticalPartsList();//å
³é®ä»¶æ¸
å |
| | | get_CriticalPartsList();//å
³é®ä»¶æ¸
å ä¸è¯è®°å½ åæ ¼è®°å½ |
| | | |
| | | } |
| | | |
| | | // çæåæ®å· |
| | | function createBillNo() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/GetMAXNum", |
| | | async: false, |
| | | type: "GET", |
| | | data: { "HBillType": '3791' }, |
| | | success: function (d) { |
| | | $("#HInterID").val(d.data[0].HInterID); |
| | | $("#HBillNo").val(d.data[0].HBillNo); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //æ¥è¯¢ |
| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | //å
³é®ä»¶æ¸
å |
| | | function get_CriticalPartsList() { |
| | | var option = { |
| | | option= { |
| | | elem: '#mainTable2' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | |
| | | , cols: [[ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: 'é
件代ç ', title: 'é
件代ç ' } |
| | | , { field: 'é
ä»¶åç§°', title: 'é
ä»¶åç§°' } |
| | | , { field: 'é
ä»¶è§æ ¼', title: 'é
ä»¶è§æ ¼' } |
| | | , { field: 'é
ä»¶æ°é', title: 'é
ä»¶æ°é' } |
| | | , { field: 'å½åæ¹æ¬¡', title: 'å½åæ¹æ¬¡' } |
| | | , { field: 'HBillNo_bak', title: 'HBillNo_bak', hide: true } |
| | | , { field: 'HBatchNo', title: 'å½åæ¹æ¬¡' } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', hide: true } |
| | | , { field: 'HProcExchInterID', title: 'HProcExchInterID', hide: true } |
| | | , { field: 'HProcExchEntryID', title: 'HProcExchEntryID', hide: true } |
| | | , { field: 'HProcExchBillNo', title: 'HProcExchBillNo', hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'HBarCode', title: 'HBarCode', hide: true } |
| | | ]] |
| | | } |
| | | table.render(option); |
| | | |
| | | option2 = { |
| | | elem: '#mainTable3' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , data: [] |
| | | , height: 325 |
| | | , cols: [[ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: 'HName', title: '产ååç§°' } |
| | | , { field: 'HNumber', title: '产å代ç ' } |
| | | , { field: 'HBarCode', title: 'SNç ' } |
| | | , { field: 'ä¸è¯åå ', title: 'ä¸è¯åå ' } |
| | | , { field: 'HBatchNo', title: 'ä¸è¯ç±»å' } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDemo2' } |
| | | ]] |
| | | } |
| | | |
| | | option3 = { |
| | | elem: '#mainTable' |
| | | //, toolbar: '#toolbarDemo' |
| | | , async: true |
| | | , page: false |
| | | //, totalRow: true |
| | | , cellMinWidth: 120 |
| | | , data: [] |
| | | , height: 370 |
| | | , cols: [[ |
| | | { type: 'numbers', title: 'åºå·' } |
| | | , { field: 'hmainid', title: 'hmainid', hide: true } |
| | | , { field: 'hsubid', title: 'hsubid', hide: true } |
| | | , { field: 'æ¥æ', title: 'æ¥æ' } |
| | | , { field: '产ååç§°', title: '产ååç§°' } |
| | | , { field: 'äº§åæ¡ç ', title: 'SNç ' } |
| | | , { field: 'é
ä»¶æ¡ç ', title: 'é
ä»¶SNç ' } |
| | | , { field: 'ä»»å¡åå·', title: '订åå·' } |
| | | , { field: 'HICMOInterID', title: 'HICMOInterID', hide: true } |
| | | , { field: 'HICMOEntryID', title: 'HICMOEntryID', hide: true } |
| | | , { field: 'HICMOBillNo', title: 'HICMOBillNo', hide: true } |
| | | , { field: 'HProcExchInterID', title: 'HProcExchInterID', hide: true } |
| | | , { field: 'HProcExchEntryID', title: 'HProcExchEntryID', hide: true } |
| | | , { field: 'HProcExchBillNo', title: 'HProcExchBillNo', hide: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', hide: true } |
| | | , { field: 'HBarCode', title: 'HBarCode', hide: true } |
| | | , { fixed: 'right', title: 'æä½', toolbar: '#barDem03' } |
| | | ]] |
| | | } |
| | | |
| | | table.render(option); |
| | | table.render(option2); |
| | | table.render(option3); |
| | | |
| | | } |
| | | |
| | | //æ¥è¯¢ä¸è¯è®°å½ |
| | | function get_BadRecords(HBarCode) { |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/BadRecordsList', |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option2.data = data1.data; |
| | | table.render(option2); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | |
| | | }); |
| | | } |
| | | |
| | | //æ¥è¯¢åæ ¼è®°å½ |
| | | function get_HGRecords(HBarCode) { |
| | | var ajaxLoad = layer.load(); |
| | | //è¿å
¥é¡µé¢æ¾ç¤ºçç¼åå表 |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Cj_SingleStation/HGRecordsList', |
| | | type: "GET", |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | option3.data = data1.data; |
| | | table.render(option3); |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | |
| | | }); |
| | | } |
| | | |
| | | //æ¡ç å车æ¥è¯¢ |
| | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeList", |
| | | async: true, |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeAccessoryList", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"]}, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | $("#HICMOBillNo").val(data1.data[0]["ç产订å"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HMaterNumber").val(data1.data[0]["ç©æç¼ç "]); |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | | $("#HModel").val(data1.data[0]["è§æ ¼åå·"]); |
| | | $("#HBarCode").val(data1.data[0]["æ¡ç "]); |
| | | var HProcExchBillNo = $("#HProcExchBillNo").val(); |
| | | //if (data1.data[0]["HSourceBillNo"] != HProcExchBillNo) { |
| | | // return layer.msg("æ«ç é误,è¯·éæ°æ«!"); |
| | | //} else { |
| | | // $("#HBarCode_P").val(HBarCode); |
| | | // layer.msg("æ«ç æå!"); |
| | | //} |
| | | |
| | | $("#HBarCode_P").val(HBarCode); |
| | | //ä¿åæ°æ® |
| | | set_AddAssemblyBill(); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeBomList", |
| | | async: true, |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | $("#HICMOBillNo").val(data1.data[0]["ç产订å"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["å·¥åºæµè½¬å¡"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HSourceInterID"]); |
| | | $("#HMaterNumber").val(data1.data[0]["ç©æç¼ç "]); |
| | | $("#HMaterID").val(data1.data[0]["HMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["ç©æåç§°"]); |
| | | $("#HModel").val(data1.data[0]["è§æ ¼åå·"]); |
| | | $("#HBarCode").val(data1.data[0]["æ¡ç "]); |
| | | |
| | | $("#HBardCodeProcExchBillNo").attr("readonly", "readonly");//æµè½¬å¡åªè¯» |
| | | $("#HBardCodeProcExchBillNo").css("background-color", "#efefef4d");//æµè½¬å¡ç°è² |
| | | //å
æ 跳转å°é
ä»¶ææ¬æ¡ä¸ |
| | | $("#HBardCodeMater").focus(); |
| | | |
| | | $("#HMaterNumber").val(data1.data[0]["HMainMaterNumber"]); |
| | | $("#HMaterID").val(data1.data[0]["HMainMaterID"]); |
| | | $("#HMaterName").val(data1.data[0]["HMainMaterName"]); |
| | | $("#HMaterModel").val(data1.data[0]["HMainModel"]); |
| | | $("#HProcExchInterID").val(data1.data[0]["HProcExchInterID"]); |
| | | $("#HProcExchEntryID").val(data1.data[0]["HProcExchEntryID"]); |
| | | $("#HProcExchBillNo").val(data1.data[0]["HProcExchBillNo"]); |
| | | $("#HICMOBillNo").val(data1.data[0]["HICMOBillNo"]); |
| | | $("#HICMOInterID").val(data1.data[0]["HICMOInterID"]); |
| | | $("#HICMOEntryID").val(data1.data[0]["HICMOEntryID"]); |
| | | $("#HProcNo").val(data1.data[0]["HProcNo"]); |
| | | $("#HPieceQty").val(data1.data[0]["HPieceQty"]); |
| | | $("#HICMOQty").val(data1.data[0]["HICMOQty"]); |
| | | |
| | | option.data = data1.data; |
| | | table.render(option) |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //é
ä»¶æ¥è¯¢æ°æ® |
| | | var KNum = 0; |
| | | function get_Accessory(HBarCode) { |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/Cj_SingleStation/HBardCodeAccessoryList", |
| | | async: false, |
| | | data: { "HBarCode": HBarCode, "user": sessionStorage["HUserName"] }, |
| | | dataType: "json", |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | layer.close(index); |
| | | |
| | | for (var i = 0; i < option.data.length; i++) { |
| | | if (data1.data[0]["HMaterNumber"] == option.data[i]["é
件代ç "] && option.data[i]["HBatchNo"] == data1.data[0]["HBatchNo"] && option.data[i]["HBatchNo"] != "") { |
| | | return layer.msg("å½åæ¹æ¬¡å·²æ«å
¥,请ä¸è¦é夿«å
¥!"); |
| | | } |
| | | if (data1.data[0]["HMaterNumber"] == option.data[i]["é
件代ç "] && option.data[i]["HBatchNo"] != data1.data[0]["HBatchNo"] && option.data[i]["HBatchNo"] != "") { |
| | | layer.confirm('æ¯å¦è¦æ¿æ¢å½åæ¹æ¬¡', function (index) { |
| | | layer.close(index); |
| | | option.data[i]["HBatchNo"] = data1.data[0]["HBatchNo"]; |
| | | option.data[i]["HBarCode"] = HBarCode; |
| | | table.render(option); |
| | | }); |
| | | break; |
| | | } |
| | | if (data1.data[0]["HMaterNumber"] == option.data[i]["é
件代ç "]) { |
| | | option.data[i]["HBatchNo"] = data1.data[0]["HBatchNo"]; |
| | | option.data[i]["HBarCode"] = HBarCode; |
| | | KNum += 1; |
| | | table.render(option); |
| | | |
| | | if (KNum == option.data.length) { |
| | | layer.msg("æ¹æ¬¡å·²å
¨é¨å¹é
!"); |
| | | } |
| | | break; |
| | | } |
| | | |
| | | } |
| | | $('#HBardCodeMater').val(""); |
| | | } |
| | | else { |
| | | layer.close(index); |
| | | layer.msg(data1.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | $("#HBarCodeSN").val(""); |
| | | }, |
| | | error: function (err) { |
| | | layer.close(index); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | //ä¿åé
ä»¶å°äº§çº¿ç»è£
å临æ¶è¡¨ |
| | | function get_AddBomTempList() { |
| | | var HInterID = $("#HInterID").val(); |
| | | var HBillNo = $("#HBillNo").val(); |
| | | var sSubStr = JSON.stringify(table.cache["mainTable2"]); |
| | | var sMainSub = sSubStr + ';' + HInterID + ';' + HBillNo + ";" + sessionStorage["HUserName"] + ";" + "3791" + ";" + sessionStorage["OrganizationID"]; |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_SingleStation/AddBomTempList", |
| | | async: false, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | layer.close(index); |
| | | } |
| | | 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); |
| | |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | //æä½åéæ©é¡µé¢ |
| | | function btnHEmp2() { |
| | |
| | | }) |
| | | } |
| | | |
| | | //ä¸è¯æ±æ¥ |
| | | function BadReport() { |
| | | var HBarCode_P = $("#HBarCode_P").val(); |
| | | |
| | | //ä¿åHMaker |
| | | function set_AddNew(data, HResult) { |
| | | if (HBarCode_P != "") { |
| | | layer.open({ |
| | | type: 2//å¼¹çªç±»å |
| | | , skin: 'layui-layer-rim' //å ä¸è¾¹æ¡ |
| | | , area: ['100%', '100%']//å¤§å° |
| | | , title: 'å·¥åºä¸è¯æ±æ¥'//æ é¢ |
| | | , shift: 2//å¼¹åºå¨ç» |
| | | , content: ['../../车é´ç®¡ç/ååè¿ç«/Cj_CollectionOfSingleProductDefects.html?OperationType=1&linterid=' + $("#HInterID").val(), 'yes'] |
| | | }) |
| | | } |
| | | else { |
| | | layer.msg("请å
ä¿å䏿¬¡åæ ¼æ¡ç !") |
| | | } |
| | | } |
| | | |
| | | //ä¿å产线ç»è£
主å表 å·¥åºåºç«å主å表 |
| | | function set_AddAssemblyBill() { |
| | | var data = { "field": { "HInterID": $("#HInterID").val(), "HBillNo": $("#HBillNo").val(), "HProcID": $("#HProcID").val(), "HMaterID": $("#HMaterID").val(), "HGroupID": $("#HGroupID").val(), "HSourceID": $("#HSourceID").val(), "HICMOInterID": $("#HICMOInterID").val(), "HICMOEntryID": $("#HICMOEntryID").val(), "HICMOBillNo": $("#HICMOBillNo").val(), "HBarCode_P": $("#HBarCode_P").val(), "HProdOrgID": sessionStorage["OrganizationID"], "HEmpID2": $("#HEmpID2").val(), "HEmpID": $("#HEmpID").val(), "HProcExchBillNo": $("#HProcExchBillNo").val(), "HProcExchInterID": $("#HProcExchInterID").val(), "HProcExchEntryID": $("#HProcExchEntryID").val(), "HPieceQty": $("#HPieceQty").val(), "HICMOQty": $("#HICMOQty").val(), "HDeptID": $("#HDeptID").val(), "HProcNo": $("#HProcNo").val()} }; |
| | | |
| | | var sMainStr = JSON.stringify(data.field); |
| | | |
| | | var sMainSub = sMainStr + ';' + HResult + ";" + sessionStorage["HUserName"] ; |
| | | var sSubStr = JSON.stringify(table.cache["mainTable2"]); |
| | | var sMainSub = sMainStr + ';' + sSubStr + ";" + sessionStorage["HUserName"] ; |
| | | |
| | | var index = layer.load(); |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: GetWEBURL() + "/Cj_SingleStation/ProcessBLSave", |
| | | url: GetWEBURL() + "/Cj_SingleStation/AddAssemblyBillList", |
| | | async: false, |
| | | data: { "sMainSub": sMainSub }, |
| | | dataType: "json", |
| | | success: function (data) { |
| | | if (data.count == 1) { |
| | | $('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //$('#btnSave').addClass("layui-btn-disabled").attr("disabled", true); |
| | | layer.close(index); |
| | | layer.msg("æäº¤æå"); |
| | | //ä¿åå°ä¸´æ¶è¡¨ |
| | | get_AddBomTempList(); |
| | | get_BomList($("#HBardCodeProcExchBillNo").val()); |
| | | get_BadRecords($("#HBardCodeProcExchBillNo").val()); |
| | | } |
| | | else { |
| | | layer.close(index); |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>å·¥åºæµè½¬å¡å表æ¥è¯¢</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 0px; height:800px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px; text-align:left;">åæ®å·:</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 60px; text-align: left;">ç©æç¼ç :</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HNumber" id="HNumber" lay-verify="HNumber" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 60px; text-align: left;">ç©æåç§°:</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HName" id="HName" lay-verify="HName" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 60px; text-align: left;">ç产订å:</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HICMOBillNo" id="HICMOBillNo" lay-verify="HICMOBillNo" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-card" lay-filter="tab-EntryInfo"> |
| | | <ul class="layui-tab-title"> |
| | | <li lay-id="1" class="layui-this">åæ®å表</li> |
| | | <li lay-id="2">å表æç»</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <!--主表信æ¯--> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | <div class="layui-tab-item"> |
| | | <!--å表æç» --> |
| | | <table class="" id="mainTable2" lay-filter="mainTable2"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-tab layui-col-xs12" lay-filter="tab-MateOutBill"> |
| | | <div class="layer-footer"> |
| | | <div class="layui-col-xs3" style="z-index: 10; left:0px;height:50px"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">æ¥è¯¢</button> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer"> |
| | | <div class="layui-col-xs3" style="z-index: 10;left:20px;height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDetail">æ¥çæç»</button> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer"> |
| | | <div class="layui-col-xs3" style="z-index: 10;left:120px;height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">éåº</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var HModName = "MES_ProcessExchangeBillList_PDA_QiaoYi"; |
| | | |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | var titleData = ["HInterID"]; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData2 = ["HInterID"]; |
| | | //#region åå§åçé¢ |
| | | |
| | | set_ClearBill(); |
| | | |
| | | //åå§åå表å表 |
| | | set_InitGrid2(); |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ¥è¯¢ |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | |
| | | //å è½½æ°æ®å°ç½æ ¼ |
| | | get_FastQuery(); |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | | //æå车æ¥è¯¢ |
| | | document.onkeydown = function (e) { |
| | | var e = event.srcElement; |
| | | |
| | | if (event.keyCode == 13) { |
| | | document.getElementById("btnSearch").click(); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | | var HBillNo = $("#HBillNo").val(); |
| | | var HNumber = $("#HNumber").val(); |
| | | var HName = $("#HName").val(); |
| | | var HICMOBillNo = $("#HICMOBillNo").val(); |
| | | swhere = HBillNo + "," + HNumber + "," + HName + "," + HICMOBillNo |
| | | //卿å-ç¼åå表 |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "WEBSController/GetMES_ProcessExchangeBillList_PDA_QiaoYi_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillNo": HBillNo, "HNumber": HNumber, "HName": HName, "HICMOBillNo": HICMOBillNo, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | |
| | | //å¨å表左边添å åºå· |
| | | |
| | | col.push({ type: 'checkbox', fixed: 'left'}); |
| | | col.push({ type: 'numbers', title: 'åºå·', totalRow: true }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , cellMinWidth: 100 |
| | | /*, page: true*/ |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , height: 'full-70' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | |
| | | get_Display(sWhere); |
| | | |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |
| | | } |
| | | |
| | | |
| | | //ç¹å»ä¸»è¡¨å¸¦åºåè¡¨æ°æ® |
| | | table.on('row(mainTable)', function (obj) { //注ï¼tool æ¯å·¥å
·æ¡äºä»¶åï¼test æ¯ table åå§å®¹å¨ç屿§ lay-filter="对åºçå¼" |
| | | |
| | | //éä¸è¡æ¹åé¢è² |
| | | check_row(obj); |
| | | |
| | | var datas = obj.data; //è·å¾å½åè¡æ°æ® |
| | | /*HBillNo = datas["åæ®å·"].toString();*/ |
| | | var HInterID = datas.HInterID; |
| | | var wait = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "WEBSController/GetMES_ProcessExchangeSubBillList_PDA_QiaoYi_Json", |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "user": sessionStorage["HUserName"]}, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å åºå· |
| | | col.push({ type: 'numbers', title: 'åºå·', totalRow: true }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData2) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center'}); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center'}); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | option2 = { |
| | | elem: '#mainTable2' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , height: 550 |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | } |
| | | table.render(option2); |
| | | |
| | | |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | DisPlay_HideColumn_Sec(); |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | ////#endregion |
| | | |
| | | |
| | | //åå§åå表æç» |
| | | function set_InitGrid2() { |
| | | option2 = { |
| | | elem: '#mainTable2' |
| | | , page: false |
| | | , height: 500 |
| | | , cellMinWidth: 90 |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , cols: [[ |
| | | |
| | | ]] |
| | | }; |
| | | |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ®åè¡¨åæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HMaterID", "HDeptID","HInterID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | 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[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //æ¾ç¤ºå |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | 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 |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® (å表æç») |
| | | function DisPlay_HideColumn_Sec() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName + "_Sec", "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option2.cols[0].length - 2; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option2.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option2.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option2.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option2.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option2.cols[0][i + 1]["title"], titleData2) == -1) { |
| | | option2.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option2.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option2.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option2.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option2.cols[0].length - 1; i++) { |
| | | if (option2.cols[0][i]["fixed"] != null) { |
| | | option2.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(option2.cols[0][i + 1]["title"], titleData2) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option2.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option2); |
| | | } else { |
| | | table.render(option2); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#regionå¤éæ¡ |
| | | function check_row(obj) { |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¥çæç»åè½æ§ä»¶ |
| | | |
| | | form.on('submit(cmdDetail)', function () { |
| | | //æ¥è¯¢æç»ä¿¡æ¯æåï¼è·³è½¬å°æç»é¡µç¾ |
| | | element.tabChange('tab-EntryInfo', '2'); //è·³è½¬é¡µç¾ |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region éåºåè½æ§ä»¶ |
| | | |
| | | form.on('submit(cmdCancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | }); |
| | | }) |
| | | //#endregion |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html xmlns="http://www.w3.org/1999/xhtml"> |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| | | <title>ç产订åå表æ¥è¯¢</title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all"> |
| | | <script src="../../../layuiadmin/layui/layui.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/json2.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/zgqCustom/zgqCustom.js"></script> |
| | | <style> |
| | | .layui-col-xs8 { |
| | | width: 55.666667%; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-fluid" style="padding:0"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body" style="padding: 0px; height:800px;"> |
| | | <form class="layui-form" action="" lay-filter="component-form-group"> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-form-item" style="padding:15px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px; text-align:left;">åæ®å·:</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HBillNo" id="HBillNo" lay-verify="HBillNo" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 60px; text-align: left;">ç©æç¼ç :</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HNumber" id="HNumber" lay-verify="HNumber" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 60px; text-align: left;">ç©æåç§°:</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HMaterName" id="HMaterName" lay-verify="HMaterName" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 60px; text-align: left;">车é´:</label> |
| | | </div> |
| | | <div class="layui-col-xs8"> |
| | | <input name="HDeptName" id="HDeptName" lay-verify="HDeptName" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-tab-card" lay-filter="tab-EntryInfo"> |
| | | <ul class="layui-tab-title"> |
| | | <li lay-id="1" class="layui-this">åæ®å表</li> |
| | | <li lay-id="2">æ¥çå
³è</li> |
| | | </ul> |
| | | <div class="layui-tab-content"> |
| | | <div class="layui-tab-item layui-show"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | <!--主表信æ¯--> |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab-item" lay-filter="tab-POStockInBill"> |
| | | <div class="layui-form-item" style="padding-top: 10px;"> |
| | | æµè½¬å¡æ¸
å: |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable2" lay-filter="mainTable2"></table> |
| | | </div> |
| | | 颿æ¸
å: |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable3" lay-filter="mainTable3"></table> |
| | | </div> |
| | | å
¥åºæ¸
å: |
| | | <div class="layui-tab-item layui-show"> |
| | | <table class="layui-hide" id="mainTable4" lay-filter="mainTable4"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-tab layui-col-xs12" lay-filter="tab-MateOutBill" style="margin-bottom:0px;"> |
| | | <div class="layer-footer"> |
| | | <div class="layui-col-xs3" style="z-index: 10; left:0px;height:50px"> |
| | | <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="btnSearch" id="btnSearch">æ¥è¯¢</button> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer"> |
| | | <div class="layui-col-xs3" style="z-index: 10;left:20px;height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdckgl">æ¥çå
³è</button> |
| | | </div> |
| | | </div> |
| | | <div class="layer-footer"> |
| | | <div class="layui-col-xs3" style="z-index: 10;left:120px;height:50px"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">éåº</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </form> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <script> |
| | | layui.config({ |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | |
| | | //#region å
Œ
±åé |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | | , table = layui.table |
| | | , form = layui.form |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , util = layui.util |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var HModName = "MES_Sc_ICMOBillList_PDA_QiaoYi"; |
| | | |
| | | //#endregion |
| | | |
| | | //#region è¿å
¥é¡µé¢æ¢å è½½ |
| | | var titleData = ["HInterID", "HMaterID","HDeptID"]; |
| | | //ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | var titleData2 = ["HInterID", "HMaterID", "HDeptID"]; |
| | | var titleData3 = ["HInterID", "HMaterID", "HDeptID"]; |
| | | var titleData4 = ["HInterID", "HMaterID", "HDeptID"]; |
| | | |
| | | |
| | | //#region åå§åçé¢ |
| | | |
| | | set_ClearBill(); |
| | | |
| | | //åå§åå表å表 |
| | | set_InitGrid2(); |
| | | set_InitGrid3(); |
| | | set_InitGrid4(); |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ¥è¯¢ |
| | | form.on('submit(btnSearch)', function (data) { |
| | | get_FastQuery(); |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¤é¡µé¢ææçæ¹æ³ |
| | | |
| | | //åå§åçé¢ |
| | | function set_ClearBill() { |
| | | |
| | | //å è½½æ°æ®å°ç½æ ¼ |
| | | get_FastQuery(); |
| | | DisPlay_HideColumn(); |
| | | } |
| | | |
| | | //æå车æ¥è¯¢ |
| | | document.onkeydown = function (e) { |
| | | var e = event.srcElement; |
| | | |
| | | if (event.keyCode == 13) { |
| | | document.getElementById("btnSearch").click(); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | //å è½½ä¸»è¡¨ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | | var HBillNo = $("#HBillNo").val(); |
| | | var HNumber = $("#HNumber").val(); |
| | | var HMaterName = $("#HMaterName").val(); |
| | | var HDeptName = $("#HDeptName").val(); |
| | | swhere = HBillNo + "," + HNumber + "," + HMaterName + "," + HDeptName |
| | | //卿å-ç¼åå表 |
| | | |
| | | $.ajax({ |
| | | url: GetWEBURL() + "WEBSController/GetMES_Sc_ICMOBillList_PDA_QiaoYi_Json", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HBillNo": HBillNo, "HNumber": HNumber, "HMaterName": HMaterName, "HDeptName": HDeptName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | |
| | | if (data1.count == 1) { |
| | | |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | |
| | | //å¨å表左边添å åºå· |
| | | |
| | | col.push({ type: 'checkbox', fixed: 'left'}); |
| | | col.push({ type: 'numbers', title: 'åºå·', totalRow: true }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | option = { |
| | | elem: '#mainTable' |
| | | , cellMinWidth: 100 |
| | | /*, page: true*/ |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , height: 'full-70' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | }; |
| | | table.render(option); |
| | | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { |
| | | icon: 5, |
| | | time: 20000 |
| | | }, function () { |
| | | //do something |
| | | }); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | |
| | | get_Display(sWhere); |
| | | |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | | sWhere = ""; |
| | | } |
| | | |
| | | |
| | | //ç¹å»ä¸»è¡¨å¸¦åºåè¡¨æ°æ® |
| | | table.on('row(mainTable)', function (obj) { //注ï¼tool æ¯å·¥å
·æ¡äºä»¶åï¼test æ¯ table åå§å®¹å¨ç屿§ lay-filter="对åºçå¼" |
| | | |
| | | //éä¸è¡æ¹åé¢è² |
| | | check_row(obj); |
| | | |
| | | var datas = obj.data; //è·å¾å½åè¡æ°æ® |
| | | /*HBillNo = datas["åæ®å·"].toString();*/ |
| | | var HInterID = datas.HInterID; |
| | | var wait = layer.load(); |
| | | get_Display_SPE(HInterID); |
| | | get_DisPlay_ICM(HInterID); |
| | | get_DisPlay_ICS(HInterID); |
| | | |
| | | |
| | | //æµè½¬å¡ |
| | | function get_Display_SPE(HInterID) { |
| | | $.ajax({ |
| | | url: GetWEBURL() + "WEBSController/GetMES_Sc_ICMOSubBillList_PDA_QiaoYi_Json", |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "HDATA": 'HSPE',"user": sessionStorage["HUserName"] }, |
| | | async: false, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | | var col = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | //å¨å表左边添å åºå· |
| | | col.push({ type: 'numbers', title: 'åºå·', totalRow: true }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData2) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | option2 = { |
| | | |
| | | elem: '#mainTable2' |
| | | , cellMinWidth: 100 |
| | | /*, page: true*/ |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , height: 200 |
| | | , cols: [col] |
| | | , data: data1.data |
| | | } |
| | | table.render(option2); |
| | | |
| | | |
| | | layer.close(wait); |
| | | } else { |
| | | layer.close(wait); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(wait); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | DisPlay_HideColumn_Sec(); |
| | | } |
| | | }); |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | //åå§åæµè½¬å¡æ¸
åæç» |
| | | function set_InitGrid2() { |
| | | option2 = { |
| | | elem: '#mainTable2' |
| | | , page: false |
| | | , height: 500 |
| | | , cellMinWidth: 90 |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , cols: [[ |
| | | |
| | | ]] |
| | | }; |
| | | |
| | | } |
| | | |
| | | |
| | | //#region æ¥è¯¢é¢ææ¸
å |
| | | function get_DisPlay_ICM(HInterID) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "WEBSController/GetMES_Sc_ICMOSubBillList_PDA_QiaoYi_Json", |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "HDATA": 'HICM',"user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | var col = []; |
| | | col.push({ type: 'numbers', title: 'åºå·', totalRow: true }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData3) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center'}); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | option3 = { |
| | | elem: '#mainTable3' |
| | | , cellMinWidth: 100 |
| | | /*, page: true*/ |
| | | , limit: 500 //æ¯é¡µå è½½çæ°æ®æ°é |
| | | , limits: [50, 500, 5000, 20000] |
| | | , height: 200 |
| | | , cols: [col] |
| | | , data: data1.data |
| | | } |
| | | table.render(option3); |
| | | |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | DisPlay_HideColumn_ICM(); |
| | | } |
| | | //#endregion |
| | | |
| | | //åå§å颿æ¸
åæç» |
| | | function set_InitGrid3() { |
| | | option3 = { |
| | | elem: '#mainTable3' |
| | | , page: false |
| | | , height: 500 |
| | | , cellMinWidth: 90 |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , cols: [[ |
| | | |
| | | ]] |
| | | }; |
| | | |
| | | } |
| | | |
| | | |
| | | //#region æ¥è¯¢å
¥åºæ¸
å |
| | | function get_DisPlay_ICS(HInterID) { |
| | | var ajaxLoad = layer.load(); |
| | | $.ajax({ |
| | | url: GetWEBURL() + "WEBSController/GetMES_Sc_ICMOSubBillList_PDA_QiaoYi_Json", |
| | | type: "GET", |
| | | data: { "HInterID": HInterID, "HDATA": 'HICS', "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.count == 1) { |
| | | var data = []; |
| | | //ç»ç©ºçæ°ç»èµå¼ |
| | | for (var key in data1.list) { |
| | | data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType }); |
| | | } |
| | | var col = []; |
| | | col.push({ type: 'numbers', title: 'åºå·', totalRow: true }); |
| | | for (var i = 0; i < data.length; i++) { |
| | | if ($.inArray(data[i].name, titleData4) > -1) { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //éèidå |
| | | } |
| | | else { |
| | | switch (data[i].Type) { |
| | | //int |
| | | case 'DateTime': |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | break; |
| | | default: |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | } |
| | | } |
| | | } |
| | | |
| | | //卿æ¾ç¤ºåå |
| | | option4 = { |
| | | elem: '#mainTable4' |
| | | , cellMinWidth: 100 |
| | | /*, page: true*/ |
| | | , limit:1000 //æ¯é¡µæ¾ç¤ºçæ°æ®æ°é |
| | | , limits: [50, 500, 5000, 20000] //å页çæ
åµä¸å¯éæ©æ¯é¡µéæ©çæ°æ®æ°é |
| | | , height: 'full-320' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | |
| | | } |
| | | table.render(option4); |
| | | |
| | | layer.close(ajaxLoad); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | } |
| | | }, error: function () { |
| | | layer.close(ajaxLoad); |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }); |
| | | DisPlay_HideColumn_ICS(); |
| | | } |
| | | //#endregion |
| | | |
| | | //åå§åå
¥åºæ¸
åæç» |
| | | function set_InitGrid4() { |
| | | option4 = { |
| | | elem: '#mainTable4' |
| | | , page: false |
| | | , height: 'full-70' |
| | | , cellMinWidth: 90 |
| | | , limit: Number.MAX_VALUE//é»è®¤æ¾ç¤ºå
¨é¨ |
| | | , cols: [[ |
| | | |
| | | ]] |
| | | }; |
| | | |
| | | } |
| | | |
| | | //æ¾ç¤ºåæ®åè¡¨åæ°æ® |
| | | function DisPlay_HideColumn() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName, "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | var titleData = ["HMaterID", "HDeptID","HInterID"];//ä¸éè¦æ¾ç¤ºçåæ®µ 坿©å± |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option.cols[0].length - 1; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | 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[3] > 0) { |
| | | option.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //æ¾ç¤ºå |
| | | 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; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | 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 |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® (æµè½¬å¡æ¸
å) |
| | | function DisPlay_HideColumn_Sec() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName + "_Sec", "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option2.cols[0].length - 2; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option2.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option2.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option2.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option2.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option2.cols[0][i + 1]["title"], titleData2) == -1) { |
| | | option2.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option2.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option2.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option2.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option2.cols[0].length - 1; i++) { |
| | | if (option2.cols[0][i]["fixed"] != null) { |
| | | option2.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(option2.cols[0][i + 1]["title"], titleData2) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option2.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option2); |
| | | } else { |
| | | table.render(option2); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® (颿æ¸
å) |
| | | function DisPlay_HideColumn_ICM() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName + "_ICM", "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option3.cols[0].length - 2; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option3.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option3.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option3.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option3.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option3.cols[0][i + 1]["title"], titleData3) == -1) { |
| | | option3.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option3.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option3.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option3.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option3.cols[0].length - 1; i++) { |
| | | if (option3.cols[0][i]["fixed"] != null) { |
| | | option3.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(option3.cols[0][i + 1]["title"], titleData3) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option3.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option3); |
| | | } else { |
| | | table.render(option3); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | //#region æ¾ç¤ºåæ°æ® (å
¥åºæ¸
å) |
| | | function DisPlay_HideColumn_ICS() { |
| | | $.ajax({ |
| | | url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', |
| | | type: "GET", |
| | | data: { "HModName": HModName + "_ICS", "user": sessionStorage["HUserName"] }, |
| | | success: function (data1) { |
| | | if (data1.data.length != 0) { |
| | | |
| | | |
| | | var dataCol = [];//æ°æ®åºæ¥è¯¢åºçåæ°æ® |
| | | |
| | | dataCol = data1.data[0].HGridString.split(','); |
| | | |
| | | for (var i = 0; i < option4.cols[0].length - 2; i++) { |
| | | if (dataCol[i]) { |
| | | var dataCols = dataCol[i].split('|'); |
| | | } |
| | | //éèå |
| | | if (dataCols[1] == 1) { |
| | | option4.cols[0][i + 1]["hide"] = true; |
| | | } |
| | | //设置å宽 |
| | | if (dataCols[3] > 0) { |
| | | option4.cols[0][i + 1]["width"] = dataCols[3]; |
| | | } |
| | | //设置å
容åä½å¤§å° |
| | | if (data1.data[0].HFontSize != 0) { |
| | | option4.cols[0][i + 1]["style"] = "font-size:" + data1.data[0].HFontSize + "px;"; |
| | | } else { |
| | | option4.cols[0][i + 1]["style"] = "font-size:100%"; |
| | | } |
| | | //æ¾ç¤ºå |
| | | if (dataCols[1] == 0 && $.inArray(option4.cols[0][i + 1]["title"], titleData4) == -1) { |
| | | option4.cols[0][i + 1]["hide"] = false; |
| | | } |
| | | //å使å¨ä½ç½®(å·¦ å±
ä¸ å³) |
| | | switch (dataCols[2]) { |
| | | case "L": |
| | | option4.cols[0][i + 1]["align"] = "left"; |
| | | break; |
| | | case "M": |
| | | option4.cols[0][i + 1]["align"] = "center"; |
| | | break; |
| | | case "R": |
| | | option4.cols[0][i + 1]["align"] = "right"; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | //åæ¶å»ç»å |
| | | for (var i = 1; i < option4.cols[0].length - 1; i++) { |
| | | if (option4.cols[0][i]["fixed"] != null) { |
| | | option4.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(option4.cols[0][i + 1]["title"], titleData4) != -1) { |
| | | data1.data[0].HFixCols += 1; |
| | | } |
| | | option4.cols[0][i + 1]["fixed"] = "left"; |
| | | } |
| | | } |
| | | table.render(option4); |
| | | } else { |
| | | table.render(option4); |
| | | } |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |
| | | }) |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | |
| | | //#region å¤éæ¡ |
| | | function check_row(obj) { |
| | | var flag = !obj.tr.find(':checkbox:first').prop('checked'); |
| | | obj.tr.find(':checkbox').prop('checked', flag); |
| | | if (flag) { |
| | | obj.tr.find('.layui-form-checkbox').addClass('layui-form-checked'); //设置å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:#ceedfa;color:black" });//æ¹åå½åtrèæ¯é¢è²ååä½é¢è² |
| | | } else { |
| | | obj.tr.find('.layui-form-checkbox').removeClass('layui-form-checked');//åæ¶å¤éæ¡é䏿 ·å¼ |
| | | $(obj.tr.selector).attr({ "style": "background:" });//åæ¶å½åtré¢è² |
| | | } |
| | | //mainTable ä¸ºè¡¨æ ¼ID æ³¨ææ¤å¤å¦æID䏿£ç¡®å°å¯¼è´ä½ å¨çå¬å¤éæ¡æ¶è·åä¸å°ä½ éæ©çæ°æ®ï¼åé¢çåªæ¯æ·»å æå é¤é䏿ªé䏿 ·å¼ä»¥åè®¾ç½®èæ¯è²ï¼åä½é¢è² |
| | | layui.each(table.cache.mainTable, function (i, l) { |
| | | if (obj.tr.index() == l.LAY_TABLE_INDEX) { |
| | | l.LAY_CHECKED = flag; |
| | | } |
| | | }); |
| | | } |
| | | //endregion |
| | | |
| | | //#region æ¥çå
³èåè½æ§ä»¶ |
| | | |
| | | form.on('submit(cmdckgl)', function () { |
| | | //æ¥è¯¢æç»ä¿¡æ¯æåï¼è·³è½¬å°æç»é¡µç¾ |
| | | element.tabChange('tab-EntryInfo', '2'); //è·³è½¬é¡µç¾ |
| | | }) |
| | | //#endregion |
| | | |
| | | //#region éåºåè½æ§ä»¶ |
| | | |
| | | form.on('submit(cmdCancel)', function () { |
| | | layer.confirm('æ¨ç¡®å®è¦éåºåï¼', { icon: 3, title: 'æç¤º' }, function (index) { |
| | | parent.location.href = "../../../views/index_Mobile.html"; |
| | | }); |
| | | }) |
| | | //#endregion |
| | | }); |
| | | </script> |
| | | </body> |
| | | </html> |
| | |
| | | } |
| | | |
| | | |
| | | //æå车æ¥è¯¢ |
| | | document.onkeydown = function (e) { |
| | | var e = event.srcElement; |
| | | |
| | | if (event.keyCode == 13) { |
| | | document.getElementById("btnSearch").click(); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | | var HProcExchBillNo = $("#HProcExchBillNo").val() ; |
| | |
| | | } |
| | | |
| | | |
| | | //æå车æ¥è¯¢ |
| | | document.onkeydown = function (e) { |
| | | var e = event.srcElement; |
| | | |
| | | if (event.keyCode == 13) { |
| | | document.getElementById("btnSearch").click(); |
| | | return false; |
| | | } |
| | | } |
| | | |
| | | //å è½½ç½æ ¼ |
| | | function get_Display(sWhere) { |
| | | var HProcExchBillNo = $("#HProcExchBillNo").val() ; |
| | |
| | | |
| | | //å¿«éè¿æ»¤ |
| | | function get_FastQuery() { |
| | | |
| | | get_Display(sWhere); |
| | | |
| | | //è°ç¨æ¥å£åæ¸
空sWhereç¼å |
| | |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ä¸å¡å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" " class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HEmpName" id="HEmpName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |
| | |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">éå®è®¢åå·</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HInnerBillNo" id="HInnerBillNo" autocomplete="off"> |
| | | <input class="layui-input" name="HSeOrderBillNo_M" id="HSeOrderBillNo_M" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | </button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">è¿è´¹</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HConveyMoney" id="HConveyMoney" autocomplete="off" value="0"> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">æºåç±»å</label> |
| | | <div class="layui-input-inline"> |
| | |
| | | </div>--> |
| | | |
| | | </div> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-row"> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">è¿è¾å
¬å¸</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HConveyCompID" id="HConveyCompID" autocomplete="off" value="0"> |
| | | <input type="text" name="HConveyCompName" id="HConveyCompName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HConveyCompID" id="HConveyCompID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">è¿è¾æ¹å¼</label> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" name="HConveyTypeID" id="HConveyTypeID" autocomplete="off" value="0"> |
| | | <input type="text" name="HConveyTypeName" id="HConveyTypeName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HConveyTypeID" id="HConveyTypeID" class="layui-input" value="0" style="float:left;width:150px;"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs4 layui-inline"> |
| | |
| | | <input type="hidden" value="false" name="HDFflag" id="HDFflag"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div>--> |
| | | <div class="layui-row"> |
| | | <!--<div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">éåå·</label> |
| | |
| | | allVal = result.data[0]; |
| | | var data = result.data[0]; |
| | | var IsHDFflag = data.æ¯å¦å«ä»; |
| | | if (IsHDFflag) { |
| | | $("input[name='checkboxHDFflag'][value='" + IsHDFflag + "']").attr("checked", true); |
| | | } |
| | | //if (IsHDFflag) { |
| | | // $("input[name='checkboxHDFflag'][value='" + IsHDFflag + "']").attr("checked", true); |
| | | //} |
| | | form.val("component-form-group", { //formTest å³ class="layui-form" æå¨å
ç´ å±æ§ lay-filter="" 对åºçå¼ |
| | | "HBillNo": data.åæ®å· |
| | | , "HDate": formatDate(data.æ¥æ) |
| | | , "HInnerBillNo": data.éå®è®¢åå· |
| | | , "HSeOrderBillNo_M": data.éå®è®¢åå· |
| | | , "HEmpID": data.HEmpID |
| | | , "HEmpName": data.ä¸å¡å |
| | | , "HCusID": data.HCusID |
| | | , "HCusName": data.å®¢æ· |
| | | , "HWHID": data.HWHID |
| | | , "HWHName": data.ä»åº |
| | | , "HAddress": data.交货å°ç¹ |
| | | , "HWHName": data.åè´§ä»åº |
| | | , "HAddress": data.交货å°å |
| | | , "HDeptName": data.é¨é¨ |
| | | , "HDeptID": data.HDeptID |
| | | , "HCurID": data.HCurID |
| | |
| | | , "HSourceBillType": data.æºåç±»å |
| | | , "HLinkMan": data.è系人 |
| | | , "HLinkPhone": data.èç³»çµè¯ |
| | | , "HConveyCompID": data.è¿è¾å
¬å¸ |
| | | , "HConveyTypeID": data.è¿è¾æ¹å¼ |
| | | , "tHConveyMoney": data.è¿è´¹ |
| | | , "HDFflag": data.æ¯å¦å«ä» |
| | | //, "HConveyCompID": data.è¿è¾å
¬å¸ |
| | | //, "HConveyTypeID": data.è¿è¾æ¹å¼ |
| | | //, "HConveyMoney": data.è¿è´¹ |
| | | //, "HDFflag": data.æ¯å¦å«ä» |
| | | , "Box2": "" |
| | | , "HRemark": data.è¡¨å¤´å¤æ³¨ |
| | | , "HMaker": data.å¶å人 |
| | |
| | | , "HUpDateDate": data.ä¿®æ¹æ¥æ |
| | | , "HDeleteDate": data.ä½åºæ¥æ |
| | | }); |
| | | |
| | | |
| | | //å表 èµå¼ |
| | | subdata = result.data |
| | | var rowdata = []; |
| | | for (var i = 0; i < subdata.length; i++) { |
| | | rowdata.push( |
| | | { |
| | | "HMaterID": subdata[i].HMaterID, "ç©æä»£ç ": subdata[i].ç©æä»£ç , "ç©æåç§°": subdata[i].ç©æåç§°, "è§æ ¼åå·": subdata[i].è§æ ¼åå·, "HUnitID": subdata[i].HUnitID, "计éåä½": subdata[i].计éåä½, |
| | | "HWHID": subdata[i].HWHID, "åè´§ä»åº": subdata[i].åè´§ä»åº, "HQty": subdata[i].æ°é, "HPrice": subdata[i].åä»·, "HMoney": subdata[i].éé¢, "HRemark": subdata[i].表ä½å¤æ³¨ |
| | | } |
| | | ) |
| | | } |
| | | option.data = rowdata; |
| | | table.render(option); |
| | | form.render('select'); |
| | | |
| | | layer.close(ajaxLoad); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | }); |
| | | } |
| | | else {//å¦æä¿®æ¹åèµ°ä¸é¢ new |
| | | RoadBillMain(hID); |
| | | $("#HInterID").val(linterid); |
| | | RoadBillMain(linterid); |
| | | /* RoadBillSub(linterid);*/ |
| | | } |
| | | |
| | | |
| | | //éåº |
| | | form.on('submit(Exit)', function (data) { |
| | | if (linterid == undefined) { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(2); |
| | | } |
| | | else { |
| | | //å
³éé¡µç¾ |
| | | Pub_Close(1); |
| | | } |
| | | }); |
| | | |
| | | //#region ä¿åæ¹æ³ |
| | | function set_SaveBill(data) { |
| | | |
| | |
| | | success: function (data) { |
| | | if (data.count == 1) { // 说æéªè¯æåäºï¼ |
| | | layer.msg(data.Message, { icon: 1 }); |
| | | $('#set_SaveBill').addClass("layui-btn-disabled").attr("disabled", true); |
| | | $('#add-btn').addClass("layui-btn-disabled").attr("disabled", true); |
| | | //ä¿ååæµè§ |
| | | //ReRoadBillMain(); |
| | | } |
| | |
| | | } |
| | | $("#HCurName").val(checkStatus.data[0].è´§å¸åç§°); |
| | | $("#HCurID").val(checkStatus.data[0].HItemID); |
| | | $("#HExRate").val(checkStatus.data[0].æ±ç); |
| | | layer.close(index); //å®è·åçå§ç»æ¯ææ°å¼¹åºçæä¸ªå±ï¼å¼æ¯ç±layerå
é¨å¨æéå¢è®¡ç®ç |
| | | } |
| | | , btn2: function (index, layero) { } |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label" style="width: 85px;">ç»ç»</label> |
| | | <div class="layui-input-block" style="margin-left: 120px; width: 185px;"> |
| | | <select name="HOrgID" id="HOrgID" lay-verify="HOrgID"> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <label class="layui-form-label">åæ®å·</label> |
| | | <div class="layui-input-block"> |
| | | <input type="text" class="layui-input" name="HBillNo" id="HBillNo" style="width:190px;"> |
| | |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Add" id="btn-Add"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Edit" id="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="btn-Edit" id="btn-Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-Delete" id="btn-Delete"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="get_Refresh" id="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn-print" id="btn-print"><i class="layui-icon layui-icon-print"></i>æå°</button> |
| | |
| | | }); |
| | | //#endregion |
| | | |
| | | //è·åç»ç» |
| | | Organ(); |
| | | |
| | | //#region åå§åçé¢ |
| | | function set_ClearBill() { |
| | | //åå§åè¡¨æ ¼ |
| | |
| | | //æ¥è¯¢ |
| | | get_FastQuery(table, option); |
| | | DisPlay_HideColumn(); |
| | | //get_Display(sWhere); |
| | | get_Display(sWhere); |
| | | //ä»»æåæ®µè¿æ»¤ä¸ææ¡åå§å |
| | | ColFilter(); |
| | | } |
| | | //#endregion |
| | | //#region åå§åè¡¨æ ¼æ¹æ³ |
| | |
| | | }; |
| | | }); |
| | | |
| | | //è·åç»ç» |
| | | function Organ() { |
| | | //è·åç»å½é¡µç»ç»å |
| | | $.ajax({ |
| | | type: "get", |
| | | url: GetWEBURL() + "/Web/GetOrganizations", |
| | | success: function (result) { |
| | | var Organization = ""; |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | var data = result.data; |
| | | for (var i = 0; i < data.length; i++) { |
| | | Organization += '<option style="color:blue;" value="' + data[i].ID + '">' + data[i].Name + '</option>'; |
| | | } |
| | | $("#HOrgID").append(Organization); |
| | | $("#HOrgID").val(sessionStorage["OrganizationID"]) |
| | | form.render('select'); |
| | | } |
| | | layer.closeAll("loading"); |
| | | } |
| | | }) |
| | | } |
| | | |
| | | //#region å¿«éè¿æ»¤ |
| | | function get_FastQuery(table, option) { |
| | |
| | | <div class="layui-col-xs4 layui-inline"> |
| | | <label class="layui-form-label">ä¸å¡å</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="text" name="HEmpName" id="HEmpName" " class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="text" name="HEmpName" id="HEmpName" class="layui-input" value="" style="float:left;width:150px;"> |
| | | <input type="hidden" name="HEmpID" id="HEmpID" class="layui-input" value=0 style="float:left;width:150px;"> |
| | | <button type="button" lay-submit="" class="layui-btn" lay-filter="HEmpList" style="width:40px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i> |