mayf
2024-09-04 8e219beed40e701537eac9ea8b5817b884d947ec
utils/coupon-form.js
@@ -144,18 +144,14 @@
}
// 优惠券领取/发放记录
export const couponRecordColumn = () => {
export const couponRecordColumn = (timeName) => {
  return [
    { label: '序号', type: 'index' },
    { label: '店铺名称', prop: 'customerName' },
    { label: '优惠券类型', prop: 'couponDiscountTypeName' },
    {
      label: '使用条件',
      formatter: (row) => `满${row.minOrderAmount}`,
    },
    { label: '优惠券面值', prop: 'couponDiscountValue' },
    { label: '联系方式', prop: 'tel' },
    { label: timeName, prop: 'createTime' },
    { label: '状态', prop: 'statusName' },
    { label: '使用时间', prop: 'index' },
    { label: '使用时间', prop: 'usedTime' },
    { label: '订单号', prop: 'orderNo' },
  ]
}