<{include file="admin:common/header.html"}>

| <{$MOD.title}> | <{link ctl="order/order:index" priv="hidden" class="button"}> |

订单ID： | <{$detail.order_id}> | 用户： | <{$detail.user.nickname}>
服务人员： | <{$detail.staff.name}>(<{$detail.staff.mobile}>) | 订单总价： | <{$detail.amount}>
定金金额： | <{$detail.deposit}> | 使用红包： | <{if $detail.hongbao_id>0}><{$detail.hongbao}>(ID:<{$detail.hongbao_id}>)<{else}>无<{/if}>
经纬度： | 经度：<{$detail.lng}>纬度：<{$detail.lat}> | 地址： | <{$detail.addr}>，<{$detail.house}>(<{$detail.contact}>,<{$detail.mobile}>)
服务时间： | <{$detail.service_time}> | 备注： | <{$detail.note|default:'无'}>
订单状态： | <{$detail['order_status_label']}> | 支付状态： | <{if $detail.pay_status==1}>已支付<{else}>未支付<{/if}>
支付IP： | <{$detail.pay_ip|default:'无'}> | 支付时间： | <{$detail.pay_time|format:'Y-m-d H:i:s'}>
支付方式： | <{$payments[$detail['pay_type']]|default:'无'}> | 评论状态： | <{if $detail.comments_status==1}>已点评<{else}>未点评<{/if}>
订单来源： | <{$froms[$detail['order_from']]}> | 客户IP： | <{$detail.clientip}>
下单时间： | <{$detail.dateline|format:'Y-m-d H:i:s'}> |  |

<{if $detail.products}>

商品ID | 商品名称 | 单价 | 打包费 | 数量 | 小计
--- | --- | --- | --- | --- | ---
<{foreach $detail.products as $var}>
ID:<{$var.product_id}> | <{$var['product_name']}> | ￥<{$var['product_price']}> | ￥<{$var['package_price']}> | X<{$var['product_number']}> | ￥<{$var['amount']}>
<{/foreach}>

<{/if}> <{if $detail.logs}>

日志编号 | 操作人员 | 明细 | 时间
--- | --- | --- | ---
<{foreach $detail.logs as $var}>
<{$var.log_id}> | <{if $var.from=='member'}>用户<{elseif $var.from=='shop'}>商家<{elseif $var.from=='staff'}>配送员<{else}>管理人员<{/if}>(<{$detail['types'][$var['type']]}>) | <{$var.log}> | <{$var.dateline|format}>
<{/foreach}> <{/if}>

<{if $detail['status'][$detail.order_status]=='已取消' || $detail['status'][$detail.order_status]=='订单完成'}> <{else}>

管理员操作 |  |
--- | --- | ---
<{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> | <{if $detail['order_status'] == 0}> | <{link ctl="order/order:accept" arg0=$detail.order_id arg1=1 act="mini:接单" confirm="mini:确定要接单吗" title="接单" class="button"}> | <{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> <{/if}> <{if $detail['status'][$detail.order_status]=='未处理' && $detail.online_pay==1 && $detail.pay_status==1}> | <{link ctl="order/order:accept" arg0=$detail.order_id arg1=1 act="mini:接单" confirm="mini:确定要接单吗" title="接单" class="button"}> | <{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> <{/if}> <{if $detail['status'][$detail.order_status]=='已接单' && $detail.online_pay==1 && $detail.pay_status==1}> | <{link ctl="order/order:peisong" arg0=$detail.order_id act="mini:开始配送" confirm="mini:确定要开始配送吗" title="开始配送" class="button"}> | <{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> <{/if}> <{if $detail['status'][$detail.order_status]=='已接单' && $detail.online_pay==0 && $detail.pay_status==0}> | <{link ctl="order/order:peisong" arg0=$detail.order_id act="mini:开始配送" confirm="mini:确定要开始配送吗" title="开始配送" class="button"}> | <{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> <{/if}> <{if $detail['status'][$detail.order_status]=='配送开始' && $detail.online_pay==1 && $detail.pay_status==1}> | <{link ctl="order/order:finish" arg0=$detail.order_id act="mini:完成订单" confirm="mini:确定要完成订单吗" title="完成订单" class="button"}> | <{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> <{/if}> <{if $detail['status'][$detail.order_status]=='配送开始' && $detail.online_pay==0 && $detail.pay_status==0}> | <{link ctl="order/order:finish" arg0=$detail.order_id act="mini:完成订单" confirm="mini:确定要完成订单吗" title="完成订单" class="button"}> | <{link ctl="order/order:cancel" args=$detail.order_id act="mini:取消订单" confirm="mini:确定要取消订单吗" title="取消订单" class="button"}> <{/if}> |

<{/if}>
<{include file="admin:common/footer.html"}>