王佳豪
2021-03-26 68ad4cf704c0a7c575936455d07e3e2f53fefbc4
src/main/webapp/views/pda/stockOut.html
@@ -24,6 +24,12 @@
<!-- 头部 -->
<header class="layui-form">
    <div class="layui-input-inline">
        <label class="layui-form-label">单号</label>
        <div class="layui-input-block">
            <input class="layui-input" type="text" id="billNo" onkeyup="findByBillNo(this)" autocomplete="off">
        </div>
    </div>
    <div class="layui-input-inline">
        <label class="layui-form-label">物料</label>
        <div class="layui-input-block">
            <input class="layui-input" type="text" id="matNo" onkeyup="findByMatNo(this)" autocomplete="off">
@@ -62,7 +68,7 @@
<script>
    window.onload = function(){
        document.getElementById("matNo").focus();
        document.getElementById("billNo").focus();
        getOutBound();
    }
@@ -87,13 +93,25 @@
        $("#locNo").val("");
        find(null, el.value);
    }
    function find(locNo, matNo) {
    /**
     * 根据通知单号查找库存明细
     * */
    function findByBillNo(el) {
        if (isEmpty(el.value)) {
            return;
        }
        find(null, null, el.value);
    }
    function find(locNo, matNo, billNo) {
        $.ajax({
            url: baseUrl + "/mobile/locDetl",
            headers: {'token': localStorage.getItem('token')},
            data: {
                locNo: locNo,
                matNo: matNo
                matNo: matNo,
                supplier: billNo,
            },
            method: 'POST',
            success: function (res) {