Skip to content

Commit d10530c

Browse files
committed
code review:优惠劵逻辑
1 parent 9aa7ba3 commit d10530c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/utils/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,15 +213,15 @@ export const CouponTemplateValidityTypeEnum = {
213213
* 优惠劵模板的领取方式的枚举
214214
*/
215215
export const CouponTemplateTakeTypeEnum = {
216-
BY_USER: {
216+
USER: {
217217
type: 1,
218218
name: '直接领取'
219219
},
220-
BY_ADMIN: {
220+
ADMIN: {
221221
type: 2,
222222
name: '指定发放'
223223
},
224-
BY_REGISTER: {
224+
REGISTER: {
225225
type: 3,
226226
name: '新人券'
227227
}

src/views/mall/product/spu/components/SpuTableSelect.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ const emits = defineEmits<{
210210
211211
/** 全选 */
212212
const handleCheckAll = (checked: boolean) => {
213-
//todo 不触发?
213+
debugger
214214
console.log('checkAll', checked)
215215
allChecked.value = checked
216216
const index = checkedPageNos.value.indexOf(queryParams.value.pageNo)

src/views/mall/promotion/coupon/components/CouponSendForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const queryParams = ref({
107107
pageNo: 1,
108108
pageSize: 10,
109109
name: null,
110-
canTakeTypes: [CouponTemplateTakeTypeEnum.BY_ADMIN.type]
110+
canTakeTypes: [CouponTemplateTakeTypeEnum.ADMIN.type]
111111
}) // 查询参数
112112
const queryFormRef = ref() // 搜索的表单
113113
// 领取人的编号列表

0 commit comments

Comments
 (0)