Commit d10530c9 by YunaiV

code review:优惠劵逻辑

parent 9aa7ba35
...@@ -213,15 +213,15 @@ export const CouponTemplateValidityTypeEnum = { ...@@ -213,15 +213,15 @@ export const CouponTemplateValidityTypeEnum = {
* 优惠劵模板的领取方式的枚举 * 优惠劵模板的领取方式的枚举
*/ */
export const CouponTemplateTakeTypeEnum = { export const CouponTemplateTakeTypeEnum = {
BY_USER: { USER: {
type: 1, type: 1,
name: '直接领取' name: '直接领取'
}, },
BY_ADMIN: { ADMIN: {
type: 2, type: 2,
name: '指定发放' name: '指定发放'
}, },
BY_REGISTER: { REGISTER: {
type: 3, type: 3,
name: '新人券' name: '新人券'
} }
......
...@@ -210,7 +210,7 @@ const emits = defineEmits<{ ...@@ -210,7 +210,7 @@ const emits = defineEmits<{
/** 全选 */ /** 全选 */
const handleCheckAll = (checked: boolean) => { const handleCheckAll = (checked: boolean) => {
//todo 不触发? debugger
console.log('checkAll', checked) console.log('checkAll', checked)
allChecked.value = checked allChecked.value = checked
const index = checkedPageNos.value.indexOf(queryParams.value.pageNo) const index = checkedPageNos.value.indexOf(queryParams.value.pageNo)
......
...@@ -107,7 +107,7 @@ const queryParams = ref({ ...@@ -107,7 +107,7 @@ const queryParams = ref({
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
name: null, name: null,
canTakeTypes: [CouponTemplateTakeTypeEnum.BY_ADMIN.type] canTakeTypes: [CouponTemplateTakeTypeEnum.ADMIN.type]
}) // 查询参数 }) // 查询参数
const queryFormRef = ref() // 搜索的表单 const queryFormRef = ref() // 搜索的表单
// 领取人的编号列表 // 领取人的编号列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment