zjj
2024-01-03 c306561dd021f79cc46ddc847c25b120ff352eda
#库位编码映射
4个文件已修改
13 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/MapController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocMast.java 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/wms/js/locMast/locMast.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/home/map.html 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/MapController.java
@@ -93,6 +93,7 @@
                        jsonObject.put("value", 10);//将禁用库位进行设置
                    }
                    jsonObject.put("locNo", locMast.getLocNo());//设置库位号
                    jsonObject.put("locNo$", locMast.getLocNo$());//设置库位号
                    jsonObject.put("locSts", locMast.getLocSts());//库位状态
                    jsonObject.put("barcode", Optional.ofNullable(locMast.getBarcode()).orElse("无"));//托盘号
src/main/java/com/zy/asrs/entity/LocMast.java
@@ -7,6 +7,7 @@
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.service.BasLocStsService;
import com.zy.asrs.utils.Utils;
import com.zy.system.entity.User;
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
@@ -185,6 +186,13 @@
    @TableField(exist = false)
    private String emptyContainer;
    public String getLocNo$(){
        if (Cools.isEmpty(this.locNo)){
            return "";
        }
        return Utils.getWmsLocNo(this.locNo);
    }
    public String getEmptyContainer$(){
        if (Cools.isEmpty(this.emptyContainer)){
            return "";
src/main/webapp/static/wms/js/locMast/locMast.js
@@ -22,6 +22,7 @@
            {type: 'checkbox', fixed: 'left'}
//            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'locNo', align: 'center',title: '库位号',sort:true}
            ,{field: 'locNo$', align: 'center',title: '库位号',sort:true}
            ,{field: 'locSts$', align: 'center',title: '库位状态',width:200}
            // ,{field: 'whsType$', align: 'center',title: '库位类型'}
            // ,{field: 'pltType', align: 'center',title: ''}
src/main/webapp/views/home/map.html
@@ -538,6 +538,9 @@
                    库位号: {{ map[mapI][mapJ].locNo }}
                </div>
                <div style="margin-top: 10px;">
                    库位号: {{ map[mapI][mapJ].locNo$}}
                </div>
                <div style="margin-top: 10px;">
                    库位状态: {{ getLocSts(map[mapI][mapJ].locSts) }}
                </div>
                <div style="margin-top: 10px;">