{$row.order_no|htmlentities} {$row.status_text} {if $row.urgent} 加急工单{/if} {if !empty($merchantOrder)} 企业工单:{$merchantOrder.merchant_name|htmlentities}{/if}
下单客户: {$row.user.nickname|default=$row.user.username|default='微信用户'|htmlentities}{if !empty($row.user.mobile)} ({$row.user.mobile|htmlentities}){/if} | 下单时间: {$row.createtime|datetime} | 计价模式: {$row.price_type_text|default='一口价'}
完工核销码
{$row.verify_code|default='--'}
订单实付金额
¥{$row.pay_amount}
{if $row.status == 9}
该工单已取消终止 {if !empty($row.cancel_reason)} · 取消原因:{$row.cancel_reason|htmlentities}{/if} {if $row.refund_amount > 0} · 已原路退款:¥{$row.refund_amount}{/if}
{elseif $row.status == 10 /}
该工单当前处于售后争议处理中,请结合下方现场照片与申诉记录协同处置。
{else /}
{if $row.status > 0}{else/}1{/if}
{if $row.status == 2}报价中{elseif $row.status == 1/}待接单{else/}客户下单{/if}
{if $row.status > 4}{else/}2{/if}
师傅接单/待上门
{if $row.status > 5}{else/}3{/if}
上门签到
{if $row.status > 6}{else/}4{/if}
施工服务中
{if $row.status > 7}{else/}5{/if}
待核销验收
{if $row.status == 8}{else/}6{/if}
已完成结算
{/if}

服务项目、到货物流与上门地址

服务名称:{$row.service_name|htmlentities}
预约上门: {if $row.appoint_time > 0}{$row.appoint_time|datetime}{else/}未指定(尽快上门){/if}
现场联系人:{$row.contact|htmlentities}
联系电话:{$row.mobile|htmlentities}
上门地址:{$row.province|htmlentities}{$row.city|htmlentities}{$row.district|htmlentities}{$row.address|htmlentities}
楼层电梯:{$row.floor} 层 · {if $row.has_elevator}有电梯{else/}无电梯(步梯){/if}
施工规格:{$row.goods_model|default='标准通用款'|htmlentities} × {$row.goods_num}
货品到货: {if $row.goods_arrived == 1}已到货可装{else/}物流在途/未登记{/if}
物流单号: {if !empty($row.express_no)}{$row.express_company|default='物流'|htmlentities} {$row.express_no|htmlentities}{else/}无{/if}
{if !empty($merchantOrder)}
发包商户: {$merchantOrder.merchant_name|htmlentities}(对接人:{$merchantOrder.merchant_contact|htmlentities} {$merchantOrder.merchant_mobile|htmlentities}) {if !empty($merchantOrder.batch_no)} · 批次 {$merchantOrder.batch_no|htmlentities}{/if} {if !empty($row.source_order_no)} · 外部单号 {$row.source_order_no|htmlentities}{/if}
{/if} {if !empty($row.remark)}
客户备注:{$row.remark|htmlentities}
{/if}
{if !empty($goodsList)}
多商品及增项服务清单:
{foreach name="goodsList" item="g"} {/foreach}
商品名称规格型号数量加选增项单价
{$g.goods_name|default='-'|htmlentities} {$g.goods_model|default='-'|htmlentities} {$g.goods_num} {$g.addon_services|default='无'|htmlentities} ¥{$g.base_price}
{/if}

承接师傅与关键履约时间轴

{if $row.master_id && $row.master}
{$row.master.realname|htmlentities} {$row.master.score}
手机: {$row.master.mobile|htmlentities} · 城市: {$row.master.city|default='-'|htmlentities} · 累计完工: {$row.master.order_count} 单
{else /}
当前工单尚未指派师傅,可在订单列表点击「派单」人工调度指派。
{/if}
接单时间:{:$row.accept_time > 0 ? datetime($row.accept_time) : '未接单'}
电话预约:{:$row.contact_time > 0 ? datetime($row.contact_time) : '未记录'}
签到到达:{:$row.arrive_time > 0 ? datetime($row.arrive_time) : '未到达'}
开工施工:{:$row.start_time > 0 ? datetime($row.start_time) : '未开工'}
完工提交:{:$row.finish_time > 0 ? datetime($row.finish_time) : '未完工'}
核销验收:{if $row.verify_time > 0}{:datetime($row.verify_time)}{else/}待核销{/if}
{if !empty($quoteList)}

师傅竞标报价记录 ({:count($quoteList)})

{foreach name="quoteList" item="qt"} {/foreach}
报价师傅 联系电话 服务评分 报价金额 施工方案与报价说明 状态 报价时间
{$qt.master_name|default='-'|htmlentities} {$qt.master_mobile|default='-'|htmlentities} {$qt.master_score|default='5.0'} ¥{$qt.amount} {$qt.description|default='-'|htmlentities} {if $qt.status == 'accept'}已中标采纳 {elseif $qt.status == 'reject'/}未中标 {else/}待雇主确认{/if} {$qt.createtime|datetime}
{/if}

资金构成、结算分成与发票状态

基础服务费:¥{$row.base_amount}
步梯楼层费:¥{$row.floor_amount}
远程/加急费:¥{:number_format($row.distance_amount + $row.urgent_amount, 2, '.', '')}
优惠券抵扣:-¥{$row.discount_amount}
现场补差价: {if $row.diff_amount > 0} ¥{$row.diff_amount} {if $row.diff_status == 2}已支付{else/}待支付{/if} {else/}无{/if}
实付总金额:¥{$row.pay_amount}
支付状态:{$row.pay_status_text}
支付渠道:{$row.pay_type|default='微信支付'|htmlentities}
交易流水号:{$row.transaction_id|default='-'|htmlentities}
抽佣规则快照:{if !empty($settle)}{$settle.commission_rate|htmlentities}%{else/}{$settlePreview.commission_rate|default='10.00'|htmlentities}%{/if} {$settlePreview.rule_name|default=''|htmlentities}
结算状态:{$row.settle_status_text}
师傅结算款:{if !empty($settle)}¥{$settle.settle_amount}(平台抽佣 ¥{$settle.commission}){elseif $row.settle_status == 1/}¥{$row.settle_amount}{else/}预计 ¥{:number_format($settlePreview.settle_amount, 2, '.', '')}(预计抽佣 ¥{:number_format($settlePreview.commission, 2, '.', '')}){/if}
发票状态: {if $row.invoice_status == 'issued'} 已开票 {if !empty($invoiceInfo)} 申请单 {$invoiceInfo.invoice_sn|htmlentities}({$invoiceInfo.title|htmlentities}){/if} {elseif $row.invoice_status == 'wait' /} 开票审核中 {if !empty($invoiceInfo)} 申请单 {$invoiceInfo.invoice_sn|htmlentities}{/if} {else /} 未申请开票 {/if}

雇主评价与售后记录

{if !empty($review)}
{$review.score} 星评价 {if $review.status == 'hidden'}已隐藏{/if} {if !empty($review.tags_arr)}
{foreach name="review.tags_arr" item="t"} {$t|htmlentities} {/foreach}
{/if}
雇主评价:{$review.content|default='用户未填写文字评价'|htmlentities}
{if !empty($review.reply)}
师傅回复:{$review.reply|htmlentities}
{/if} {else /}
客户暂未提交服务评价
{/if} {if !empty($appealList)}
关联申诉争议记录:
{foreach name="appealList" item="ap"}
师傅:{$ap.master_name|default='-'|htmlentities} · 状态:{$ap.status|htmlentities}
申诉理由:{$ap.content|htmlentities}
{if !empty($ap.reply)}
平台裁决:{$ap.reply|htmlentities}
{/if}
{/foreach}
{/if}

微信支付与原路退款交易流水 ({:count($payOrders)})

展示网关真实回执、异常中文诊断与人工同步/重退入口
{if !empty($payOrders)}
{foreach name="payOrders" item="po"} {/foreach}
ID 支付场景 商户单号 / 微信单号 / 退款单号 金额 流水 / 退款状态 失败错误码与中文诊断 操作
#{$po.id} {$po.scene_text|htmlentities}
商户:{$po.out_trade_no|htmlentities}
{if !empty($po.transaction_id)}
微信:{$po.transaction_id|htmlentities}
{/if} {if !empty($po.refund_no)}
退款单:{$po.refund_no|htmlentities}{if !empty($po.refund_id)}({$po.refund_id|htmlentities}){/if}
{/if}
¥{$po.amount|number_format=2}
{if $po.refund_amount > 0}
退 ¥{$po.refund_amount|number_format=2}
{/if}
{if $po.status == 'paid'}{$po.status_text} {elseif $po.status == 'refunded'/}{$po.status_text} {elseif $po.status == 'refunding'/}{$po.status_text} {elseif $po.status == 'pay_failed' || $po.status == 'refund_failed'/}{$po.status_text} {else/}{$po.status_text}{/if} {if $po.refund_status && $po.refund_status != 'none'}
{$po.refund_status_text}
{/if} {if !empty($po.last_sync_time)}
同步于 {:date('m-d H:i:s', $po.last_sync_time)}
{/if}
{if !empty($po.fail_reason) || !empty($po.fail_code)}
{if !empty($po.fail_code)}
错误码:{$po.fail_code|htmlentities}
{/if}
原因:{$po.fail_reason|default='未知异常'|htmlentities}
{else /} - {/if}
{if $po.status == 'pending' || $po.status == 'pay_failed' || $po.status == 'refunding' || $po.status == 'refund_failed'} {/if} {if $po.status == 'refund_failed' || ($po.status == 'paid' && $row.status == 9 && $row.settle_status != 1)} {/if} {if $po.status == 'refunded' || $po.status == 'closed' || ($po.status == 'paid' && ($row.status != 9 || $row.settle_status == 1))} 无需人工处置 {/if}
{elseif $row.pay_status == 1 && ($row.pay_type == 'wechat' || $row.pay_type == '')/}
资金流水缺失告警:当前订单显示已支付(渠道:{$row.pay_type|default='未记录'|htmlentities}),但未关联任何 fa_pay_order 微信交易单,系统已禁止自动假退款,如需退款请先核查微信商户平台流水。
{else /}
暂无微信支付交易流水记录
{/if}

现场施工与验收取证图集 ({:count($mediaList)})

点击图片查看原图
{if !empty($mediaList)} {else /}
暂无现场施工取证照片
{/if}

工单全生命周期操作日志 ({:count($logList)})

{if !empty($logList)}
{foreach name="logList" item="log"}
{$log.createtime|datetime} · 操作端:{$log.operator_type|default='system'|htmlentities}
{$log.status_label|htmlentities}
{$log.remark|htmlentities}
{/foreach}
{else /}
暂无状态流转日志
{/if}