| | |
| | | </div> |
| | | <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: 30px;padding-left: 0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" 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="HBarCode-BT" class="layui-btn layui_btn_sm" id="HBarCode-BT">ç¡®å®</button> |
| | | </div> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">æ°é</label> |
| | | <label class="layui-form-label" style="width: 30px;padding-left: 0px;">æ¡ç </label> |
| | | </div> |
| | | <div class="layui-col-xs7"> |
| | | <div class="layui-col-xs9"> |
| | | <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width: 30px; margin-left: 8px; padding-left: 0px;">æ°é</label> |
| | | </div> |
| | | <div class="layui-col-xs5"> |
| | | <input type="number" name="HQty" id="HQty" lay-verify="HQty" onkeyup="if(!this.value.match(/^[\+\-]?\d*?\.?\d*?$/)){if(!this.t_value>0){this.value=''}else{this.value=this.t_value;}}else this.t_value=this.value;if(this.value.match(/^(?:[\+\-]?\d+(?:\.\d+)?)?$/))this.o_value=this.value" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | </div> |
| | | <div class="layui-col-xs4"> |
| | | <button type="button" lay-submit="" lay-filter="HBarCode-BT" class="layui-btn" id="HBarCode-BT" style="width: 45px; margin-left: 8px;padding-left:12px">OK</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row" style="margin-top: 5px; margin-bottom: 0px;"> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HSCWHName" id="HSCWHName" lay-verify="HSCWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSCWHID" id="HSCWHID" lay-verify="HSCWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" lay-filter="HSCWHID-BT" class="layui-btn" id="HSCWHID-BT" style="width: 30px; margin-left: 8px;padding-left:8px">...</button> |
| | | </div> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <div class="layui-col-xs3"> |
| | | <label class="layui-form-label" style="width:30px;padding-left:0px;">ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs6"> |
| | | <input type="text" name="HOutStockPlaceName" id="HOutStockPlaceName" lay-verify="HOutStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HOutStockPlaceID" id="HOutStockPlaceID" lay-verify="HOutStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs3"> |
| | | <button type="button" lay-submit="" lay-filter="HSCSpID-BT" class="layui-btn" id="HSCSpID-BT" style="width: 30px; margin-left: 8px;padding-left:8px">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <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: 45px; margin-left: 10px; padding-left: 12px"> |
| | | <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: 45px; margin-left: -5px;padding-left:12px">OK</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-row"> |
| | |
| | | <div class="layui-tab-item"> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HWHName" id="HWHName" lay-verify="HWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HWHID" id="HWHID" lay-verify="HWHID" value="0" autocomplete="off" class="layui-input"> |
| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HStockPlaceName" id="HStockPlaceName" lay-verify="HStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSpID-BT" class="layui-btn" id="HSpID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HSCWHName" id="HSCWHName" lay-verify="HSCWHName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HSCWHID" id="HSCWHID" lay-verify="HSCWHID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSCWHID-BT" class="layui-btn" id="HSCWHID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10"> |
| | | <input type="text" name="HOutStockPlaceName" id="HOutStockPlaceName" lay-verify="HOutStockPlaceName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();"> |
| | | <input type="hidden" name="HOutStockPlaceID" id="HOutStockPlaceID" lay-verify="HOutStockPlaceID" value="0" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | <div class="layui-col-xs2"> |
| | | <button type="button" lay-submit="" lay-filter="HSCSpID-BT" class="layui-btn" id="HSCSpID-BT">...</button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <select name=" HStockOutOrgID" id="HStockOutOrgID" disabled> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ç»ç»</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <select name=" HStockInOrgID" id="HStockInOrgID" disabled> |
| | | <!--å¨ææ¸²æç»ç»--> |
| | | </select> |
| | |
| | | </div> |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HWHName_B" id="HWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°å
¥ä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HSPName_B" id="HSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding: 0px; margin: 0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºä»åº</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HSCWHName_B" id="HSCWHName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item" style="padding:0px;margin:0px"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-xs2"> |
| | | <div class="layui-col-xs2" style="margin-left:-10px"> |
| | | <label class="layui-form-label" style="width:60px;padding-left:0px;">è°åºä»ä½</label> |
| | | </div> |
| | | <div class="layui-col-xs10"> |
| | | <div class="layui-col-xs10" style="margin-left:10px"> |
| | | <input type="text" name="HSCSPName_B" id="HSCSPName_B" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" disabled> |
| | | </div> |
| | | </div> |
| | |
| | | <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> |
| | |
| | | } |
| | | else { |
| | | layer.msg(d.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { parent.location.href = "../../../views/index_Mobile.html"; }); |
| | | } |
| | | }, |
| | |
| | | $("#HStockOutOrgID").val(sessionStorage["OrganizationID"]); |
| | | $("#HBillType").val("1251"); |
| | | $("#HRedBlueFlag").val("false"); |
| | | if (sessionStorage["HSCWHSPFlag"]) { |
| | | if (sessionStorage["HSCWHID"] != 0 && sessionStorage["HSCWHSPFlag"] == 'false') { |
| | | $("#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"] == 'false') { |
| | | $("#HOutStockPlaceID").val("0"); |
| | | $("#HOutStockPlaceName").val(""); |
| | | $("#HOutStockPlaceName").attr("disabled", "disabled"); |
| | |
| | | , totalRow: true |
| | | , height: 'full-60' |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limit: 200 |
| | | }; |
| | | |
| | | //æºåå¯¹åºææ«ææ¡ç |
| | |
| | | //æ¾ç¤ºè¡¨ä½æç» |
| | | DisBillEntryList(); |
| | | HSourceFlag = true; |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '2'); |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '3'); |
| | | } |
| | | else { |
| | | //è·åæå¤§åæ®IDãåæ®å· |
| | |
| | | HBillNo = $('#HBillNo').val() |
| | | } |
| | | else { |
| | | layer.msg(d.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(d.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null }//åæ¶èµæº |
| | |
| | | if (d.data[0].HMulSourceBill == 0) { |
| | | $("#HSourceBillNo").attr("disabled", "disabled"); |
| | | $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | if (d.data[0].HDeptID != 0) { |
| | | $("#HDeptID").val(d.data[0].HDeptID); |
| | |
| | | $("#HOutStockPlaceName").removeAttr("disabled"); |
| | | $('#HSCSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg("è°åºä»åºæ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSCWHName").select(); |
| | | $("#HSCWHName").focus(); |
| | |
| | | $("#HOutStockPlaceName").removeAttr("disabled"); |
| | | $('#HSCSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '2'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | $("#HOutStockPlaceName").removeAttr("disabled"); |
| | | $('#HSCSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HSCWHName").select(); |
| | | $("#HSCWHName").focus(); |
| | |
| | | $("#HOutStockPlaceID").val("0"); |
| | | $("#HOutStockPlaceName").val(""); |
| | | layer.msg("è°åºä»ä½æ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HOutStockPlaceName").select(); |
| | | $("#HOutStockPlaceName").focus(); |
| | |
| | | $("#HOutStockPlaceID").val(result.data[0].HItemID); |
| | | $("#HSCWHName").val(result.data[0].HWhName); |
| | | $("#HSCWHID").val(result.data[0].HWHID); |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '2'); |
| | | //å
æ æ¾ç¤ºå°æ¡ç ä¸ |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | $("#HOutStockPlaceID").val("0"); |
| | | $("#HOutStockPlaceName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HOutStockPlaceName").select(); |
| | | $("#HOutStockPlaceName").focus(); |
| | |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg("è°å
¥ä»åºæ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HWHName").select(); |
| | | $("#HWHName").focus(); |
| | |
| | | $("#HStockPlaceName").removeAttr("disabled"); |
| | | $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HWHName").select(); |
| | | $("#HWHName").focus(); |
| | |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | layer.msg("è°å
¥ä»ä½æ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HStockPlaceName").select(); |
| | | $("#HStockPlaceName").focus(); |
| | |
| | | $("#HStockPlaceID").val("0"); |
| | | $("#HStockPlaceName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HStockPlaceName").select(); |
| | | $("#HStockPlaceName").focus(); |
| | |
| | | $("#HDeptID").val("0"); |
| | | $("#HDeptName").val(""); |
| | | layer.msg("é¨é¨æ¡ç 为空ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HDeptName").select(); |
| | | $("#HDeptName").focus(); |
| | |
| | | $("#HDeptID").val("0"); |
| | | $("#HDeptName").val(""); |
| | | layer.msg(result.Message, { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HDeptName").select(); |
| | | $("#HDeptName").focus(); |
| | |
| | | , shade: 0.6 //é®ç½©éæåº¦ |
| | | , maxmin: true //å
许å
¨å±æå°å |
| | | , anim: 0 //0-6çå¨ç»å½¢å¼ï¼-1ä¸å¼å¯ |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList.html', 'yes'] |
| | | , content: ['../../../views/Baseset/åºç¡èµæ/Gy_DepartmentList_PDA.html?HStockOrgID=' + HStockOrgID + '&Type=HDept1', 'yes'] |
| | | , resize: false |
| | | , cancel: function () { |
| | | //$(".layui-btn").removeClass("layui-btn-disabled"); |
| | |
| | | });//æ°å¢ |
| | | } |
| | | else { |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null },//åæ¶èµæº |
| | | error: function (err) { |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("é误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | |
| | | } |
| | | else { |
| | | playSound(); |
| | | layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }, |
| | | complete: function (XHR, TS) { XHR = null },//åæ¶èµæº |
| | | error: function (err) { |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg('é误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | } |
| | | }); |
| | | layer.closeAll("loading"); |
| | |
| | | }) |
| | | |
| | | //#endregion |
| | | |
| | | //#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 |
| | | |
| | |
| | | if (result.data.hMulSourceFlagField == 0) { |
| | | $("#HSourceBillNo").attr("disabled", "disabled"); |
| | | $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | $("#HStockStyle").val(result.data.hStockStyleField); |
| | | $("#HStockStyle").attr("disabled", "disabled"); |
| | |
| | | form.render('select'); |
| | | HStockInOrgID = $('#HStockInOrgID').val() |
| | | HStockOutOrgID = $('#HStockOutOrgID').val() |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '2'); |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '3'); |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | | //è°å
¥è°åºç»ç»ä¸ç»å
¥ç»ç»ä¸åæ¶ï¼æ¸
空è°å
¥è°åºä»åºä»ä½æ°æ® |
| | |
| | | else { |
| | | playSound(); |
| | | layer.msg(result.Message, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '1'); |
| | | $("#HSourceBillNo").select(); |
| | |
| | | if (sBarCode == "") { |
| | | playSound(); |
| | | layer.msg("è¯·æ«æè¦å é¤çæ¡ç ", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | else { |
| | | playSound(); |
| | | layer.msg(data.Message, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | error: function (err) { |
| | | playSound(); |
| | | layer.msg('é误' + err, { |
| | | icon: 2, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 2, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | if (sBarCode == '') { |
| | | playSound(); |
| | | layer.msg("æ¡ç 为空ï¼è¯·æ«ææ¡ç ï¼", { |
| | | icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | 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) { |
| | |
| | | $("#HOutStockPlaceName").removeAttr("disabled"); |
| | | $('#HSCSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//æé®æ¢å¤æ£å¸¸ç¶æ |
| | | } |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '2'); //è·³è½¬é¡µç¾ |
| | | return;//ç»æ |
| | | } |
| | | else if (result.data.hBarTypeField == 'ä»ä½æ¡ç ') { |
| | |
| | | $("#HOutStockPlaceID").val(result.data.hSPIDField); |
| | | $("#HSCWHName").val(result.data.hWhNameField); |
| | | $("#HSCWHID").val(result.data.hWhIDField); |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '2');//è·³è½¬é¡µç¾ |
| | | return;//ç»æ |
| | | } |
| | | else if (result.data.hBarTypeField == 'é¨é¨æ¡ç ') { |
| | |
| | | if (result.data.hMulSourceFlagField == 0) { |
| | | $("#HSourceBillNo").attr("disabled", "disabled"); |
| | | $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | } |
| | | $("#HStockStyle").val(result.data.hStockStyleField); |
| | | $("#HStockStyle").attr("disabled", "disabled"); |
| | |
| | | $("#HSourceBillNo").val(""); |
| | | $("#HSourceBillNo").attr("disabled", "disabled"); |
| | | $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//æé®ç¦ç¨ |
| | | $("#HStockStyle").attr("disabled", "disabled"); |
| | | element.tabChange('tab-Kf_MoveStockStepInBill_PDA', '3'); |
| | | } |
| | |
| | | else { |
| | | playSound(); |
| | | layer.msg(result.Message, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | error: function (err) { |
| | | playSound(); |
| | | layer.msg("é误ï¼" + err, { |
| | | icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º", btn: ['确认'] |
| | | }, function () { |
| | | $("#HBarCode").select(); |
| | | $("#HBarCode").focus(); |
| | |
| | | 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 }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 120 }); |
| | | break; |
| | | default: |
| | | |
| | | if (data[i].name == 'æ°é' || data[i].name == 'æºåæ°é' || data[i].name == 'æ¡ç 个æ°') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center', totalRow: true }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', totalRow: true }); |
| | | } else if (data[i].name == 'ç©æåç§°' || data[i].name == 'è§æ ¼åå·') { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 180 }); |
| | | } else { |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'center' }); |
| | | col.push({ field: data[i].id, title: data[i].name, align: 'left', width: 150 }); |
| | | } |
| | | } |
| | | } |
| | |
| | | $("#HDeptID").val(obj[0].HItemID); |
| | | } |
| | | } |
| | | //ç¹å»æé®éæ©å è¿åæºååå· |
| | | function GetHSourceBillValue(obj) { |
| | | if (obj.length > 0) { |
| | | $("#HSourceBillNo").val(obj[0].åæ®å·); |
| | | $("#HSourceBillListCtl").val("1"); |
| | | } |
| | | } |
| | | |
| | | //åæ®ä¸ä¼ å夿 |
| | | function AllowLoadData(sSubStr) { |
| | | if (HInterID == 0) { |
| | | layer.msg("åæ®å
ç è·å失败ï¼é误çåæ®å
ç ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("åæ®å
ç è·å失败ï¼é误çåæ®å
ç ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (HBillNo == '') { |
| | | layer.msg("åæ®å·è·å失败ï¼é误çåæ®å·ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("åæ®å·è·å失败ï¼é误çåæ®å·ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | if (sSubStr.length == 0) { |
| | | layer.msg("æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("æ²¡ææ«ç ä¿¡æ¯ï¼è¯·å
æ«ææ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | //夿æ¯å¦å·²æ«æç©ææ¡ç |
| | |
| | | } |
| | | } |
| | | if (s == 0) { |
| | | layer.msg("æ²¡ææ«æç©ææ¡ç ï¼è¯·å
æ«æç©ææ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | layer.msg("æ²¡ææ«æç©ææ¡ç ï¼è¯·å
æ«æç©ææ¡ç ï¼ç¡®è®¤æ 误ååæäº¤ï¼", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨æç¤º" }); |
| | | return false; |
| | | } |
| | | } |