| WebTM/Properties/PublishProfiles/JFTM.pubxml.user | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/layuiadmin/Scripts/webConfig.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/生产管理/生产任务单/Sc_ICMOBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/车间管理/工序出站汇报单/Cj_StationOutBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/车间管理/工序流转卡/Sc_ProcessExchangeBillList.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| WebTM/views/车间管理/工序进站接收单/Cj_StationInBill.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
Diff too large WebTM/layuiadmin/Scripts/webConfig.js
@@ -8,7 +8,7 @@ //var WEBURL = "http://localhost:8082/lubao"; //颿忬å°é ç½® //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨é²æ¬å°é ç½® //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //ç« ç´«ææ¬å°é ç½® var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é ç½® //var WEBURL = "http://localhost:8082/LuBaoAPI/"; //æ¨ä¹æ¬å°é ç½® //var WEBURL = "http://10.1.4.155/API/"; //æ±ä¸°å®¢æ·NEW //var WEBURL = "http://47.96.97.237/API/"; //æºäºæå¡å¨ //var WEBURL = "http://183.129.128.86:9090/API/"; //å¯è´å¥ç¹å®¢æ·æå¡å¨å¤ç½ WebTM/views/Éú²ú¹ÜÀí/Éú²úÈÎÎñµ¥/Sc_ICMOBillList.html
@@ -118,6 +118,7 @@ <!-- <option value="å ¨é¨">å ¨é¨</option>--> <option value="已䏿¨">已䏿¨</option> <option value="æªä¸æ¨">æªä¸æ¨</option> <option value="å ¨é¨">å ¨é¨</option> </select> </div> @@ -450,6 +451,17 @@ var HStatus = $("#HStatus").val();//åæ®å· var HBillType = $("#HBillType").val();//åæ®ç±»å var HSF = $("#HSF").val();//åæ®ç±»å if (HSF) {//夿æå°ç¶æ if (HSF == "å ¨é¨") { sWhere = ""; } if (HSF == "已䏿¨") { sWhere = " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; } if (HSF == "æªä¸æ¨") { sWhere = " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%' "; } } if (HDate) { sWhere += " and æ¥æ >= '" + HDate + "'"; } @@ -477,9 +489,9 @@ if (HErpID) { sWhere += " and å¯ä¸ID like '%" + HErpID + "%'"; } if (HSF) { sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%'"; } //if (HSF) { // sWhere += " and æ¯å¦ä¸æ¨çææµè½¬å¡ like '%" + HSF + "%'"; //} get_Display(sWhere); sWhere = "";//è°ç¨æ¥å£åæ¸ ç©ºsWhereç¼å } WebTM/views/³µ¼ä¹ÜÀí/¹¤Ðò³öÕ¾»ã±¨µ¥/Cj_StationOutBill.html
@@ -179,6 +179,7 @@ <div class="layui-col-xs4 layui-inline"> <label class="layui-form-label"><span style="color:red;">*</span>æä½å</label> <div class="layui-input-inline"> <input type="text" class="layui-input" name="HEmpNumber" id="HEmpNumber"> <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEmployeeID-BT" id="HEmployeeID-BT" style="width: 40px; padding: 0 10px;"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> @@ -280,6 +281,7 @@ <div class="layui-col-xs4 layui-inline"> <label class="layui-form-label">èå2</label> <div class="layui-input-inline"> <input type="text" class="layui-input" name="HEmpNumber2" id="HEmpNumber2"> <input type="text" class="layui-input" name="HEmpName2" id="HEmpName2" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEmployeeID-BT2" id="HEmployeeID-BT2" style="width: 40px; padding: 0 10px;"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> @@ -290,6 +292,7 @@ <div class="layui-col-xs4 layui-inline"> <label class="layui-form-label">èå3</label> <div class="layui-input-inline"> <input type="text" class="layui-input" name="HEmpNumber3" id="HEmpNumber3"> <input type="text" class="layui-input" name="HEmpName3" id="HEmpName3" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEmployeeID-BT3" id="HEmployeeID-BT3" style="width: 40px; padding: 0 10px;"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> @@ -308,6 +311,7 @@ <div class="layui-col-xs4 layui-inline"> <label class="layui-form-label">èå4</label> <div class="layui-input-inline"> <input type="text" class="layui-input" name="HEmpNumber4" id="HEmpNumber4"> <input type="text" class="layui-input" name="HEmpName4" id="HEmpName4" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEmployeeID-BT4" id="HEmployeeID-BT4" style="width: 40px; padding: 0 10px;"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> @@ -318,6 +322,7 @@ <div class="layui-col-xs4 layui-inline"> <label class="layui-form-label">èå5</label> <div class="layui-input-inline"> <input type="text" class="layui-input" name="HEmpNumber5" id="HEmpNumber5"> <input type="text" class="layui-input" name="HEmpName5" id="HEmpName5" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> <button class="layui-btn layuiadmin-btn-order" type="button" lay-submit="" lay-filter="HEmployeeID-BT5" id="HEmployeeID-BT5" style="width: 40px; padding: 0 10px;"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> @@ -952,6 +957,123 @@ }); }) $('#HEmpNumber').on('keydown', function (event) { var HEmpNumber = $("#HEmpNumber").val(); if (event.keyCode == 13) { $.ajax({ url: GetWEBURL() + '/Cj_StationInBill/GetMessageByEmpNumber', type: "GET", data: { "HEmpNumber": HEmpNumber }, success: function (data1) { if (data1.count == 1) { $("#HEmpNumber").val(data1.data[0].HNumber); $("#HEmpName").val(data1.data[0].HName); $("#HEmpID").val(data1.data[0].HItemID); layer.alert($("#HEmpID").val()); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); } }); $('#HEmpNumber2').on('keydown', function (event) { var HEmpNumber2 = $("#HEmpNumber2").val(); if (event.keyCode == 13) { $.ajax({ url: GetWEBURL() + '/Cj_StationInBill/GetMessageByEmpNumber', type: "GET", data: { "HEmpNumber": HEmpNumber2 }, success: function (data1) { if (data1.count == 1) { $("#HEmpNumber2").val(data1.data[0].HNumber); $("#HEmpName2").val(data1.data[0].HName); $("#HEmpID2").val(data1.data[0].HItemID); layer.alert($("#HEmpID2").val()); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); } }); $('#HEmpNumber3').on('keydown', function (event) { var HEmpNumber3 = $("#HEmpNumber3").val(); if (event.keyCode == 13) { $.ajax({ url: GetWEBURL() + '/Cj_StationInBill/GetMessageByEmpNumber', type: "GET", data: { "HEmpNumber": HEmpNumber3 }, success: function (data1) { if (data1.count == 1) { $("#HEmpNumber3").val(data1.data[0].HNumber); $("#HEmpName3").val(data1.data[0].HName); $("#HEmpID3").val(data1.data[0].HItemID); layer.alert($("#HEmpID3").val()); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); } }); $('#HEmpNumber4').on('keydown', function (event) { var HEmpNumber4 = $("#HEmpNumber4").val(); if (event.keyCode == 13) { $.ajax({ url: GetWEBURL() + '/Cj_StationInBill/GetMessageByEmpNumber', type: "GET", data: { "HEmpNumber": HEmpNumber4 }, success: function (data1) { if (data1.count == 1) { $("#HEmpNumber4").val(data1.data[0].HNumber); $("#HEmpName4").val(data1.data[0].HName); $("#HEmpID4").val(data1.data[0].HItemID); layer.alert($("#HEmpID4").val()); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); } }); $('#HEmpNumber5').on('keydown', function (event) { var HEmpNumber5 = $("#HEmpNumber5").val(); if (event.keyCode == 13) { $.ajax({ url: GetWEBURL() + '/Cj_StationInBill/GetMessageByEmpNumber', type: "GET", data: { "HEmpNumber": HEmpNumber5 }, success: function (data1) { if (data1.count == 1) { $("#HEmpNumber5").val(data1.data[0].HNumber); $("#HEmpName5").val(data1.data[0].HName); $("#HEmpID5").val(data1.data[0].HItemID); layer.alert($("#HEmpID5").val()); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); } }); //æäº¤ form.on('submit(Saver)', function (data) {//æäº¤ var tableData = data.field; WebTM/views/³µ¼ä¹ÜÀí/¹¤ÐòÁ÷ת¿¨/Sc_ProcessExchangeBillList.html
@@ -84,12 +84,36 @@ <input type="text" class="layui-input" name="HBillNo" id="HBillNo"> </div> </div> <div class="layui-inline"> <label class="layui-form-label">å¯ä¸ID</label> <div class="layui-input-block"> <input type="text" class="layui-input" name="HErpID" id="HErpID"> </div> </div> </div> </div> </div> </div> <table class="" id="mainTable" lay-filter="mainTable"></table> <table class="" id="mainTable2" lay-filter="mainTable2"></table> <!--<table class="" id="mainTable" lay-filter="mainTable"></table> <table class="" id="mainTable2" lay-filter="mainTable2"></table>--> <div class="layui-tab layui-tab-card"> <ul class="layui-tab-title"> <li class="layui-this">å·¥èºæµç¨</li> <li>å¨å ·æ¸ å</li> <li>å·¥èºåæ°æ¸ å</li> </ul> <div class="layui-tab-content"> <div class="layui-tab-item layui-show"> <table class="layui-hide" id="mainTable" lay-filter="mainTable"></table> </div> <div class="layui-tab-item layui-show"> <table class="layui-hide" id="mainTable1" lay-filter="mainTable1"></table> </div> <div class="layui-tab-item"> <table class="layui-hide" id="mainTable2" lay-filter="mainTable2"></table> </div> </div> </div> <script type="text/html" id="toolbarDemo"> <div class="layui-btn-container"> <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> @@ -242,6 +266,7 @@ var HWorkBillNo = $("#HWorkBillNo").val(); var SHname = $("#SHname").val();//ç©æ|åä»¶åç§°|åä»¶è§æ ¼ var HBillNo = $("#HBillNo").val();//åæ®å· var HErpID = $("#HErpID").val();//å¯ä¸ID if (SHPrintQty) {//夿æå°ç¶æ if (SHPrintQty == "å ¨é¨") { sWhere = " and æå°æ¬¡æ° >= 0 "; @@ -269,10 +294,13 @@ sWhere += " and 订åè·è¸ªå· like '%" + HOrderProcNO + "%'"; } if (SHname) { sWhere += " and åä»¶åç§° like '%" + SHname + "%' or åä»¶è§æ ¼ like '%" + SHname + "%'" sWhere += " and å件代ç like '%" + SHname + "%'"; } if (HBillNo) { sWhere += " and åæ®å· like '%" + HBillNo + "%'" } if (HErpID) { sWhere += " and å¯ä¸ID like '%" + HErpID + "%'"; } get_Display(sWhere); sWhere = "";//è°ç¨æ¥å£åæ¸ ç©ºsWhereç¼å @@ -309,11 +337,80 @@ layer.close(wait); layer.alert("æ¥å£å¤±æ!", { icon: 5 }); } }); }); DisPlay_HideColumn_Sec(); set_ClearBill(HMainID); //å¨å ·æ¸ å }); //#endregion function set_ClearBill(HMainID) { resultTableHead = []; //æ¸ ç©ºè¡¨å¤´åï¼é²æ¢é夿¸²æ //åå§æ¥è¯¢ get_Display(HMainID); } //#endregion //#region æ¥è¯¢ function get_Display(HMainID) { var ajaxLoad = layer.load(); $.ajax({ url: GetWEBURL() + '/Sc_ProcessExchangeBillList/QJQD', type: "GET", data: { "HMainID": HMainID }, 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 }); } for (var i = 0; i < data.length; i++) { if (data[i].name == 'HInterID' || data[i].name == 'HBillType' || data[i].name == 'hmainid') { 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', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 }); break; default: col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 }); } } } //卿æ¾ç¤ºåå table.render({ elem: '#mainTable1' , cols: [col] , data: data1.data , height: 550 , page: true , cellMinWidth: 90 , limit: 50 , limits: [50, 500, 5000, 20000] }); 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 }); } }); } //åå§å主表å表 @@ -328,7 +425,7 @@ , limits: [50, 500, 5000, 20000] , cols: [[ { type: 'checkbox', fixed: 'left' } , { field: 'hmainid', title: 'hmainid', width: 90, hide: true} , { field: 'hmainid', title: 'hmainid', width: 90, hide: true } , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°' } , { field: 'ç±»å', title: 'ç±»å' } , { @@ -341,24 +438,26 @@ } , { field: '订åè·è¸ªå·', title: '订åè·è¸ªå·', width: 120 } , { field: 'åæ®å·', title: 'åæ®å·', width: 190 } , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true} , { field: 'hicmointerid', title: 'hicmointerid', width: 80, hide: true } , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 140 } , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true} , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true} , { field: 'å¯ä¸ID', title: 'å¯ä¸ID', width: 140 } , { field: 'æ¥è®¡å工忥æ', title: 'æ¥è®¡å工忥æ', width: 140 } , { field: 'HWorkShopID', title: 'HWorkShopID', width: 80, hide: true } , { field: 'HDeptID', title: 'HDeptID', width: 80, hide: true } , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } , { field: 'ç产车é´', title: 'ç产车é´' } , { field: 'å§å¤æ è®°', title: 'å§å¤æ è®°' } , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true} , { field: 'HMaterID', title: 'HMaterID', width: 80, hide: true } , { field: 'å件代ç ', title: 'å件代ç ' } , { field: 'åä»¶åç§°', title: 'åä»¶åç§°' } , { field: 'åä»¶è§æ ¼', title: 'åä»¶è§æ ¼' } , { field: 'æ¹å·', title: 'æ¹å·' } , { field: 'åææ¹æ¬¡å·', title: 'åææ¹æ¬¡å·' } , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true} , { field: 'HMaterID2', title: 'HMaterID2', width: 80, hide: true } , { field: '产å代ç ', title: '产å代ç ' } , { field: '产ååç§°', title: '产ååç§°' } , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true} , { field: 'HUnitID', title: 'HUnitID', width: 80, hide: true } , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } , { field: 'åä½', title: 'åä½' } , { field: 'è®¾å¤æ¨¡å ·ä»£ç ', title: 'è®¾å¤æ¨¡å ·ä»£ç ' } @@ -380,8 +479,8 @@ , { field: 'å ³éæ¥æ', title: 'å ³éæ¥æ' } , { field: 'ä½åºäºº', title: 'ä½åºäºº' } , { field: 'ä½åºæ¥æ', title: 'ä½åºæ¥æ' } , { field: 'HBillType', title: 'HBillType', width: 80, hide: true} , { field: 'hsubid', title: 'hsubid', width: 80, hide: true} , { field: 'HBillType', title: 'HBillType', width: 80, hide: true } , { field: 'hsubid', title: 'hsubid', width: 80, hide: true } , { field: 'æåæ°é', title: 'æåæ°é' } , { field: 'æºå客æ·ç¼ç ', title: 'æºå客æ·ç¼ç ', width: 80 } , { field: 'å è£ æ è¯', title: 'å è£ æ è¯', width: 80 } @@ -416,20 +515,20 @@ , { field: 'å·¥ä½ä¸å¿ä»£ç ', title: 'å·¥ä½ä¸å¿ä»£ç ', width: 115 } , { field: 'å·¥ä½ä¸å¿', title: 'å·¥ä½ä¸å¿' } , { field: 'è®¡åæ°é', title: 'è®¡åæ°é' } , { field: 'hmainid', title: 'hmainid', hide: true} , { field: 'hmainid', title: 'hmainid', hide: true } , { field: 'æ¥æ', title: 'æ¥æ', sort: true } , { field: 'åæ®å·', title: 'åæ®å·', width: 150 } , { field: 'hicmointerid', title: 'hicmointerid', hide: true} , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 100} , { field: 'HWorkShopID', title: 'HWorkShopID', hide: true} , { field: 'hicmointerid', title: 'hicmointerid', hide: true } , { field: 'ä»»å¡åå·', title: 'ä»»å¡åå·', width: 100 } , { field: 'HWorkShopID', title: 'HWorkShopID', hide: true } , { field: 'ç产车é´ä»£ç ', title: 'ç产车é´ä»£ç ', width: 115 } , { field: 'ç产车é´', title: 'ç产车é´' } , { field: 'HMaterID', title: 'HMaterID', hide: true} , { field: 'HMaterID', title: 'HMaterID', hide: true } , { field: '产å代ç ', title: '产å代ç ' } , { field: '产ååç§°', title: '产ååç§°' } , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·' } , { field: 'æ¹å·', title: 'æ¹å·' } , { field: 'HUnitID', title: 'HUnitID', hide: true} , { field: 'HUnitID', title: 'HUnitID', hide: true } , { field: 'åä½ä»£ç ', title: 'åä½ä»£ç ' } , { field: 'åä½', title: 'åä½' } , { field: 'ç产æ°é', title: 'ç产æ°é' } @@ -437,11 +536,11 @@ , { field: '计åå®å·¥æ¥æ', title: '计åå®å·¥æ¥æ' } , { field: 'æè¦', title: 'æè¦' } , { field: 'å é¨åæ®å·', title: 'å é¨åæ®å·' } , { field: 'HSupID', title: 'HSupID', hide: true} , { field: 'HSupID', title: 'HSupID', hide: true } , { field: 'å§å¤å å·¥åä½ä»£ç ', title: 'å§å¤å å·¥åä½ä»£ç ' } , { field: 'å§å¤å å·¥åä½', title: 'å§å¤å å·¥åä½' } , { field: 'è¡¨å¤´å¤æ³¨', title: 'è¡¨å¤´å¤æ³¨' } , { field: 'HBillType', title: 'HBillType', hide: true} , { field: 'HBillType', title: 'HBillType', hide: true } , { field: 'è¡å ³é人', title: 'è¡å ³é人' } , { field: 'å ³éç±»å', title: 'å ³éç±»å' } , { field: '表ä½å¤æ³¨', title: '表ä½å¤æ³¨' } @@ -464,10 +563,10 @@ function get_Display(sWhere) { sWhere += " and HPRDORGID=" + sessionStorage["OrganizationID"] + " "; var ajaxLoad = layer.load(); $.ajax({ $.ajax({ url: GetWEBURL() + '/LEMS/MES_Sc_ProcessExchangeBillQuery_Json', type: "GET", data: { "sWhere": sWhere, "user": sessionStorage["HUserName"]}, data: { "sWhere": sWhere, "user": sessionStorage["HUserName"] }, success: function (data1) { if (data1.count == 1) { option.data = data1.data; @@ -482,7 +581,7 @@ layer.close(ajaxLoad); layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); }); DisPlay_HideColumn(); } @@ -631,7 +730,7 @@ $.ajax({ url: GetWEBURL() + '/Xt_grdAlignment_WMES/grdAlignmentWMESList', type: "GET", data: { "HModName": HModName+"_Sec", "user": sessionStorage["HUserName"] }, data: { "HModName": HModName + "_Sec", "user": sessionStorage["HUserName"] }, success: function (data1) { if (data1.data.length != 0) { @@ -841,7 +940,7 @@ , content: '../../车é´ç®¡ç/å·¥åºåºç«æ±æ¥å/Cj_StationOutBill.html?OperationType=2&HBillNo=' + HBillNo + '&HProcNo=' + HProcNo }) } } else { layer.msg('è¯·éæ©ä¸è¡æ°æ®ä¸æ¨ï¼'); } WebTM/views/³µ¼ä¹ÜÀí/¹¤Ðò½øÕ¾½ÓÊÕµ¥/Cj_StationInBill.html
@@ -177,6 +177,7 @@ <div class="layui-col-xs4 layui-inline"> <label class="layui-form-label"><span style="color:red;">*</span>æ¥æ¶äºº</label> <div class="layui-input-inline"> <input type="text" class="layui-input" name="HEmpNumber" id="HEmpNumber"> <input type="text" class="layui-input" name="HEmpName" id="HEmpName" style="float: left; width: 150px; background-color: #efefef4d; display: inline-block;" readonly> <button type="button" class="layui-btn" lay-submit="" lay-filter="HEmployeeID-BT" id="HEmployeeID-BT" style="width: 40px; padding: 0 10px;"> <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i> @@ -976,6 +977,35 @@ } }) }); // $('#HEmpNumber').on('keydown', function (event) { var HEmpNumber = $("#HEmpNumber").val(); if (event.keyCode == 13) { $.ajax({ url: GetWEBURL() + '/Cj_StationInBill/GetMessageByEmpNumber', type: "GET", data: { "HEmpNumber": HEmpNumber }, success: function (data1) { if (data1.count == 1) { $("#HEmpNumber").val(data1.data[0].HNumber); $("#HEmpName").val(data1.data[0].HName); $("#HEmpID").val(data1.data[0].HItemID); layer.alert($("#HEmpID").val()); } else { layer.alert(data1.code + data1.Message, { icon: 5 }); } }, error: function () { layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); } }); } }); //鿩工ä½ä¸å¿å¼¹çª form.on('submit(HWorkingProcedure-BT)', function () {//鿩工ä½ä¸å¿ layer.open({