Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 39f12fc2
authored
Mar 14, 2022
by
wuwx
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
代金券,兑换券添加使用规则
1 parent
7bbe3752
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
4 deletions
src/config/env.development.js
src/views/couponManage/editDiscountCoupon.vue
src/views/couponManage/editExchangeCoupon.vue
src/config/env.development.js
View file @
39f12fc
...
@@ -18,9 +18,9 @@ module.exports = {
...
@@ -18,9 +18,9 @@ module.exports = {
code_message_map
:
{}
code_message_map
:
{}
},
},
request
:
{
request
:
{
//
baseURL: 'http://scrm.test.glsx.com.cn/',
baseURL
:
'http://scrm.test.glsx.com.cn/'
,
// baseURL: 'http://192.168.2.42:8064/',
// baseURL: 'http://192.168.2.42:8064/',
baseURL
:
'http://scrm.dev.glsx.com.cn/'
,
//
baseURL: 'http://scrm.dev.glsx.com.cn/',
// 设置超时时间
// 设置超时时间
timeout
:
180000
,
timeout
:
180000
,
// 携带凭证
// 携带凭证
...
...
src/views/couponManage/editDiscountCoupon.vue
View file @
39f12fc
...
@@ -49,6 +49,11 @@
...
@@ -49,6 +49,11 @@
</div>
</div>
<p
class=
"edit-title"
>
{{
title
}}
折扣劵
</p>
<p
class=
"edit-title"
>
{{
title
}}
折扣劵
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"directionalFlagHtml"
>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
所有客户可用
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
定向礼包专用
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
关联商品可用
</el-radio>
</
template
>
<
template
slot=
"effectiveHtml"
>
<
template
slot=
"effectiveHtml"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
...
@@ -129,7 +134,8 @@ export default {
...
@@ -129,7 +134,8 @@ export default {
effectiveType
:
'2'
,
effectiveType
:
'2'
,
effectiveTime
:
[],
effectiveTime
:
[],
effectiveDays
:
''
,
effectiveDays
:
''
,
anticipatedCost
:
''
anticipatedCost
:
''
,
directionalFlag
:
'1'
},
},
editRule
:
{
editRule
:
{
anticipatedCost
:
[{
required
:
true
,
message
:
'请输入预估成本'
,
trigger
:
'change'
}],
anticipatedCost
:
[{
required
:
true
,
message
:
'请输入预估成本'
,
trigger
:
'change'
}],
...
@@ -163,6 +169,13 @@ export default {
...
@@ -163,6 +169,13 @@ export default {
append
:
'张'
append
:
'张'
},
},
{
{
label
:
'使用规则'
,
name
:
'directionalFlag'
,
addHtml
:
'directionalFlagHtml'
,
isHide
:
false
// index:5
},
{
label
:
'有效期'
,
label
:
'有效期'
,
name
:
'effectiveType'
,
name
:
'effectiveType'
,
addHtml
:
'effectiveHtml'
addHtml
:
'effectiveHtml'
...
@@ -259,6 +272,7 @@ export default {
...
@@ -259,6 +272,7 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
directionalFlag
=
this
.
editForm
.
directionalFlag
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
anticipatedCost
=
(
this
.
editForm
.
anticipatedCost
/
100
).
toFixed
(
2
)
this
.
editForm
.
anticipatedCost
=
(
this
.
editForm
.
anticipatedCost
/
100
).
toFixed
(
2
)
//有效期
//有效期
...
@@ -325,6 +339,8 @@ export default {
...
@@ -325,6 +339,8 @@ export default {
}
}
//使用描述
//使用描述
obj
.
useDescription
=
form
.
useDescription
obj
.
useDescription
=
form
.
useDescription
//是否定制礼包专用
obj
.
directionalFlag
=
form
.
directionalFlag
//预估成本
//预估成本
obj
.
anticipatedCost
=
form
.
anticipatedCost
*
100
obj
.
anticipatedCost
=
form
.
anticipatedCost
*
100
return
obj
return
obj
...
...
src/views/couponManage/editExchangeCoupon.vue
View file @
39f12fc
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
</div>
</div>
<p
class=
"edit-title"
>
{{
title
}}
兑换券
</p>
<p
class=
"edit-title"
>
{{
title
}}
兑换券
</p>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<glsx-combi-form
class=
"edit-form-container"
ref=
"editFormRef"
:isEdit=
"true"
:isBlock=
"true"
:formRef=
"editChildRef"
:formObj=
"editForm"
:formData=
"editFormData"
:formRules=
"editRule"
>
<template
slot=
"directionalFlagHtml"
>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"1"
:disabled=
"apear != 'couponAdd'"
>
所有客户可用
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
定向礼包专用
</el-radio>
<el-radio
v-model=
"editForm.directionalFlag"
label=
"3"
:disabled=
"apear != 'couponAdd'"
>
关联商品可用
</el-radio>
</
template
>
<
template
slot=
"effectiveHtml"
>
<
template
slot=
"effectiveHtml"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-form-item
prop=
"effectiveTime"
ref=
"effectiveTime"
style=
"margin-top: 12px; display: block"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
<el-radio
v-model=
"editForm.effectiveType"
label=
"2"
:disabled=
"apear != 'couponAdd'"
>
...
@@ -108,7 +113,8 @@ export default {
...
@@ -108,7 +113,8 @@ export default {
effectiveType
:
'2'
,
effectiveType
:
'2'
,
effectiveTime
:
[],
effectiveTime
:
[],
effectiveDays
:
''
,
effectiveDays
:
''
,
anticipatedCost
:
''
anticipatedCost
:
''
,
directionalFlag
:
'1'
},
},
editRule
:
{
editRule
:
{
anticipatedCost
:
[{
required
:
true
,
message
:
'请输入预估成本'
,
trigger
:
'change'
}],
anticipatedCost
:
[{
required
:
true
,
message
:
'请输入预估成本'
,
trigger
:
'change'
}],
...
@@ -142,6 +148,13 @@ export default {
...
@@ -142,6 +148,13 @@ export default {
append
:
'张'
append
:
'张'
},
},
{
{
label
:
'使用规则'
,
name
:
'directionalFlag'
,
addHtml
:
'directionalFlagHtml'
,
isHide
:
false
// index:5
},
{
label
:
'有效期'
,
label
:
'有效期'
,
name
:
'effectiveType'
,
name
:
'effectiveType'
,
addHtml
:
'effectiveHtml'
addHtml
:
'effectiveHtml'
...
@@ -237,6 +250,7 @@ export default {
...
@@ -237,6 +250,7 @@ export default {
getInfo
()
{
getInfo
()
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
$apis
.
couponManage
.
getCouponDetailApi
({
couponId
:
this
.
routeInfo
.
id
}).
then
(
res
=>
{
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
=
this
.
$common
.
utils
.
deepClone
(
res
)
this
.
editForm
.
directionalFlag
=
this
.
editForm
.
directionalFlag
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
effectiveType
=
this
.
editForm
.
effectiveType
+
''
this
.
editForm
.
anticipatedCost
=
(
this
.
editForm
.
anticipatedCost
/
100
).
toFixed
(
2
)
this
.
editForm
.
anticipatedCost
=
(
this
.
editForm
.
anticipatedCost
/
100
).
toFixed
(
2
)
//有效期
//有效期
...
@@ -303,6 +317,8 @@ export default {
...
@@ -303,6 +317,8 @@ export default {
}
}
//使用描述
//使用描述
obj
.
useDescription
=
form
.
useDescription
obj
.
useDescription
=
form
.
useDescription
//是否定制礼包专用
obj
.
directionalFlag
=
form
.
directionalFlag
//预估成本
//预估成本
obj
.
anticipatedCost
=
form
.
anticipatedCost
*
100
obj
.
anticipatedCost
=
form
.
anticipatedCost
*
100
return
obj
return
obj
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment