自动化立体仓库 - WMS系统
#
zjj
2025-06-10 6ab07fef73e3f12ac25f41b71e9b83cb4227de10
src/main/webapp/static/js/pakStore/stockAdjust.js
@@ -12,7 +12,7 @@
    arrRemove(detlCols, "field", "anfme");
    arrRemove(detlCols, "field", "batch");
    cols.push.apply(cols, detlCols);
    cols.push({fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80})
    return cols;
}
@@ -42,6 +42,7 @@
    // 页面修改
    table.on('edit(chooseData)', function (obj) {
        let index = obj.tr.attr("data-index");
        console.log(index)
        let data = matCodeData[index];
        let modify = true;
        if (obj.field === 'count'){
@@ -50,10 +51,17 @@
                layer.msg("请输入数字", {icon: 2});
                modify = false;
            } else {
                if (vle <= 0) {
                    layer.msg("数量必须大于零", {icon: 2});
                    modify = false;
                }
                // if (vle <= 0) {
                //     layer.msg("数量必须大于零", {icon: 2});
                //     modify = false;
                // }
            }
        }
        if (obj.field === 'batch'){
            let vle = obj.value;
            if (vle.length <= 0){
                layer.msg("批号不准为空", {icon: 2});
                modify = false;
            }
        }
        if (modify) {