| | |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æµè½¬å¡å·</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSourceBillNo" id="HSourceBillNo" lay-verify="HSourceBillNo" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | </div> |
| | | <!--<div class="layui-col-xs2" style="float: right;"> |
| | | <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT" style="width: 45px; margin-left: -5px;padding-left:12px">OK</button> |
| | | </div>--> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æ¥æ</label> |
| | | </div> |
| | | <div class="layui-col-xs9"> |
| | |
| | | |
| | | <!--éèåæ®µ--> |
| | | <input type="hidden" name="HBillType" id="HBillType"> |
| | | <input type="hidden" name="HMainSourceBillNo" id="HMainSourceBillNo" value=""> |
| | | <!--失败æç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | |
| | | table.render(LowerListOption); |
| | | |
| | | //å
æ é»è®¤å¨æ¡ç ä½ç½®ä¸ |
| | | var pFocus = $("#HBarCode"); |
| | | var pFocus = $("#HSourceBillNo"); |
| | | pFocus.select(); |
| | | pFocus.focus(); //è·åå
æ |
| | | } |
| | |
| | | } |
| | | }); |
| | | |
| | | //æ«ææºåæ¡ç |
| | | $('#HSourceBillNo').on('keydown', function (event) { |
| | | if (event.keyCode == 13) { |
| | | GetMeesageBySourceBillNo(); |
| | | } |
| | | }); |
| | | |
| | | //æ«æ¡ç |
| | | function GetMeesageByBarCode(obj) { |
| | | //ä»åºãä»ä½ææ¬æ¡ä¸ºç©ºæ¶ï¼æ¸
空对åºID |
| | |
| | | } |
| | | } |
| | | |
| | | //æ«ææºåæ¡ç |
| | | function GetMeesageBySourceBillNo(obj) { |
| | | var HSourceBillNo = $('#HSourceBillNo').val() |
| | | if (HSourceBillNo == '') { |
| | | playSound(); |
| | | layer.msg("æµè½¬å¡å·ä¸è½ä¸ºç©ºï¼è¯·æ«ææµè½¬å¡æ¡ç ï¼", { |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSourceBillNo").select(); |
| | | $("#HSourceBillNo").focus(); |
| | | }); |
| | | return; |
| | | } |
| | | layer.load(3) |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/KF_ICInventory_WorkShop/SearchHBarCode", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "HBillNo": HBillNo, "user": sessionStorage["HUserName"], "HOrgID": sessionStorage["OrganizationID"] }, |
| | | success: function (result) { |
| | | if (result.count == 1) { // 说æéªè¯æåäºï¼ |
| | | playSound_OK(); |
| | | $("#HMainSourceBillNo").val(HBillNo); |
| | | $("#HSourceBillNo").attr("disabled", "disabled"); |
| | | //$('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); //è·åå
æ |
| | | |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(result.Message, { |
| | | icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | |
| | | $("#HSourceBillNo").val(""); |
| | | $("#HSourceBillNo").select(); |
| | | $("#HSourceBillNo").focus(); |
| | | }); |
| | | } |
| | | }, |
| | | error: function (err) { |
| | | playSound(); |
| | | $("#HSourceBillNo").val(""); |
| | | $("#HSourceBillNo").select(); |
| | | $("#HSourceBillNo").focus(); |
| | | layer.msg("æ¥å£é误" + err); |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | | }); |
| | | layer.closeAll("loading"); |
| | | } |
| | | |
| | | //#endregion |
| | | |
| | | |