Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
16a149f0
Commit
16a149f0
authored
Sep 01, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 奥莱抵金券
parent
4c7a1f5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
form.js
src/views/card/form.js
+8
-1
No files found.
src/views/card/form.js
View file @
16a149f0
...
...
@@ -453,8 +453,15 @@ export default {
const
{
storeId
,
storeCode
,
storeName
}
=
el
;
return
{
storeId
,
storeCode
,
storeName
,
costValueProportion
:
undefined
,
costValue
:
0
};
});
if
(
this
.
isEdit
)
{
// 编辑卡券通过门店选择器添加门店时,需要先过滤掉已经选中的门店,再与form.costStoreList合并
this
.
selectedStoreList
=
this
.
selectedStoreList
.
filter
(
el
=>
this
.
form
.
costStoreList
.
every
(
item
=>
item
.
storeId
!=
el
.
storeId
));
this
.
originStoreList
=
[...
this
.
selectedStoreList
,
...
this
.
form
.
costStoreList
];
}
else
if
(
this
.
isAdd
||
this
.
isCopy
)
{
// 新建卡券时直接覆盖
this
.
originStoreList
=
this
.
selectedStoreList
;
}
}
this
.
originStoreList
=
this
.
selectedStoreList
;
});
}
else
{
getStoreWidgetStore
({
key
:
id
,
pageSize
:
99999
,
currentPage
:
1
}).
then
(
res
=>
{
...
...
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