feat: 新增师傅入驻审核与接单状态联动功能
- 新增师傅资质审核模块及权限 - 未审核通过的师傅默认禁用接单状态 - 新增售后退款申诉功能与相关界面 - 新增用户钱包管理及充值功能 - 更新服务定价矩阵相关数据库结构 - 修复微信支付证书验证问题
这个提交包含在:
@@ -0,0 +1,54 @@
|
||||
<style>
|
||||
.po-detail { padding: 4px 10px; color: #1e293b; }
|
||||
.po-detail dl { margin: 0; }
|
||||
.po-detail dt { font-size: 12px; color: #64748b; font-weight: 600; margin-top: 10px; }
|
||||
.po-detail dd { margin: 2px 0 0; font-size: 13px; color: #0f172a; font-family: monospace; word-break: break-all; }
|
||||
.po-warn {
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
color: #b91c1c;
|
||||
border-radius: 8px;
|
||||
padding: 10px 12px;
|
||||
font-size: 12.5px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="po-detail">
|
||||
<dl>
|
||||
<dt>支付单号(out_trade_no)</dt>
|
||||
<dd>{$row.out_trade_no|htmlentities}</dd>
|
||||
<dt>微信交易单号(transaction_id)</dt>
|
||||
<dd>{$row.transaction_id|default='-'|htmlentities}</dd>
|
||||
<dt>关联订单</dt>
|
||||
<dd>
|
||||
{if !empty($order)}#{$order.id} · {$order.order_no|htmlentities} · {$order.service_name|default='-'|htmlentities}{else /}-{/if}
|
||||
</dd>
|
||||
<dt>支付用户</dt>
|
||||
<dd>
|
||||
{if !empty($user)}{$user.nickname|default=$user.username|htmlentities}({$user.mobile|default='-'|htmlentities}){else /}-{/if}
|
||||
</dd>
|
||||
<dt>支付场景 / 支付方式</dt>
|
||||
<dd>{$row.scene|htmlentities} · {$row.pay_type|default='wechat_v3'|htmlentities}</dd>
|
||||
<dt>支付金额 / 累计已退 / 可退余额</dt>
|
||||
<dd>¥{$row.amount} / ¥{$row.refund_amount} / ¥{:$row.amount - $row.refund_amount}</dd>
|
||||
<dt>流水状态</dt>
|
||||
<dd>{$statusText|htmlentities}(退款单状态:{$refundStatusText|htmlentities})</dd>
|
||||
<dt>退款单号 / 微信退款单号</dt>
|
||||
<dd>{$row.refund_no|default='-'|htmlentities} / {$row.refund_id|default='-'|htmlentities}</dd>
|
||||
<dt>退款时间</dt>
|
||||
<dd>{if $row.refund_time > 0}{:date('Y-m-d H:i:s', $row.refund_time)}{else /}-{/if}</dd>
|
||||
<dt>最近同步时间</dt>
|
||||
<dd>{if $row.last_sync_time > 0}{:date('Y-m-d H:i:s', $row.last_sync_time)}{else /}从未同步{/if}</dd>
|
||||
<dt>异常代码 / 诊断</dt>
|
||||
<dd style="color:#b91c1c;">{$row.fail_code|default='-'} · {$row.fail_reason|default='-'}</dd>
|
||||
<dt>创建时间</dt>
|
||||
<dd>{:date('Y-m-d H:i:s', $row.createtime)}</dd>
|
||||
</dl>
|
||||
{if $row.status == 'refund_failed'}
|
||||
<div class="po-warn">
|
||||
<i class="fa fa-exclamation-triangle"></i> 该流水退款失败:{$row.fail_reason|htmlentities}
|
||||
可返回列表点击"重发原路退款"重新发起(系统将自动核实微信侧旧退款单状态,避免重复退款)。
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -0,0 +1,29 @@
|
||||
<div class="panel panel-default panel-intro">
|
||||
{:build_heading()}
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="myTabContent" class="tab-content">
|
||||
<div class="tab-pane fade active in" id="one">
|
||||
<div class="widget-body no-padding">
|
||||
<div class="alert alert-warning-light" style="margin-bottom:10px;">
|
||||
<i class="fa fa-undo" style="color:#d9534f;"></i>
|
||||
<strong>退款台账说明:</strong>展示全站微信支付流水(订单支付与预付款充值)的支付/退款状态、微信网关回执与异常中文诊断。
|
||||
退款处理中(refunding)的流水可点击"同步微信状态"核实到账情况;退款失败(refund_failed)或已支付未退的流水可点击"重发退款"重新发起原路退款。
|
||||
完成"订单履约 → 售后仲裁退款(申诉工单)/ 订单售后退款工作台(订单管理)"后,退款记录将实时汇入本台账。
|
||||
</div>
|
||||
<div id="toolbar" class="toolbar">
|
||||
<a href="javascript:;" class="btn btn-primary btn-refresh" title="刷新"><i class="fa fa-refresh"></i></a>
|
||||
<button type="button" id="js-sync-pay-order" class="btn btn-info btn-disabled disabled"><i class="fa fa-exchange"></i> 同步微信状态</button>
|
||||
<button type="button" id="js-retry-refund" class="btn btn-danger btn-disabled disabled"><i class="fa fa-undo"></i> 重发原路退款</button>
|
||||
</div>
|
||||
<table id="table" class="table table-striped table-bordered table-hover table-nowrap"
|
||||
data-operate-detail="{:$auth->check('pay_order/detail')}"
|
||||
data-operate-sync="{:$auth->check('pay_order/sync')}"
|
||||
data-operate-retryrefund="{:$auth->check('pay_order/retryrefund')}"
|
||||
width="100%">
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
在新工单中引用
屏蔽一个用户