自动化立体仓库 - WMS系统
123
zhang
1 天以前 2e82ef6fd6dfbcb1eb88a8d4b705eae7fb99065b
src/main/webapp/static/js/pakStore/locCheckOut.js
@@ -32,6 +32,7 @@
            tableMerge.render(this);
            limit();
            getOutBound();
            getCheckOrder();
        }
    });
@@ -43,12 +44,14 @@
                    layer.msg('请先添加盘点库存', {icon: 2});
                } else {
                    var staNo = $("#staNoSelect").val();
                    var checkId = $("#checkIdSelect").val();
                    if (staNo === "" || staNo === null){
                        layer.msg("请选择盘点站", {icon: 2});
                        return;
                    }
                    let param = {
                        outSite: staNo,
                        checkId: checkId,
                        locDetls: locDetlData
                    }
                    $.ajax({
@@ -97,6 +100,30 @@
        })
    }
    // 获取盘点单
    function getCheckOrder(){
        $.ajax({
            url: baseUrl+"/inventoryCheckOrder/nav/auth",
            headers: {'token': localStorage.getItem('token')},
            method: 'POST',
            async: false,
            success: function (res) {
                if (res.code === 200){
                    var tpl = $("#takeCheckSelectTemplate").html();
                    var template = Handlebars.compile(tpl);
                    var html = template(res);
                    $('#checkIdSelect').append(html);
                    form.render('select');
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                    layer.msg(res.msg)
                }
            }
        })
    }
    $(document).on('click','#mat-query', function () {
        let loadIndex = layer.msg('请求中...', {icon: 16, shade: 0.01, time: false});
        locDetlLayerIdx = layer.open({