自动化立体仓库 - WMS系统
pang.jiabao
2025-04-15 b4227b5145943e067351a2a59ca34826b41d6fb7
src/main/webapp/static/js/pakStore/stockAdjust.js
@@ -5,14 +5,14 @@
var matCodeLayerIdx;
function getCol() {
    var cols = [
        {fixed: 'left', field: 'count', title: '实际数量', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
        ,{field: 'anfme', align: 'center',title: '数量'}
        ,{field: 'batch', align: 'center',title: '批号(编辑)', edit: true, style: 'font-weight:bold'}
        {fixed: 'left', field: 'count', title: 'Фактическое количество', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
        ,{field: 'anfme', align: 'center',title: 'Количество'}
        ,{field: 'batch', align: 'center',title: 'Номер партии', edit: true, style: 'font-weight:bold'}
    ];
    arrRemove(detlCols, "field", "anfme");
    arrRemove(detlCols, "field", "batch");
    cols.push.apply(cols, detlCols);
    cols.push({fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:80})
    cols.push({fixed: 'right', title:'Операция', align: 'center', toolbar: '#operate', width:80})
    return cols;
}
@@ -47,11 +47,11 @@
        if (obj.field === 'count'){
            let vle = Number(obj.value);
            if (isNaN(vle)) {
                layer.msg("请输入数字", {icon: 2});
                layer.msg("Введите число", {icon: 2});
                modify = false;
            } else {
                if (vle <= 0) {
                    layer.msg("数量必须大于零", {icon: 2});
                    layer.msg("Количество должно быть больше нуля", {icon: 2});
                    modify = false;
                }
            }
@@ -67,7 +67,7 @@
        switch(obj.event) {
            case 'adjust':
                if (isEmpty(currLocNo)) {
                    layer.msg("请先检索库位", {icon: 2})
                    layer.msg("Пожалуйста, сначала выполните поиск по месту", {icon: 2})
                    inputTip($("#searchLocNo"));
                    return;
                }
@@ -77,7 +77,7 @@
                }
                for (var i=0;i<matCodeData.length;i++){
                    if (isNaN(matCodeData[i].count)) {
                        layer.msg("请输入数字", {icon: 2});
                        layer.msg("Введите число", {icon: 2});
                        return;
                    }
                    if (matCodeData[i].count < 0){
@@ -85,7 +85,7 @@
                        return;
                    }
                }
                layer.confirm('确定调整'+currLocNo+'库位的明细吗?', {shadeClose: true}, function(){
                layer.confirm('Вы уверены, что хотите скорректировать детали для местоположения '+currLocNo+'?', {shadeClose: true}, function(){
                    $.ajax({
                        url: baseUrl+"/locDdetl/adjust/start",
                        headers: {'token': localStorage.getItem('token')},
@@ -129,7 +129,7 @@
        let locNo = data.field.loc_no;
        if (locNo === "") {
            inputTip($("#searchLocNo"));
            layer.msg("请输入库位号");
            layer.msg("Пожалуйста, введите Номер партии");
            return;
        }
        init(locNo);
@@ -171,11 +171,11 @@
                let data = res.data;
                if (data != null) {
                    $(".retrieve").show();
                    $("#locMsg").html(locNo + "&nbsp;,库位状态:" + data.locSts$);
                    $("#locMsg").html(locNo + "&nbsp;,Статус мест хранения:" + data.locSts$);
                    $('.not-retrieve').hide();
                    currLocNo = locNo;
                } else {
                    layer.msg("请输入有效库位号", {icon: 2});
                    layer.msg("Введите корректный номер ячейки", {icon: 2});
                    $('.not-retrieve').show();
                    $("#locMsg").html("");
                    $(".retrieve").hide();
@@ -193,7 +193,7 @@
    $(document).on('click','#mat-query', function () {
        if (isEmpty(currLocNo)) {
            layer.msg("请先检索库位")
            layer.msg("Пожалуйста, сначала выполните поиск по месту")
            inputTip($("#searchLocNo"));
            return;
        }