自动化立体仓库 - WMS系统
Junjie
2023-06-02 a810d82e6ff0d820da6c888ebd9af0dba655d595
入库通知档上架区域显示
13个文件已修改
78 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/MobileController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/WrkMastController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocDetl.java 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/Mat.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlLogMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/common.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pakStore/stockOut2.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/waitPakin/waitPakin.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/waitPakinLog/waitPakinLog.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/MobileController.java
@@ -88,6 +88,7 @@
            WrkDetl wrkDetl = new WrkDetl();
            wrkDetl.setWrkNo(wrkMast.getWrkNo());
            wrkDetl.setModiTime(now);
            wrkDetl.setMatType(locDetl.getMatType());
            wrkDetl.sync(locDetl);
            wrkDetlService.insert(wrkDetl);
@@ -241,6 +242,7 @@
                wrkDetl.setOrderNo(orderNo);
                wrkDetl.setIoTime(wrkMast.getIoTime());
                wrkDetl.setWrkNo(wrkNo);
                wrkDetl.setMatType(locDetl.getMatType());
                return R.ok().add(wrkDetl);
            }
        }
src/main/java/com/zy/asrs/controller/WrkMastController.java
@@ -418,6 +418,7 @@
            wrkDetl.setModiTime(now);
            wrkDetl.setAppeUser(1L);
            wrkDetl.setModiUser(1L);
            wrkDetl.setMatType(locDetl.getMatType());
            wrkDetlService.insert(wrkDetl);
        }
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -271,6 +271,18 @@
        return locMast.getLocType2$();
    }
    public Integer getMatType() {
        if (Cools.isEmpty(this.matnr)) {
            return null;
        }
        MatService matService = SpringUtils.getBean(MatService.class);
        Mat mat = matService.selectByMatnr(this.matnr);
        if (mat == null) {
            return null;
        }
        return mat.getMatType();
    }
    public String getMatType$() {
        if (Cools.isEmpty(this.matnr)) {
            return "";
src/main/java/com/zy/asrs/entity/Mat.java
@@ -338,9 +338,9 @@
    private Boolean inoutEveryday;
    /**
     * 物料类型{1:单品区,2:高频混放区,3:低频混放区}
     * 上架区域{1:单品区,2:高频混放区,3:低频混放区}
     */
    @ApiModelProperty(value= "物料类型")
    @ApiModelProperty(value= "上架区域")
    @TableField("mat_type")
    private Integer matType;
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -274,6 +274,13 @@
    @ApiModelProperty(value= "是否冻结")
    private Integer frozen;
    /**
     * 上架区域{1:单品区,2:高频混放区,3:低频混放区}
     */
    @ApiModelProperty(value= "上架区域")
    @TableField("mat_type")
    private Integer matType;
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
@@ -367,4 +374,20 @@
        Synchro.Copy(source, this);
    }
    public String getMatType$() {
        if (this.matType == null) {
            return "";
        }
        switch (this.matType) {
            case 1:
                return "单品区";
            case 2:
                return "高频混放区";
            case 3:
                return "低频混放区";
            default:
                return "";
        }
    }
}
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -268,6 +268,13 @@
    @ApiModelProperty(value= "备注")
    private String memo;
    /**
     * 上架区域{1:单品区,2:高频混放区,3:低频混放区}
     */
    @ApiModelProperty(value= "上架区域")
    @TableField("mat_type")
    private Integer matType;
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
@@ -357,5 +364,20 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.appeTime);
    }
    public String getMatType$() {
        if (this.matType == null) {
            return "";
        }
        switch (this.matType) {
            case 1:
                return "单品区";
            case 2:
                return "高频混放区";
            case 3:
                return "低频混放区";
            default:
                return "";
        }
    }
}
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -467,6 +467,7 @@
                        wrkDetl.setModiTime(now);
                        wrkDetl.setModiUser(userId);
                        wrkDetl.setSpecs(locDetl.getSpecs());
                        wrkDetl.setMatType(locDetl.getMatType());
                        if (!wrkDetlService.insert(wrkDetl)) {
                            throw new CoolException("保存工作档明细失败");
                        }
@@ -559,6 +560,7 @@
                wrkDetl.setModiTime(now);
                wrkDetl.setModiUser(userId);
                wrkDetl.setSpecs(detlDto.getLocDetl().getSpecs());
                wrkDetl.setMatType(detlDto.getLocDetl().getMatType());
                if (!wrkDetlService.insert(wrkDetl)) {
                    throw new CoolException("保存工作档明细失败");
                }
@@ -645,6 +647,7 @@
            wrkDetl.setAppeUser(userId);
            wrkDetl.setModiTime(now);
            wrkDetl.setModiUser(userId);
            wrkDetl.setMatType(locDetl.getMatType());
            if (!wrkDetlService.insert(wrkDetl)) {
                throw new CoolException("保存工作档明细失败");
            }
@@ -967,6 +970,7 @@
            wrkDetl.setAppeUser(userId);
            wrkDetl.setModiTime(now);
            wrkDetl.setModiUser(userId);
            wrkDetl.setMatType(locDetl.getMatType());
            if (!wrkDetlService.insert(wrkDetl)) {
                throw new CoolException("保存工作档明细失败");
            }
@@ -1456,6 +1460,7 @@
                    wrkDetl.setAppeUser(9527L);
                    wrkDetl.setModiTime(now);
                    wrkDetl.setModiUser(9527L);
                    wrkDetl.setMatType(locDetl.getMatType());
                    if (!wrkDetlService.insert(wrkDetl)) {
                        throw new CoolException("保存工作档明细失败");
                    }
src/main/resources/mapper/WrkDetlLogMapper.xml
@@ -45,6 +45,7 @@
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="memo" property="memo" />
        <result column="mat_type" property="matType" />
    </resultMap>
</mapper>
src/main/resources/mapper/WrkDetlMapper.xml
@@ -45,6 +45,7 @@
        <result column="appe_user" property="appeUser" />
        <result column="appe_time" property="appeTime" />
        <result column="memo" property="memo" />
        <result column="mat_type" property="matType" />
    </resultMap>
    <sql id="batchSeq">
src/main/webapp/static/js/common.js
@@ -262,7 +262,8 @@
    ,{field: 'check$', align: 'center',title: '要求检验', hide: true}
    ,{field: 'danger$', align: 'center',title: '危险品', hide: true}
    ,{field: 'memo', align: 'center',title: '备注', hide: false}
    ,{field: 'locType2$', align: 'center',title: '上架区域', width: 90}
    // ,{field: 'locType2$', align: 'center',title: '上架区域', width: 90}
    ,{field: 'matType$', align: 'center',title: '上架区域'}
]
function getQueryVariable(variable)
src/main/webapp/static/js/pakStore/stockOut2.js
@@ -2,7 +2,7 @@
var locDetlData = [];
function getCol() {
    var cols = [
        {field: 'count', align: 'center',title: '出库数量', edit:'text', width: 130,  style:'color: blue;font-weight: bold'}
        {field: 'count', align: 'center',title: '出库数量', width: 130,  style:'color: blue;font-weight: bold'}
        ,{field: 'anfme', align: 'center',title: '库存数量'}
    ];
    arrRemove(detlCols,  'field', 'anfme');
src/main/webapp/static/js/waitPakin/waitPakin.js
@@ -2,7 +2,6 @@
function getCol() {
    var cols = [ {type: 'checkbox'} ];
    cols.push.apply(cols, detlCols);
    cols.push({field: 'matType$', align: 'center',title: '物料类型'})
    cols.push({field: 'status', align: 'center',title: '数据状态', templet:function(row){
                var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='正常|锁定'' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
                if(row.status === 'Y'){html += " checked ";}
src/main/webapp/static/js/waitPakinLog/waitPakinLog.js
@@ -3,7 +3,6 @@
    var cols = [
    ];
    cols.push.apply(cols, detlCols);
    cols.push({field: 'matType$', align: 'center',title: '物料类型'})
    cols.push({field: 'status', align: 'center',title: '数据状态', templet:function(row){
                var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='正常|锁定' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'";
                if(row.status === 'Y'){html += " checked ";}