Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-pay
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 cfa587ef
authored
Dec 02, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
d2b11524
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
10 deletions
src/views/customerTransform/addCustomer.vue
src/views/customerTransform/addCustomerGroup.vue
src/views/customerTransform/components/basicInfo.vue
src/views/customerTransform/components/welcomeWords.vue
src/views/home/index.vue
src/views/customerTransform/addCustomer.vue
View file @
cfa587e
...
...
@@ -352,9 +352,10 @@ export default {
params
.
sendType
=
this
.
basicForm
.
sendType
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
attachmentList
=
previewList
.
map
(
item
=>
{
// const attachmentList = this.$common.utils.deepClone(this.$refs.welcome.previewList).map(item => {
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replace
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
return
item
})
...
...
src/views/customerTransform/addCustomerGroup.vue
View file @
cfa587e
...
...
@@ -225,10 +225,20 @@ export default {
this
.
$refs
.
groupForm
.
validate
(
v
=>
{
const
params
=
{
type
:
2
,
attachmentList
:
this
.
basicForm
.
attachmentList
,
//
attachmentList: this.basicForm.attachmentList,
sendType
:
this
.
basicForm
.
sendType
,
massName
:
this
.
basicForm
.
massName
}
const
previewList
=
this
.
$common
?
this
.
$common
.
utils
.
deepClone
(
this
.
$refs
.
welcome
.
previewList
)
:
this
.
$refs
.
welcome
.
previewList
const
attachmentList
=
previewList
.
map
(
item
=>
{
if
(
item
.
attType
==
1
)
{
item
.
attContent
=
item
.
attContent
.
replace
(
'@昵称'
,
'[@昵称]'
)
}
else
if
(
item
.
attType
==
7
)
{
item
.
attContent
=
JSON
.
stringify
(
item
.
attContent
)
}
return
item
})
params
.
attachmentList
=
attachmentList
params
.
userList
=
this
.
basicForm
.
userList
.
map
(
item
=>
{
return
{
staffId
:
item
.
staffId
,
...
...
src/views/customerTransform/components/basicInfo.vue
View file @
cfa587e
...
...
@@ -117,7 +117,11 @@ export default {
this
.
$apis
.
customerTransform
.
customerDetail
({
id
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
basicInfo
=
res
this
.
eventBus
.
$emit
(
'update'
,
this
.
basicInfo
.
attachmentList
)
const
previewList
=
res
.
attachmentList
.
map
(
item
=>
{
if
(
item
.
attType
==
7
)
item
.
attContent
=
JSON
.
parse
(
item
.
attContent
)
return
item
})
this
.
eventBus
.
$emit
(
'update'
,
previewList
)
})
},
getStatistic
()
{
...
...
src/views/customerTransform/components/welcomeWords.vue
View file @
cfa587e
...
...
@@ -263,11 +263,25 @@ export default {
},
selectActivity
(
val
)
{
console
.
log
(
val
)
let
idx
const
hasActivity
=
this
.
previewList
.
some
((
item
,
index
)
=>
{
if
(
item
.
attType
==
7
)
{
idx
=
index
return
item
}
})
if
(
val
)
{
this
.
previewList
.
push
({
attContent
:
val
,
attType
:
ATT_TYPE
.
ACTIVITY
})
if
(
hasActivity
)
{
this
.
$set
(
this
.
previewList
,
idx
,
{
attContent
:
val
,
attType
:
ATT_TYPE
.
ACTIVITY
})
}
else
{
this
.
previewList
.
push
({
attContent
:
val
,
attType
:
ATT_TYPE
.
ACTIVITY
})
}
}
},
insertHtmlAtCaret
(
html
)
{
...
...
src/views/home/index.vue
View file @
cfa587e
...
...
@@ -348,11 +348,12 @@ export default {
this
.
equityStatistical
()
this
.
merchantStatistical
()
},
dateChange
(
val
)
{
dateChange
(
val
,
pointUnit
=
1
)
{
console
.
log
(
val
)
const
params
=
{
dataStartDateStr
:
dayjs
(
val
[
0
]).
format
(
'YYYY-MM-DD'
),
dataEndDateStr
:
dayjs
(
val
[
1
]).
format
(
'YYYY-MM-DD'
)
dataEndDateStr
:
dayjs
(
val
[
1
]).
format
(
'YYYY-MM-DD'
),
pointUnit
}
this
.
timePeriodStatistics
(
params
)
},
...
...
@@ -386,7 +387,7 @@ export default {
// endTime = new Date(nowYear, 11, 31)
this
.
$set
(
this
.
date
,
0
,
startTime
)
this
.
$set
(
this
.
date
,
1
,
endTime
)
this
.
dateChange
(
this
.
date
)
this
.
dateChange
(
this
.
date
,
2
)
break
}
},
...
...
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