| | |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">æºååå·</label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <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"> |
| | | <button type="button" lay-submit="" lay-filter="HSourceBillNo-BT" class="layui-btn" id="HSourceBillNo-BT">ç¡®å®</button> |
| | | <div class="layui-col-xs9"> |
| | | <div class="layui-col-xs8"> |
| | | <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"> |
| | | <button type="button" lay-submit="" lay-filter="cmdHSourceBillNo" class="layui-btn" id="cmdHSourceBillNo" style="width:55px;"> |
| | | <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-2px;"></i> |
| | | </button> |
| | | </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: 40px; margin-left: 0px;padding-left:10px">OK</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | <input type="hidden" name="HBillType" id="HBillType"> |
| | | <input type="hidden" name="HBillerID" id="HBillerID"> |
| | | <input type="hidden" name="HRedBlueFlag" id="HRedBlueFlag"> |
| | | <input type="hidden" name="HSourceBillListCtl" id="HSourceBillListCtl"> |
| | | <!--失败æç¤ºé³--> |
| | | <div id="" style="display:none;"> |
| | | <audio id="cs" hidden controls> |
| | |
| | | $("#HStockOutOrgID").val(sessionStorage["OrganizationID"]); |
| | | $("#HBillType").val("1251"); |
| | | $("#HRedBlueFlag").val("false"); |
| | | if (sessionStorage["HSCWHSPFlag"]) { |
| | | if (sessionStorage["HSCWHID"] != 0 && sessionStorage["HSCWHSPFlag"]) { |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | $("#HStockPlaceName").attr("disabled", "disabled"); |
| | |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | if (sessionStorage["HWhSPFlag"]) { |
| | | if (sessionStorage["HWHID"] != 0 && sessionStorage["HWhSPFlag"]) { |
| | | $("#HOutStockPlaceID").val("0"); |
| | | $("#HOutStockPlaceName").val(""); |
| | | $("#HOutStockPlaceName").attr("disabled", "disabled"); |
| | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æºåéæ© |
| | | |
| | | form.on('submit(cmdHSourceBillNo)', function () { |
| | | var HSourceTitle = ""; |
| | | var HSourceBillType = $("#HMainSourceBillType").val() |
| | | if (HSourceBillType == '1250') { |
| | | HSourceTitle = "忥å¼è°åºå"; |
| | | } |
| | | |
| | | layer.open({ |
| | | type: 2 |
| | | , area: ['100%', '100%'] |
| | | , title: HSourceTitle + 'å表'//æ é¢ |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/å
Œ
±é¡µé¢/Kf_SourceBillEditDlg_PDA.html?HBillType =' + HBillType + '&HSourceBillType =' + HSourceBillType + '&HStockOrgID =' + HStockOrgID, 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | | } |
| | | , end: function () { |
| | | if ($("#HSourceBillListCtl").val() == '1') { |
| | | GetMeesageBySourceBillNo(); |
| | | $("#HSourceBillListCtl").val("0"); //ç¨äºåºåæºåå表çé¢å
³éç¶æï¼1为è¿åï¼0为éåºï¼ |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ«ææºåæ¡ç |
| | | |
| | | //æ«ææºåæ¡ç |
| | |
| | | layer.load(3) |
| | | $.ajax({ |
| | | type: "GET", |
| | | url: GetWEBURL() + "/WEBSController/get_BarCode_MoveStock_Json", |
| | | url: GetWEBURL() + "/WEBSController/get_BarCode_MoveStock_New_Json", |
| | | async: false, //asyncç¨äºæ§å¶ï¼falseï¼åæ¥åï¼trueï¼å¼æ¥ï¼é»è®¤çæ¯trueï¼å³è¯·æ±é»è®¤çæ¯å¼æ¥è¯·æ± |
| | | data: { "sBarCode": sBarCode, "HInterID": HInterID, "HBillType": HBillType, "HBillNo": HBillNo, "HMaker": HMaker, "HWhID": sHWHID, "HSPID": sHSPID, "HSCWHID": sHSCWHID, "HSCSPID": sHSCSPID, "HQty": sHQty, "SourceFlag": HSourceFlag, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sSourceBillType, "HStockInOrgID": HStockInOrgID, "HStockOutOrgID": HStockOutOrgID, "HScanStyle": "", "HCustom1": "", "HCustom2": "" }, |
| | | success: function (result) { |
| | |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åæºååå· |
| | | function GetHSourceBillValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HSourceBillNo").val(obj[0].åæ®å·); |
| | | $("#HSourceBillListCtl").val("1"); |
| | | } |
| | | } |
| | | |
| | | //åæ®ä¸ä¼ å夿 |
| | | function AllowLoadData(sSubStr) { |