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
4031b7a9
Commit
4031b7a9
authored
Sep 14, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/8月-奥莱定制' into dev
parents
d8a1cec6
85c96719
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
form.js
src/views/card/form.js
+8
-4
No files found.
src/views/card/form.js
View file @
4031b7a9
...
...
@@ -537,7 +537,11 @@ export default {
.
then
(
res
=>
{
const
{
importId
,
importCount
,
importSuccessCount
,
importDuplicateCount
,
costStoreList
}
=
res
.
result
;
this
.
importCost
.
costStoreList
=
costStoreList
;
this
.
$message
.
success
(
`上传
${
importCount
}
条数据,
${
importDuplicateCount
>
0
?
`
${
importDuplicateCount
}
条数据重复,`
:
''
}${
importSuccessCount
}
条数据上传成功`
);
if
(
importCount
==
importSuccessCount
)
{
this
.
$message
.
success
(
`
${
importSuccessCount
}
条数据上传成功`
);
}
else
{
this
.
$message
.
success
(
`
${
importSuccessCount
}
条数据上传成功,
${
importCount
-
importSuccessCount
}
条数据上传失败`
);
}
if
(
importCount
-
importSuccessCount
-
importDuplicateCount
>
0
)
{
this
.
importCost
.
options
.
downloadTemplate
.
splice
(
1
,
1
,
{
url
:
`/api-marketing/download-cost-store-error?requestProject=marketing&importId=
${
importId
}
`
,
...
...
@@ -865,9 +869,9 @@ export default {
this
.
form
.
costValueProportionFlag
=
card
.
costValueProportionFlag
||
0
;
// 卡券成本比例 1:开 0:关
this
.
form
.
costValueType
=
card
.
costValueType
||
0
;
//成本费用0固定成本1门店成本
this
.
form
.
costValueProportion
=
card
.
costValueProportion
;
//成本比例
this
.
form
.
costStoreList
=
(
this
.
isEdit
||
this
.
isInfo
||
this
.
isCopy
)
&&
Array
.
isArray
(
card
.
costStoreList
)
?
card
.
costStoreList
:
[];
this
.
form
.
costStoreList
=
(
this
.
isEdit
||
this
.
isInfo
||
this
.
isCopy
)
&&
card
.
storeWidgetKey
&&
Array
.
isArray
(
card
.
costStoreList
)
?
card
.
costStoreList
:
[];
this
.
originStoreList
=
this
.
form
.
costStoreList
;
if
(
this
.
isCopy
)
{
if
(
this
.
isCopy
&&
card
.
storeWidgetKey
)
{
this
.
onStoreChange
(
card
.
storeWidgetKey
);
}
}
...
...
@@ -1080,7 +1084,7 @@ export default {
if
(
this
.
form
.
cardType
==
3
)
{
if
(
this
.
form
.
costValueProportionFlag
==
1
)
{
if
(
!
this
.
storeUuid
||
(
!
(
this
.
isEdit
&&
this
.
storeMode
==
0
)
&&
(
!
Array
.
isArray
(
this
.
originStoreList
)
||
this
.
originStoreList
.
length
==
0
)
))
{
if
(
!
(
this
.
isEdit
&&
this
.
storeMode
==
0
)
&&
(
!
Array
.
isArray
(
this
.
originStoreList
)
||
this
.
originStoreList
.
length
==
0
))
{
this
.
$tips
({
type
:
'warning'
,
message
:
'请选择卡券适用门店'
});
const
body
=
document
.
getElementsByClassName
(
'dm-layout-page'
)[
0
];
toTop
(
body
,
this
.
$refs
.
useStore
.
$el
.
offsetTop
-
body
.
offsetTop
);
...
...
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