陶杰
2024-12-18 daa0b51b0b3609c683da3066c2815d3e9eb42b3f
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('确定要发布吗?')