PDA登入界面模块登入方法修改,其他入库扫码模块修改,选择供应商按钮弹出框新增等
7个文件已修改
1个文件已添加
756 ■■■■ 已修改文件
WebTM/WebTM.csproj 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_DepartmentList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_EmployeeList.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/Baseset/基础资料/Gy_SupplierListNew.html 113 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/其他入库/Kf_OtherInBillList_PDA.html 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/其他入库/Kf_OtherInBill_PDA.html 479 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/index_Mobile.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/user/login_pda.html 147 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj
@@ -123,6 +123,7 @@
    <Content Include="views\Baseset\基础资料\Gy_ClassTimePrjList.html" />
    <Content Include="views\Baseset\基础资料\Gy_ConveyCompList.html" />
    <Content Include="views\Baseset\基础资料\Gy_ConveyTypeList.html" />
    <Content Include="views\Baseset\基础资料\Gy_SupplierListNew.html" />
    <Content Include="views\Baseset\基础资料\Gy_EquipFileBillMainList.html" />
    <Content Include="views\Baseset\基础资料\Gy_GetProcNoList.html" />
    <Content Include="views\Baseset\基础资料\Gy_InspectInstruMentList.html" />
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_DepartmentList.html
@@ -68,7 +68,7 @@
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'checkbox' }
                  { type: 'radio' }
                , { field: 'HItemID', title: '部门ID', hide: true }
                , { field: 'HNumber', title: '部门代码' }
                , { field: 'HName', title: '部门名称', sort: true }
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_EmployeeList.html
@@ -122,7 +122,7 @@
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'checkbox' }
                  { type: 'radio' }
                , { field: 'HItemID', width: 150, title: '职员ID', hide: true }
                , { field: 'HNumber', width: 150, title: '职员代码' }
                , { field: 'HName', width: 150, title: '职员名称', sort: true }
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Gy_SupplierListNew.html
New file
@@ -0,0 +1,113 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>供应商列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="../../../layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../layuiadmin/style/admin.css" media="all">
</head>
<body>
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-body" style="padding: 15px;">
                <form class="layui-form" action="" lay-filter="component-form-group">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">过滤列</label>
                            <div class="layui-input-inline">
                                <input type="text" name="Value" id="Value" lay-verify="Value" autocomplete="off" placeholder="请输入过滤列" class="layui-input">
                            </div>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HQuery">快速查询</button>
                            <button type="button" lay-submit="" class="layui-btn" lay-filter="FH">返回</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <table class="layui-hide" id="mainTable"></table>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        var params = getUrlVars();
        var HStockOrgID = params[params[0]];
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
            //快速查询
            form.on('submit(HQuery)', function () {
                RoadQuery($('#Value').val());
            });
            //返回
            form.on('submit(FH)', function () {
                var checkStatus = table.checkStatus('mainTable')
                 , data = checkStatus.data;
                parent.GetHSupValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#mainTable'
                , data: []
                , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HItemID', width: 150, title: '供应商ID', hide: true }
                    , { field: 'HNumber', width: 150, title: '供应商代码' }
                    , { field: 'HName', width: 150, title: '供应商名称', sort: true }
                ]]
                , page: true
                , limits: [50, 500, 5000, 50000],
                limit: 50
            });
            ///加载显示数据
            function RoadQuery(Where) {
                var Value = Where;
                if (Value == null) {
                    Value = '';
                }
                $.ajax({
                    type: "get",
                    url: GetWEBURL() + "/WEBSController/GetSupplierList_Json",
                    async: true,
                    data: { "Supplier": Value, "HStockOrgID": HStockOrgID},
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                        table.reload('mainTable', {
                            data: ajaxReturnData
                            , height: 'full-10'
                            , loading: false
                            , done: function (index, res) {
                            }
                        });
                    },
                    error: function (result) {
                        console.log(result);
                    }
                });
            };
        });
    </script>
</body>
</html>
WebTM/views/WMSɨÂëÄ£¿é/ÆäËûÈë¿â/Kf_OtherInBillList_PDA.html
@@ -209,8 +209,8 @@
                                , shade: 0.6 //遮罩透明度
                                , maxmin: false //允许全屏最小化
                                , anim: 0 //0-6的动画形式,-1不开启
                                //, content: ['../../WMS扫码模块/其他入库/Kf_OtherInBill_PDA.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes']
                                , content: ['../../验收入库/其他入库/Kf_OtherInBill_Fast.html?linterid=' + data[0].HInterID, 'yes']
                                , content: ['../../WMS扫码模块/其他入库/Kf_OtherInBill_PDA.html?OperationType=2&HInterID=' + data[0].HInterID, 'yes']
                                //, content: ['../../验收入库/其他入库/Kf_OtherInBill_Fast.html?linterid=' + data[0].HInterID, 'yes']
                                , resize: false
                                , cancel: function () {
                                    $(".layui-btn").removeClass("layui-btn-disabled");
WebTM/views/WMSɨÂëÄ£¿é/ÆäËûÈë¿â/Kf_OtherInBill_PDA.html
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>其他入库</title>
    <title>其他入库单</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -31,27 +31,25 @@
                    </div>
                    <div class="layui-form-item" style="padding:15px;margin:0px">
                        <div class="layui-row">
                            <div class="layui-col-xs6">
                                <div class="layui-col-xs2">
                                    <label class="layui-form-label" style="width: 30px;padding-left: 0px;">条码</label>
                                </div>
                                <div class="layui-col-xs10">
                                    <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-xs3">
                                <label class="layui-form-label" style="width: 30px;padding-left: 0px;">条码</label>
                            </div>
                            <div class="layui-col-xs5">
                            <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-xs3">
                                    <label class="layui-form-label" style="width:30px;padding-left:0px;">数量</label>
                                </div>
                                <div class="layui-col-xs7">
                                    <input type="text" 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-xs2">
                                    <button type="button" lay-submit="" lay-filter="HBarCode-BT" class="layui-btn layui_btn_sm" id="HBarCode-BT">确定</button>
                                    <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>
                        </div>
                        <div class="layui-tab layui-col-xs12" lay-filter="tab-Kf_OtherInBill_PDA">
                        <div class="layui-tab layui-col-xs12" style="margin-top:5px;" lay-filter="tab-Kf_OtherInBill_PDA">
                            <ul class="layui-tab-title" lay-filter="tab-all">
                                <li lay-id="1" style="padding:1px;">选择源单</li>
                                <li lay-id="2" style="padding:1px;">表头信息</li>
@@ -206,6 +204,22 @@
                                                </div>
                                                <div class="layui-col-xs2">
                                                    <button type="button" lay-submit="" lay-filter="HDeptID-BT" class="layui-btn" id="HDeptID-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:45px;padding-left:0px;">供应商</label>
                                            </div>
                                            <div class="layui-col-xs10">
                                                <div class="layui-col-xs10">
                                                    <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-xs2">
                                                    <button type="button" lay-submit="" lay-filter="HSupID-BT" class="layui-btn" id="HSupID-BT">...</button>
                                                </div>
                                            </div>
                                        </div>
@@ -414,8 +428,6 @@
                //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、组织等) new
                $("#HWHID").val(sessionStorage["HWHID"]);
                $("#HWHName").val(sessionStorage["HWHName"]);
                $("#HStockPlaceID").val(sessionStorage["HSPID"]);
                $("#HStockPlaceName").val(sessionStorage["HSPName"]);
                $("#HDeptID").val(sessionStorage["HDeptID"]);
                $("#HDeptName").val(sessionStorage["HDept"]);
                $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
@@ -424,21 +436,48 @@
                $("#HKeeperName").val(sessionStorage["HKeeper"]);
                $("#HMaker").val(sessionStorage["HUserName"]);
                $("#HDate").val(Format(new Date(), "yyyy-MM-dd"));
                $("#HBillerID").val(sessionStorage["HBillerID"]);
                $("#HStockOrgID").val(sessionStorage["OrganizationID"]);
                $("#HStockOrgName").val(sessionStorage["Organization"]);
                $("#HBillType").val("1203");
                $("#HBillerID").val(sessionStorage["HBillerID"]);
                $("#HRedBlueFlag").val("false");
                if (sessionStorage["HWhSPFlag"]) {
                    $("#HStockPlaceID").val("0");
                    $("#HStockPlaceName").val("");
                    $("#HStockPlaceName").attr("readonly", "readonly");
                    $('#HSpID-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                }
                else {
                    $("#HStockPlaceID").val(sessionStorage["HSPID"]);
                    $("#HStockPlaceName").val(sessionStorage["HSPName"]);
                    $("#HStockPlaceName").removeAttr("readonly");
                    $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//按钮恢复正常状态
                }
                //默认显示页面
                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                set_InitDate();     //初始化表单时间
                set_InitBillSubType();     //获取单据子类型
                set_InitGrid();     //初始化表格
                set_InitDate();         //初始化表单时间
                set_InitBillSubType();  //获取单据子类型
                set_InitGrid();         //初始化表格
                var data = [];
                listOption.cols = [[
                    { field: '数量', title: '数量', width: 100 }
                    , { field: '源单数量', title: '源单数量', width: 100 }
                    , { field: '物料代码', title: '物料代码', width: 100 }
                    , { field: '物料名称', title: '物料名称', width: 100 }
                    , { field: '规格型号', title: '规格型号', width: 100 }
                    , { field: '辅助属性', title: '辅助属性', width: 100 }
                    , { field: '源单单号', title: '源单单号', width: 100 }
                    , { field: '条码个数', title: '条码个数', width: 100 }
                ]];
                listOption.data = data;
                table.render(listOption);
                //光标默认在条码位置上
                var pFocus = $("#HBarCode");
                pFocus.focus();     //获取光标
                pFocus.select();
                pFocus.focus();     //获取光标
            }
            //初始化表单时间插件
@@ -475,7 +514,7 @@
                    elem: '#wl-table'
                    //, toolbar: '#toolbarDemo'
                    , totalRow: true
                    , height: 'full-50'
                    , height: 'full-60'
                    , cellMinWidth: 90
                    , limit: 50
                };
@@ -545,11 +584,12 @@
                    success: function (d) {
                        $("#HInterID").val(d.data[0].HInterID);
                        $("#HBillNo").val(d.data[0].HBillNo);
                        $("#HMainSourceBillType").val(d.data[0].HSourceBillType == null ? "1241" : d.data[0].HSourceBillType);
                        HInterID = $('#HInterID').val()
                        HBillNo = $('#HBillNo').val()
                        //$("#HMainSourceBillType").val(d.data[0].HSourceBillType == null ? "1241" : d.data[0].HSourceBillType);
                        //获取源单类型
                        if (d.data[0].HSourceBillType == "1241") {
                            $("#HMainSourceBillType").empty();
                            $("#HMainSourceBillType").val("1241");
                            var optionHtml = '';
                            optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '入库申请单' + "</option>";
                            $("#HMainSourceBillType").append(optionHtml);
@@ -558,7 +598,6 @@
                        }
                        else {
                            $("#HMainSourceBillType").empty();
                            $("#HMainSourceBillType").val("-1");
                            var optionHtml = '';
                            optionHtml += "<option value = '" + d.data[0].HSourceBillType + "' >" + '手工录入' + "</option>";
                            $("#HMainSourceBillType").append(optionHtml);
@@ -598,10 +637,16 @@
                        $("#HStockPlaceName").val("");
                        $("#HStockPlaceName").removeAttr("readonly");
                        $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//按钮恢复正常状态
                        layer.msg("仓库条码为空!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("仓库条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HWHName").select();
                            $("#HWHName").focus();
                        });
                        return;
                    }
                    layer.load(3);
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetWarehouse_Json",
@@ -623,6 +668,7 @@
                                }
                                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                                //光标显示到条码上
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            }
                            else {
@@ -633,7 +679,12 @@
                                $("#HStockPlaceName").val("");
                                $("#HStockPlaceName").removeAttr("readonly");
                                $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//按钮恢复正常状态
                                layer.msg(result.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HWHName").select();
                                    $("#HWHName").focus();
                                });
                            }
                            layer.closeAll("loading");
                        }
@@ -664,6 +715,10 @@
            //扫描仓位条码
            $('#HStockPlaceName').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    //仓库文本框为空时,清空对应ID
                    if ($("#HWHName").val() == '') {
                        $("#HWHID").val("0");
                    }
                    var sHWHID = $("#HWHID").val()
                    var HStockPlaceName = $('#HStockPlaceName').val()
                    if (HStockPlaceName == '') {
@@ -672,10 +727,16 @@
                        $("#HWHName").val("");
                        $("#HStockPlaceID").val("0");
                        $("#HStockPlaceName").val("");
                        layer.msg("仓位条码为空!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("仓位条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HStockPlaceName").select();
                            $("#HStockPlaceName").focus();
                        });
                        return;
                    }
                    layer.load(3);
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetStockPlace_Json",
@@ -689,6 +750,7 @@
                                $("#HWHID").val(result.data[0].HWHID);
                                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                                //光标显示到条码上
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            }
                            else {
@@ -697,7 +759,12 @@
                                $("#HWHName").val("");
                                $("#HStockPlaceID").val("0");
                                $("#HStockPlaceName").val("");
                                layer.msg(result.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HStockPlaceName").select();
                                    $("#HStockPlaceName").focus();
                                });
                            }
                            layer.closeAll("loading");
                        }
@@ -707,6 +774,10 @@
            //仓位按钮
            form.on('submit(HSpID-BT)', function () {
                //仓库文本框为空时,清空对应ID
                if ($("#HWHName").val() == '') {
                    $("#HWHID").val("0");
                }
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -733,10 +804,16 @@
                        playSound();
                        $("#HKeeperID").val("0");
                        $("#HKeeperName").val("");
                        layer.msg("保管员条码为空!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("保管员条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HKeeperName").select();
                            $("#HKeeperName").focus();
                        });
                        return;
                    }
                    layer.load(3);
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetEmployee_Json",
@@ -748,13 +825,19 @@
                                $("#HKeeperName").val(result.data[0].HName);
                                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                                //光标显示到条码上
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            }
                            else {
                                playSound();
                                $("#HKeeperID").val("0");
                                $("#HKeeperName").val("");
                                layer.msg(result.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HKeeperName").select();
                                    $("#HKeeperName").focus();
                                });
                            }
                            layer.closeAll("loading");
                        }
@@ -790,10 +873,16 @@
                        playSound();
                        $("#HSecManagerID").val("0");
                        $("#HSecManagerName").val("");
                        layer.msg("验收员条码为空!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("验收员条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HSecManagerName").select();
                            $("#HSecManagerName").focus();
                        });
                        return;
                    }
                    layer.load(3);
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetEmployee_Json",
@@ -805,13 +894,19 @@
                                $("#HSecManagerName").val(result.data[0].HName);
                                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                                //光标显示到条码上
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            }
                            else {
                                playSound();
                                $("#HSecManagerID").val("0");
                                $("#HSecManagerName").val("");
                                layer.msg(result.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HSecManagerName").select();
                                    $("#HSecManagerName").focus();
                                });
                            }
                            layer.closeAll("loading");
                        }
@@ -847,10 +942,16 @@
                        playSound();
                        $("#HDeptID").val("0");
                        $("#HDeptName").val("");
                        layer.msg("部门条码为空!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("部门条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HDeptName").select();
                            $("#HDeptName").focus();
                        });
                        return;
                    }
                    layer.load(3);
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetDepartment_Json",
@@ -862,13 +963,19 @@
                                $("#HDeptName").val(result.data[0].HName);
                                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                                //光标显示到条码上
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            }
                            else {
                                playSound();
                                $("#HDeptID").val("0");
                                $("#HDeptName").val("");
                                layer.msg(result.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HDeptName").select();
                                    $("#HDeptName").focus();
                                });
                            }
                            layer.closeAll("loading");
                        }
@@ -895,6 +1002,75 @@
            //#endregion
            //#region ä¾›åº”商
            //扫描供应商条码
            $('#HSupName').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    var HSupName = $('#HSupName').val()
                    if (HSupName == '') {
                        playSound();
                        $("#HSupID").val("0");
                        $("#HSupName").val("");
                        layer.msg("供应商条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HSupName").select();
                            $("#HSupName").focus();
                        });
                        return;
                    }
                    layer.load(3);
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/GetSupplier_Json",
                        async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                        data: { "HBarCode": HSupName, "HStockOrgID": HStockOrgID },
                        success: function (result) {
                            if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                $("#HSupID").val(result.data[0].HItemID);
                                $("#HSupName").val(result.data[0].HName);
                                element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                                //光标显示到条码上
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            }
                            else {
                                playSound();
                                $("#HSupID").val("0");
                                $("#HSupName").val("");
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HSupName").select();
                                    $("#HSupName").focus();
                                });
                            }
                            layer.closeAll("loading");
                        }
                    });
                }
            });
            //供应商按钮
            form.on('submit(HSupID-BT)', function () {
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '供应商列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_SupplierListNew.html?HStockOrgID=' + HStockOrgID + '', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            //#endregion
            //#endregion
@@ -902,6 +1078,32 @@
            //#region æäº¤
            form.on('submit(cmdSaver)', function (data) {
                //仓库、仓位、保管、验收、部门、供应商文本框为空时,清空对应ID
                if ($("#HWHName").val() == '') {
                    $("#HWHID").val("0");
                    data.field.HWHID = $('#HWHID').val()
                }
                if ($("#HStockPlaceName").val() == '') {
                    $("#HStockPlaceID").val("0");
                    data.field.HStockPlaceID = $('#HStockPlaceID').val()
                }
                if ($("#HKeeperName").val() == '') {
                    $("#HKeeperID").val("0");
                    data.field.HKeeperID = $('#HKeeperID').val()
                }
                if ($("#HSecManagerName").val() == '') {
                    $("#HSecManagerID").val("0");
                    data.field.HSecManagerID = $('#HSecManagerID').val()
                }
                if ($("#HDeptName").val() == '') {
                    $("#HDeptID").val("0");
                    data.field.HDeptID = $('#HDeptID').val()
                }
                if ($("#HSupName").val() == '') {
                    $("#HSupID").val("0");
                    data.field.HSupID = $('#HSupID').val()
                }
                var sMainStr = JSON.stringify(data.field);
                var sSubStr = table.cache['wl-table'];
                if (AllowLoadData(sSubStr) != false)//非空验证
@@ -919,7 +1121,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_OtherInBillList_PDA.html";
                                            }
                                            else {
                                                parent.location.href = "../../../views/index_Mobile.html";
                                            }
                                        }//关闭
                                    }
                                        , function () {
@@ -995,9 +1202,11 @@
                                data: { "HInterID": HInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "HBillType": HBillType },
                                dataType: "json",
                                success: function (data) {
                                    if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        //显示表体明细
                                        DisBillEntryList();
                                    if (data.count == 1) {
                                        layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                                            //显示表体明细
                                            DisBillEntryList();
                                        });
                                    }
                                    else {
                                        playSound();
@@ -1008,7 +1217,6 @@
                                    layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            });
                        layer.close(index)
                        layer.closeAll("loading");
                    })
                }
@@ -1023,7 +1231,14 @@
            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);    //先得到当前iframe层的索引
                        parent.location.reload();                               //刷新父页面,注意一定要在关闭当前iframe层之前执行刷新
                        parent.layer.close(index);                              //再执行关闭
                    }
                    else {
                        parent.location.href = "../../../views/index_Mobile.html";
                    }
                });
            })
@@ -1037,24 +1252,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_OtherIn_Json",
@@ -1064,6 +1275,8 @@
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            playSound_OK();
                            HSourceFlag = true;
                            $("#HSupName").val(result.data.hSupNameField);
                            $("#HSupID").val(result.data.hSupIDField);
                            if (result.data.hDeptIDField != 0) {
                                $("#HDeptID").val(result.data.hDeptIDField);
                                $("#HDeptName").val(result.data.hDeptNameField);
@@ -1077,16 +1290,24 @@
                                $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                            }
                            element.tabChange('tab-Kf_OtherInBill_PDA', '2');
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
                            //显示表体明细
                            DisBillEntryList();
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg(result.Message, {
                                icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                element.tabChange('tab-Kf_OtherInBill_PDA', '1');
                                $("#HSourceBillNo").select();
                                $("#HSourceBillNo").focus();
                            });
                        }
                    }
                });
                layer.closeAll("loading");
            }
            //#endregion
@@ -1097,21 +1318,28 @@
            //扫描条码
            $('#HBarCode').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    layer.load(3)
                    GetMeesageByBarCode();
                    layer.closeAll("loading");
                    $("#HBarCode").select();
                    $("#HBarCode").focus();     //获取光标
                }
            });
            //条码按钮
            form.on('submit(HBarCode-BT)', function (data) {
                layer.load(3)
                GetMeesageByBarCode();
                layer.closeAll("loading");
                $("#HBarCode").select();
                $("#HBarCode").focus();     //获取光标
            });
            //扫条码
            function GetMeesageByBarCode(obj) {
                //仓库、仓位文本框为空时,清空对应ID
                if ($("#HWHName").val() == '') {
                    $("#HWHID").val("0");
                }
                if ($("#HStockPlaceName").val() == '') {
                    $("#HStockPlaceID").val("0");
                }
                var sOldBarCode = $('#HBarCode').val()
                var HDeleteFlag = sOldBarCode.substring(0, 1);
                var sBarCode = sOldBarCode.slice(1);
@@ -1123,12 +1351,19 @@
                if (HDeleteFlag == "*") {
                    if (sBarCode == "") {
                        layer.msg("请扫描要删除的条码", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        playSound();
                        layer.msg("请扫描要删除的条码", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
                        });
                        return;
                    }
                    else {
                        $('#HBarCode').val("");
                    }
                    layer.load(3)
                    $.ajax(
                        {
                            type: "GET",
@@ -1146,21 +1381,36 @@
                                }
                                else {
                                    playSound();
                                    layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    layer.msg(data.Message, {
                                        icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    }, function () {
                                        $("#HBarCode").select();
                                        $("#HBarCode").focus();
                                    });
                                }
                            },
                            error: function (err) {
                                playSound();
                                layer.msg('错误' + err, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg('错误' + err, {
                                    icon: 2, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HBarCode").select();
                                    $("#HBarCode").focus();
                                });
                            }
                        });
                    layer.closeAll("loading");
                }
                else {
                    var sBarCode = $('#HBarCode').val()
                    if (sBarCode == '') {
                        playSound();
                        layer.msg("条码为空,请扫描条码!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("条码为空,请扫描条码!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
                        });
                        return;
                    }
                    if (sBarCode != "") {
@@ -1169,6 +1419,7 @@
                    if (sHQty == "") {
                        sHQty = 0;
                    }
                    layer.load(3)
                    $.ajax({
                        type: "GET",
                        url: GetWEBURL() + "/WEBSController/Get_BarCode_Json",
@@ -1208,16 +1459,17 @@
                                    return;//结束
                                }
                                else if (result.data.hBarTypeField == '源单条码') {
                                    HSourceFlag = true;
                                    $("#HSupName").val(result.data.hSupNameField);
                                    $("#HSupID").val(result.data.hSupIDField);
                                    if (result.data.hDeptIDField != 0) {
                                        $("#HDeptID").val(result.data.hDeptIDField);
                                        $("#HDeptName").val(result.data.hDeptNameField);
                                    }
                                    $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                    HSourceFlag = true;
                                    //获取源单类型、源单单号
                                    if (result.data.hSourceBillTypeField == "1241") {
                                        $("#HMainSourceBillType").empty();
                                        $("#HMainSourceBillType").val("1241");
                                        var optionHtml = '';
                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '入库申请单' + "</option>";
                                        $("#HMainSourceBillType").append(optionHtml);
@@ -1226,14 +1478,16 @@
                                    }
                                    else {
                                        $("#HMainSourceBillType").empty();
                                        $("#HMainSourceBillType").val("-1");
                                        var optionHtml = '';
                                        optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '手工录入' + "</option>";
                                        optionHtml += "<option value = '-1' >" + '手工录入' + "</option>";
                                        $("#HMainSourceBillType").append(optionHtml);
                                        layui.form.render('select');
                                        $("#HMainSourceBillType").attr("readonly", "readonly");
                                    }
                                    $("#HSourceBillNo").attr("readonly", "readonly");
                                    if (result.data.hMulSourceFlagField == 0) {
                                        $("#HSourceBillNo").attr("readonly", "readonly");
                                        $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                    }
                                    element.tabChange('tab-Kf_OtherInBill_PDA', '3');
                                }
                                //物料条码
@@ -1242,16 +1496,17 @@
                                        element.tabChange('tab-Kf_OtherInBill_PDA', '3');
                                    }
                                    else {
                                        HSourceFlag = true;
                                        $("#HSupName").val(result.data.hSupNameField);
                                        $("#HSupID").val(result.data.hSupIDField);
                                        if (result.data.hDeptIDField != 0) {
                                            $("#HDeptID").val(result.data.hDeptIDField);
                                            $("#HDeptName").val(result.data.hDeptNameField);
                                        }
                                        $("#HSourceBillNo").val(result.data.hSourceBillNoField);
                                        HSourceFlag = true;
                                        //获取源单类型、源单单号
                                        if (result.data.hSourceBillTypeField == "1241") {
                                            $("#HMainSourceBillType").empty();
                                            $("#HMainSourceBillType").val("1241");
                                            var optionHtml = '';
                                            optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '入库申请单' + "</option>";
                                            $("#HMainSourceBillType").append(optionHtml);
@@ -1266,7 +1521,10 @@
                                            layui.form.render('select');
                                            $("#HMainSourceBillType").attr("readonly", "readonly");
                                        }
                                        $("#HSourceBillNo").attr("readonly", "readonly");
                                        if (result.data.hMulSourceFlagField == 0) {
                                            $("#HSourceBillNo").attr("readonly", "readonly");
                                            $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                        }
                                        element.tabChange('tab-Kf_OtherInBill_PDA', '3');
                                    }
                                }
@@ -1277,14 +1535,25 @@
                            }
                            else {
                                playSound();
                                layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg(result.Message, {
                                    icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HBarCode").select();
                                    $("#HBarCode").focus();
                                });
                            }
                        },
                        error: function (err) {
                            playSound();
                            layer.msg("错误!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg("错误!" + err, {
                                icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            });
                        }
                    });
                    layer.closeAll("loading");
                }
            }
@@ -1300,9 +1569,9 @@
                    async: false,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HStockOrgID": HStockOrgID },
                    success: function (result) {
                        var data = [];
                        var col = [];
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = [];
                            var col = [];
                            //给空的数组赋值
                            for (var key in result.list) {
                                //动态获取列表所有列名
@@ -1315,7 +1584,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列
@@ -1337,17 +1606,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;
@@ -1365,41 +1623,33 @@
                            $("#HSPName_B").val(result.data.BarCodeDetailslist[0].HSPName);
                        }
                        else {
                            //layer.msg(result.Message);
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            listOption.cols = [[
                                { field: '数量', title: '数量', width: 100 }
                                , { field: '源单数量', title: '源单数量', width: 100 }
                                , { field: '物料代码', title: '物料代码', width: 100 }
                                , { field: '物料名称', title: '物料名称', width: 100 }
                                , { field: '规格型号', title: '规格型号', width: 100 }
                                , { field: '辅助属性', title: '辅助属性', width: 100 }
                                , { field: '源单单号', title: '源单单号', width: 100 }
                                , { field: '条码个数', title: '条码个数', width: 100 }
                            ]];
                            listOption.data = data;
                            table.render(listOption);
                            //条码信息
                            $("#HBarCode_B").val("");
                            $("#HMaterName_B").val("");
                            $("#HMaterModel_B").val("");
                            $("#HBatchNo_B").val("");
                            $("#HUnitName_B").val("");
                            $("#HQty_B").val("");
                            $("#HTMQty_B").val("");
                            $("#HWHName_B").val("");
                            $("#HSPName_B").val("");
                        }
                    }
                });
            }
            //#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
@@ -1458,6 +1708,13 @@
                $("#HDeptID").val(obj[0].HItemID);
            }
        }
        //点击按钮选择后   è¿”回供应商信息
        function GetHSupValue(obj) {
            if (obj.length > 0) {
                $("#HSupName").val(obj[0].HName);
                $("#HSupID").val(obj[0].HItemID);
            }
        }
        //单据上传前判断
        function AllowLoadData(sSubStr) {
WebTM/views/index_Mobile.html
@@ -387,15 +387,9 @@
                          </a>
                      </dd>
                      <dd>
                          <a href="验收入库/其他入库/Kf_OtherInBill_Fast.html" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              å…¶ä»–入库
                          </a>
                      </dd>
                      <dd>
                          <a href="WMS扫码模块/其他入库/Kf_OtherInBill_PDA.html" target="main_self_frame" style="color: aqua;">
                              <img src="../layuiadmin/myicon/单据录制.svg" alt="单据录制" style="width:25px;height:25px;margin-right: 5px;" />
                              å…¶ä»–入库22
                              å…¶ä»–入库单
                          </a>
                      </dd>
                      <dd>
WebTM/views/user/login_pda.html
@@ -201,68 +201,135 @@
                }
                var UserName = $("#LAY-user-login-username").val();
                var PassWord = $("#LAY-user-login-password").val();
                var HStockOrgID = $("#Organization").val();
                var HStockOrgName = $("#Organization option:selected").text();
                layer.load(3);
                $.ajax({
                    type: "get", 
                    url: GetWEBURL() + "/Web/GetUser",
                    data: { "UserName": UserName, "PassWord": PassWord, "HOrgName": $("#Organization").val() },
                    url: GetWEBURL() + "/WEBSController/GetUser_Json",
                    data: { "HUserNumber": UserName, "HPassWord": PassWord, "HStockOrgID": HStockOrgID, "HStockOrgName": HStockOrgName },
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            layer.msg(result.Message, { icon: 1 });
                            //sessionStorage["HUserName"] = user.username;
                        if (result.count == 1) {
                            sessionStorage["HUserName"] = result.data[0].Czymc;
                            sessionStorage["HBillerID"] = result.data[0].HK3UserID;
                            sessionStorage["SourceFlag"] = false;
                            sessionStorage["HKeeperID"] = result.data[0].HKeeperID;
                            sessionStorage["HKeeper"] = result.data[0].HKeeper;
                            sessionStorage["HSecManagerID"] = result.data[0].HSecManagerID;
                            sessionStorage["HSecManager"] = result.data[0].HSecManager;
                            sessionStorage["HSellManID"] = result.data[0].HSellManID;
                            sessionStorage["HSellMan"] = result.data[0].HSellMan;
                            sessionStorage["HDeptID"] = result.data[0].HDeptID;
                            sessionStorage["HDept"] = result.data[0].HDept;
                            sessionStorage["HWHID"] = result.data[0].HWhID;
                            sessionStorage["HWHName"] = result.data[0].HWHName;
                            sessionStorage["HSPID"] = result.data[0].HSPID;
                            sessionStorage["HSPName"] = result.data[0].HSPName;
                            sessionStorage["HSupID"] = result.data[0].HSupID;
                            sessionStorage["HSupName"] = result.data[0].HSupName;
                            sessionStorage["Czmm"] = result.data[0].Czmm;
                            sessionStorage["Czybm"] = result.data[0].Czybm;
                            sessionStorage["HEmpID"] = result.data[0].HEmpID;
                            sessionStorage["HGroup"] = result.data[0].HGroup;
                            sessionStorage["HGroupID"] = result.data[0].HGroupID;
                            sessionStorage["HProc"] = result.data[0].HProc;
                            sessionStorage["HProcNo"] = result.data[0].HProcNo;
                            sessionStorage["HSource"] = result.data[0].HSource;
                            sessionStorage["HSourceID"] = result.data[0].HSourceID;
                            sessionStorage["HWorkCenter"] = result.data[0].HWorkCenter;
                            sessionStorage["HWorkCenterID"] = result.data[0].HWorkCenterID;
                            sessionStorage["HProcName"] = result.data[0].HProcName;
                            sessionStorage["HProcID"] = result.data[0].HProcID;
                            sessionStorage["SourceFlag"] = false;
                            sessionStorage["login"] = "login";
                            sessionStorage["OrganizationID"] = $("#Organization").val();
                            sessionStorage["Organization"] = $("#Organization option:selected").text();
                            sessionStorage["HManagerID"] = result.data[0].HSecManagerID;
                            sessionStorage["HManagerName"] = result.data[0].HSecManager;
                            //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name");
                            sessionStorage["OrganizationID"] = HStockOrgID;
                            sessionStorage["Organization"] = HStockOrgName;
                            sessionStorage["HDeptID"] = result.data[0].HDeptID;
                            sessionStorage["HDept"] = result.data[0].HDeptName;
                            sessionStorage["HSupID"] = result.data[0].HSupID;
                            sessionStorage["HSupName"] = result.data[0].HSupName;
                            sessionStorage["HKeeperID"] = result.data[0].HKeeperID;
                            sessionStorage["HKeeper"] = result.data[0].HKeeperName;
                            sessionStorage["HSecManagerID"] = result.data[0].HSecManagerID;
                            sessionStorage["HSecManager"] = result.data[0].HSecManagerName;
                            sessionStorage["HSellManID"] = result.data[0].HSellManID;
                            sessionStorage["HSellMan"] = result.data[0].HSellManName;
                            sessionStorage["HEmpID"] = result.data[0].HEmpID;
                            sessionStorage["HEmpName"] = result.data[0].HEmpName;
                            sessionStorage["HWHID"] = result.data[0].HWhID;
                            sessionStorage["HWHName"] = result.data[0].HWhName;
                            sessionStorage["HWhSPFlag"] = result.data[0].HWhSPFlag;
                            sessionStorage["HSCWHID"] = result.data[0].HSCWHID;
                            sessionStorage["HSCWHName"] = result.data[0].HSCWHName;
                            sessionStorage["HSCWHSPFlag"] = result.data[0].HSCWHSPFlag;
                            sessionStorage["HMouldWhID"] = result.data[0].HMouldWhID;
                            sessionStorage["HMouldWhName"] = result.data[0].HMouldWhName;
                            sessionStorage["HMouldWhSPFlag"] = result.data[0].HMouldWhSPFlag;
                            sessionStorage["HMouldSCWhID"] = result.data[0].HMouldSCWhID;
                            sessionStorage["HMouldSCWhName"] = result.data[0].HMouldSCWhName;
                            sessionStorage["HMouldSCWhSPFlag"] = result.data[0].HMouldSCWhSPFlag;
                            sessionStorage["HGroupID"] = result.data[0].HGroupID;
                            sessionStorage["HGroup"] = result.data[0].HGroupName;
                            sessionStorage["HProcID"] = result.data[0].HProcID;
                            sessionStorage["HProcName"] = result.data[0].HProcName;
                            sessionStorage["HSourceID"] = result.data[0].HSourceID;
                            sessionStorage["HSource"] = result.data[0].HSourceName;
                            sessionStorage["HWorkCenterID"] = result.data[0].HWorkCenterID;
                            sessionStorage["HWorkCenter"] = result.data[0].HWorkCenterName;
                            sessionStorage["HSPID"] = result.data[0].HSPID;
                            sessionStorage["HSPName"] = result.data[0].HSPName;
                            layer.msg(result.Message, { icon: 1 });
                            //登录移动端
                            window.location.href = '../../views/index_Mobile.html'
                            get_WriteConfigFile();
                        }
                        else {
                            // $("#verifycode").click();
                            layer.msg(result.Message, { icon: 5 });
                            layer.msg(result.Message, { icon: 5, time: 10000 });
                        }
                        layer.closeAll("loading");
                    },
                    error: function (result) {
                        layer.closeAll("loading");
                        layer.msg("接口请求失败!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                    }
                })
                //$.ajax({
                //    type: "get",
                //    url: GetWEBURL() + "/Web/GetUser",
                //    data: { "UserName": UserName, "PassWord": PassWord, "HOrgName": $("#Organization").val() },
                //    success: function (result) {
                //        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                //            layer.msg(result.Message, { icon: 1 });
                //            //sessionStorage["HUserName"] = user.username;
                //            sessionStorage["HUserName"] = result.data[0].Czymc;
                //            sessionStorage["HBillerID"] = result.data[0].HK3UserID;
                //            sessionStorage["SourceFlag"] = false;
                //            sessionStorage["HKeeperID"] = result.data[0].HKeeperID;
                //            sessionStorage["HKeeper"] = result.data[0].HKeeper;
                //            sessionStorage["HSecManagerID"] = result.data[0].HSecManagerID;
                //            sessionStorage["HSecManager"] = result.data[0].HSecManager;
                //            sessionStorage["HSellManID"] = result.data[0].HSellManID;
                //            sessionStorage["HSellMan"] = result.data[0].HSellMan;
                //            sessionStorage["HDeptID"] = result.data[0].HDeptID;
                //            sessionStorage["HDept"] = result.data[0].HDept;
                //            sessionStorage["HWHID"] = result.data[0].HWhID;
                //            sessionStorage["HWHName"] = result.data[0].HWHName;
                //            sessionStorage["HSPID"] = result.data[0].HSPID;
                //            sessionStorage["HSPName"] = result.data[0].HSPName;
                //            sessionStorage["HSupID"] = result.data[0].HSupID;
                //            sessionStorage["HSupName"] = result.data[0].HSupName;
                //            sessionStorage["Czmm"] = result.data[0].Czmm;
                //            sessionStorage["Czybm"] = result.data[0].Czybm;
                //            sessionStorage["HEmpID"] = result.data[0].HEmpID;
                //            sessionStorage["HGroup"] = result.data[0].HGroup;
                //            sessionStorage["HGroupID"] = result.data[0].HGroupID;
                //            sessionStorage["HProc"] = result.data[0].HProc;
                //            sessionStorage["HProcNo"] = result.data[0].HProcNo;
                //            sessionStorage["HSource"] = result.data[0].HSource;
                //            sessionStorage["HSourceID"] = result.data[0].HSourceID;
                //            sessionStorage["HWorkCenter"] = result.data[0].HWorkCenter;
                //            sessionStorage["HWorkCenterID"] = result.data[0].HWorkCenterID;
                //            sessionStorage["HProcName"] = result.data[0].HProcName;
                //            sessionStorage["HProcID"] = result.data[0].HProcID;
                //            sessionStorage["login"] = "login";
                //            sessionStorage["OrganizationID"] = $("#Organization").val();
                //            sessionStorage["Organization"] = $("#Organization option:selected").text();
                //            sessionStorage["HManagerID"] = result.data[0].HSecManagerID;
                //            sessionStorage["HManagerName"] = result.data[0].HSecManager;
                //            //sessionStorage["IP"] = System.Configuration.ConfigurationSettings.AppSettings("name");
                //            //登录移动端
                //            window.location.href = '../../views/index_Mobile.html'
                //            get_WriteConfigFile();
                //        }
                //        else {
                //            // $("#verifycode").click();
                //            layer.msg(result.Message, { icon: 5 });
                //        }
                //        layer.closeAll("loading");
                //    },
                //    error: function (result) {
                //        layer.closeAll("loading");
                //        layer.msg("接口请求失败!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                //        //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 });
                //    }
                //})
            }
            function playSound() {