自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-17 683cd2050f9c387f58dbcfcbbb4daec620c62a24
src/main/webapp/static/js/basDevp/basDevp.js
@@ -74,7 +74,7 @@
                    html += ">";
                    return html;
                }}
            ,{field: 'wrkNo', align: 'center',title: '工作号'}
            ,{field: 'wrkNo', align: 'center',title: '工作号', edit: true}
            // ,{field: 'wrkNo1', align: 'center',title: ''}
            ,{field: 'ctnType', align: 'center',title: '容器类型'}
            ,{field: 'barcode', align: 'center',title: '条形码'}
@@ -128,6 +128,30 @@
        }
    });
    // 页面修改
    table.on('edit(basDevp)', function (obj) {
        console.log(obj);
        $.ajax({
            url: baseUrl+"/basDevp/update/auth",
            headers: {'token': localStorage.getItem('token')},
            data: top.reObject({
                devNo: obj.data.devNo,
                wrkNo: obj.value
            }),
            method: 'POST',
            success: function (res) {
                if (res.code === 200){
                    tableReload();
                    layer.msg(res.msg);
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                    layer.msg(res.msg)
                }
            }
        })
    });
    // 监听排序事件
    table.on('sort(basDevp)', function (obj) {
        var searchData = {};