xiaoyong931011
2023-09-06 832adfae7b7d3869c833b3c700232155e6600526
src/main/resources/templates/febs/views/goods/orderMoneyFlow.html
@@ -12,26 +12,58 @@
<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: '积分奖励', color: 'orange'},
    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', '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;
    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();
@@ -48,12 +80,12 @@
            tableIns = febs.table.init({
                elem: $view.find('table'),
                id: 'orderMoneyFlowChild',
                url: ctx + 'admin/goods/orderMoneyFlow',
                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: 'createdTime', title: '时间', minWidth: 150,align:'left'}
                    {field: 'createTime', title: '时间', minWidth: 150,align:'left'}
                ]]
            });
        }