{include file="public/layout" /}
{empty name='$iframe'} {include file="order/left" /}
{else /}
{/empty}
{empty name="$iframe"}

### 订单详情

#####

{/empty}
买家下单 {$OrderData.add_time}
{if condition="in_array($OrderData.order_status, [0, 1, 2, 3])"} {empty name="$OrderData.pay_time"}
2
买家付款
{else/}
买家付款 {$OrderData.pay_time}
{/empty} {if condition="$OrderData.prom_type == 0"} {if condition="$OrderData.logistics_type == 2"} {empty name="$weappVerifyLog.verify_time"}
3
待核销
{else/}
已核销 {$weappVerifyLog.verify_time}
{/empty} {else/} {empty name="$OrderData.express_time"}
3
商家发货
{else/}
商家发货 {$OrderData.express_time}
{/empty} {/if} {elseif condition="$OrderData.prom_type == 1"} {gt name="$OrderData.order_status" value="1"}
商家发货 {$OrderData.express_time|default=$OrderData.pay_time}
{else/}
3
商家发货
{/gt} {/if} {empty name="$OrderData.confirm_time"}
4
订单完成
{else/}
订单完成 {$OrderData.confirm_time}
{/empty} {/if} {if condition="in_array($OrderData.order_status, [-1])"}
订单关闭 {$OrderData.update_time}
{/if} {if condition="in_array($OrderData.order_status, [4])"}
订单过期 {$OrderData.update_time}
{/if}
{empty name='$iframe'}
{else /}
{/empty}

### 订单状态

当前状态：
{eq name="$OrderData.order_status" value="0"} {$admin_order_status_arr[$OrderData.order_status]|default=''} {/eq} {eq name="$OrderData.order_status" value="1"} {if condition="$OrderData.logistics_type == 2"} 待核销 {else/} {$admin_order_status_arr[$OrderData.order_status]|default=''} {/if} {/eq} {eq name="$OrderData.order_status" value="2"} {if condition="$OrderData.prom_type == 0"} {$admin_order_status_arr[$OrderData.order_status]|default=''} {elseif condition="$OrderData.prom_type == 1"} 未完成 {/if} {/eq} {eq name="$OrderData.order_status" value="3"} {if condition="$OrderData.prom_type == 0"} {$admin_order_status_arr[$OrderData.order_status]|default=''} {elseif condition="$OrderData.prom_type == 1"} 已完成 {/if} {/eq} {eq name="$OrderData.order_status" value="4"} {$admin_order_status_arr[$OrderData.order_status]|default=''} {/eq} {eq name="$OrderData.order_status" value="-1"} {$admin_order_status_arr[$OrderData.order_status]|default=''} {/eq}
{eq name="$OrderData.order_status" value="0"} 确认付款 {/eq} {eq name="$OrderData.order_status" value="1"} {if condition="2 == $OrderData.logistics_type"} 确认核销 {else/} 确认发货 {/if} {/eq} {if condition="0 == $OrderData.prom_type && 2 == $OrderData.order_status"} 确认收货 {/if} {eq name="$OrderData.order_status" value="0"} 调整价格 关闭订单 {/eq} {if condition="1 == $OrderData.order_status"} 手动退款 {/if} {if condition="in_array($OrderData.order_status, [4, -1])"} 订单删除 {/if}
{empty name='$iframe'}
{else /}
{/empty}

### 订单信息

订单编号：
{$OrderData.order_code}
订单类型：
{$OrderData.prom_type_name}
订单来源：
{$OrderData.order_terminal_name}
付款方式：
{eq name="$vo.order_source" value="30"}积分兑换{else/}{$pay_method_arr[$OrderData.pay_name]|default='微信支付'}{/eq}
配送方式：
{if condition="$OrderData.prom_type == 0"}{eq name="$OrderData.logistics_type" value="1"}物流配送{else/}到店自提{/eq}{elseif condition="$OrderData.prom_type == 1"}无需物流{/if}
{if condition="!empty($OrderData.express_order)"}
物流单号：
{$OrderData.express_name}{$OrderData.express_order}
{/if}
收货人：
{eq name="$OrderData.logistics_type" value="2"}{$weappVerifyLog.buyer}{else /}{$OrderData.consignee}{/eq}
联系电话：
{eq name="$OrderData.logistics_type" value="2"}{$weappVerifyLog.phone}{else /}{$OrderData.mobile}{/eq}
{eq name="$OrderData.logistics_type" value="2"}
核销码：
{$weappVerifyLog.verify_code}
{/eq} {if condition="$OrderData.prom_type == 0 && 1 == $OrderData.logistics_type"}
收货地址：
{$OrderData.province} {$OrderData.city} {$OrderData.district} {$OrderData.address}
{if condition="in_array($OrderData.order_status, [0, 1])"} 修改 {/if}
{/if}
买家信息：
{$UsersData.nickname}
{notempty name="$OrderData.user_note"}
买家留言：
{$OrderData.user_note}
{/notempty}
商家备注：
{notempty name="$OrderData.admin_note"}已有{$adminNoteCount}条备注{/notempty} {empty name="$OrderData.admin_note"}添加{else/}查看{/empty}
{empty name='$iframe'}
{else /}
{/empty}

### 商品信息

商品名称 | 单价/数量 | 小计
--- | --- | ---
{empty name="DetailsData"}
{else/} {foreach name="DetailsData" item="vo" key="k" }
{$vo.product_name} {$vo.product_spec} | {empty name="$OrderData.points_shop_order"}￥{/empty}{$vo.product_price} x {$vo.num} | {empty name="$OrderData.points_shop_order"}￥{/empty}{$vo.subtotal}
{/foreach} {/empty}

商品小计：
{empty name="$OrderData.points_shop_order"}
￥{$OrderData.totalAmount}
{else/}
{$OrderData.order_total_amount}
{/empty}
{notempty name="$OrderData.coupon_id"}
优惠券：
-￥{$OrderData.coupon_price}
{/notempty} {eq name="$OrderData.order_source" value="10"}
运费：
￥{$OrderData.shipping_fee}
实付款：
{empty name="$OrderData.points_shop_order"}￥{/empty}{$OrderData.order_amount}
{/eq} {if condition="30 == $OrderData.order_source && $OrderData.pay_use_scores > 0"}
积分兑换：
{$OrderData.pay_use_scores_num}积分
{/if}
{empty name='$iframe'}
{else /}
{/empty}

### 订单日志

操作记录 | 操作人 | 操作时间
--- | --- | ---

{empty name="Action"}
{else/} {foreach name="Action" item="vo" key="k" }
{$vo.action_note} | {$vo.action_users} | {$vo.add_time|MyDate='Y-m-d H:i:s',###}
{/foreach} {/empty}

{include file="public/footer" /}