Przeglądaj źródła

fix(frontend): 额度列表 - quota_id为空显示'-' + 新增QUOTA_PENDING映射

alphah 2 tygodni temu
rodzic
commit
2654203573

+ 2 - 0
frontend/src/api/module_payment/quota.ts

@@ -144,6 +144,7 @@ export const STATUS_TAG_TYPE: Record<string, string> = {
   QUOTA_FROZEN: "warning",
   QUOTA_EXHAUSTED: "info",
   QUOTA_EXPIRED: "danger",
+  QUOTA_PENDING: "info",
 };
 
 export const STATUS_LABEL: Record<string, string> = {
@@ -151,4 +152,5 @@ export const STATUS_LABEL: Record<string, string> = {
   QUOTA_FROZEN: "冻结",
   QUOTA_EXHAUSTED: "已用完",
   QUOTA_EXPIRED: "已过期",
+  QUOTA_PENDING: "待发放",
 };

+ 5 - 1
frontend/src/views/module_payment/institution/components/QuotaList.vue

@@ -16,7 +16,11 @@
         <el-empty :image-size="60" description="暂无额度数据" />
       </template>
       <el-table-column type="index" label="序号" width="60" align="center" />
-      <el-table-column prop="quota_id" label="额度ID" min-width="160" show-overflow-tooltip />
+      <el-table-column label="额度ID" min-width="160" show-overflow-tooltip>
+        <template #default="scope">
+          {{ scope.row.quota_id || "-" }}
+        </template>
+      </el-table-column>
       <el-table-column label="员工ID" min-width="140" show-overflow-tooltip>
         <template #default="scope">
           {{ scope.row.employee_id || "-" }}