自动化立体仓库 - WMS系统
luxiaotao1123
2021-09-14 c6bc9682699d3e10dc06a3d6641a70179e64f9a1
src/main/webapp/static/js/locMast/locMast.js
@@ -5,6 +5,7 @@
    var layer = layui.layer;
    var layDate = layui.laydate;
    var form = layui.form;
    var dropdown = layui.dropdown
    // 数据渲染
    tableIns = table.render({
@@ -20,7 +21,7 @@
        cols: [[
            {type: 'checkbox', fixed: 'left'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'locNo', align: 'center',title: '库位号',sort:true}
            ,{field: 'locNo', align: 'center',title: '库位号', sort:true}
            ,{field: 'locSts$', align: 'center',title: '库位状态',width:200}
            // ,{field: 'whsType$', align: 'center',title: '库位类型'}
            // ,{field: 'pltType', align: 'center',title: ''}
@@ -50,12 +51,12 @@
            // ,{field: 'scWeight', align: 'center',title: ''}
            // ,{field: 'invWh', align: 'center',title: ''}
            // ,{field: 'mk', align: 'center',title: ''}
            // ,{field: 'barcode', align: 'center',title: ''}
            ,{field: 'barcode', align: 'center',title: '条码'}
            // ,{field: 'PdcType', align: 'center',title: ''}
            // ,{field: 'ctnNo', align: 'center',title: ''}
            ,{field: 'locType1$', align: 'center',title: '高低类型'}
            ,{field: 'locType2$', align: 'center',title: '宽窄类型'}
            ,{field: 'locType3$', align: 'center',title: '轻重类型'}
            // ,{field: 'locType2$', align: 'center',title: '宽窄类型'}
            // ,{field: 'locType3$', align: 'center',title: '轻重类型'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:100}
        ]],
@@ -90,6 +91,7 @@
            });
        }
    });
    // 监听排序事件
    table.on('sort(locMast)', function (obj) {
@@ -207,6 +209,7 @@
                });
                break;
            case "init":
                $('#initDo').removeClass("layui-btn-disabled")
                layer.prompt({title: '请输入口令,并重置库位', formType: 1,   shadeClose: true}, function(pass, idx){
                    http.get(baseUrl+"/locMast/init/pwd", {pwd: pass}, function (res) {
                        if (res.data) {
@@ -390,13 +393,16 @@
    // 初始化保存
    form.on('submit(initDo)', function (data) {
        // layer.load(1, {shade: [0.5,'#000']});
        $('#initDo').addClass("layui-btn-disabled").attr("disabled", "disabled");
        $.ajax({
            url: baseUrl+"/locMast/init/auth",
            headers: {'token': localStorage.getItem('token')},
            data: data.field,
            method: 'POST',
            async: false,
            // async: false,
            success: function (res) {
                // layer.closeAll('loading');
                if (res.code === 200){
                    layer.msg(res.msg);
                    layer.closeAll();