|
|
@@ -178,6 +178,13 @@
|
|
|
</span>
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
+ <el-descriptions-item label="财务审核原因" v-if="isRefundOrder">
|
|
|
+ <span>{{ financeAuditReasonText }}</span>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="财务审核备注" v-if="isRefundOrder">
|
|
|
+ <span>{{ financeAuditRemarkText }}</span>
|
|
|
+ </el-descriptions-item>
|
|
|
+
|
|
|
</el-descriptions>
|
|
|
<div style="margin: 20px 0px" v-if="order!=null">
|
|
|
<span class="font-small">
|
|
|
@@ -1267,7 +1274,13 @@ export default {
|
|
|
// 其它商品信息分页数据
|
|
|
otherProductsPage: 1,
|
|
|
otherProductsPageSize: 5,
|
|
|
- otherProductsTotal: 0
|
|
|
+ otherProductsTotal: 0,
|
|
|
+ afterSales: {
|
|
|
+ auditReasonName: null,
|
|
|
+ auditRemark: null,
|
|
|
+ reasonValue1: null,
|
|
|
+ reasonValue2: null
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -1326,6 +1339,28 @@ export default {
|
|
|
}
|
|
|
return `历史订单商品 ${this.currentOrderCode} - 商品详情`;
|
|
|
},
|
|
|
+ /** 退款中 / 已退款 */
|
|
|
+ isRefundOrder() {
|
|
|
+ if (!this.order) return false;
|
|
|
+ const s = Number(this.order.status);
|
|
|
+ return s === -1 || s === -2;
|
|
|
+ },
|
|
|
+ /** 财务审核原因:售后一级 + 二级,兼容旧数据 auditReasonName */
|
|
|
+ financeAuditReasonText() {
|
|
|
+ const a = this.afterSales;
|
|
|
+ if (!a) return '—';
|
|
|
+ const parts = [a.reasonValue1, a.reasonValue2].filter(
|
|
|
+ x => x != null && String(x).trim() !== ''
|
|
|
+ );
|
|
|
+ if (parts.length > 0) return parts.join(' / ');
|
|
|
+ if (a.auditReasonName) return a.auditReasonName;
|
|
|
+ return '—';
|
|
|
+ },
|
|
|
+ financeAuditRemarkText() {
|
|
|
+ const a = this.afterSales;
|
|
|
+ if (!a || a.auditRemark == null || String(a.auditRemark).trim() === '') return '—';
|
|
|
+ return a.auditRemark;
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -1961,6 +1996,12 @@ export default {
|
|
|
this.payments = response.payments;
|
|
|
this.customerInfo = response.customer;
|
|
|
this.auditLogs = response.auditLogs;
|
|
|
+ this.afterSales = response.afterSales || {
|
|
|
+ auditReasonName: null,
|
|
|
+ auditRemark: null,
|
|
|
+ reasonValue1: null,
|
|
|
+ reasonValue2: null
|
|
|
+ };
|
|
|
|
|
|
// 调用分页接口获取其他订单商品信息
|
|
|
if (this.order && this.user) {
|