自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-29 d4e17a37b2c13ab13123fc373d25ffbedfc5f0e7
#
11个文件已修改
99 ■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/MatCodeController.java 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/MatCodeCountDto.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/entity/param/FullStoreParam.java 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/WrkDetlService.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/css/pda.css 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/pakStore/pakStore.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/wrkDetl/wrkDetl.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/matQuery.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/stockIn.html 54 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/MatCodeController.java
@@ -50,7 +50,6 @@
        return R.ok(matCodeService.selectById(String.valueOf(id)));
    }
    @RequestMapping(value = "/matCode/list/auth")
    @ManagerAuth
    public R list(@RequestParam(defaultValue = "1")Integer curr,
src/main/java/com/zy/asrs/entity/MatCodeCountDto.java
@@ -7,12 +7,12 @@
    private String matNo;
    private int count;
    private Double count;
    public MatCodeCountDto() {
    }
    public MatCodeCountDto(String matNo, int count) {
    public MatCodeCountDto(String matNo, Double count) {
        this.matNo = matNo;
        this.count = count;
    }
@@ -25,11 +25,11 @@
        this.matNo = matNo;
    }
    public int getCount() {
    public Double getCount() {
        return count;
    }
    public void setCount(int count) {
    public void setCount(Double count) {
        this.count = count;
    }
}
src/main/java/com/zy/asrs/entity/param/FullStoreParam.java
@@ -7,6 +7,9 @@
 */
public class FullStoreParam {
    // 托盘条码
    private String barcode;
    // 站点编号
    private Integer devpNo;
@@ -19,7 +22,7 @@
        private String matNo;
        // 物料数量
        private Integer count;
        private Double count;
        public String getMatNo() {
            return matNo;
@@ -29,15 +32,23 @@
            this.matNo = matNo;
        }
        public Integer getCount() {
        public Double getCount() {
            return count;
        }
        public void setCount(Integer count) {
        public void setCount(Double count) {
            this.count = count;
        }
    }
    public String getBarcode() {
        return barcode;
    }
    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }
    public Integer getDevpNo() {
        return devpNo;
    }
src/main/java/com/zy/asrs/service/WrkDetlService.java
@@ -8,6 +8,6 @@
public interface WrkDetlService extends IService<WrkDetl> {
    void createWorkDetail(Integer workNo, List<MatCodeCountDto> matCodeCountDtos, Long userId);
    void createWorkDetail(Integer workNo, List<MatCodeCountDto> matCodeCountDtos, String barcode, Long userId);
}
src/main/java/com/zy/asrs/service/impl/WorkServiceImpl.java
@@ -93,7 +93,7 @@
        param.getList().forEach(elem -> {
            matDtos.add(new MatCodeCountDto(elem.getMatNo(), elem.getCount()));
        });
        wrkDetlService.createWorkDetail(workNo, matDtos, userId);
        wrkDetlService.createWorkDetail(workNo, matDtos, param.getBarcode(), userId);
        // 更新源站点信息
        sourceStaNo.setWrkNo(workNo);
        sourceStaNo.setModiUser(userId);
src/main/java/com/zy/asrs/service/impl/WrkDetlServiceImpl.java
@@ -24,7 +24,7 @@
    @Override
    @Transactional
    public void createWorkDetail(Integer workNo, List<MatCodeCountDto> matCodeCountDtos, Long userId) {
    public void createWorkDetail(Integer workNo, List<MatCodeCountDto> matCodeCountDtos, String barcode, Long userId) {
        if (matCodeCountDtos.isEmpty()){
            return;
        }
@@ -38,7 +38,8 @@
            wrkDetl.setWrkNo(workNo);
            wrkDetl.setIoTime(new Date());
            wrkDetl.setMatnr(matCode.getMatNo()); // 物料编号
            wrkDetl.setAnfme((double) dto.getCount()); // 数量
            wrkDetl.setAnfme(dto.getCount()); // 数量
            wrkDetl.setZpallet(barcode); // 托盘条码
            wrkDetl.setLgnum("待定"); // todo
            wrkDetl.setTbnum(0); // todo
            wrkDetl.setTbpos(0); // todo
src/main/webapp/static/css/pda.css
@@ -72,6 +72,7 @@
footer {
    position: absolute;
    bottom: 5px;
    width: 100%;
}
.layui-btn-container .layui-btn {
    margin-left: 10px;
@@ -83,4 +84,8 @@
    margin-left: 5px;
    margin-bottom: 5px;
    vertical-align: middle;
}
.layui-btn-primary:hover {
    border-color: #C9C9C9
}
src/main/webapp/static/js/pakStore/pakStore.js
@@ -64,7 +64,7 @@
                    url: baseUrl+"/full/store/put/start",
                    headers: {'token': localStorage.getItem('token')},
                    data: JSON.stringify({
                        devpNo: $('#putSiteSelect').val(),
                        devpNo: Number($('#putSiteSelect').val()),
                        list: matCodeData
                    }),
                    contentType:'application/json;charset=UTF-8',
src/main/webapp/static/js/wrkDetl/wrkDetl.js
@@ -25,7 +25,7 @@
            // ,{field: 'tbnum', align: 'center',title: '转储请求编号'}
            // ,{field: 'tbpos', align: 'center',title: '行项目'}
            // ,{field: 'zmatid', align: 'center',title: '物料标签ID'}
            ,{field: 'maktx', align: 'center',title: '物料描述'}
            // ,{field: 'maktx', align: 'center',title: '物料描述'}
            // ,{field: 'werks', align: 'center',title: '工厂'}
            ,{field: 'anfme', align: 'center',title: '数量'}
            ,{field: 'altme', align: 'center',title: '单位'}
src/main/webapp/views/pda/matQuery.html
@@ -112,6 +112,7 @@
     */
    function find(el){
        if (isEmpty(el.value)) {
            alert(el.value)
            return;
        }
        $.ajax({
src/main/webapp/views/pda/stockIn.html
@@ -21,9 +21,9 @@
            margin-bottom: 5px;
        }
        .site-list label {
            padding: 0 0 0 15px;
            padding-right: 15px;
        }
        .site-list span {
        .site-list label span {
            vertical-align: middle;
            font-size: 13px;
        }
@@ -90,9 +90,7 @@
<footer>
    <!-- 入库口 -->
    <div class="site-list">
        <label><input class="cool-checkbox" type="radio" name="site"><span>1</span></label>
        <label><input class="cool-checkbox" type="radio" name="site"><span>2</span></label>
        <label><input class="cool-checkbox" type="radio" name="site"><span>3</span></label>
        <span style="display: inline-block; margin:0 0 0 10px; font-size: 12px">入库口:</span>
    </div>
    <div class="layui-btn-container">
        <button type="button" class="layui-btn layui-btn-xs layui-btn-primary" onclick="reset()">重置</button>
@@ -103,6 +101,11 @@
</body>
<script>
    var tableIns;
    window.onload = function(){
        document.getElementById("code").focus();
        getInBound();
    }
    layui.use(['table','laydate', 'form'], function() {
        var table = layui.table;
        var $ = layui.jquery;
@@ -125,8 +128,29 @@
    });
    window.onload = function(){document.getElementById("code").focus();}
    // 获取入库口
    function getInBound(){
        $.ajax({
            url: baseUrl+"/available/put/site",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            async: false,
            success: function (res) {
                if (res.code === 200){
                    var tpl = $("#inSitesTemplate").html();
                    var template = Handlebars.compile(tpl);
                    var html = template(res);
                    $('.site-list').append(html);
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/pda";
                }else {
                    tips("获取入库口失败", true)
                }
            }
        })
    }
    // 提取物料
    var matCodeLayerIdx;
    function getMat() {
        matCodeLayerIdx = layer.open({
@@ -183,12 +207,19 @@
            tips("请提取物料", true);
            return;
        }
        let site = $('input:radio[name="site"]:checked').next("span").html();
        console.log(site);
        if (null === site || undefined === site) {
            tips("请选择入库口", true);
            return;
        }
        $.ajax({
            url: baseUrl+"/mobile/comb/auth",
            url: baseUrl+"/full/store/put/start",
            headers: {'token': localStorage.getItem('token')},
            data: JSON.stringify({
                barcode: barcode,
                combMats: matData
                devpNo: site,
                list: matData
            }),
            contentType:'application/json;charset=UTF-8',
            method: 'POST',
@@ -196,7 +227,7 @@
            success: function (res) {
                if (res.code === 200) {
                    reset();
                    tips("组托成功")
                    tips("启动入库成功")
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
                } else {
@@ -217,4 +248,9 @@
        tips.css("color", warn?"red":'#666');
    }
</script>
<script type="text/template" id="inSitesTemplate">
    {{#each data}}
    <label><input class="cool-checkbox" type="radio" name="site"><span>{{this}}</span></label>
    {{/each}}
</script>
</html>