1
xiaoyong931011
2023-01-17 f7c7a1d550444e88c8f7033a8a586211ab8c3ce7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<div class="layui-fluid layui-anim febs-anim" id="febs-orderMoneyFlow-child" lay-title="订单资金流水">
    <div class="layui-row febs-container">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body febs-table-full">
                    <table lay-filter="orderMoneyFlowChild" lay-data="{id: 'orderMoneyFlowChild'}"></table>
                </div>
            </div>
        </div>
    </div>
</div>
<script data-th-inline="none" type="text/javascript">
    layui.use(['dropdown', 'jquery', 'laydate', 'form', 'table', 'febs', 'treeSelect' ,'eleTree'], function () {
        var $ = layui.jquery,
            laydate = layui.laydate,
            febs = layui.febs,
            form = layui.form,
            table = layui.table,
            $view = $('#febs-orderMoneyFlow-child'),
            tableIns;
 
        form.render();
 
        initTable();
 
        function initTable() {
            tableIns = febs.table.init({
                elem: $view.find('table'),
                id: 'orderMoneyFlowChild',
                url: ctx + 'admin/order/moneyFlow?parentId=1',
                cols: [[
                    {field: 'memberName', title: '用户名', minWidth: 80,align:'center'},
                    {field: 'amount', title: '金额', minWidth: 80,align:'center'},
                    {field: 'type', title: '流水类型',
                        templet: function (d) {
                            if (d.type === 1) {
                                return '<span>市场补贴</span>'
                            } else if (d.type === 2) {
                                return '<span>直推奖励</span>'
                            } else if (d.type === 3) {
                                return '<span>第一代分享奖励</span>'
                            } else if (d.type === 4) {
                                return '<span>第二代分享奖励</span>'
                            }else if (d.type === 5) {
                                return '<span>支付</span>'
                            }else if (d.type === 6) {
                                return '<span>团队管理补贴</span>'
                            }else if (d.type === 7) {
                                return '<span>购买星级</span>'
                            }else if (d.type === 8) {
                                return '<span>星级保证金返还</span>'
                            }else if (d.type === 9) {
                                return '<span>提现</span>'
                            }else if (d.type === 10) {
                                return '<span>充值</span>'
                            }else if (d.type === 100) {
                                return '<span>系统拨付</span>'
                            }else{
                                return ''
                            }
                        }, minWidth: 80,align:'center'},
                    {field: 'flowType', title: '资金类型',
                        templet: function (d) {
                            if (d.flowType === 1) {
                                return '余额';
                            } else {
                                return '-';
                            }
                        }, minWidth: 80,align:'center'},
                    {field: 'orderNo', title: '编号', minWidth: 150,align:'center'},
                    {field: 'createdTime', title: '时间', minWidth: 150,align:'left'}
                ]]
            });
        }
 
    })
</script>