王佳豪
2021-06-19 b8c1da262aa8576932427b0a5b461da759730be3
src/main/webapp/static/js/locNormal/locNormal.js
@@ -9,7 +9,7 @@
    )
    cols.push.apply(cols, locNormalCols);
    cols.push(
        {field: 'warehouse', align: 'center', title: '库区'}
        {field: 'warehouse$', align: 'center', title: '库区'}
        , {field: 'state', align: 'center', title: '出入库状态', templet: '#locNormalState'}
        , {field: 'modiUser$', align: 'center', title: '修改人员', hide: true}
        , {field: 'modiTime$', align: 'center', title: '修改时间', hide: true}
@@ -143,7 +143,7 @@
            records.map(function (item) {
                locArea.map(function (d) {
                    if (d.uuid == item.warehouse) {
                        item.warehouse = d.name;
                        item.warehouse$ = d.name;
                    }
                })
            });
@@ -223,15 +223,27 @@
            matnr: matnr,
            anfme: count,
            id: id,
            warehouse: obj.data.warehouse,
            supplier: obj.data.supplier,
            mnemonic: obj.data.mnemonic,
        }
        layer.confirm("确定修改" + obj.data.maktx + "的数量吗", {
            btn: ['确定', '取消']
        }, function () {
            // 按钮1的事件
        $.ajax({
            url: baseUrl + "/locNormal/update/auth",
            headers: {'token': localStorage.getItem('token')},
            data: top.reObject(param),
            method: 'POST',
            success: function (res) {
                    layer.msg("")
            },
        });
        }, function () {
            // 按钮2的事件
            tableIns.reload();
        });
    });
    // 搜索栏重置事件