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
06ba4686
Commit
06ba4686
authored
Jan 15, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: card共享文案
parent
4c3ef259
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
form.js
src/views/card/form.js
+11
-13
form.vue
src/views/card/form.vue
+1
-1
No files found.
src/views/card/form.js
View file @
06ba4686
...
...
@@ -72,7 +72,8 @@ const initForm = {
wmCouponJson
:
{},
wmCouponFlag
:
0
,
cardCodePrefixCheck
:
0
,
//code类型随机生时 前缀复选框的值
cardCodePrefix
:
''
// code类型随机生成 前缀值
cardCodePrefix
:
''
,
// code类型随机生成 前缀值
only
:
true
// 默认优惠不共享 true
};
const
sale_limit
=
{
fee
:
0
,
goods
:
''
,
flag
:
false
,
type
:
0
};
//最低消费
const
goods
=
{
ok
:
''
,
no
:
''
,
flag
:
false
};
...
...
@@ -151,7 +152,6 @@ export default {
form
:
JSON
.
parse
(
JSON
.
stringify
(
initForm
)),
sale_limit
:
JSON
.
parse
(
JSON
.
stringify
(
sale_limit
)),
goods
:
JSON
.
parse
(
JSON
.
stringify
(
goods
)),
only
:
true
,
// 默认优惠共享 true
cardLimitRadio
:
1
,
rules
:
{
cardApplyChannel
:
{
required
:
true
,
type
:
'array'
,
message
:
'请选择卡券渠道'
,
trigger
:
'change'
},
...
...
@@ -579,7 +579,6 @@ export default {
const
dicMap
=
res
.
result
.
dicMap
;
this
.
startDayOptions
=
Object
.
keys
(
dicMap
).
map
(
key
=>
({
label
:
dicMap
[
key
].
dictName
==
'0'
?
'当天'
:
'第'
+
dicMap
[
key
].
dictName
+
'天'
,
value
:
parseInt
(
dicMap
[
key
].
dictName
)
}));
this
.
form
.
onlyFlag
=
res
.
result
.
onlyFlag
;
if
(
res
.
result
.
card
)
{
const
card
=
res
.
result
.
card
;
// 3、4为外部券,不显示保存按钮
...
...
@@ -634,8 +633,7 @@ export default {
if
(
this
.
goods
.
ok
||
this
.
goods
.
no
)
{
this
.
goods
.
flag
=
true
;
}
this
.
only
=
Boolean
(
useCondition
.
only
);
this
.
form
.
only
=
Boolean
(
useCondition
.
only
);
this
.
form
.
proNoList
=
useCondition
.
proNo
?
[{
name
:
useCondition
.
proNo
,
id
:
useCondition
.
proNo
}]
:
[];
}
if
((
this
.
isInfo
||
this
.
isEdit
)
&&
card
.
weimobDemoCode
&&
JSON
.
parse
(
card
.
weimobDemoCode
).
length
>
0
)
{
...
...
@@ -990,8 +988,8 @@ export default {
no
:
this
.
goods
.
no
}
};
if
(
this
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
only
);
if
(
this
.
form
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
form
.
only
);
}
//[折扣券]: goods.ok 适用商品, goods.no 不适应商品, only: 1 不与其他优惠共享(不勾选only不传)
}
else
if
(
this
.
form
.
cardType
===
1
)
{
...
...
@@ -1000,11 +998,11 @@ export default {
ok
:
this
.
goods
.
ok
,
no
:
this
.
goods
.
no
},
only
:
Number
(
this
.
only
),
only
:
Number
(
this
.
form
.
only
),
discount_amount_upper_limit
:
this
.
form
.
discount_amount_upper_limit
};
if
(
this
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
only
);
if
(
this
.
form
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
form
.
only
);
}
// sale_limit.fee 消费金额满,sale_limit.goods 消费指定商品; goods.ok 适用商品, goods.no 不适应商品, only: 1 不与其他优惠共享(不勾选only不传)
}
else
if
(
this
.
form
.
cardType
===
2
)
{
...
...
@@ -1014,7 +1012,7 @@ export default {
ok
:
this
.
goods
.
ok
,
no
:
this
.
goods
.
no
},
only
:
Number
(
this
.
only
),
only
:
Number
(
this
.
form
.
only
),
proNo
:
this
.
form
.
proNoList
.
length
?
this
.
form
.
proNoList
[
0
].
id
:
''
,
products_exchange_number
:
this
.
form
.
proNoList
.
length
?
this
.
form
.
products_exchange_number
:
0
};
...
...
@@ -1024,8 +1022,8 @@ export default {
}
else
if
(
this
.
sale_limit
.
type
==
2
)
{
card
.
useCondition
.
sale_limit
=
{
goods
:
this
.
sale_limit
.
goods
};
}
if
(
this
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
only
);
if
(
this
.
form
.
only
)
{
card
.
useCondition
.
only
=
Number
(
this
.
form
.
only
);
}
}
...
...
src/views/card/form.vue
View file @
06ba4686
...
...
@@ -208,7 +208,7 @@
<!-- <el-checkbox v-model="only" :disabled="isEdit || isInfo">不与其它优惠共享</el-checkbox>
<span class="fz12 gray ml5">* 无实际业务,仅用于ERP或第三方接口回传</span> -->
<span
style=
"position:relative"
>
与其它优惠共享
<b
style=
"text-align:right;font-style:normal;font-size:12px;position:absolute;bottom:-28px;display:block;width: 150px;right: 0;"
class=
"gray"
>
(卡券叠加、门店活动等)
</b></span>
<el-switch
v-model=
"only"
:disabled=
"isEdit || isInfo"
:active-value=
"false"
:inactive-value=
"true"
class=
"ml5"
@
change=
"changeOnly"
></el-switch>
<el-switch
v-model=
"
form.
only"
:disabled=
"isEdit || isInfo"
:active-value=
"false"
:inactive-value=
"true"
class=
"ml5"
@
change=
"changeOnly"
></el-switch>
<ul
class=
"fz12 gray ml5"
style=
"width: 350ox;display:inline-block;vertical-align: top;"
>
<li>
用于ERP或第三方的卡券适用判定
</li>
<li>
开启后可与其它卡券叠加或在门店活动中使用(需要单独对接)
</li>
...
...
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