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
aa939776
Commit
aa939776
authored
Mar 06, 2020
by
chenxin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
fix:count != 0 且渠道包含微盟微商城 必须填写微盟券号 否则券无效 See merge request
!47
parents
cda0516f
123e8834
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
form.js
src/views/card/form.js
+12
-1
No files found.
src/views/card/form.js
View file @
aa939776
...
...
@@ -429,6 +429,17 @@ export default {
},
//提交保存
async
submitForm
(
formName
)
{
// 可以选微盟且渠道含微盟微商城 -- 微盟券号不能为空
if
(
this
.
form
.
cardApplyChannel
.
indexOf
(
'WMmicroMall'
)
!==
-
1
&&
this
.
countFlag
)
{
if
(
!
this
.
weimobDemoCodeList
.
length
)
{
this
.
$tips
({
type
:
'warning'
,
message
:
'适用渠道包含微盟微商城,微盟券号不能为空'
});
return
;
}
if
(
this
.
weimobDemoCodeList
.
some
(
v
=>
!
v
.
save
))
{
this
.
$tips
({
type
:
'warning'
,
message
:
'微盟券号含有未保存的数据'
});
return
;
}
}
// 验证微盟适用商品 勾选适用商品
if
((
this
.
form
.
cardType
===
0
||
this
.
form
.
cardType
===
1
)
&&
this
.
form
.
cardApplyChannel
.
indexOf
(
'WMmicroMall'
)
!==
-
1
)
{
let
wmProduct
=
await
this
.
handleCombine
();
...
...
@@ -749,7 +760,7 @@ export default {
// ------微盟店铺开始-------
saveWmShop
(
saveItem
,
idx
)
{
if
(
!
saveItem
.
pid
||
!
saveItem
.
card
)
{
this
.
$message
({
message
:
'该条券号保存不完整'
,
type
:
''
});
this
.
$message
({
message
:
'该条券号保存不完整'
,
type
:
'
warning
'
});
return
;
}
this
.
weimobDemoCodeList
[
idx
].
save
=
true
;
...
...
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