王佳豪
2021-03-12 08a9f9426f224295e29ed882d7c7bf11d1b71aec
1.0.3
平仓管理-增加库区的检索条件
3个文件已修改
35 ■■■■■ 已修改文件
src/main/webapp/static/js/locNormal/locNormal.js 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/locNormal/locNormal.html 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/locNormal/locNormalIn.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/locNormal/locNormal.js
@@ -32,6 +32,30 @@
    },
});
// 库区下拉
// 获取仓库下拉
$.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.id + ">" + item.name + "</Option>";
                });
            }
            $('#putSiteSelect').append(html);
            form.render('select');
        } 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;
    var $ = layui.jquery;
src/main/webapp/views/locNormal/locNormal.html
@@ -93,13 +93,18 @@
                <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off">
            </div>
        </div>
        <div class="layui-inline">
        <div class="layui-inline" style="width: 150px">
            <select id="matStatusSelect" name="state">
                <option value="">请选择出入库状态</option>
                <option value="">出入库状态</option>
                <option value="1">已入库</option>
                <option value="2">已出库</option>
            </select>
        </div>
        <div class="layui-inline" style="width: 150px">
            <select id="putSiteSelect" name="warehouse">
                <option value="">请选择库区</option>
            </select>
        </div>
        <!-- 待添加 -->
        <div id="data-search-btn" class="layui-btn-container layui-form-item" style="display: inline-block">
src/main/webapp/views/locNormal/locNormalIn.html
@@ -93,7 +93,7 @@
                <!-- 1.选择入库口 -->
                <span id="staNoSpan">库区:</span>
                <select id="putSiteSelect" lay-verify="required">
                    <option value="">请选择站点</option>
                    <option value="">请选择库区</option>
                </select>
                <!-- 2.启动出库 -->
                <button class="layui-btn layui-btn-normal layui-btn-lg" id="btn-locIn" lay-event="comb">启动入库</button>