Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
cadb6f51
Commit
cadb6f51
authored
Aug 23, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
efe9a3da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
1 deletion
+33
-1
CustomerAnalysis.vue
src/components/SalesModule/CustomerAnalysis.vue
+33
-1
No files found.
src/components/SalesModule/CustomerAnalysis.vue
View file @
cadb6f51
...
...
@@ -107,7 +107,10 @@
<el-row
:gutter=
"23"
justify=
"space-between"
>
<el-col
:span=
"8"
>
<div
class=
"bgDiv"
style=
"padding:20px 30px;height:320px;overflow:auto"
>
<p
style=
"color:#2C3343;margin-bottom:30px"
>
返利红包预期收益
</p>
<p
style=
"color:#2C3343;margin-bottom:30px"
>
<el-date-picker
v-model=
"Year"
type=
"year"
@
change=
"getBigRedEnvelope()"
style=
"border: 1px solid #DCDFE6;border-radius: 3px;width: 100px;margin-right: 5px;"
placeholder=
"选择年"
>
</el-date-picker>
年返利红包预期收益
</p>
<el-row>
<el-col
:span=
"6"
>
<div>
...
...
@@ -182,6 +185,7 @@
return
{
percentage
:
20
,
customerId
:
""
,
Year
:
0
,
loading
:
false
,
datainfo
:
{},
colorList
:
[
"#FFB822"
,
"#FD3995"
,
"#5D78FF"
,
"#59C5F8"
,
"#34BFA3"
],
...
...
@@ -193,6 +197,8 @@
if
(
this
.
$route
.
query
.
customerId
)
{
this
.
customerId
=
Number
(
this
.
$route
.
query
.
customerId
);
}
var
myDate
=
new
Date
();
this
.
Year
=
String
(
myDate
.
getFullYear
());
},
mounted
()
{
this
.
getData
();
...
...
@@ -249,6 +255,32 @@
}
else
{}
},
err
=>
{})
},
getBigRedEnvelope
()
{
this
.
loading
=
true
;
if
(
!
this
.
Year
||
this
.
Year
==
0
){
var
myDate
=
new
Date
();
this
.
Year
=
String
(
myDate
.
getFullYear
());
}
else
{
var
myDate
=
new
Date
(
this
.
Year
);
this
.
Year
=
String
(
myDate
.
getFullYear
());
}
this
.
apipost
(
'app_customer_GetBigRedEnvelope'
,
{
customerId
:
this
.
customerId
,
Year
:
this
.
Year
,
},
res
=>
{
this
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
datainfo
.
list
=
res
.
data
.
data
.
list
;
this
.
datainfo
.
yeayGoTotalPrice
=
res
.
data
.
data
.
yeayGoTotalPrice
;
this
.
datainfo
.
yearTotalPrice
=
res
.
data
.
data
.
yearTotalPrice
;
this
.
datainfo
.
totalYearPrice
=
res
.
data
.
data
.
totalYearPrice
;
this
.
datainfo
.
allianceTotalYearPrice
=
res
.
data
.
data
.
allianceTotalYearPrice
;
this
.
$forceUpdate
()
}
},
err
=>
{})
},
LineChart
()
{
var
that
=
this
;
var
myChart
=
this
.
$echarts
.
init
(
document
.
getElementById
(
'chartsMap'
));
...
...
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