自动化立体仓库 - WMS系统
*
lsh
10 小时以前 9d831229b5a8c238ce55f4ee8de7433c56cbe3a8
src/main/webapp/static/js/locDetl/locDetl.js
@@ -470,6 +470,35 @@
        })
    }
    // 同步库存至MES
    form.on('submit(synchronize)', function (data) {
        layer.confirm('确认向MES同步库存?', {
            shade: .1,
            skin: 'layui-layer-admin'
        }, function (i) {
            $.ajax({
                url: baseUrl + "/synchronize/mes/locDetl/report/auth",
                headers: {'token': localStorage.getItem('token')},
                method: 'POST',
                success: function (res) {
                    layer.closeAll('loading');
                    if (res.code === 200){
                        if (insTbCount === 0) {
                            insTb.reload({page: {curr: 1}});
                        } else {
                            $(".layui-laypage-btn")[0].click();
                        }
                        layer.msg(res.msg, {icon: 1});
                    } else if (res.code === 403){
                        top.location.href = baseUrl+"/";
                    }else {
                        layer.msg(res.msg, {icon: 2});
                    }
                }
            })
        });
    });
    // 复选框事件
    form.on('checkbox(detailCheckbox)', function (data) {
        var el = data.elem;