dct 1 mēnesi atpakaļ
vecāks
revīzija
fb2c95e1a1
1 mainītis faili ar 19 papildinājumiem un 4 dzēšanām
  1. 19 4
      src/views/order/refund.vue

+ 19 - 4
src/views/order/refund.vue

@@ -51,8 +51,8 @@
       <el-table-column prop="reason" label="退款原因" min-width="150" show-overflow-tooltip></el-table-column>
       <el-table-column prop="auditStatus" label="审核状态" width="100" align="center">
         <template #default="scope">
-          <el-tag :type="getRefundStatusType(scope.row.auditStatus)">
-            {{ getRefundStatusText(scope.row.auditStatus) }}
+          <el-tag :type="getAuditStatusType(scope.row.auditStatus)">
+            {{ getAuditStatusText(scope.row.auditStatus) }}
           </el-tag>
         </template>
       </el-table-column>
@@ -454,7 +454,22 @@ export default {
     getOrderStatusText,
     getPaymentStatusType,
     getPaymentStatusText,
-
+    getAuditStatusType(status) {
+      const types = {
+        'Pending': 'warning',
+        'Approved': 'success',
+        'Rejected': 'danger',
+      };
+      return types[status] || 'info';
+    },
+    getAuditStatusText(status) {
+      const texts = {
+        'Pending': '待审核',
+        'Approved': '已通过',
+        'Rejected': '已驳回',
+      };
+      return texts[status] || status;
+    },
     getRefundStatusType(status) {
       const types = {
         'Pending': 'warning',
@@ -468,7 +483,7 @@ export default {
 
     getRefundStatusText(status) {
       const texts = {
-        'Pending': '待审核',
+        'Pending': '退款中',
         'Approved': '已通过',
         'Rejected': '已驳回',
         'Refunding': '退款中',