From 3995f4bd129fee27b1085534e2231d68b7a970d8 Mon Sep 17 00:00:00 2001
From: mayf <m13160102112@163.com>
Date: 星期五, 25 十月 2024 17:28:52 +0800
Subject: [PATCH] 首页统计

---
 pages/marketing/coupon/user/index.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pages/marketing/coupon/user/index.vue b/pages/marketing/coupon/user/index.vue
index ce68f1e..1c546d1 100644
--- a/pages/marketing/coupon/user/index.vue
+++ b/pages/marketing/coupon/user/index.vue
@@ -33,13 +33,13 @@
         },
         columns: [
           ...couponColumn(),
-          { label: '发放时间', prop: 'usageStartDate', minWidth: 180 },
+          { label: '发放时间', prop: 'createTime', minWidth: 180 },
           {
             label: '有效期',
             formatter: (row) =>
               row.usageStartDate
                 ? `${row.usageStartDate} ~ ${row.usageEndDate || ''}`
-                : '',
+                : `发放后${row.usageTimeNum}${row.usageTimeTypeName || ''}`,
             minWidth: 400,
           },
           { label: '状态', prop: 'statusName', minWidth: 120 },
@@ -63,6 +63,7 @@
             el: {
               inputAttrs: {
                 min: 1,
+                max: 99999999,
                 precision: 0,
                 controls: false,
               },
@@ -78,7 +79,7 @@
             rules: { required: true, message: '请选择领取用户' },
             inputFormat: (row) => {
               if ('customerList' in row) {
-                return row.customerList
+                return row.customerList.filter((i) => i)
               }
             },
             outputFormat: (val) => {
@@ -90,8 +91,7 @@
         extraButtons: [
           {
             text: '发布',
-            show: (row) =>
-              row.status === 'inactive' || row.status === 'expired',
+            show: (row) => row.status === 'inactive',
             atClick: async (row) => {
               try {
                 await this.$elBusUtil.confirm('确定要发布吗?')

--
Gitblit v1.9.3