自动化立体仓库 - WMS系统
#
lsh
2025-02-20 4ad1f324ab1fd2b51504afc00b43b4ee40f029c2
src/main/webapp/static/js/matTurn/matTurn.js
@@ -5,13 +5,13 @@
        {
            field: 'matnr',
            align: 'center',
            title: '品号',
            title: '规格',
            edit: 'text',
            width: 130,
            style: 'color: blue;font-weight: bold'
        }
        , {field: 'maktx', align: 'center', title: '品名'}
        , {field: 'specs', align: 'center', title: '品名'}
        , {field: 'specs', align: 'center', title: '接头'}
    ];
}
@@ -42,33 +42,6 @@
        }
    });
    // 页面修改
    table.on('edit(chooseData)', function (obj) {
        let index = obj.tr.attr("data-index");
        let data = locDetlData[index];
        let modify = true;
        if (obj.field === 'count'){
            let vle = Number(obj.value);
            if (isNaN(vle)) {
                layer.msg("请输入数字", {icon: 2});
                modify = false;
            } else {
                if (vle <= 0) {
                    layer.msg("数量必须大于零", {icon: 2});
                    modify = false;
                }
                if (vle > Number(data.anfme)) {
                    layer.msg("出库数量不得大于库存数量", {icon: 2});
                    modify = false;
                }
            }
        }
        if (modify) {
            data[obj.field] = obj.value;
        }
        tableIns.reload({data: locDetlData});
    });
    // 监听头工具栏事件
    table.on('toolbar(chooseData)', function (obj) {
        switch (obj.event) {
@@ -78,13 +51,14 @@
                } else {
                    var staNo = $("#staNoSelect").val();
                    if (staNo === "" || staNo === null){
                        layer.msg("请选择目标品号", {icon: 2});
                        layer.msg("请选择目标规格", {icon: 2});
                        return;
                    }
                    let param = {
                        matId: staNo,
                        locDetls: locDetlData
                    }
                    console.log(param)
                    $.ajax({
                        url: baseUrl+"/mat/turn/over/out/start",
                        headers: {'token': localStorage.getItem('token')},