{set:$installfile = 'install';} {if:file_exists($installfile)}
您的安装目录没有删除,为了商店安全,请尽快删除!
{/if}
概况
销售总额{query:name=order fields=sum(order_amount) as amount where=`status` eq 5}{$item['amount']} 元{/query}
今年销售总额{query:name=order fields=sum(order_amount) as amount where=`status` eq 5 and YEAR(create_time) eq YEAR(now())}{$item['amount']} 元{/query}
客户{query:name=user fields=count(id) as coun }{$item['coun']}个{/query}
产品{query:name=goods fields=count(id) as coun where=is_del eq 0}{$item['coun']}个{/query}
咨询总共:{query:name=refer fields=count(id) as coun }{$item['coun']}个{/query}{query:name=refer fields=count(id) as coun where=`status` eq 0}未处理{$item['coun']}{/query}
评论{query:name=suggestion fields=count(id) as coun }总共:{$item['coun']}个{/query}{query:name=suggestion fields=count(id) as coun where=admin_id is null}未处理{$item['coun']}{/query}
订单信息
总订单{query:name=order fields=count(id) as coun where=if_del eq 0}{$item['coun']}个{/query}
新订单{query:name=order fields=count(id) as coun where=status eq 1}{$item['coun']} 个{/query}
未付款订单{query:name=order fields=count(id) as coun where=pay_status eq 0}{$item['coun']}个{/query}
未发货订单{query:name=order fields=count(id) as coun where=distribution_status eq 0}{$item['coun']}个{/query}
七天未确认订单{query:name=order fields=count(id) as coun where=distribution_status eq 1 and pay_status eq 1 and status eq 2 and to_days(now())-to_days(send_time)>7}{$item['coun']}个{/query}
完成订单{query:name=order fields=count(id) as coun where=`status` eq 5}{$item['coun']}个{/query}
最新10条订单
{query: name=order as o join=left join delivery as d on o.distribution eq d.id left join payment as p on o.pay_type eq p.id join user as u on u.id eq o.user_id fields=o.id as oid,d.name as dname,p.name as pname,o.order_no,o.accept_name,o.pay_status,o.distribution_status,u.username,o.create_time,o.status,o.if_print where=o.status eq 1 order=o.id desc limit=10} {/query}
订单号 客户名称 支付状态 金额 下单时间 操作
{$item['order_no']} {$item['accept_name']} {if:$item['pay_status']==0}未付款{elseif:$item['pay_status']==1}已付款{elseif:$item['pay_status']==2}退款完成{else:}申请退款{/if} ¥69.00 {$item['create_time']} {if:$item['status']<3} {else:}            {/if}