自动化立体仓库 - WMS系统
#
Junjie
2025-07-29 9f2f1f535d4abfc9cdf68eef651cb73ef2e04bcb
src/main/webapp/static/js/orderPakout/out.js
@@ -32,6 +32,8 @@
            {type: 'checkbox'}
            ,{type: 'numbers', title: '#'}
            ,{field: 'orderNo', align: 'center',title: '单据编号', templet: '#orderNoTpl', width: 160}
            ,{field: 'cstmrName$', align: 'center',title: '客户', width: 160}
            ,{field: 'standby1$', align: 'center',title: '出库仓库', width: 160}
            ,{field: 'matnr', align: 'center',title: '商品编码', width: 160}
            ,{field: 'maktx', align: 'center',title: '商品名称', width: 200}
            ,{field: 'batch', align: 'center',title: '批次'}
@@ -86,6 +88,30 @@
    /* 表格2搜索 */
    form.on('submit(sensorTbSearch)', function (data) {
        insTb2.reload({where: data.field, page: {curr: 1}});
        return false;
    });
    form.on('submit(defaultOutSta)', function (data) {
        let val = $("#defaultOutStaSelect").val();
        $.ajax({
            url: baseUrl + "/user/updateDefaultOutSta",
            headers: {'token': localStorage.getItem('token')},
            contentType: 'application/json;charset=UTF-8',
            data: JSON.stringify({
                defaultOutSta: val
            }),
            method: 'POST',
            success: function (res) {
                if (res.code === 200){
                    layer.msg(res.msg, {icon: 1})
                    $("#defaultOutSta").html(val)
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                } else {
                    layer.msg(res.msg, {icon: 2})
                }
            }
        })
        return false;
    });
@@ -354,6 +380,23 @@
});
$.ajax({
    url: baseUrl + "/user/getDefaultOutSta",
    headers: {'token': localStorage.getItem('token')},
    contentType: 'application/json;charset=UTF-8',
    data: {},
    method: 'POST',
    success: function (res) {
        if (res.code === 200){
            $("#defaultOutSta").html(res.data)
        } else if (res.code === 403){
            top.location.href = baseUrl+"/";
        } else {
            layer.msg(res.msg, {icon: 2})
        }
    }
})
function tableReload(child) {
    var searchData = {};
    $.each($('#search-box [name]').serializeArray(), function() {