Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WX_h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
godwithdh
WX_h5
Commits
af1c37cf
Commit
af1c37cf
authored
Dec 20, 2019
by
张锡奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
41fb1d55
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
8 deletions
+46
-8
index.vue
src/view/chart/custom/index.vue
+7
-4
index.vue
src/view/chart/income/index.vue
+6
-2
index.vue
src/view/chart/sales/index.vue
+6
-1
statistics.vue
src/view/chart/sales/statistics.vue
+18
-0
employees.js
src/view/shopVersion/form/empAna/mixins/employees.js
+4
-0
orderAmount.js
src/view/shopVersion/form/empAna/mixins/orderAmount.js
+2
-0
receivable.js
src/view/shopVersion/form/empAna/mixins/receivable.js
+2
-0
index.vue
src/view/shopVersion/form/liabilities/index.vue
+1
-1
No files found.
src/view/chart/custom/index.vue
View file @
af1c37cf
...
...
@@ -176,7 +176,7 @@ export default {
v
.
name
=
`
${
v
.
sCustomerName
||
''
}
\n
${
v
.
sCustomerNo
||
''
}
`
return
v
})
||
[];
this
.
setChart
(
this
.
myChart1
,
this
.
pbcustomer
)
this
.
setChart
(
this
.
myChart1
,
this
.
pbcustomer
,
'pbcustomer'
)
},
async
getPbsales
(){
let
result
=
await
this
.
request
(
'getPbsales'
,{
...
...
@@ -186,9 +186,10 @@ export default {
v
.
name
=
`
${
v
.
sSalesName
||
''
}
\n
${
v
.
sSalesNo
||
''
}
`
return
v
})
||
[];
this
.
setChart
(
this
.
myChart2
,
this
.
pbsales
)
this
.
setChart
(
this
.
myChart2
,
this
.
pbsales
,
'pbsales'
)
},
setChart
(
myChart
,
value
){
setChart
(
myChart
,
value
,
id
){
console
.
log
(
myChart
)
let
options
=
{
title
:{
subtext
:
"长按查看详情"
,
...
...
@@ -266,7 +267,9 @@ export default {
}
},
itemStyle
:{
color
:
"#6B9BF7"
,
normal
:{
color
:
id
==
'pbcustomer'
?
'#708bf6'
:
'#00B2EE'
}
}
}
],
...
...
src/view/chart/income/index.vue
View file @
af1c37cf
...
...
@@ -243,8 +243,12 @@ export default {
}
},
barMaxWidth
:
40
,
data
:
seriesData
data
:
seriesData
,
itemStyle
:{
normal
:{
color
:
id
==
'myChart1'
?
'#708bf6'
:
'#00B2EE'
}
}
}
]
}
...
...
src/view/chart/sales/index.vue
View file @
af1c37cf
...
...
@@ -176,7 +176,12 @@ export default {
name
:
'金额'
,
type
:
'bar'
,
data
:
id
==
'myChart1'
?
this
.
mmcolorsaletop
.
map
(
x
=>
`
${
x
.
nAmount
}
`
)
:
this
.
mmsaletop
.
map
(
x
=>
`
${
x
.
nAmount
}
`
),
barMaxWidth
:
40
barMaxWidth
:
40
,
itemStyle
:{
normal
:{
color
:
'#000000'
}
}
},
{
name
:
'数量'
,
...
...
src/view/chart/sales/statistics.vue
View file @
af1c37cf
...
...
@@ -109,6 +109,7 @@ import searchComponent from '@/components/search'
import
{
Confirm
}
from
'vux'
import
{
clearTimeout
,
setTimeout
}
from
'timers'
;
import
{
toUnicode
}
from
'punycode'
;
import
echarts
from
'echarts'
;
export
default
{
name
:
"statistics"
,
...
...
@@ -390,6 +391,11 @@ export default {
return
`
${
val
.
data
}
万`
}
},
itemStyle
:{
normal
:{
color
:
'#708bf6'
}
}
}
]
})
...
...
@@ -466,12 +472,24 @@ export default {
type
:
'bar'
,
data
:
data
.
value
.
map
(
v
=>
v
.
nAmount
),
barWidth
:
32
,
color
:
new
echarts
.
graphic
.
LinearGradient
(
0.5
,
0
,
0.5
,
1
,
[{
offset
:
0
,
color
:
'#708bf6'
},
{
offset
:
1
,
color
:
'#00B2EE'
}])
},
{
name
:
'数量'
,
type
:
'line'
,
yAxisIndex
:
1
,
data
:
data
.
value
.
map
(
v
=>
v
.
nQty
),
itemStyle
:{
normal
:{
color
:
'#708bf6'
}
}
}
],
dataZoom
:
[{
...
...
src/view/shopVersion/form/empAna/mixins/employees.js
View file @
af1c37cf
...
...
@@ -90,6 +90,10 @@ export const employees = {
offsetY
:
-
2
}
});
this
.
chart1
.
interval
()
.
position
(
'sSalesName*nAmount'
)
.
color
(
'l(90) 0:#708bf6 1:#00B2EE'
);
// 定义柱状图渐变色
this
.
chart1
.
pluginGesture
({
gesture
:
{
press
(
data
,
event
)
{
...
...
src/view/shopVersion/form/empAna/mixins/orderAmount.js
View file @
af1c37cf
...
...
@@ -61,6 +61,8 @@ export const orderAmount = {
offsetY
:
-
2
}
});
this
.
chart3
.
line
().
position
(
'sMonth*nAmount'
).
color
(
'#708bf6'
);
this
.
chart3
.
render
();
}
}
...
...
src/view/shopVersion/form/empAna/mixins/receivable.js
View file @
af1c37cf
...
...
@@ -61,6 +61,8 @@ export const receivable = {
offsetY
:
-
2
}
});
this
.
chart2
.
line
().
position
(
'sMonth*nPaydAmount'
).
color
(
'#708bf6'
);
this
.
chart2
.
render
();
}
}
...
...
src/view/shopVersion/form/liabilities/index.vue
View file @
af1c37cf
...
...
@@ -141,7 +141,7 @@ export default {
}
},
routerToDetail
(
item
){
this
.
$router
.
push
({
name
:
'
shopVersionForm
LiabilitiesDetail'
,
params
:{
iCustomerId
:
item
.
iIden
}})
this
.
$router
.
push
({
name
:
'LiabilitiesDetail'
,
params
:{
iCustomerId
:
item
.
iIden
}})
}
}
}
...
...
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