duhe
2024-07-29 87f317bc78170a2ca82b7367715ab3a71103318c
扫码验证单:获取 补扫清单
2个文件已修改
107 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/WMS扫码模块/扫码验证/Gy_BarCodeConfirmBill_PDA.html 105 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
@@ -2013,7 +2013,7 @@
      <publishTime>07/25/2024 11:21:38</publishTime>
    </File>
    <File Include="views/WMS扫码模块/扫码验证/Gy_BarCodeConfirmBill_PDA.html">
      <publishTime>07/25/2024 13:25:01</publishTime>
      <publishTime>07/29/2024 15:15:30</publishTime>
    </File>
    <File Include="views/WMS扫码模块/条码出入库查询/Gy_BarCodeBillInOut__PDA.html">
      <publishTime>03/05/2024 12:29:40</publishTime>
WebTM/views/WMSɨÂëÄ£¿é/ɨÂëÑéÖ¤/Gy_BarCodeConfirmBill_PDA.html
@@ -54,15 +54,20 @@
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab" lay-filter="tab-Sc_PackUnionBill_PDA">
                    <div class="layui-tab" lay-filter="tab-Gy_BarCodeConfirmBill_PDA">
                        <ul class="layui-tab-title" lay-filter="tab-all">
                            <li lay-id="1">扫码信息</li>
                            <li lay-id="2">单据信息</li>
                            <li lay-id="2">补扫信息</li>
                            <li lay-id="3">单据信息</li>
                        </ul>
                        <div class="layui-tab-content">
                            <!--扫码信息-->
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                            </div>
                            <!--补扫清单信息-->
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="wl-table1" lay-filter="wl-table1"></table>
                            </div>
                            <!--单据信息-->
                            <div class="layui-tab-item">
@@ -108,8 +113,11 @@
                                    <div class="layui-col-xs3">
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
                                    </div>
                                    <div class="layui-col-xs3">
                                    <!--<div class="layui-col-xs3">
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdExport">导出</button>
                                    </div>-->
                                    <div class="layui-col-xs3">
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdSuppRush">补扫清单</button>
                                    </div>
                                </div>
                            </div>
@@ -149,6 +157,7 @@
            var HMaker = sessionStorage["HUserName"]
            var HStockOrgID = sessionStorage["OrganizationID"]
            var option = [];
            var option1 = [];
            var ins;                        //用于导出excel
@@ -265,6 +274,9 @@
            //#region æ˜¾ç¤ºå®¢æˆ·ç‰©æ–™æ¡ç åˆ—表信息
            function DisBillEntryList() {
                //切换页签为扫码列表
                element.tabChange('tab-Gy_BarCodeConfirmBill_PDA', '1');
                var ajaxLoad = layer.load();
                $.ajax({
                    type: "GET",
@@ -470,6 +482,12 @@
                get_Export();
            })
            //#endregion
            //#region è¡¥æ‰«æ¸…单 åŠŸèƒ½æŽ§ä»¶
            form.on('submit(cmdSuppRush)', function () {
                get_SuppRushList();
            })
            //#endregion
            //#endregion
@@ -493,6 +511,30 @@
            function set_InitGrid() {
                option = {
                    elem: '#wl-table'
                    , height: 'full-50'
                    //, page: true
                    , cellMinWidth: 90
                    , limit: 100000
                    //, limits: [50, 500, 5000, 20000]
                    , toolbar: '#toolbarDemo'
                    , totalRow: true
                    , cols: [[
                        { type: 'checkbox', fixed: 'left' }
                        , { field: 'HItemID', title: 'HItemID', hide: true }
                        , { field: 'HInterID', title: 'HInterID', hide: true }
                        , { field: 'HBillNo', title: '单据号', width: 125, sort: true }
                        , { field: 'HBillType', title: '单据类型', width: 125, sort: true, hide: true }
                        , { field: 'HBarCode', title: '条码编号', width: 125, sort: true }
                        , { field: 'HQty', title: '数量', width: 125, sort: true, totalRow: true, hide: true }
                        , { field: 'HOrgID', title: 'HOrgID', sort: true, hide: true }
                        , { field: 'HDate', title: '日期', width: 125, sort: true }
                        , { field: 'HRelationInterID', title: 'HRelationInterID', width: 125, sort: true, hide: true }
                        , { field: 'HMaker', title: '扫码人', width: 125, sort: true }
                    ]]
                };
                option1 = {
                    elem: '#wl-table1'
                    , height: 'full-50'
                    //, page: true
                    , cellMinWidth: 90
@@ -578,6 +620,63 @@
                //});
            }
            //#endregion
            //#region è¡¥æ‰«æ¸…单
            function get_SuppRushList() {
                //切换页签为补扫清单
                element.tabChange('tab-Gy_BarCodeConfirmBill_PDA', '2');
                var ajaxLoad = layer.load();
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + '/WEBSController/Gy_BarCodeConfirmBill_getSuppRushList',
                    async: false,
                    data: { "HInterID": HInterID, "HBillNo": HBillNo, "HBillType": HBillType, "HOrgID": HStockOrgID },
                    success: function (data1) {
                        var col = [];
                        if (data1.count == 1) {
                            var data = [];
                            //给空的数组赋值
                            for (var key in data1.list) {
                                data.push({ "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                            }
                            //判断是否是纯英文
                            var patrn = new RegExp("[\u4E00-\u9FA5]+");
                            col.push({ type: 'radio' });
                            col.push({ type: 'numbers', title: '序号', style: 'background-color: #f9f9f9;' });
                            for (var i = 0; i < data.length; i++) {
                                if (!patrn.test(data[i].name)) {
                                    col.push({ field: data[i].name, title: data[i].name, hide: true }); //隐藏列
                                }
                                else {
                                    switch (data[i].Type) {
                                        case 'DateTime':
                                            col.push({ field: data[i].name, 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 });
                                            break;
                                        default:
                                            col.push({ field: data[i].name, title: data[i].name, align: 'center', sort: true });
                                    }
                                }
                            }
                            option1.cols = [col];
                            option1.data = data1.data;
                            table.cache['wl-table1'] = null;         //清空表格缓存数据
                            table.render(option1);
                            layer.close(ajaxLoad);
                        } else {
                            layer.close(ajaxLoad);
                            layer.alert(data1.code + data1.Message, { icon: 5 });
                        }
                    },
                    complete: function (XHR, TS) { XHR = null },//回收资源
                    error: function () {
                        layer.close(ajaxLoad);
                        layer.alert("接口请求失败!", { icon: 5 });
                    }
                });
            }
            //#endregion
            //#endregion
        });