Commit 7bf071d2 by zhangxw

优惠券发放记录优化修改

1 parent 22d3714f
......@@ -59,7 +59,7 @@
</a-tag>
</template>
<template v-if="column.key === 'totalQuantity'">
{{ (record.totalQuantity ?? '') === '' ? '不限制' : record.totalQuantity }}
{{ (record.totalQuantity ?? '') === '' ? '不限制' : `${record.totalQuantity - (record.remainingQuantity || 0)}/${record.totalQuantity}` }}
</template>
<template v-if="column.key === 'remark'">
<a-tooltip :title="record.remark">
......@@ -152,7 +152,7 @@ export default class DiscountCouponPage extends PaginationComponent<Vehicle> {
{ title: '抵扣类型', dataIndex: 'deductionType', key: 'deductionType', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '面额/最高抵扣(元)', dataIndex: 'faceAmount', key: 'faceAmount', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '关联活动数', dataIndex: 'relatedActivities', key: 'relatedActivities', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '发放总量', dataIndex: 'totalQuantity', key: 'totalQuantity', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '已发放/发放总量', dataIndex: 'totalQuantity', key: 'totalQuantity', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '备注', dataIndex: 'remark', key: 'remark', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '状态', dataIndex: 'status', key: 'status', align: 'left', width: 170, resizable: true, ellipsis: true },
{ title: '创建/更新时间', dataIndex: 'updateTime', key: 'updateTime', align: 'left', width: 170, resizable: true, ellipsis: true },
......
......@@ -251,6 +251,8 @@ export default class DiscountActivityPage extends PaginationComponent<Vehicle> {
distributionType: [null, { label: '发放类型', type: 'select', optionItems: this.distributionTypeList, allowClear: true, field: 'distributionType', operator: Operator.eq }],
orderCode: [null, { label: '关联订单号', field: 'orderCode', placeholder: '输入订单号', operator: Operator.like }],
distributionTime: [null, { label: '发放时间', field: 'distributionTime', operator: Operator.dateBetween, type: 'date-range' }],
templateName: [null, { label: '优惠券名称', field: 'templateName', placeholder: '输入优惠券名称', operator: Operator.like }],
couponTemplateId: [null, { label: '优惠券ID', field: 'couponTemplateId', type: 'number', placeholder: '输入优惠券ID', operator: Operator.like }]
});
const pageQuery = this.$route.query
// 从优惠券管理列表跳转 直接打开活动详情
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!