{include(header)}
{foreach($order_list['list'] as $order)}
订单号：{$order['order_id']} 时间：{$order['reserve_datetime']} 状态： {if($order['reserve_state']==0)} 待付订金 {else if($order['reserve_state']==1)} 待点菜 {else if($order['reserve_state']==2)} 待上菜 {else if($order['reserve_state']==10)} 用餐结束 {else if($order['reserve_state']>0)} 用餐中 {else} 已取消 {/if}

{set $ii=count($order['menu'])+2}
餐品 | 数量 | 小计 | 操作 | {if($order['reserve_state']==0)} 等待付订金 {else if($order['reserve_state']>0)} 预订成功，等待到位 {if($order['reserve_state']==1)} {else if($order['reserve_state']==2)} {else if($order['reserve_state']<10)} {/if} {else} 已取消 {/if} {if($order['reserve_state']>2)} 已到位，用餐中 {if($order['reserve_state']<10)} {/if} {else} 已到位，用餐中 {/if} {if($order['reserve_state']>=10)} 订单完成 {else} 订单完成 {/if}
{if(!empty($order['menu']))} {foreach($order['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} | {$order['menunum'][implode(',',$menu)]}份 | {fun_kj::get_price($price*$order['menunum'][implode(',',$menu)])} {set $menuid=implode(',',$menu)} | [取消]
{/foreach} {/if}
桌位：{$order['reserve_tablename']}{$order['reserve_id']} 人数：{$order['reserve_num']} 联系人：{$order['reserve_name']} 电话：{$order["reserve_tel"]} 备注：{$order['reserve_beta']} {if(!empty($order['order_ids']))} 商品 {fun_kj::get_price($order['order_total'])}{if($order['order_addprice']>0)} + 配送费 {fun_kj::get_price($order['order_addprice'])}{/if}{if($order['order_score_money']>0)} - 抵扣 {fun_kj::get_price($order['order_score_money'])}{/if}{if($order['order_favorable']>0)} - 优惠 {fun_kj::get_price($order['order_favorable'])}{/if}{if($order['order_repayment']>0)} - 预付款 {fun_kj::get_price($order['order_repayment'])}{/if} = 应付：{fun_kj::get_price($order['order_total_pay'])} {else} 预付订金：{$order['reserve_deposit']} {/if}

{/foreach}
{if(fun_get::get("rid")=='')}
{$order_list['pagebtns']}
{/if}
{include(footer)}