{template 'common/header'}
{if $do == 'chart'}
{$names[$type]}统计
{if $type != 'cash'}
今日充值总额{$today_recharge}
今日消费总额{php echo abs($today_consume);}
{php echo date('Y-m-d', $starttime);}~{php echo date('Y-m-d', $endtime);}
充值总额{$total_recharge}
{php echo date('Y-m-d', $starttime);}~{php echo date('Y-m-d', $endtime);}
消费总额{php echo abs($total_consume)}
{else}
今日消费总额{php echo abs($today_consume);}
{php echo date('Y-m-d', $starttime);}~{php echo date('Y-m-d', $endtime);}
消费总额{php echo abs($total_consume)}
{/if}
{$names[$do]}统计
{php echo tpl_form_field_daterange('time', array('start' => date('Y-m-d', $starttime),'end' => date('Y-m-d', $endtime)), '')}
{if $type != 'cash'} 充值统计 {/if} 消费统计
{else}
筛选
{if $type != 'cash'}
类型
不限 充值 消费
{/if}
消费时间
{php echo tpl_form_field_daterange('time', array('starttime' => date('Y-m-d', $starttime), 'endtime' => date('Y-m-d', $endtime),));}
姓名/手机号码/UID
积分/金额/实收
至
{if $type != 'cash'}

会员编号 | 姓名 | 手机 | 类型 | 金额 | 消费门店 | 操作人 | 操作时间 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | ---
{loop $data $row}
{$row['uid']} | {$users[$row['uid']]['realname']} | {$users[$row['uid']]['mobile']} | {if $row['num'] > 0} 充值 {else} 消费 {/if} | {php echo abs($row['num']);} | {if $row['store_id'] > 0} {$stores[$row['store_id']]['business_name']}-{$stores[$row['store_id']]['branch_name']} {else} 未知 {/if} | {if $row['clerk_id'] > 0} {$clerks[$row['clerk_id']]['name']} {else} 未知 {/if} | {php echo date('Y-m-d H:i', $row['createtime'])} | {php echo cutstr($row['remark'], 30, '...');}
{/loop}

{$pager} {else}

会员编号 | 姓名 | 手机 | 消费金额 | 实收金额 | 余额支付 | 积分抵消 | 实收现金 | 消费门店 | 操作人 | 操作时间 | 备注
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
{loop $data $row}
{$row['uid']} | {$users[$row['uid']]['realname']} | {$users[$row['uid']]['mobile']} | {$row['fee']} | {$row['final_fee']} | {$row['credit2']} | {$row['credit1_fee']} | {$row['final_cash']} | {if $row['store_id'] > 0} {$stores[$row['store_id']]['business_name']}-{$stores[$row['store_id']]['branch_name']} {else} 未知 {/if} | {if $row['clerk_id'] > 0} {$clerks[$row['clerk_id']]['name']} {else} 未知 {/if} | {php echo date('Y-m-d H:i', $row['createtime'])} | {php echo cutstr($row['remark'], 30, '...');}
{/loop}

{$pager} {/if}
{/if} {template 'common/footer'}