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
ed54cfe5
authored
Sep 08, 2024
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码优化】商城: 限时折扣活动新增 spu 保存 fix
parent
7bb482a8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
src/views/mall/promotion/discountActivity/DiscountActivityForm.vue
+9
-1
No files found.
src/views/mall/promotion/discountActivity/DiscountActivityForm.vue
View file @
ed54cfe5
...
@@ -78,11 +78,19 @@ const formRef = ref() // 表单 Ref
...
@@ -78,11 +78,19 @@ const formRef = ref() // 表单 Ref
const
spuSelectRef
=
ref
()
// 商品和属性选择 Ref
const
spuSelectRef
=
ref
()
// 商品和属性选择 Ref
const
spuAndSkuListRef
=
ref
()
// sku 限时折扣 配置组件Ref
const
spuAndSkuListRef
=
ref
()
// sku 限时折扣 配置组件Ref
const
ruleConfig
:
RuleConfig
[]
=
[]
const
ruleConfig
:
RuleConfig
[]
=
[
{
name
:
'productConfig.discountPrice'
,
rule
:
(
arg
)
=>
arg
>
0
,
message
:
'商品优惠金额不能为 0 !!!'
}
]
const
spuList
=
ref
<
DiscountActivityApi
.
SpuExtension
[]
>
([])
// 选择的 spu
const
spuList
=
ref
<
DiscountActivityApi
.
SpuExtension
[]
>
([])
// 选择的 spu
const
spuPropertyList
=
ref
<
SpuProperty
<
DiscountActivityApi
.
SpuExtension
>
[]
>
([])
const
spuPropertyList
=
ref
<
SpuProperty
<
DiscountActivityApi
.
SpuExtension
>
[]
>
([])
const
spuIds
=
ref
<
number
[]
>
([])
const
spuIds
=
ref
<
number
[]
>
([])
const
selectSpu
=
(
spuId
:
number
,
skuIds
:
number
[])
=>
{
const
selectSpu
=
(
spuId
:
number
,
skuIds
:
number
[])
=>
{
// TODO puhui999: 艿艿现在限时折扣活动可以选择多个 spu ,那么 spuId 是不是得改成 spuIds 来存放多个?🤣
formRef
.
value
.
setValues
({
spuId
})
getSpuDetails
(
spuId
,
skuIds
)
getSpuDetails
(
spuId
,
skuIds
)
}
}
/**
/**
...
...
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