{include(header)} {include(member_left)}
{tab_other_language::get("订单详情")}
{foreach($order_list["list"] as $item)}

- {$item['shop_name']}

  {$item['shop_tel']}

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

  {tab_other_language::get("联系人")}：{$item['order_name']}

  {tab_other_language::get("联系电话")}：{$item['order_mobile']}

  {tab_other_language::get("配送地址")}：{$item["order_area"]} — {$item['order_louhao1']}

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

  {tab_other_language::get("送货时间")}：{$item['order_arrive']}

  {tab_other_language::get("备注")}：{$item['order_beta']}

  {else}

  {tab_other_language::get("桌位")}：{$order_list['reserve']['reserve_tablename']}

  {tab_other_language::get("人数")}：{$order_list['reserve']['reserve_num']}

  {tab_other_language::get("联系人")}：{$order_list['reserve']['reserve_name']}

  {tab_other_language::get("电话")}：{$order_list['reserve']["reserve_tel"]}

  {tab_other_language::get("备注")}：{$order_list['reserve']['reserve_beta']}

  {/if}
- {if(!empty($item['order_ids']))}

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

  {else}

  {tab_other_language::get("预付订金")}：{cfg:(coinsign,sys)}{$order_list['reserve']['reserve_deposit']}

  {/if}

{/foreach}
{include(footer)}