自动化立体仓库 - WMS系统
skyouc
19 小时以前 32a9a6ced39bdf9893efc7740a71e9ae400a2413
src/main/webapp/static/js/locCache/locCache.js
@@ -23,12 +23,12 @@
        cols: [[{type: 'checkbox'}, {field: 'locNo', align: 'center', title: '库位号', width: 120}
            , {field: 'barcode', align: 'center', title: '托盘码'}
            , {field: 'areaName', align: 'center', title: '库区名称'}
            , {field: 'whsType$', align: 'center', title: '库位类型'}
            // , {field: 'whsType$', align: 'center', title: '库位类型'}
            , {field: 'locSts', align: 'center', title: '库位状态'}
            , {field: 'row1', align: 'center', title: '排'}
            , {field: 'bay1', align: 'center', title: '列'}
            , {field: 'lev1', align: 'center', title: '层'}
            , {field: 'locType', align: 'center', title: '库位类型'}
            // , {field: 'locType', align: 'center', title: '库位类型'}
            , {field: 'sort', align: 'center', title: '优先级'}
            , {field: 'modiUser$', align: 'center', title: '修改人员'}
            , {field: 'modiTime$', align: 'center', title: '修改时间'}
@@ -78,6 +78,13 @@
            case 'addData':
                showEditModel();
                break;
            case 'batchModifties':
                if (checkStatus.length === 0) {
                    layer.msg('请选择需要修改的数据信息', {icon: 2});
                    return;
                }
                batchModifies();
                break;
            case 'deleteData':
                if (checkStatus.length === 0) {
                    layer.msg('请选择要删除的数据', {icon: 2});
@@ -112,10 +119,11 @@
        }
    });
    // 监听行工具事件
    table.on('tool(locCache)', function (obj) {
        var data = obj.data;
        console.log(data)
        switch (obj.event) {
            case 'showDetl':
                locNo = data?.locNo;
@@ -163,6 +171,19 @@
        })
    });
    function batchModifies() {
        layer.open({
            type: 1,
            title: '批量修改',
            maxmin: true,
            area: ["400px"],
            shadeClose: true,
            content: $('#batchModify'),
            success: function (layero, index) {
            }
        });
    }
    /* 弹窗 - 新增、修改 */
    function showEditModel(mData) {
@@ -204,7 +225,6 @@
    /* 删除 */
    function del(ids) {
        console.log(ids)
        layer.confirm('确定要删除选中数据吗?', {
            skin: 'layui-layer-admin', shade: .1
        }, function (i) {