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 6eb494ea
authored
Feb 25, 2022
by
周子尧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
3437d45f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
src/views/giftBag/receivedGiftList.vue
src/views/memberCenter/service.vue
src/views/memberCenter/serviceAddUpdateLook.vue
src/views/giftBag/receivedGiftList.vue
View file @
6eb494e
...
@@ -45,7 +45,9 @@ export default {
...
@@ -45,7 +45,9 @@ export default {
let
reduceArr
=
arr1
.
map
(
item
=>
{
let
reduceArr
=
arr1
.
map
(
item
=>
{
item
.
delet
=
0
item
.
delet
=
0
arr2
.
map
(
ele
=>
{
arr2
.
map
(
ele
=>
{
if
(
item
.
couponId
==
ele
.
couponId
)
{
item
.
delet
=
ele
.
couponAmount
item
.
delet
=
ele
.
couponAmount
}
})
})
return
item
return
item
})
})
...
@@ -211,8 +213,11 @@ export default {
...
@@ -211,8 +213,11 @@ export default {
}
}
},
},
{
{
label
:
'已核销成本'
,
label
:
'已核销成本/元'
,
prop
:
'verificationAnticipatedCost'
prop
:
'verificationAnticipatedCost'
,
formatter
:
cellValue
=>
{
return
cellValue
.
verificationAnticipatedCost
/
100
}
},
},
{
{
label
:
'发放员工'
,
label
:
'发放员工'
,
...
...
src/views/memberCenter/service.vue
View file @
6eb494e
...
@@ -102,7 +102,7 @@ export default {
...
@@ -102,7 +102,7 @@ export default {
label
:
'预估成本/元'
,
label
:
'预估成本/元'
,
prop
:
'anticipatedCost '
,
prop
:
'anticipatedCost '
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
anticipatedCost
/
100
return
cellValue
.
anticipatedCost
/
100
}
}
},
},
{
{
...
@@ -177,7 +177,7 @@ export default {
...
@@ -177,7 +177,7 @@ export default {
case
0
:
case
0
:
return
'无限制'
return
'无限制'
case
1
:
case
1
:
return
row
.
useAmount
return
'有效期内可使用'
+
row
.
useAmount
+
'次'
case
2
:
case
2
:
return
'每'
+
row
.
useLimitDays
+
'天可以使用'
+
row
.
useAmount
+
'次'
return
'每'
+
row
.
useLimitDays
+
'天可以使用'
+
row
.
useAmount
+
'次'
}
}
...
...
src/views/memberCenter/serviceAddUpdateLook.vue
View file @
6eb494e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<el-form-item
size=
"small"
label=
"服务名称"
prop=
"couponName"
style=
"width: 440px"
>
<el-form-item
size=
"small"
label=
"服务名称"
prop=
"couponName"
style=
"width: 440px"
>
<el-input
size=
"small"
:disabled=
"disabledContent"
v-model
.
trim=
"ruleForm.couponName"
maxlength=
"20"
placeholder=
"请输入服务名称,如“精洗轿车”"
></el-input>
<el-input
size=
"small"
:disabled=
"disabledContent"
v-model
.
trim=
"ruleForm.couponName"
maxlength=
"20"
placeholder=
"请输入服务名称,如“精洗轿车”"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"预估成本"
prop=
"anticipatedCost"
style=
"width: 440px"
>
<el-form-item
size=
"small"
label=
"预估成本
/元
"
prop=
"anticipatedCost"
style=
"width: 440px"
>
<el-input
size=
"small"
:disabled=
"disabledCost"
v-model
.
trim=
"ruleForm.anticipatedCost"
maxlength=
"20"
placeholder=
"请输入预估成本"
></el-input>
<el-input
size=
"small"
:disabled=
"disabledCost"
v-model
.
trim=
"ruleForm.anticipatedCost"
maxlength=
"20"
placeholder=
"请输入预估成本"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
label=
"有效期"
prop=
"effectiveType"
>
<el-form-item
size=
"small"
label=
"有效期"
prop=
"effectiveType"
>
...
@@ -300,6 +300,7 @@ export default {
...
@@ -300,6 +300,7 @@ export default {
params
.
couponId
=
this
.
$route
.
query
.
couponId
params
.
couponId
=
this
.
$route
.
query
.
couponId
detailService
(
params
).
then
(
res
=>
{
detailService
(
params
).
then
(
res
=>
{
this
.
ruleForm
=
res
this
.
ruleForm
=
res
this
.
ruleForm
.
anticipatedCost
=
res
.
anticipatedCost
/
100
this
.
ruleForm
.
customUseLimit
=
res
.
useType
this
.
ruleForm
.
customUseLimit
=
res
.
useType
if
(
res
.
effectiveType
==
1
)
{
if
(
res
.
effectiveType
==
1
)
{
...
...
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