自动化立体仓库 - WMS系统
#
luxiaotao1123
2021-08-27 dcaddd08c699a87b099811e9a7a73bb358edef5d
#
2个文件已修改
64 ■■■■■ 已修改文件
src/main/java/com/zy/ints/controller/WaitMatinController.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/waitMatin/waitMatin.js 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/ints/controller/WaitMatinController.java
@@ -130,6 +130,9 @@
        if (Cools.isEmpty(waitMatins)) {
            return R.parse(BaseRes.PARAM);
        }
        if (waitMatinService.selectCount(new EntityWrapper<WaitMatin>().eq("bill_no", waitMatins.get(0).getBillNo())) > 0) {
            return R.error("单据编号已存在");
        }
        int i = 1;
        Date now = new Date();
        for (WaitMatin waitMatin : waitMatins) {
src/main/webapp/static/js/waitMatin/waitMatin.js
@@ -166,49 +166,26 @@
                        layer.msg('单据明细数量不合法', {icon: 2});
                        return false;
                    }
                    if (isExpAdd) {
                        layer.load(2);
                        $.ajax({
                            url: baseUrl+"/waitMatin/add/auth",
                            headers: {'token': localStorage.getItem('token')},
                            data: JSON.stringify(param),
                            contentType:'application/json;charset=UTF-8',
                            method: 'POST',
                            success: function (res) {
                                layer.closeAll('loading');
                                if (res.code === 200){
                                    layer.close(dIndex);
                                    insTb.reload({page: {curr: 1}});
                                    layer.msg(res.msg, {icon: 1});
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                }else {
                                    layer.msg(res.msg, {icon: 2});
                                }
                    layer.load(2);
                    $.ajax({
                        url: baseUrl+"/waitMatin/" + (isExpAdd?"add":"modify") + "/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify(param),
                        contentType:'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function (res) {
                            layer.closeAll('loading');
                            if (res.code === 200){
                                layer.close(dIndex);
                                insTb.reload({page: {curr: 1}});
                                layer.msg(res.msg, {icon: 1});
                            } else if (res.code === 403){
                                top.location.href = baseUrl+"/";
                            }else {
                                layer.msg(res.msg, {icon: 2});
                            }
                        })
                    } else {
                        layer.load(2);
                        $.ajax({
                            url: baseUrl+"/waitMatin/modify/auth",
                            headers: {'token': localStorage.getItem('token')},
                            data: JSON.stringify(param),
                            contentType:'application/json;charset=UTF-8',
                            method: 'POST',
                            success: function (res) {
                                layer.closeAll('loading');
                                if (res.code === 200){
                                    layer.close(dIndex);
                                    insTb.reload({page: {curr: 1}});
                                    layer.msg(res.msg, {icon: 1});
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                }else {
                                    layer.msg(res.msg, {icon: 2});
                                }
                            }
                        })
                    }
                        }
                    })
                    return false;
                });
                // 明细表格