#
luxiaotao1123
2021-03-16 1230ae74df4b27a417c1ef67886c1c8c807a8772
src/main/webapp/static/js/custOrder/custOrder.js
@@ -74,6 +74,7 @@
                top.location.href = baseUrl+"/";
            }
            pageCurr=curr;
            tableX.merges('custOrder', [1, 11]);
            limit();
            form.on('checkbox(tableCheckbox)', function (data) {
                var _index = $(data.elem).attr('table-index')||0;
@@ -196,7 +197,6 @@
                    }),
                    method: 'POST',
                    success: function (res) {
                        console.log(JSON.stringify(res.data))
                        layer.close(loadIndex);
                        // 成功
                        if (res.code === 200){
@@ -205,8 +205,10 @@
                                ,title: false
                                ,closeBtn: false
                                ,offset: '100px'
                                ,area: '800px;'
                                // ,area: ['800px','450px']
                                ,area: '800px'
                                ,shade: 0.5
                                ,shadeClose: true
                                ,id: 'LAY_layuipro'
                                ,btn: ['立即生成', '稍后处理']
                                ,btnAlign: 'c'
@@ -218,16 +220,20 @@
                                        data: res.data,
                                        page: true,
                                        cellMinWidth: 100,
                                        // ,width: admin.screen() > 1 ? 892 : ''
                                        height: 432,
                                        cols: [[
                                            {field: 'title', title: '商品', align: 'center'},
                                            {field: 'anfme', title: '总数量', align: 'center', style: 'font-weight: bold', width: 80},
                                            {field: 'locNo', title: '货位', align: 'center'},
                                            {field: 'prior$', title: '推荐货位', align: 'center', width: 100},
                                            {field: 'reduce', title: '数量', align: 'center', width: 80, style: 'font-weight: bold'},
                                            {field: 'remQty', title: '余量', align: 'center', width: 80},
                                            // {field: 'remQty', title: '余量', align: 'center', width: 80},
                                            {field: 'total', title: '总量', align: 'center', width: 80},
                                        ]],
                                        done: function () {
                                            tableX.merges('stoPreTab', [0,1]);
                                            $('.layui-table-body.layui-table-main').css("overflow", "auto")
                                        }
                                    });
@@ -276,7 +282,7 @@
    // 开始拣货
    function stockOut(number) {
        layer.confirm(number + ' 订单开始拣货?', {shadeClose: true}, function(){
        // layer.confirm(number + ' 订单开始拣货?', {shadeClose: true}, function(){
            layer.closeAll();
            $.ajax({
                url: baseUrl+"/work/stock/out",
@@ -318,7 +324,7 @@
                    $(".layui-laypage-btn")[0].click();
                }
            })
        });
        // });
    }
    // 打印拣货单
@@ -482,22 +488,22 @@
        page: {
            curr: pageCurr
        },
        done: function (res, curr, count) {
            if (res.code === 403) {
                top.location.href = baseUrl+"/";
            }
            pageCurr=curr;
            if (res.data.length === 0 && count !== 0) {
                tableIns.reload({
                    where: searchData,
                    page: {
                        curr: pageCurr-1
                    }
                });
                pageCurr -= 1;
            }
            limit(child);
        }
        // done: function (res, curr, count) {
        //     if (res.code === 403) {
        //         top.location.href = baseUrl+"/";
        //     }
        //     pageCurr=curr;
        //     if (res.data.length === 0 && count !== 0) {
        //         tableIns.reload({
        //             where: searchData,
        //             page: {
        //                 curr: pageCurr-1
        //             }
        //         });
        //         pageCurr -= 1;
        //     }
        //     limit(child);
        // }
    });
}