自动化立体仓库 - WMS系统
luxiaotao1123
2022-03-23 9b50ae798149b64f9e3413897ff96d4084a9a7aa
src/main/webapp/static/js/order/order.js
@@ -12,17 +12,19 @@
    // 渲染表格
    var insTb = table.render({
        elem: '#waitMatin',
        url: baseUrl+'/waitMatin/head/page/auth',
        elem: '#order',
        url: baseUrl+'/order/head/page/auth',
        headers: {token: localStorage.getItem('token')},
        page: true,
        cellMinWidth: 100,
        cols: [[
            {type: 'numbers'},
            {field: 'billNo', title: '单据编号', sort: true},
            {field: 'billType$', align: 'center', title: '类型',  minWidth: 160, width: 160},
            {field: 'orderNo', title: '单据编号', sort: true},
            {field: 'docType$', align: 'center', title: '类型',  minWidth: 160, width: 160},
            {align: 'center', title: '明细', toolbar: '#tbLook', minWidth: 160, width: 160},
            {field: 'appeTime$', title: '创建时间', minWidth: 200, width: 200},
            {field: 'createTime$', title: '创建时间', minWidth: 200, width: 200},
            {field: 'settle$', align: 'center', title: '状态', templet: '#settleTpl',  minWidth: 160, width: 160},
            {field: 'memo', align: 'center',title: '备注', hide: true},
            {align: 'center', title: '操作', toolbar: '#operate', minWidth: 130, width: 130}
        ]],
        request: {
@@ -48,17 +50,17 @@
    });
    // 搜索
    form.on('submit(waitMatinSearch)', function (data) {
    form.on('submit(tbSearch)', function (data) {
        insTb.reload({where: data.field, page: {curr: 1}});
    });
    // 添加
    $("#waitMatinAddBtn").click(function () {
    $("#orderAddBtn").click(function () {
        showEditModel();
    });
    // 工具条点击事件
    table.on('tool(waitMatin)', function (obj) {
    table.on('tool(order)', function (obj) {
        var data = obj.data;
        var layEvent = obj.event;
        if (layEvent === 'edit') {
@@ -83,7 +85,7 @@
                    table.render({
                        elem: '#lookSSXMTable',
                        headers: {token: localStorage.getItem('token')},
                        url: baseUrl+'/waitMatin/list/auth',
                        url: baseUrl+'/order/detl/list/auth',
                        where: {
                            bill_no: data.billNo
                        },