自动化立体仓库 - WMS系统
1
zhang
2025-08-04 1b201ef1ff8a098b6c2fa31d89e7c53650012af9
src/main/webapp/static/js/review/review.js
@@ -20,7 +20,6 @@
    var element = layui.element;
    // 渲染表格
    var insTb = table.render({
        elem: '#order',
@@ -28,8 +27,9 @@
        headers: {token: localStorage.getItem('token')},
        page: true,
        cellMinWidth: 100,
        toolbar: '#toolbar',
        cols: [[
            {type: 'numbers'},
            {type: 'checkbox', fixed: 'left'},
            {field: 'orderNo', title: '单据编号'},
            {field: 'cstmrName', align: 'center',title: '客户名称'},
            {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 250, width: 250},
@@ -61,6 +61,26 @@
            insTbCount = count;
        }
    });
    //
    table.on('toolbar(order)', function (obj) {
        console.info("121211")
        var checkStatus = table.checkStatus(obj.config.id);
        console.info(obj)
        console.info(checkStatus)
        layer.confirm('确定导出Excel吗', {shadeClose: true}, function () {
            var ids = '';
            for (const o in checkStatus.data) {
                console.info(o)
                //ids.push(checkStatus.data[o].id)
                ids =ids + checkStatus.data[o].id + ","
            }
            location.href = baseUrl + "/exportReview?ids=" + ids;
            layer.closeAll();
        });
    });
    // 搜索
    form.on('submit(tbSearch)', function (data) {
@@ -224,7 +244,6 @@
                        page: true,
                        cellMinWidth: 100,
                        cols: [[
                            {type: 'numbers'},
                            {field: 'matnr', title: '物质编码'},
                            {field: 'maktx', title: '产品名称'},
                            {field: 'specs', title: '规格型号'},
@@ -336,11 +355,25 @@
                        {field: 'maktx', title: '商品名称', width: 200},
                        {field: 'batch', title: '箱号', edit: true},
                        {field: 'specs', title: '接头'},
                        {field: 'anfme', title: '数量(修改)', style: 'color: blue;font-weight: bold', edit: true, minWidth: 110, width: 110},
                        {
                            field: 'anfme',
                            title: '数量(修改)',
                            style: 'color: blue;font-weight: bold',
                            edit: true,
                            minWidth: 110,
                            width: 110
                        },
                        {field: 'workQty', title: '作业数量',  minWidth: 100, width: 100},
                        // {field: 'unit', title: '单位', width: 80},
                        {field: 'memo', title: '备注' , edit: true},
                        {align: 'center', title: '操作', toolbar: '#formSSXMTableBar', minWidth: 80, width: 80, fixed: 'right'}
                        {
                            align: 'center',
                            title: '操作',
                            toolbar: '#formSSXMTableBar',
                            minWidth: 80,
                            width: 80,
                            fixed: 'right'
                        }
                    ]],
                    done: function (res) {
                        $(layero).find('.layui-table-view').css('margin', '0');
@@ -606,7 +639,12 @@
                                    },
                                    color: ['#10B4E8', '#E0E0E0', '#FF0000'],
                                    tooltip: {trigger: 'item'},
                                    series: [{name: '箱子数量', type: 'pie', radius: ['75%', '80%'], label: {normal: {show: false}}}]
                                    series: [{
                                        name: '箱子数量',
                                        type: 'pie',
                                        radius: ['75%', '80%'],
                                        label: {normal: {show: false}}
                                    }]
                                };
                                traceCharts.setOption(traceOptions);
                                // 赋值
@@ -618,7 +656,10 @@
                                        {
                                            data: [
                                                {name: '已作业', value: res.data.wrkQty},
                                                {name: '未作业', value: res.data.totalQty-res.data.wrkQty-res.data.lackQty},
                                                {
                                                    name: '未作业',
                                                    value: res.data.totalQty - res.data.wrkQty - res.data.lackQty
                                                },
                                                {name: '库存不足', value: res.data.lackQty},
                                            ]
                                        }
@@ -687,8 +728,20 @@
                                    // {field: 'brand', title: '木箱类型', align: 'center'},
                                    {field: 'brand$', title: '木箱类型', align: 'center'},
                                    {field: 'zpallet', title: '托盘码', align: 'center'},
                                    {field: 'anfme', title: '数量', align: 'center', width: 90, style: 'font-weight: bold'},
                                    {field: 'count', title: '数量', align: 'center', width: 90, style: 'font-weight: bold'},
                                    {
                                        field: 'anfme',
                                        title: '数量',
                                        align: 'center',
                                        width: 90,
                                        style: 'font-weight: bold'
                                    },
                                    {
                                        field: 'count',
                                        title: '数量',
                                        align: 'center',
                                        width: 90,
                                        style: 'font-weight: bold'
                                    },
                                    {field: 'locNo', title: '货位', align: 'center', width: 100, templet: '#locNoTpl'},
                                    {field: 'tkType$', title: 'TK标记', align: 'center', width: 100},
                                    // {field: 'staNos', align: 'center', title: '出库站', merge: ['locNo'], templet: '#tbBasicTbStaNos'},
@@ -721,6 +774,7 @@
                                }
                                modifySta(stoPreTabData);
                            });
                            // 批量修改出库站 - 站点选择
                            function modifySta(stoPreTabData) {
                                // 出库站取交集
@@ -731,8 +785,7 @@
                                        if (staBatchSelectVal.length === 0) {
                                            staBatchSelectVal = staNos;
                                        } else {
                                            staBatchSelectVal = staBatchSelectVal.filter(val =>
                                                {
                                            staBatchSelectVal = staBatchSelectVal.filter(val => {
                                                    return new Set(staNos).has(val)
                                                }
                                            )
@@ -776,7 +829,8 @@
                                            arr.forEach(item => {
                                                $('div[lay-id=stoPreTab] tr[data-index="' + item + '"] .layui-select-title').find("input").css("color", "blue");
                                            });
                                            layer.close(loadIdx); layer.close(ddIndex);
                                            layer.close(loadIdx);
                                            layer.close(ddIndex);
                                            return false;
                                        });
                                        // 弹窗不出现滚动条