{include(header)} {include(member_left)}
订单管理
{set $ii=0} {if(count($order_list['list'])>0)} {foreach($order_list['list'] as $wekday=>$key)}
{$wekday}（{fun_get::weekday($wekday)}）
{foreach($key as $item)} {if(empty($item['order_reserve_id']) || isset($order_list['reserve']['id_'.$item['order_reserve_id']]))}

- {$item['shop_name']}

  {$item['shop_tel']}

- 订单号：{$item['order_id']}

  时间：{$wekday} {$item['addtime']}

- {if(empty($item['order_reserve_id']))} {$item['state']} {else} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==0)} 待付订金 {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==1)} 待点菜 {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==2)} 待上菜 {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>=10)} 用餐结束 {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>0)} 用餐中 {else} 已取消 {/if} {/if}
- {if(empty($item['order_reserve_id']))} {if($item['order_state']!=0)} 展开详情 {else} 收起详情 {/if} {else} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>=0 && $order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']!=10)} 收起详情 {else} 展开详情 {/if} {/if}
{if(empty($item['order_reserve_id']) && $item['order_state']!=0)}

{else if($item['order_reserve_id'] && ($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']<0 || $order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==10))}

{else}

{/if} {set $ii=1} {set $ii=count($item['menu'])+2}
{if(!empty($item['order_ids']))}商品{/if} | {if(!empty($item['order_ids']))}数量{/if} | {if(!empty($item['order_ids']))}小计{/if}{if(!empty($item['order_reserve_id']))} | 操作{/if} | {if(empty($item['order_reserve_id']))} {if($item['order_pay_method']=='onlinepayment')} {if($item['order_state']==-2)} 订单提交成功，等待付款 {else if($item['order_state']>=0)} 支付成功，等待商家接单 {else} 超时未支付 {/if} {else} 下单成功，等待商家接单 {if($item['order_state']==0)} {/if} {/if} {if($item['order_state']==1)} 商家已接单，正在配送中 订单完成 {if($item['order_comment']==0)}{else}{/if} {else if($item['order_state']==0 || $item['order_state']==-2)} 商家已接单，正在配送中 订单完成 {else} {$item['state']}{if(!empty($item['order_state_beta']))} ({$item['order_state_beta']}){/if} {/if} {else} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==0)} 等待付订金 {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>0)} 预订成功，等待到位 {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==1)} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==2)} {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']<10)} {/if} {else} 已取消 {/if} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']>2)} 已到位，用餐中 {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']<10)}{/if} {else} 已到位，用餐中 {/if} {if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==10)} 订单完成 {else if($order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_state']==11)} 订单完成,线下结款 {else} 订单完成 {/if} {/if}
{if(!empty($item['order_ids']))} {foreach($item['menu'] as $menu)}
{set $price=0} {foreach($menu as $item_menu)} {set $price+=$order_list['price']['id_'.$item_menu]} {$order_list['menu']['id_'.$item_menu]['menu_title']} {/foreach} | {$item['menunum'][implode(',',$menu)]}份 | {fun_kj::get_price($price*$item['menunum'][implode(',',$menu)])} {if(!empty($item['order_reserve_id']))} {set $menuid=implode(',',$menu)} | [取消] {/if}
{/foreach} {/if}
- {if(empty($item['order_reserve_id']))}

  联系人：{$item['order_name']}

  联系电话：{$item['order_mobile']}

  配送地址：{$item["order_area"]} — {$item['order_louhao1']}

  付款方式：{if($item['order_pay_method']=='onlinepayment')}在线支付{else if($item['order_pay_method']=='paymented')}已抵扣{else}货到付款{/if}

  送货时间：{$item['order_arrive']}

  备注：{$item['order_beta']}

  {else}

  桌位：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_tablename']}

  人数：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_num']}

  联系人：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_name']}

  电话：{$order_list['reserve']['id_'.$item['order_reserve_id']]["reserve_tel"]}

  备注：{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_beta']}

  {/if}
{if(!empty($item['order_act']))}
- {foreach($item['order_act'] as $act)} {$act} {/foreach}
{/if}
- {if(!empty($item['order_ids']))}

  商品 {fun_kj::get_price($item['order_total'])}{if($item['order_addprice']>0)} + 配送费 {fun_kj::get_price($item['order_addprice'])}{/if}{if($item['order_score_money']>0)} - 抵扣 {fun_kj::get_price($item['order_score_money'])}{/if}{if($item['order_favorable']>0)} - 优惠 {fun_kj::get_price($item['order_favorable'])}{/if}{if($item['order_repayment']>0)} - 预付款 {fun_kj::get_price($item['order_repayment'])}{/if} = 应付：{fun_kj::get_price($item['order_total_pay'])}

  {else}

  预付订金：{cfg:(coinsign,sys)}{$order_list['reserve']['id_'.$item['order_reserve_id']]['reserve_deposit']}

  {/if}

{/if} {/foreach} {/foreach}
上一页 {if($order_list['pagebtns']['start']!=1)}
- 1
{/if} {if($order_list['pagebtns']['start']>2)}
- ...
{/if} {foreach($order_list['pagebtns']['list'] as $item)} {$item} {/foreach} {if($order_list['pagebtns']['end']<$order_list['pageinfo']['pages']-1)}
- ...
{/if} {if($order_list['pagebtns']['end']<$order_list['pageinfo']['pages'])}
- {$order_list['pageinfo']['pages']}
{/if} 下一页
{else}

- #
  还没有您的订单

{/if}

{include(footer)}