自动化立体仓库 - WMS系统
wang..123
2022-02-15 7182f72ba4781c620eebdf501ca46b3f69f5585d
字段添加完成,测试完成
22个文件已修改
129 ■■■■ 已修改文件
src/main/java/com/zy/asrs/entity/LocDetl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/MatCodeCountDto.java 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetl.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/WrkDetlLog.java 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/LocDetlService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/LocDetlServiceImpl.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/common/web/WcsController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/LocDetlMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlLogMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/WrkDetlMapper.xml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locDetl/locDetl.js 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pakStore/pakStore.js 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pltBarcode/pltBarcode.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/report/locDetl.html 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/wrkMast/wrkDetl.html 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
version/db/sxjzasrs20220211.bak 补丁 | 查看 | 原始文档 | blame | 历史
version/db/捷众数据库增加字段列表.txt 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/LocDetl.java
@@ -111,6 +111,10 @@
    @TableField("vendor")
    private String vendor;
    @ApiModelProperty(value= "每箱数量")
    @TableField("qty_box")
    private Double qtyBox;
    public String getLocNo$(){
        LocMastService service = SpringUtils.getBean(LocMastService.class);
        LocMast locMast = service.selectById(this.locNo);
src/main/java/com/zy/asrs/entity/MatCodeCountDto.java
@@ -39,25 +39,38 @@
        this.memo = memo;
    }
    public MatCodeCountDto() {
    }
    public MatCodeCountDto(String matNo, Double count) {
        this.matNo = matNo;
        this.count = count;
    }
    public MatCodeCountDto(String matNo, String supplier, Double count, String memo) {
    public MatCodeCountDto(String matNo, String supplier, Double count, String memo,String source, String vendor) {
        this.matNo = matNo;
        this.count = count;
        this.supplier = supplier;
        this.memo = memo;
        this.source = source;
        this.vendor= vendor;
    }
    public MatCodeCountDto(String matNo, String supplier, Double count) {
    public MatCodeCountDto(String matNo, String supplier, Double count,String source, String vendor) {
        this.matNo = matNo;
        this.supplier = supplier;
        this.count = count;
        this.source = source;
        this.vendor= vendor;
    }
    public MatCodeCountDto(String billNo, Integer seqNo, String matNo, String supplier, Double count,String source, String vendor) {
        this.matNo = matNo;
        this.count = count;
        this.billNo = billNo;
        this.supplier = supplier;
        this.seqNo = seqNo;
        this.source = source;
        this.vendor= vendor;
    }
    public MatCodeCountDto(String billNo, Integer seqNo, String matNo, String supplier, Double count) {
@@ -67,8 +80,6 @@
        this.supplier = supplier;
        this.seqNo = seqNo;
    }
    public String getBillNo() { return billNo; }
    public void setBillNo(String billNo) { this.billNo = billNo; }
src/main/java/com/zy/asrs/entity/WrkDetl.java
@@ -163,6 +163,9 @@
    @TableField("vendor")
    private String vendor;
    @ApiModelProperty(value= "每箱数量")
    @TableField("qty_box")
    private Double qtyBox;
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
src/main/java/com/zy/asrs/entity/WrkDetlLog.java
@@ -156,7 +156,10 @@
    @ApiModelProperty(value= "供应商")
    @TableField("vendor")
    private String vendor;
    @ApiModelProperty(value = "每箱数量")
    @TableField("qty_box")
    private Double qtyBox;
    public String getIoTime$(){
        if (Cools.isEmpty(this.ioTime)){
            return "";
src/main/java/com/zy/asrs/service/LocDetlService.java
@@ -15,7 +15,7 @@
    /**
     * ä¿®æ”¹åº“存明细数量,如果数量为0,则删除记录
     */
    boolean updateAnfme(Double qty, String locNo, String matNo);
    boolean updateAnfme(Double qty, String locNo, String matNo,String supplier);
    boolean updateLocNo(String newLocNo, String oldLocNo);
src/main/java/com/zy/asrs/service/impl/LocDetlServiceImpl.java
@@ -26,9 +26,9 @@
    }
    @Override
    public boolean updateAnfme(Double qty, String locNo, String matNo) {
    public boolean updateAnfme(Double qty, String locNo, String matNo,String supplier) {
        if (qty <= 0) {
            return delete(new EntityWrapper<LocDetl>().eq("loc_no", locNo).eq("mat_no", matNo));
            return delete(new EntityWrapper<LocDetl>().eq("loc_no", locNo).eq("mat_no", matNo).eq("supplier",supplier));
        } else {
            int res = baseMapper.updateAnfme(qty, locNo, matNo);
            return res > 0;
src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -166,6 +166,7 @@
                pltBarcode.setAllWeight(matCode.getWeight()*pltBarcode.getQty()+30);
                pltBarcode.setVendor(combMat.getVendor());
                pltBarcode.setSource(combMat.getSource());
                pltBarcode.setQtyBox(matCode.getStr6());
                if (!pltBarcodeService.insert(pltBarcode)) {
                    throw new CoolException("保存数据失败");
                }
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -125,7 +125,7 @@
        // ç”Ÿæˆå·¥ä½œæ¡£æ˜Žç»†
        List<MatCodeCountDto> matDtos = new ArrayList<>();
        param.getList().forEach(elem -> {
            matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getSupplier(), elem.getCount(),elem.getMemo()));
            matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getSupplier(), elem.getCount(),elem.getMemo(),elem.getSource(),elem.getVendor()));
        });
        wrkDetlService.createWorkDetail(workNo, matDtos, param.getBarcode(), userId);
        // æ›´æ–°æºç«™ç‚¹ä¿¡æ¯
src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java
@@ -68,6 +68,8 @@
            wrkDetl.setAllWeight(matCode.getWeight()*dto.getCount()+30);
            wrkDetl.setSource(dto.getSource());
            wrkDetl.setVendor(dto.getVendor());
            wrkDetl.setWeight(matCode.getWeight());
            wrkDetl.setQtyBox(matCode.getStr6());
            if (!this.insert(wrkDetl)) {
                throw new CoolException("保存工作明细失败");
            }
src/main/java/com/zy/asrs/task/handler/WorkMastHandler.java
@@ -44,7 +44,8 @@
    private IoCompleteService ioCompleteService;
    @Autowired
    private PltBarcodeService pltBarcodeService;
    @Autowired
    private  MatCodeService matCodeService;
    /**
     * ERP接口是否启用
     */
@@ -99,14 +100,17 @@
                    for (WrkDetl wrkDetl : wrkDetls) {
                        LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", wrkMast.getLocNo()).eq("mat_no", wrkDetl.getMatNo()).eq("supplier", wrkDetl.getSupplier()));
                        if (null != locDetl) {
                            boolean res = locDetlService.updateAnfme(wrkDetl.getQty()+locDetl.getQty(), wrkMast.getLocNo(), wrkDetl.getMatNo());
                            boolean res = locDetlService.updateAnfme(wrkDetl.getQty()+locDetl.getQty(), wrkMast.getLocNo(), wrkDetl.getMatNo(),wrkDetl.getSupplier());
                            if (!res) {
                                exceptionHandle("全板入库 ===>> æ›´æ–°åº“存明细失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo());
                            }
                        } else {
                            WrkDetl wrk_no = wrkDetlService.selectOne(new EntityWrapper<WrkDetl>()
                                    .eq("wrk_no", wrkMast.getWrkNo()));
                                    .eq("wrk_no", wrkMast.getWrkNo()).eq("mat_no",wrkDetl.getMatNo()).eq("supplier",wrkDetl.getSupplier()));
                            MatCode matCode = matCodeService.selectOne(new EntityWrapper<MatCode>().eq("mat_no", wrkDetl.getMatNo()));
                            locDetl = new LocDetl();
                            
                            locDetl.setLocNo(wrkMast.getLocNo()); // åº“位号
@@ -118,6 +122,8 @@
                            locDetl.setAllWeight(wrk_no.getAllWeight());
                            locDetl.setSource(wrk_no.getSource());
                            locDetl.setVendor(wrk_no.getVendor());
                            locDetl.setWeight(matCode.getWeight());
                            locDetl.setQtyBox(matCode.getStr6());
                            if (!Cools.isEmpty(wrk_no)){
                                locDetl.setMemo(wrk_no.getMemo());
                                locDetl.setSupplier(wrk_no.getSupplier());
@@ -194,7 +200,7 @@
                        // ä¿®æ”¹åº“存明细数量,如果工作明细数量为0时,删除库存明细
                        LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo()).eq("mat_no", wrkDetl.getMatNo()));
                        if (null != locDetl) {
                            if (!locDetlService.updateAnfme(locDetl.getQty() - wrkDetl.getQty(), locMast.getLocNo(), wrkDetl.getMatNo())) {
                            if (!locDetlService.updateAnfme(locDetl.getQty() - wrkDetl.getQty(), locMast.getLocNo(), wrkDetl.getMatNo(),wrkDetl.getSupplier())) {
                                exceptionHandle("拣料入库 ===>> ä¿®æ”¹åº“存明细数量失败;[workNo={0}],[locNo={1}]", wrkMast.getWrkNo(), wrkMast.getLocNo());
                            }
@@ -253,7 +259,7 @@
                    for (WrkDetl wrkDetl:wrkDetls54) {
                        LocDetl locDetl = locDetlService.selectOne(new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo()).eq("mat_no", wrkDetl.getMatNo()));
                        if (null != locDetl) {
                            if (!locDetlService.updateAnfme(wrkDetl.getQty()+locDetl.getQty(), locMast.getLocNo(), wrkDetl.getMatNo())) {
                            if (!locDetlService.updateAnfme(wrkDetl.getQty()+locDetl.getQty(), locMast.getLocNo(), wrkDetl.getMatNo(),wrkDetl.getSupplier())) {
                                exceptionHandle("并板入库 ===>> ä¿®æ”¹åº“存明细数量失败;[workNo={0}],[matNo={1}]", wrkMast.getWrkNo(), wrkDetl.getMatNo());
                            }
                        } else {
src/main/java/com/zy/common/web/WcsController.java
@@ -140,7 +140,7 @@
        // ç”Ÿæˆå·¥ä½œæ¡£æ˜Žç»†
        List<MatCodeCountDto> matDtos = new ArrayList<>();
        pltBarcodes.forEach(elem -> {
            matDtos.add(new MatCodeCountDto(elem.getBillNo(), elem.getSeqNo(), elem.getMatNo(), null, elem.getQty()));
            matDtos.add(new MatCodeCountDto(elem.getBillNo(), elem.getSeqNo(), elem.getMatNo(), null, elem.getQty(),elem.getSource(),elem.getVendor()));
            //更新组托数据状态为入库中
            Wrapper<PltBarcode> wrapper = new EntityWrapper<PltBarcode>().eq("barcode", elem.getBarcode())
src/main/resources/mapper/LocDetlMapper.xml
@@ -27,6 +27,7 @@
        <result column="all_weight" property="allWeight"/>
        <result column="source" property="source" />
        <result column="vendor" property="vendor" />
        <result column="qty_box" property="qtyBox"/>
    </resultMap>
    <sql id="stockOutCondition">
src/main/resources/mapper/WrkDetlLogMapper.xml
@@ -29,6 +29,7 @@
        <result column="all_weight" property="allWeight"/>
        <result column="source" property="source" />
        <result column="vendor" property="vendor" />
        <result column="qty_box" property="qtyBox"/>
    </resultMap>
</mapper>
src/main/resources/mapper/WrkDetlMapper.xml
@@ -29,6 +29,7 @@
        <result column="all_weight" property="allWeight"/>
        <result column="source" property="source" />
        <result column="vendor" property="vendor" />
        <result column="qty_box" property="qtyBox"/>
    </resultMap>
    <select id="queryWrkDetl" resultMap="BaseResultMap">
src/main/webapp/static/js/locDetl/locDetl.js
@@ -4,9 +4,11 @@
        {field: 'matNo', align: 'center',title: '产品编码'}
        ,{field: 'matName', align: 'center',title: '产品名称'}
        ,{field: 'specs', align: 'center',title: '规格'}
        ,{field: 'qty', align: 'center',title: '数量'}
        ,{field: 'allQty', align: 'center',title: '总数量'}
        ,{field: 'allWeight', align: 'center',title: '总重量'}
        ,{field: 'qty', align: 'center',title: '入库数量'}
        ,{field: 'qtyBox', align: 'center',title: '每箱数量(PCS)'}
        ,{field: 'allQty', align: 'center',title: '总数量(PCS)'}
        ,{field: 'weight', align: 'center',title: '每箱重量(KG)'}
        ,{field: 'allWeight', align: 'center',title: '总重量(KG)'}
        ,{field: 'source', align: 'center',title: '来源'}
        ,{field: 'vendor', align: 'center',title: '供应商'}
        ,{field: 'unit', align: 'center',title: '单位', width:80, hide: true}
src/main/webapp/static/js/pakStore/pakStore.js
@@ -6,9 +6,9 @@
        {fixed: 'left', field: 'count', title: '数量(必填)', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'supplier', title: '批号', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'source', title: '来源', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'vendor', title: '供应商', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'},
        {field: 'allqty', title: '总数量', align: 'center'},
        {field: 'allweight', title: '总重量', align: 'center'}
        {field: 'vendor', title: '供应商', align: 'center', edit:'text', width: 120,  style:'color: blue;font-weight: bold'}
        // {field: 'allqty', title: '总数量', align: 'center'},
        // {field: 'allweight', title: '总重量', align: 'center'}
    ];
    cols.push.apply(cols, matCols);
    cols.push(
@@ -57,6 +57,22 @@
                    }
                }
                break
            case 'source':
                for (var i=0;i<matCodeData.length;i++){
                    if (matCodeData[i]["matNo"] === obj.data.matNo
                        && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){
                        matCodeData[i]["source"] = obj.data.source;
                    }
                }
                break;
            case 'vendor':
                for (var i=0;i<matCodeData.length;i++){
                    if (matCodeData[i]["matNo"] === obj.data.matNo
                        && (matCodeData[i]["supplier"] === obj.data.supplier || matCodeData[i]["supplier"]==='')){
                        matCodeData[i]["vendor"] = obj.data.vendor;
                    }
                }
                break;
        }
    });
src/main/webapp/static/js/pltBarcode/pltBarcode.js
@@ -28,8 +28,8 @@
            ,{field: 'matNo', align: 'center',title: '物料编码'}
            ,{field: 'matName', align: 'center',title: '物料名称'}
            ,{field: 'qty', align: 'center',title: '入库数量'}
            ,{field: 'qtyBox', align: 'center',title: '每箱数量'}
            ,{field: 'allQty', align: 'center',title: '总数量'}
            ,{field: 'qtyBox', align: 'center',title: '每箱数量(PCS)'}
            ,{field: 'allQty', align: 'center',title: '总数量(PCS)'}
            ,{field: 'locNo', align: 'center',title: '库位号'}
            ,{field: 'specs', align: 'center',title: '规格'}
            ,{field: 'unit', align: 'center',title: '单位'}
src/main/webapp/static/js/wrkDetlLog/wrkDetlLog.js
@@ -3,8 +3,10 @@
    var cols = [
        {field: 'wrkNo', align: 'center',title: '工作号'}
        ,{field: 'ioTime$', align: 'center',title: '工作时间'}
        ,{field: 'allQty', align: 'center',title: '总数量'}
        ,{field: 'allWeight', align: 'center',title: '总重量'}
        ,{field: 'qtyBox', align: 'center',title: '每箱数量(PCS)'}
        ,{field: 'allQty', align: 'center',title: '总数量(PCS)'}
        ,{field: 'weight', align: 'center',title: '每箱重量(KG)'}
        ,{field: 'allWeight', align: 'center',title: '总重量(KG)'}
        ,{field: 'source', align: 'center',title: '来源'}
        ,{field: 'vendor', align: 'center',title: '供应商'}
    ];
src/main/webapp/views/report/locDetl.html
@@ -37,9 +37,11 @@
            {field: 'matNo', align: 'center',title: '产品编码'}
            ,{field: 'matName', align: 'center',title: '产品名称'}
            ,{field: 'specs', align: 'center',title: '规格'}
            ,{field: 'qty', align: 'center',title: '数量'}
            ,{field: 'allQty', align: 'center',title: '总数量'}
            ,{field: 'allWeight', align: 'center',title: '总重量'}
            ,{field: 'qty', align: 'center',title: '入库数量'}
            ,{field: 'qtyBox', align: 'center',title: '每箱数量(PCS)'}
            ,{field: 'allQty', align: 'center',title: '总数量(PCS)'}
            ,{field: 'weight', align: 'center',title: '每箱重量(KG)'}
            ,{field: 'allWeight', align: 'center',title: '总重量(KG)'}
            ,{field: 'source', align: 'center',title: '来源'}
            ,{field: 'vendor', align: 'center',title: '供应商'}
            ,{field: 'unit', align: 'center',title: '单位', width:80, hide: true}
src/main/webapp/views/wrkMast/wrkDetl.html
@@ -35,9 +35,11 @@
            ,{field: 'matNo', align: 'center',title: '产品编码'}
            ,{field: 'matName', align: 'center',title: '产品名称'}
            ,{field: 'specs', align: 'center',title: '规格'}
            ,{field: 'qty', align: 'center',title: '数量'}
            ,{field: 'allQty', align: 'center',title: '总数量'}
            ,{field: 'allWeight', align: 'center',title: '总重量'}
            ,{field: 'qty', align: 'center',title: '入库数量'}
            ,{field: 'qtyBox', align: 'center',title: '每箱数量(PCS)'}
            ,{field: 'allQty', align: 'center',title: '总数量(PCS)'}
            ,{field: 'weight', align: 'center',title: '每箱重量(KG)'}
            ,{field: 'allWeight', align: 'center',title: '总重量(KG)'}
            ,{field: 'source', align: 'center',title: '来源'}
            ,{field: 'vendor', align: 'center',title: '供应商'}
            ,{field: 'unit', align: 'center',title: '单位', width:80, hide: true}
version/db/sxjzasrs20220211.bak
Binary files differ
version/db/½ÝÖÚÊý¾Ý¿âÔö¼Ó×Ö¶ÎÁбí.txt
@@ -4,10 +4,10 @@
工作档(wrk_detl和wrk_detl_log)有:all_qty(总数量,浮点类型)   all_weight(总重量,浮点类型)
source(来源,字符串)   vendor(供应商,字符串)
source(来源,字符串)   vendor(供应商,字符串)  qty_box(每箱数量,浮点类型)
库存表(loc_detl)有:all_qty(总数量,浮点类型)   all_weight(总重量,浮点类型)
source(来源,字符串)   vendor(供应商,字符串)
source(来源,字符串)   vendor(供应商,字符串)  qty_box(每箱数量,浮点类型)
物料表(mat_code)变更有:str3(客户名称,字符串) str4(项目信息,字符串) str5(类别,字符串)