{extend name="../../admin/view/main"} {block name="button"}
{/block} {block name="content"}

{php}$types = ['ta' => '全部订单', 't2' => '等待支付', 't3' => '等待审核', 't4' => '等待发货', 't5' => '等待收货', 't6' => '已经完成', 't0' => '已经取消'];{/php} {foreach $types as $k=>$v}{if isset($type) and 't'.$type eq $k}
- {$v}{$total[$k]??0}
{else}
- {$v}{$total[$k]??0}
{/if}{/foreach}

{include file='shop/order/index_search'}

{notempty name='list'}
| 用户信息 | 订单信息 | 发货信息 | 商品信息
--- | --- | --- | --- | ---
{/notempty}
{foreach $list as $key=>$vo}

推荐用户：{$vo.from.nickname|default='--'}[ VIP{$vo.from.vip_code} ] {$vo.from.vip_name}
推荐手机：{$vo.from.phone|default='--'}
没有代理
用户昵称：{$vo.user.nickname|default='--'}[ VIP{$vo.user.vip_code} ] {$vo.user.vip_name}
用户手机：{$vo.user.phone|default='--'}

{eq name='vo.status' value='0'}已经取消{/eq} {eq name='vo.status' value='1'}预购订单{/eq} {eq name='vo.status' value='2'}等待待付款{/eq} {eq name='vo.status' value='3'}等待审核{/eq} {eq name='vo.status' value='4'}等待发货{/eq} {eq name='vo.status' value='5'}已经发货{/eq} {eq name='vo.status' value='6'}已经完成{/eq}
订单单号：{$vo.order_no|default=''} 凭证审核
订单总计：{$vo.amount_total+0} 元 {if $vo.amount_express>0}(含运费 {$vo.amount_express+0} 元{else}(包邮{/if}, 随减 {$vo.amount_reduct+0} 元) 已支付 {$vo.payment_amount+0} 元
下单时间：{$vo.create_at|format_datetime}
支付时间：{$vo.payment_datetime|format_datetime} {notempty name='vo.payment_name'} ({$vo.payment_name|default='-'}) ({$vo.payment_name|default='-'}) {/notempty}
支付状态：还未支付

{empty name='vo.truck_type'} 无需发货 {else}
收货信息：{$vo.truck.address_name|default='--'}{$vo.truck.address_phone|default=''}
收货地址：{$vo.truck.address_province|default='--'}{$vo.truck.address_city|default=''}{$vo.truck.address_area|default=''}{$vo.truck.address_content|default=''}
发货状态：未发货{$vo.truck.company_name|default='--'} {$vo.truck.send_number|default='--'} 填写发货 修改发货 取消订单
发货时间：{$vo.truck.send_datetime|default='--'}
{/empty}

{foreach $vo.items as $g}
{if $g.vip_entry > 0 and $g.vip_upgrade > $g.vip_code} [ VIP{$g.vip_code}  VIP{$g.vip_upgrade} ] {else} [ VIP{$g.vip_code} ] {/if} {if $g.discount_rate < 100.00} 享{$g.discount_rate+0}%折扣 x {/if} {$g.stock_sales|default=0}件 x {$g.price_selling+0}元 {$g.goods_name|default=''} ( {$g.goods_spec|show_goods_spec} )
{/foreach}

{/foreach}

{empty name='list'}没有记录哦{else}{$pagehtml|raw|default=''}{/empty}
{/block}