yxj
2023-11-19 25375e2b510ea31d885b2bf05142271b151e342c
WebTM/views/WMSɨÂëÄ£¿é/ÏúÊÛ³ö¿â/Kf_SellOutBill_QiaoYi_PDA.html
@@ -122,7 +122,8 @@
                                            </div>
                                            <div class="layui-col-xs10">
                                                <div class="layui-col-xs12">
                                                    <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">
                                                    <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input" style="border-radius: 5px;background-color:#efefef4d;" readonly>
                                                    <!--<input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" onkeyup="value=value.replace(/\s+/g,'')" autocomplete="off" class="layui-input" onfocus="this.select();">-->
                                                    <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" value="0" autocomplete="off" class="layui-input">
                                                </div>
                                                <!--<div class="layui-col-xs1">
@@ -233,7 +234,6 @@
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layer-footer" style="z-index: 10; position: fixed; text-align: center; bottom: 0; width:100%; height:50px">
@@ -377,7 +377,7 @@
                    , limit: 3000
                    , totalRow: true
                    , cols: [[
                        { field: 'HBarCode', title: '条码编号', width: 220, totalRow: true }
                        { field: 'HBarCode', title: '条码编号', width: 220 }
                        , { field: 'HQty', title: '数量', width: 80, totalRow: true }
                        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                        , { field: 'HMaterName', title: '物料名称', width: 150 }
@@ -459,6 +459,8 @@
                    success: function (d) {
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        HInterID = $('#HInterID').val()
                        HBillNo = $('#HBillNo').val()
                        $("#HMainSourceBillType").val(d.data[0].HSourceBillType == null ? "1402" : d.data[0].HSourceBillType);
                        //获取源单类型
                        if (d.data[0].HSourceBillType == "1402") {
@@ -844,7 +846,12 @@
                                    layer.confirm(data.Message, {
                                        icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增','关闭'],
                                        btn2: function () {
                                            parent.location.href = "../../../views/index_Mobile.html";
                                            if (OperationType == 2) {
                                                parent.location.href = "../../WMS扫码模块/销售出库/Kf_SellOutBillList_QiaoYi_PDA.html";
                                            }
                                            else {
                                                parent.location.href = "../../../views/index_Mobile.html";
                                            }
                                        }//关闭
                                    }
                                        , function () {
@@ -935,7 +942,6 @@
                                    layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            });
                        layer.close(index)
                        layer.closeAll("loading");
                    })
                }
@@ -950,7 +956,13 @@
            form.on('submit(cmdCancel)', function () {
                layer.confirm('您确定要退出吗?', { icon: 3, title: '提示' }, function (index) {
                    parent.location.href = "../../../views/index_Mobile.html";
                    if (OperationType == 2) {
                        var index = parent.layer.getFrameIndex(window.name);
                        parent.layer.close(index);
                    }
                    else {
                        parent.location.href = "../../../views/index_Mobile.html";
                    }
                });
            })
@@ -1013,24 +1025,20 @@
            //扫描源单条码
            $('#HSourceBillNo').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    layer.load(3)
                    GetMeesageBySourceBillNo();
                    layer.closeAll("loading");
                }
            });
            //源单按钮
            form.on('submit(HSourceBillNo-BT)', function (data) {
                layer.load(3)
                GetMeesageBySourceBillNo();
                layer.closeAll("loading");
            });
            //扫描源单条码
            function GetMeesageBySourceBillNo(obj) {
                var HSourceBillNo = $('#HSourceBillNo').val()
                var HSourceBillType = $("#HMainSourceBillType").val()
                layer.load(3)
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + "/WEBSController/Get_SourceBarCode_SellOut_Json",
@@ -1065,6 +1073,7 @@
                        }
                    }
                });
                layer.closeAll("loading");
            }
            //#endregion
@@ -1075,19 +1084,15 @@
            //扫描条码
            $('#HBarCode').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    layer.load(3)
                    GetMeesageByBarCode();
                    $("#HBarCode").focus();     //获取光标
                    layer.closeAll("loading");
                }
            });
            //条码按钮
            form.on('submit(HBarCode-BT)', function (data) {
                layer.load(3)
                GetMeesageByBarCode();
                $("#HBarCode").focus();     //获取光标
                layer.closeAll("loading");
            });
            //扫条码
@@ -1101,6 +1106,7 @@
                var sSourceBillNo = $("#HSourceBillNo").val()
                var sSourceBillType = $("#HMainSourceBillType").val()
                layer.load(3)
                if (HDeleteFlag == "*") {
                    if (sBarCode == "") {
                        layer.msg("请扫描要删除的条码", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
@@ -1253,6 +1259,7 @@
                        }
                    });
                }
                layer.closeAll("loading");
            }
            //#endregion
@@ -1282,7 +1289,7 @@
                            }
                            //在列表左边添加勾选框
                            col.push({ type: 'checkbox', fixed: 'left', totalRowText: '合计' });
                            col.push({ type: 'radio', fixed: 'left', totalRowText: '合计' });
                            for (var i = 0; i < data.length; i++) {
                                if ($.inArray(data[i].name, titleData) > -1) {
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
@@ -1307,17 +1314,6 @@
                                }
                            }
                            columns = col;
                            //设置赋值列宽
                            var colWidth = getColumnsWidth();
                            if (colWidth == "" || colWidth == []) {
                            }
                            else {
                                $.each(columns, function (x, m) {
                                    m["width"] = colWidth[x];
                                });
                            }
                            listOption.cols = [columns];
                            listOption.data = result.data.Materlist;
                            listOption.totalRow = true;
@@ -1332,35 +1328,6 @@
                    }
                });
            }
            //#region èŽ·å–åˆ—å®½
            function getColumnsWidth() {
                var result = [];
                var colNum = $(".layui-table-header").find("tr").eq(0).find("th").length;
                //获取列宽
                $.ajax({
                    type: "Get",
                    url: GetWEBURL() + '/tb_CellWidth/GetMouldScrapInHouseCellWidthList',
                    async: false,
                    dataType: "json",
                    data: { "colNum": colNum, "Name": HModName },
                    success: function (data1) {
                        if (data1.code == 1) {
                            result = data1.data;
                        }
                        else if (data1.code == -1) {
                        }
                        else {
                            layer.alert(data1.Message, { icon: 5 });
                        }
                    }, error: function (e) {
                        layer.alert(e.Message, { icon: 5 });
                    }
                });
                return result;
            }
            //#endregion
            //#endregion