<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>财务人员管理测试</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
    <script th:src="@{/layui/jquery-3.4.1.min.js}"></script>
    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/js/common.js}"></script>
</head>
<body>
    <div style="padding: 20px;">
        <h2>财务人员管理功能测试</h2>
        
        <div style="margin: 20px 0;">
            <button class="layui-btn" onclick="testQuery()">测试查询</button>
            <button class="layui-btn layui-btn-normal" onclick="testAdd()">测试新增</button>
        </div>
        
        <div id="result" style="margin-top: 20px; padding: 10px; border: 1px solid #ccc; min-height: 100px;">
            测试结果将显示在这里...
        </div>
    </div>

    <script>
        function testQuery() {
            document.getElementById('result').innerHTML = '正在测试查询功能...';
            
            AjaxPostJson('/financeUser/findFinanceUserPageList', {
                page: 1,
                limit: 10
            }, function(data) {
                document.getElementById('result').innerHTML = 
                    '<h3>查询测试结果：</h3>' +
                    '<pre>' + JSON.stringify(data, null, 2) + '</pre>';
            });
        }
        
        function testAdd() {
            document.getElementById('result').innerHTML = '正在测试新增功能...';
            
            AjaxPostJson('/financeUser/addFinanceUser', {
                name: '测试用户',
                wechatName: '测试微信名',
                phone: '13800138000',
                isActive: '1',
                remark: '测试备注'
            }, function(data) {
                document.getElementById('result').innerHTML = 
                    '<h3>新增测试结果：</h3>' +
                    '<pre>' + JSON.stringify(data, null, 2) + '</pre>';
            });
        }
    </script>
</body>
</html>





















