王佳豪
2021-07-07 9a4530ace0c4305af2d75fc95654a16c6007fd5b
平仓管理、平仓日入库支持同时查询成品和原材料
6个文件已修改
148 ■■■■■ 已修改文件
src/main/java/com/zy/asrs/controller/LocAreaController.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locNormal/locNormal.js 60 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locNormal/locNormalIn.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locNormal/normalReport.js 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/locNormal/locNormal.html 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/locNormal/normalReport.html 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/zy/asrs/controller/LocAreaController.java
@@ -139,4 +139,10 @@
        List<LocArea> result = locAreaService.queryAllLocArea(areaType);
        return R.ok(result);
    }
    @RequestMapping(value = "locArea/query/allArea")
    public R queryAllArea() {
        List<LocArea> result = locAreaService.selectList(new EntityWrapper<>());
        return R.ok(result);
    }
}
src/main/webapp/static/js/locNormal/locNormal.js
@@ -19,41 +19,6 @@
    return cols;
}
// 获取仓库下拉
$.ajax({
    url: baseUrl + "/locArea/queryAll/auth",
    headers: {'token': localStorage.getItem('token')},
    // data: top.reObject(data),
    method: 'POST',
    success: function (res) {
        if (res.data && res.data.length > 0) {
            locArea = res.data;
        }
    },
});
// 库区下拉
// 获取仓库下拉
$.ajax({
    url: baseUrl + "/locArea/queryAll/auth",
    headers: {'token': localStorage.getItem('token')},
    method: 'POST',
    success: function (res) {
        if (res.code === 200) {
            var html = "";
            if (res.data && res.data.length > 0) {
                html += res.data.map(function (item) {
                    return "<Option value=" + item.uuid + ">" + item.name + "</Option>";
                });
            }
            $('#putSiteSelect').append(html);
        } else if (res.code === 403) {
            top.location.href = baseUrl + "/";
        } else {
            layer.msg(res.msg)
        }
    }
})
layui.use(['table', 'laydate', 'form', 'upload'], function () {
    var table = layui.table;
@@ -63,6 +28,31 @@
    var form = layui.form;
    var upload = layui.upload;
    // 库区下拉
    // 获取仓库下拉
    $.ajax({
        url: baseUrl + "/locArea/query/allArea",
        headers: {'token': localStorage.getItem('token')},
        method: 'POST',
        success: function (res) {
            if (res.code === 200) {
                var html = "";
                if (res.data && res.data.length > 0) {
                    locArea = res.data;
                    html += res.data.map(function (item) {
                        return "<Option value=" + item.uuid + ">" + item.name + "</Option>";
                    });
                }
                $('#putSiteSelect').append(html);
                layui.form.render('select');
            } else if (res.code === 403) {
                top.location.href = baseUrl + "/";
            } else {
                layer.msg(res.msg)
            }
        }
    });
    // 导入excel
    var uploader = upload.render({
        elem: '#uploadEx'
src/main/webapp/static/js/locNormal/locNormalIn.js
@@ -195,7 +195,7 @@
    function getInBound() {
        // 获取仓库下拉
        $.ajax({
            url: baseUrl + "/locArea/queryAll/auth",
            url: baseUrl + "/locArea/query/allArea",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            success: function (res) {
src/main/webapp/static/js/locNormal/normalReport.js
@@ -16,46 +16,10 @@
        , {field: 'mnemonic', align: 'center', title: '生产单号', width: 140}
        , {field: 'supplier', align: 'center', title: '通知单号', width: 140}
        , {field: 'memo', align: 'center', title: '备注'}
    )
    return cols;
}
// 获取仓库下拉
$.ajax({
    url: baseUrl + "/locArea/queryAll/auth",
    headers: {'token': localStorage.getItem('token')},
    // data: top.reObject(data),
    method: 'POST',
    success: function (res) {
        if (res.data && res.data.length > 0) {
            locArea = res.data;
        }
    },
});
// 库区下拉
// 获取仓库下拉
$.ajax({
    url: baseUrl + "/locArea/queryAll/auth",
    headers: {'token': localStorage.getItem('token')},
    method: 'POST',
    success: function (res) {
        if (res.code === 200) {
            var html = "";
            if (res.data && res.data.length > 0) {
                html += res.data.map(function (item) {
                    return "<Option value=" + item.uuid + ">" + item.name + "</Option>";
                });
            }
            $('#putSiteSelect').append(html);
        } else if (res.code === 403) {
            top.location.href = baseUrl + "/";
        } else {
            layer.msg(res.msg)
        }
    }
})
layui.use(['table', 'laydate', 'form', 'upload'], function () {
    var table = layui.table;
@@ -65,6 +29,31 @@
    var form = layui.form;
    var upload = layui.upload;
    // 库区下拉
    // 获取仓库下拉
    $.ajax({
        url: baseUrl + "/locArea/query/allArea",
        headers: {'token': localStorage.getItem('token')},
        method: 'POST',
        success: function (res) {
            if (res.code === 200) {
                var html = "";
                if (res.data && res.data.length > 0) {
                    locArea = res.data;
                    html += res.data.map(function (item) {
                        return "<Option value=" + item.uuid + ">" + item.name + "</Option>";
                    });
                }
                $('#putSiteSelect').append(html);
                layui.form.render('select');
            } else if (res.code === 403) {
                top.location.href = baseUrl + "/";
            } else {
                layer.msg(res.msg)
            }
        }
    });
    // 数据渲染
    tableIns = table.render({
        elem: '#locNormal',
src/main/webapp/views/locNormal/locNormal.html
@@ -168,15 +168,6 @@
        {{#  } else { }}
        {{#  } }}
    </script>
    <script type="text/html" id="locArea">
        {{
        locArea.map(function(item){
        if (d.warehouse == item.uuid) {
        return item.name;
        }
        });
        }}
    </script>
    <script type="text/html" id="operate">
        {{#  if(d.state === '1'){ }}
        <button class="layui-btn layui-btn-xs layui-btn-normal btn-out" lay-event="outLocNormal">出库</button>
src/main/webapp/views/locNormal/normalReport.html
@@ -140,16 +140,6 @@
        <table class="layui-hide" id="locNormal" lay-filter="locNormal"></table>
    </div>
    <script type="text/html" id="locArea">
        {{
        locArea.map(function(item){
        if (d.warehouse == item.uuid) {
        return item.name;
        }
        });
        }}
    </script>
</div>
<script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>