fix(admin): 下线退款重发功能并优化用户详情页布局
- 移除后台订单和支付流水的退款重发按钮及接口 - 新增用户详情页分区导航和资金流水筛选功能 - 升级账号安全页面为企业资质认证功能 - 新增企业资质相关测试用例和图标 - 升级版本号至1.0.96
这个提交包含在:
@@ -546,11 +546,6 @@
|
||||
<i class="fa fa-refresh"></i> 同步微信状态
|
||||
</button>
|
||||
{/if}
|
||||
{if $po.status == 'refund_failed' || ($po.status == 'paid' && $row.status == 9 && $row.settle_status != 1)}
|
||||
<button type="button" class="btn btn-xs btn-danger js-retry-refund" data-id="{$po.id}" data-outno="{$po.out_trade_no|htmlentities}">
|
||||
<i class="fa fa-undo"></i> 重试原路退款
|
||||
</button>
|
||||
{/if}
|
||||
{if $po.status == 'refunded' || $po.status == 'closed' || ($po.status == 'paid' && ($row.status != 9 || $row.settle_status == 1))}
|
||||
<span class="text-muted" style="font-size:11px;">无需人工处置</span>
|
||||
{/if}
|
||||
|
||||
@@ -434,7 +434,7 @@
|
||||
{if strpos($row.fail_code, 'CURL_60') !== false}
|
||||
系统支付安全配置异常,请联系技术人员处理。
|
||||
{elseif $row.status == 'refund_failed'}
|
||||
退款未能成功,请确认微信商户号可用余额充足后,点击下方【重发原路退款】重新发起。
|
||||
退款未能成功,请核对原退款单状态和金额后联系财务处理。
|
||||
{else /}
|
||||
可点击下方【同步微信状态】获取最新结果,或登录微信商户平台核对。
|
||||
{/if}
|
||||
@@ -646,7 +646,7 @@
|
||||
<div class="po-footer-bar">
|
||||
<div class="po-footer-tip">
|
||||
<i class="fa fa-info-circle text-primary"></i>
|
||||
<span>系统会自动核对微信已退金额,不会重复退款。</span>
|
||||
<span>如退款异常,请先核对原退款单和金额,再通过订单售后流程处理。</span>
|
||||
</div>
|
||||
<div class="po-footer-actions">
|
||||
{if $row.scene != 'recharge' && in_array($row.status, ['paid', 'refunding', 'refunded', 'refund_failed'])}
|
||||
@@ -654,11 +654,6 @@
|
||||
<i class="fa fa-refresh"></i> 同步微信状态
|
||||
</button>
|
||||
{/if}
|
||||
{if $row.scene != 'recharge' && ($row.status == 'refund_failed' || ($row.status == 'paid' && $refundableAmount > 0)) && $refundableAmount > 0}
|
||||
<button type="button" class="btn btn-danger js-action-retry" data-id="{$row.id}">
|
||||
<i class="fa fa-undo"></i> 重发原路退款 (¥{$refundableAmount})
|
||||
</button>
|
||||
{/if}
|
||||
<button type="button" class="btn btn-default js-modal-close">
|
||||
<i class="fa fa-times"></i> 关闭
|
||||
</button>
|
||||
@@ -760,34 +755,6 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var retryBtn = e.target.closest ? e.target.closest('.js-action-retry') : null;
|
||||
if (retryBtn) {
|
||||
e.preventDefault();
|
||||
var rid = retryBtn.getAttribute('data-id');
|
||||
var FastApi2 = window.Fast || (parent && parent.Fast);
|
||||
var LayerApi = window.Layer || (parent && parent.Layer);
|
||||
if (!FastApi2 || !LayerApi) return;
|
||||
LayerApi.confirm('确定对该笔流水重新发起微信原路退款吗?系统将自动退剩余可退金额。', {
|
||||
title: '重发原路退款确认',
|
||||
icon: 3
|
||||
}, function (index) {
|
||||
LayerApi.close(index);
|
||||
retryBtn.disabled = true;
|
||||
FastApi2.api.ajax({ url: 'pay_order/retryrefund/ids/' + rid, data: {} }, function (data, ret) {
|
||||
retryBtn.disabled = false;
|
||||
notifySuccess((ret && ret.msg) || '退款请求已发起');
|
||||
if (parent && parent.$ && parent.$('#table').length) {
|
||||
parent.$('#table').bootstrapTable('refresh');
|
||||
}
|
||||
setTimeout(function () { window.location.reload(); }, 800);
|
||||
return false;
|
||||
}, function (data, ret) {
|
||||
retryBtn.disabled = false;
|
||||
notifyError((ret && ret.msg) || '重退失败');
|
||||
return false;
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
})();
|
||||
</script>
|
||||
|
||||
@@ -201,7 +201,6 @@
|
||||
<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>
|
||||
{if !$rechargeOnly}<button type="button" id="js-retry-refund" class="btn btn-danger btn-disabled disabled"><i class="fa fa-undo"></i> 批量重发原路退款</button>{/if}
|
||||
</div>
|
||||
|
||||
<!-- 表格 -->
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
.ud-card-hd { padding: 10px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 13.5px; font-weight: 700; color: #1e293b; display: flex; align-items: center; gap: 8px; }
|
||||
.ud-card-hd i { color: #ea580c; }
|
||||
.ud-card-bd { padding: 14px 16px; }
|
||||
.ud-section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
|
||||
.ud-section-nav a { padding: 5px 10px; border: 1px solid #e2e8f0; border-radius: 5px; color: #475569; background: #fff; }
|
||||
.ud-stat small { display: block; max-width: 180px; color: #64748b; font-size: 11px; font-weight: normal; }
|
||||
</style>
|
||||
|
||||
<div class="ud-wrap">
|
||||
@@ -61,7 +64,8 @@
|
||||
</div>
|
||||
<div class="ud-stat">
|
||||
<b>¥{$totalSpent}</b>
|
||||
<span>累计实付</span>
|
||||
<span>已支付订单金额(退款前)</span>
|
||||
<small>不含已取消订单,未扣除退款</small>
|
||||
</div>
|
||||
<div class="ud-stat">
|
||||
<b>¥{$row.money}</b>
|
||||
@@ -70,17 +74,25 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{if !empty($enterpriseCert)}
|
||||
<div class="ud-card">
|
||||
<nav class="ud-section-nav" aria-label="详情分区">
|
||||
<a href="#enterprise-cert">企业资质</a><a href="#user-addresses">地址</a><a href="#user-coupons">优惠券</a><a href="#user-wallet">资金流水</a><a href="#user-orders">订单</a>
|
||||
</nav>
|
||||
|
||||
<div class="ud-card" id="enterprise-cert">
|
||||
<div class="ud-card-hd"><i class="fa fa-certificate"></i> 企业资质认证</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($enterpriseCert)}
|
||||
<table class="table table-bordered table-condensed" style="margin-bottom:0;"><tbody>
|
||||
<tr><th>企业名称</th><td>{$enterpriseCert.company_name|htmlentities}</td><th>营业执照号码</th><td>{$enterpriseCert.license_no|htmlentities}</td></tr>
|
||||
<tr><th>法人姓名</th><td>{$enterpriseCert.legal_person|default='未填写'|htmlentities}</td><th>审核结果</th><td>{if $enterpriseCert.verify_status=='pass'}已通过{elseif $enterpriseCert.verify_status=='pending'/}待审核{else/}已驳回:{$enterpriseCert.audit_msg|htmlentities}{/if}</td></tr>
|
||||
<tr><th>提交时间</th><td>{if $enterpriseCert.createtime}{$enterpriseCert.createtime|datetime}{else/}未记录{/if}</td><th>营业执照图片</th><td>{if !empty($enterpriseCert.license_image)}<a class="js-image-preview-link" href="{:htmlentities(cdnurl($enterpriseCert.license_image, true))}" target="_blank" rel="noopener noreferrer">查看营业执照</a>{else/}未提供{/if}</td></tr>
|
||||
</tbody></table>
|
||||
{else /}
|
||||
<span class="text-muted">未提交企业资质</span>
|
||||
{/if}
|
||||
{if $auth->check('merchant/certificates')}<p style="margin:10px 0 0;"><a href="{:url('merchant/certificates')}" class="addtabsit" title="企业资质审核">进入企业资质审核</a></p>{/if}
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
{if !empty($merchantProfile) && !empty($merchantProfile.id) && $auth->check('merchant/detail')}
|
||||
<div class="ud-card">
|
||||
@@ -109,8 +121,8 @@
|
||||
<div class="row">
|
||||
<!-- 常用上门服务地址簿 -->
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="ud-card">
|
||||
<div class="ud-card-hd"><i class="fa fa-map-marker"></i> 常用上门服务地址簿 ({:count($addressList)})</div>
|
||||
<div class="ud-card" id="user-addresses">
|
||||
<div class="ud-card-hd"><i class="fa fa-map-marker"></i> 上门服务地址(最多显示 6 条)</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($addressList)}
|
||||
<table class="table table-bordered table-condensed" style="font-size:12px; margin-bottom:0;">
|
||||
@@ -138,8 +150,8 @@
|
||||
|
||||
<!-- 优惠券领取与核销 -->
|
||||
<div class="col-xs-12 col-sm-6">
|
||||
<div class="ud-card">
|
||||
<div class="ud-card-hd"><i class="fa fa-ticket"></i> 优惠券领用与核销记录 ({:count($coupons)})</div>
|
||||
<div class="ud-card" id="user-coupons">
|
||||
<div class="ud-card-hd"><i class="fa fa-ticket"></i> 最近优惠券记录(最多显示 8 条)</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($coupons)}
|
||||
<table class="table table-bordered table-condensed" style="font-size:12px; margin-bottom:0;">
|
||||
@@ -175,9 +187,9 @@
|
||||
</div>
|
||||
|
||||
<!-- 近期资金收支流水 -->
|
||||
<div class="ud-card" style="margin-bottom:16px;">
|
||||
<div class="ud-card" id="user-wallet" style="margin-bottom:16px;">
|
||||
<div class="ud-card-hd" style="display:flex;align-items:center;justify-content:space-between;">
|
||||
<span><i class="fa fa-money"></i> 账户收支明细 ({:count($recentWalletLogs)})</span>
|
||||
<span><i class="fa fa-money"></i> 账户收支明细(最近 6 条) {if $auth->check('wallet_log/index')}<a href="{:url('wallet_log/index', ['scope_user_id' => $row.id])}" class="addtabsit" title="用户全部资金流水">查看全部</a>{/if}</span>
|
||||
<span class="text-muted" style="font-weight:normal;font-size:12px;">实时账户余额:<strong style="color:#ea580c;font-size:14px;">¥{$row.money}</strong></span>
|
||||
</div>
|
||||
<div class="ud-card-bd">
|
||||
@@ -189,7 +201,7 @@
|
||||
<tbody>
|
||||
{foreach name="recentWalletLogs" item="wl"}
|
||||
<tr>
|
||||
<td><code>#WL{$wl.id}</code></td>
|
||||
<td>{if $auth->check('wallet_log/detail')}<a href="{:url('wallet_log/detail', ['ids' => $wl.id])}" class="dialogit" data-title="资金流水详情">#WL{$wl.id}</a>{else/}<code>#WL{$wl.id}</code>{/if}</td>
|
||||
<td>
|
||||
{if $wl.type=='recharge'}<span class="label label-success">账户充值</span>
|
||||
{elseif $wl.type=='consume'/}<span class="label label-warning">余额消费</span>
|
||||
@@ -214,8 +226,8 @@
|
||||
</div>
|
||||
|
||||
<!-- 近期服务订单记录 -->
|
||||
<div class="ud-card" style="margin-bottom:0;">
|
||||
<div class="ud-card-hd"><i class="fa fa-list-alt"></i> 近期预约下单记录 ({:count($recentOrders)})</div>
|
||||
<div class="ud-card" id="user-orders" style="margin-bottom:0;">
|
||||
<div class="ud-card-hd"><i class="fa fa-list-alt"></i> 近期预约下单记录(最多显示 8 条) {if $auth->check('order/index')}<a href="{:url('order/index', ['scope_user_id' => $row.id])}" class="addtabsit" title="用户全部订单">查看全部</a>{/if}</div>
|
||||
<div class="ud-card-bd">
|
||||
{if !empty($recentOrders)}
|
||||
<table class="table table-bordered table-hover table-condensed" style="font-size:12px; margin-bottom:0;">
|
||||
@@ -225,7 +237,7 @@
|
||||
<tbody>
|
||||
{foreach name="recentOrders" item="o"}
|
||||
<tr>
|
||||
<td><code>{$o.order_no|htmlentities}</code></td>
|
||||
<td>{if $auth->check('order/detail')}<a href="{:url('order/detail', ['ids' => $o.id])}" class="dialogit" data-title="订单详情">{$o.order_no|htmlentities}</a>{else/}<code>{$o.order_no|htmlentities}</code>{/if}</td>
|
||||
<td><strong>{$o.service_name|htmlentities}</strong></td>
|
||||
<td>{$o.province|htmlentities}{$o.city|htmlentities}{$o.district|htmlentities}{$o.address|htmlentities}</td>
|
||||
<td>{$o.master_name|default='待指派'|htmlentities}</td>
|
||||
|
||||
在新工单中引用
屏蔽一个用户