自动化立体仓库 - WMS系统
skyouc
4 天以前 19674bf7bc725aabc28f9cf14cad0bf8a789ff23
src/main/webapp/static/js/locAroundBind/locAroundBind.js
@@ -22,13 +22,11 @@
        height: 'full-120',
        cols: [[
            { type: 'checkbox' }
            , { field: 'number', align: 'center', title: '序号' }
            , { field: 'id', align: 'center', title: 'ID' }
            , { field: 'devId', align: 'center', title: '台机ID' }
            , { field: 'devNo', align: 'center', title: '台机号' }
            , { field: 'bLocId', align: 'center', title: '库位ID' }
            , { field: 'bLocNo', align: 'center', title: '库位码' }
            , { field: 'blocId', align: 'center', title: '库位ID', hide: true }
            , { field: 'blocNo', align: 'center', title: '库位码' }
            , { fixed: 'right', title: '操作', align: 'center', toolbar: '#operate', width: 120 }
        ]],
        request: {
@@ -129,7 +127,7 @@
                        if (res.data) {
                            layer.open({
                                type: 1,
                                title: '初始化库位',
                                title: '台机绑定作业库位',
                                area: ["400px"],
                                maxmin: true,
                                shadeClose: true,
@@ -148,6 +146,29 @@
        }
    });
    // 初始化保存
    form.on('submit(initDo)', function (data) {
        $.ajax({
            url: baseUrl + "/locAroundBind/bind/init",
            headers: { 'token': localStorage.getItem('token') },
            data: JSON.stringify(data.field),
            contentType: 'application/json;charset=UTF-8',
            method: 'POST',
            async: false,
            success: function (res) {
                if (res.code === 200) {
                    layer.msg(res.msg);
                    layer.closeAll();
                    tableReload(false);
                } else if (res.code === 403) {
                    parent.location.href = "/";
                } else {
                    layer.msg(res.msg)
                }
            }
        })
    });
    // 监听行工具事件
    table.on('tool(locAroundBind)', function (obj) {
        var data = obj.data;