fix(admin): 下线退款重发功能并优化用户详情页布局
- 移除后台订单和支付流水的退款重发按钮及接口 - 新增用户详情页分区导航和资金流水筛选功能 - 升级账号安全页面为企业资质认证功能 - 新增企业资质相关测试用例和图标 - 升级版本号至1.0.96
这个提交包含在:
@@ -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>
|
||||
|
||||
<!-- 表格 -->
|
||||
|
||||
在新工单中引用
屏蔽一个用户