Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d10530c9
authored
Sep 02, 2023
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review:优惠劵逻辑
parent
9aa7ba35
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/utils/constants.ts
+3
-3
src/views/mall/product/spu/components/SpuTableSelect.vue
+1
-1
src/views/mall/promotion/coupon/components/CouponSendForm.vue
+1
-1
No files found.
src/utils/constants.ts
View file @
d10530c9
...
...
@@ -213,15 +213,15 @@ export const CouponTemplateValidityTypeEnum = {
* 优惠劵模板的领取方式的枚举
*/
export
const
CouponTemplateTakeTypeEnum
=
{
BY_
USER
:
{
USER
:
{
type
:
1
,
name
:
'直接领取'
},
BY_
ADMIN
:
{
ADMIN
:
{
type
:
2
,
name
:
'指定发放'
},
BY_
REGISTER
:
{
REGISTER
:
{
type
:
3
,
name
:
'新人券'
}
...
...
src/views/mall/product/spu/components/SpuTableSelect.vue
View file @
d10530c9
...
...
@@ -210,7 +210,7 @@ const emits = defineEmits<{
/** 全选 */
const
handleCheckAll
=
(
checked
:
boolean
)
=>
{
//todo 不触发?
debugger
console
.
log
(
'checkAll'
,
checked
)
allChecked
.
value
=
checked
const
index
=
checkedPageNos
.
value
.
indexOf
(
queryParams
.
value
.
pageNo
)
...
...
src/views/mall/promotion/coupon/components/CouponSendForm.vue
View file @
d10530c9
...
...
@@ -107,7 +107,7 @@ const queryParams = ref({
pageNo
:
1
,
pageSize
:
10
,
name
:
null
,
canTakeTypes
:
[
CouponTemplateTakeTypeEnum
.
BY_
ADMIN
.
type
]
canTakeTypes
:
[
CouponTemplateTakeTypeEnum
.
ADMIN
.
type
]
})
// 查询参数
const
queryFormRef
=
ref
()
// 搜索的表单
// 领取人的编号列表
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment