xiaoyong931011
2023-08-16 5e9a1a931194b0d9eba759774dcad39fef1dba0b
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<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 type="text/html" id="flow-type">
    {{#
    var type = {
    1: {title: '赠送积分', color: 'orange'},
    2: {title: '支付订单', color: 'green'},
    3: {title: '静态补贴', color: 'blue'},
    4: {title: '预期减少赠送积分', color: 'orange'},
    5: {title: '预期增加余额', color: 'green'},
    6: {title: '直推', color: 'blue'},
    7: {title: '团队静态收益V1', color: 'orange'},
    8: {title: '团队静态收益V2', color: 'green'},
    9: {title: '团队静态收益V3', color: 'blue'},
    10: {title: '团队静态收益V4', color: 'orange'},
    11: {title: '团队静态收益V5', color: 'green'},
    12: {title: '团队静态收益V6', color: 'blue'},
    13: {title: '团队静态收益V7', color: 'orange'},
    14: {title: '共享加速V1', color: 'green'},
    15: {title: '共享加速V2', color: 'blue'},
    16: {title: '共享加速V3', color: 'orange'},
    17: {title: '共享加速V4', color: 'green'},
    18: {title: '共享加速V5', color: 'blue'},
    19: {title: '共享加速V6', color: 'orange'},
    20: {title: '共享加速V7', color: 'green'},
    21: {title: '实际减少赠送积分', color: 'blue'},
    22: {title: '实际增加余额', color: 'orange'},
    23: {title: '卖出资产', color: 'green'},
    24: {title: '卖出资产获得余额', color: 'blue'},
    25: {title: '卖出资产手续费', color: 'orange'},
    26: {title: '每日获取金额(前端提示记录)', color: 'orange'},
    27: {title: '系统拨付余额', color: 'green'},
    28: {title: '系统拨付赠送积分', color: 'blue'},
    29: {title: '系统拨付资产包', color: 'orange'},
    30: {title: '新增业绩', color: 'green'},
    31: {title: '全网分红V1', color: 'green'},
    32: {title: '全网分红V2', color: 'green'},
    33: {title: '全网分红V3', color: 'green'},
    34: {title: '全网分红V4', color: 'green'},
    35: {title: '全网分红V5', color: 'green'},
    36: {title: '全网分红V6', color: 'green'},
    37: {title: '全网分红V7', color: 'green'},
    }[d.type];
    }}
    <span class="layui-badge febs-bg-{{type.color}}">{{ type.title }}</span>
</script>
<script data-th-inline="none" type="text/javascript">
 
    layui.use([ 'jquery', 'form', 'table', 'febs', 'upload','laydate'], function () {
            var $ = layui.jquery,
                febs = layui.febs,
                form = layui.form,
                table = layui.table,
                upload = layui.upload,
                $view = $('#febs-orderMoneyFlow-child'),
                laydate = layui.laydate,
                tableIns;
 
        form.render();
 
        initTable();
 
        laydate.render({
            elem: '#user-createTime',
            range: true,
            trigger: 'click'
        });
 
 
        function initTable() {
            tableIns = febs.table.init({
                elem: $view.find('table'),
                id: 'orderMoneyFlowChild',
                url: ctx + 'admin/goods/orderMoneyFlow?parentId=1',
                cols: [[
                    {field: 'address', title: '用户', minWidth: 80,align:'center'},
                    {field: 'amount', title: '金额', minWidth: 80,align:'center'},
                    {title: '类型', minWidth: 100,templet: '#flow-type',align:'center'},
                    {field: 'createTime', title: '时间', minWidth: 150,align:'left'}
                ]]
            });
        }
 
    })
</script>