自动化立体仓库 - WMS系统
#
luxiaotao1123
2020-06-29 bfd1b6b4a11ec3d6a24daefdc9bcc04ff3fa7155
#
2个文件已修改
72 ■■■■ 已修改文件
src/main/webapp/views/pda/matQuery.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/stockOut.html 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/pda/matQuery.html
@@ -112,7 +112,6 @@
     */
    function find(el){
        if (isEmpty(el.value)) {
            alert(el.value)
            return;
        }
        $.ajax({
src/main/webapp/views/pda/stockOut.html
@@ -110,7 +110,7 @@
<header>
    <div class="layui-input-inline">
        <label class="layui-form-label">库位</label>
        <input class="layui-input" type="text" id="locNo" autocomplete="off">
        <input class="layui-input" type="text" id="locNo" onkeyup="findLocDetl(this)" autocomplete="off">
    </div>
    <div class="layui-input-inline">
        <label class="layui-form-label">物料</label>
@@ -135,31 +135,42 @@
</footer>
</body>
<script>
    window.onload = function(){
        document.getElementById("locNo").focus();
        getOutBound();
    }
    layui.use(['table','laydate', 'form'], function() {
        var table = layui.table;
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        tableIns = table.render({
            elem: '#dataByLoc',
            data: [],
            limit: 500,
            cellMinWidth: 50,
            cols: [[
                {type: 'checkbox', fixed: 'left', width:30},
                {fixed: 'left', align: 'center', field: 'count', title: '量', style:'color: blue', width:30},
                {field: 'matNo', align: 'center', title: '物料编码'},
                {field: 'matName', align: 'center', title: '物料名称'}
            ]],
            done: function (res, curr, count) {
    /**
     * 根据库位号查找库存明细
     */
    function findLocDetl(el){
        if (isEmpty(el.value)) {
            return;
            }
        });
        $.ajax({
            url: baseUrl + "/matCode/auth",
            headers: {'token': localStorage.getItem('token')},
            data: {
                id: el.value
            },
            method: 'POST',
            success: function (res) {
                if (res.code === 200) {
                    if (res.data != null) {
                        $('#matName').val(res.data.matName);
                        $('#str1').val(res.data.str1);
                        $('#str2').val(res.data.str2);
                        countDom.focus().val(initMatCount)
                    }
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/pda";
                } else {
                    alert(res.msg)
                }
            }
        })
    }
        // 获取出库口
        function getOutBound(){
@@ -183,6 +194,26 @@
            })
        }
    layui.use(['table','laydate', 'form'], function() {
        var table = layui.table;
        var $ = layui.jquery;
        var layer = layui.layer;
        var form = layui.form;
        tableIns = table.render({
            elem: '#dataByLoc',
            data: [],
            limit: 500,
            cellMinWidth: 50,
            cols: [[
                {type: 'checkbox', fixed: 'left', width:30},
                {fixed: 'left', align: 'center', field: 'count', title: '量', style:'color: blue', width:30},
                {field: 'matNo', align: 'center', title: '物料编码'},
                {field: 'matName', align: 'center', title: '物料名称'}
            ]],
            done: function (res, curr, count) {
            }
        });
    });
</script>
<script type="text/template" id="outSitesTemplate">