Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-outbound
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 121f9203
authored
Jan 24, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
a0322e9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
src/views/redEnvelope/components/RedEnvelopeConfig/FreeAdd.vue
src/views/redEnvelope/components/RedEnvelopeConfig/index.vue
src/views/redEnvelope/components/RedEnvelopeConfig/FreeAdd.vue
View file @
121f920
...
...
@@ -40,7 +40,7 @@
</el-radio-group>
</el-form-item>
<el-form-item
label=
"活动模版:"
prop=
"templateId"
class=
"m-t-20"
>
<el-select
:size=
"size"
v-model=
"configForm.templateId"
placeholder=
"请选择"
@
focus=
"getRedEnvelopeTemplateList"
filterable
>
<el-select
:size=
"size"
v-model=
"configForm.templateId"
placeholder=
"请选择"
@
focus=
"getRedEnvelopeTemplateList"
filterable
>
<el-option
v-for=
"item in templateList"
:key=
"item.id"
:label=
"item.templateName"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
...
...
@@ -64,7 +64,7 @@
<!-- :红包、实物、谢谢惠顾时,为输入框 优惠券,为下拉框 -->
<el-form-item
style=
"margin-bottom: 0px"
:prop=
"'awardList.' + scope.index + '.couponId'"
:rules=
"configRules.couponId"
>
<el-select
style=
"width: 100%"
v-model=
"scope.scope.couponId"
placeholder=
"请选择"
@
change=
"setAwardName(scope.scope)"
>
<el-option
v-for=
"item in couponList"
:key=
"item.id"
:label=
"item.goodsName
+'('+item.denomination/100+
'元)'"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in couponList"
:key=
"item.id"
:label=
"item.goodsName
+ '(' + item.denomination / 100 +
'元)'"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
</
template
>
...
...
@@ -165,7 +165,8 @@ export const afterRangePickerOptions = {
import
*
as
dayjs
from
'dayjs'
import
{
getMerchantListMixin
}
from
'@/mixins'
import
{
awardType
}
from
'@/common/constant'
// 奖项类型: 0-红包、1-实物、2-优惠券、3-谢谢惠顾
const
imgArr
=
[]
export
default
{
mixins
:
[
getMerchantListMixin
],
name
:
''
,
...
...
@@ -178,7 +179,7 @@ export default {
data
()
{
return
{
loading
:
false
,
activePage
:
1
,
activePage
:
2
,
templateList
:
[],
couponList
:
[],
afterRangePickerOptions
,
...
...
@@ -296,10 +297,10 @@ export default {
},
deep
:
true
},
'configForm.limiting'
(
newVal
){
if
(
newVal
)
{
this
.
configForm
.
awardsConfig
.
limitTimes
=
1
this
.
configForm
.
awardsConfig
.
msg
=
''
'configForm.limiting'
(
newVal
)
{
if
(
newVal
)
{
this
.
configForm
.
awardsConfig
.
limitTimes
=
1
this
.
configForm
.
awardsConfig
.
msg
=
''
}
}
},
...
...
@@ -316,7 +317,7 @@ export default {
amount
:
''
,
total
:
''
,
probability
:
''
,
picture
:
''
,
picture
:
data
.
type
!=
3
?
`https://img01.glsx.com.cn/weapp/resource/saas/scrm/redEnvelope/prize-
${
data
.
type
}
.png`
:
''
,
couponId
:
''
}
this
.
$set
(
this
.
configForm
.
awardList
,
index
,
this
.
configForm
.
awardList
[
index
])
...
...
@@ -437,7 +438,7 @@ export default {
}
this
.
configForm
.
awardList
.
forEach
(
item
=>
{
if
(
item
.
type
===
0
)
{
if
(
item
.
total
)
params
.
redEnvelopesTotal
+=
Number
(
item
.
total
)
if
(
item
.
total
)
params
.
redEnvelopesTotal
+=
Number
(
item
.
total
)
if
(
item
.
amount
&&
item
.
total
)
{
params
.
amountTotal
+=
item
.
amount
*
item
.
total
}
...
...
src/views/redEnvelope/components/RedEnvelopeConfig/index.vue
View file @
121f920
...
...
@@ -111,6 +111,11 @@ export default {
}
},
{
label
:
'活动形式'
,
prop
:
'activityTypeStr'
,
minWidth
:
100
},
{
label
:
'创建类型'
,
minWidth
:
100
,
formatter
:
cell
=>
{
...
...
@@ -118,11 +123,6 @@ export default {
}
},
{
label
:
'活动形式'
,
prop
:
'activityTypeStr'
,
minWidth
:
100
},
{
label
:
'红包链接总数'
,
prop
:
'amount'
,
minWidth
:
150
...
...
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