yxj
2024-10-12 0c23a8cef58281f3ad6aca0fdb14b393a1daa6f5
WebTM/views/WMSɨÂëÄ£¿é/Éú²úµ÷²¦/Kf_MoveStockStepOutBill_PDA.html
@@ -77,11 +77,18 @@
                                            <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">
@@ -101,7 +108,7 @@
                                                <label class="layui-form-label" style="width:60px;padding-left:0px;">调拨类型</label>
                                            </div>
                                            <div class="layui-col-xs9">
                                                <select name=" HStockStyle" id="HStockStyle"disabled>
                                                <select name=" HStockStyle" id="HStockStyle" disabled>
                                                    <option value="组织内调拨">组织内调拨</option>
                                                    <option value="跨组织调拨">跨组织调拨</option>
                                                </select>
@@ -245,7 +252,7 @@
                                                <label class="layui-form-label" style="width:60px;padding-left:0px;">调出组织</label>
                                            </div>
                                            <div class="layui-col-xs10">
                                                <select name=" HStockOutOrgID" id="HStockOutOrgID"disabled>
                                                <select name=" HStockOutOrgID" id="HStockOutOrgID" disabled>
                                                    <!--动态渲染组织-->
                                                </select>
                                            </div>
@@ -257,7 +264,7 @@
                                                <label class="layui-form-label" style="width:60px;padding-left:0px;">调入组织</label>
                                            </div>
                                            <div class="layui-col-xs10">
                                                <select name=" HStockInOrgID" id="HStockInOrgID"disabled>
                                                <select name=" HStockInOrgID" id="HStockInOrgID" disabled>
                                                    <!--动态渲染组织-->
                                                </select>
                                            </div>
@@ -409,6 +416,7 @@
                    <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>
@@ -539,7 +547,7 @@
                $("#HStockOutOrgID").val(sessionStorage["OrganizationID"]);
                $("#HBillType").val("1250");
                $("#HRedBlueFlag").val("false");
                if (sessionStorage["HSCWHSPFlag"]) {
                if (sessionStorage["HSCWHID"] != 0 && sessionStorage["HSCWHSPFlag"]) {
                    $("#HStockPlaceID").val("0");
                    $("#HStockPlaceName").val("");
                    $("#HStockPlaceName").attr("disabled", "disabled");
@@ -551,7 +559,7 @@
                    $("#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");
@@ -1558,6 +1566,42 @@
            //#endregion
            //#region æºå•选择
            form.on('submit(cmdHSourceBillNo)', function () {
                var HSourceTitle = "";
                var HSourceBillType = $("#HMainSourceBillType").val()
                if (HSourceBillType == '1402') {
                    HSourceTitle = "发货通知单";
                }
                else if (HSourceBillType == '1243') {
                    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 æ‰«ææºå•条码
            //扫描源单条码
@@ -1780,7 +1824,7 @@
                    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) {
@@ -2146,6 +2190,13 @@
                $("#HSupID").val(obj[0].HItemID);
            }
        }
        //点击按钮选择后   è¿”回源单单号
        function GetHSourceBillValue(obj) {
            if (obj.length > 0) {
                $("#HSourceBillNo").val(obj[0].单据号);
                $("#HSourceBillListCtl").val("1");
            }
        }
        //单据上传前判断
        function AllowLoadData(sSubStr) {