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
a2b92b4d
Commit
a2b92b4d
authored
Dec 26, 2019
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiip_form
parent
b4b5d774
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
44 deletions
+57
-44
host.js
src/libs/host.js
+2
-2
Repayment.vue
src/view/tiip/IntReportForms/Repayment.vue
+1
-1
revenue.vue
src/view/tiip/IntReportForms/revenue.vue
+1
-1
salesStatistics.vue
src/view/tiip/IntReportForms/salesStatistics.vue
+53
-40
No files found.
src/libs/host.js
View file @
a2b92b4d
...
...
@@ -13,8 +13,8 @@ function urlFun(name){
* 默认公司
*/
// default:`http://192.168.4.39:5001`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`
,
//
default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
//
default:`https://weixin.huansi.net/apiproxy/huansi/hszh_HSFabricTradeTest`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/service/proxy/
${
userID
}
`
,
/**
* 基本地址
...
...
src/view/tiip/IntReportForms/Repayment.vue
View file @
a2b92b4d
...
...
@@ -78,7 +78,7 @@
</div>
<table
class=
"DATA"
>
<tr>
<td>
#
</td>
<td>
序号
</td>
<td>
回款目标
</td>
<td>
回款金额
</td>
<td>
客户
</td>
...
...
src/view/tiip/IntReportForms/revenue.vue
View file @
a2b92b4d
...
...
@@ -160,7 +160,7 @@ export default {
{
name
:
'访问来源'
,
type
:
'pie'
,
radius
:
[
'60%'
,
'
9
0%'
],
radius
:
[
'60%'
,
'
8
0%'
],
avoidLabelOverlap
:
false
,
label
:
{
normal
:
{
...
...
src/view/tiip/IntReportForms/salesStatistics.vue
View file @
a2b92b4d
...
...
@@ -167,8 +167,9 @@ export default {
this
.
resize
(
this
.
chart6
,
1.35
)
})
})
this
.
$nextTick
(()
=>
{
this
.
searchData
();
})
this
.
global
.
$off
(
'searchData'
);
this
.
global
.
$on
(
'searchData'
,()
=>
{
...
...
@@ -234,7 +235,7 @@ export default {
dStartDate
:
this
.
search
.
dBeginDate
,
dEndDate
:
this
.
search
.
dEndDate
}
},
true
,{
iProjectId
:
this
.
iProjectId
})
},
"加载中"
,{
iProjectId
:
this
.
iProjectId
})
Object
.
assign
(
this
.
chartData
,{
nOrderSameRatio
:
Math
.
round
((
value
.
set1
&&
value
.
set1
[
0
]
&&
value
.
set1
[
0
].
nOrderSameRatio
||
0
)
*
100
)
/
100
,
nOrderRingRatio
:
Math
.
round
((
value
.
set2
&&
value
.
set2
[
0
]
&&
value
.
set2
[
0
].
nOrderRingRatio
||
0
)
*
100
)
/
100
,
...
...
@@ -246,8 +247,18 @@ export default {
iSellCount
:
value
.
set4
&&
value
.
set4
[
0
]
&&
value
.
set4
[
0
].
iSellCount
||
0
,
nSellAmount
:(
Math
.
round
((
value
.
set4
&&
value
.
set4
[
0
]
&&
value
.
set4
[
0
].
nSellAmount
||
0
)
/
100
)
/
100
).
toLocaleString
(),
},
set5
:
typeof
value
.
set5
==
'object'
&&
value
.
set5
.
length
>
0
&&
value
.
set5
||
[],
set6
:
typeof
value
.
set6
==
'object'
&&
value
.
set6
.
length
>
0
&&
value
.
set6
||
[],
set5
:
typeof
value
.
set5
==
'object'
&&
value
.
set5
.
length
>
0
&&
value
.
set5
.
map
(
v
=>
{
return
{
name
:
v
.
sCustomerName
,
value
:
v
.
nAmount
}
})
||
[],
set6
:
typeof
value
.
set6
==
'object'
&&
value
.
set6
.
length
>
0
&&
value
.
set6
.
map
(
v
=>
{
return
{
name
:
v
.
sSampleMaterialNo
,
value
:
v
.
nAmount
}
})
||
[],
})
},
...
...
@@ -399,27 +410,28 @@ export default {
}
}
},
toolbox
:
{
feature
:
{
// dataView: {show: true, readOnly: false},
// magicType: {show: true, type: ['line', 'bar']},
restore
:
{
show
:
true
},
// saveAsImage: {show: true}
},
},
//
toolbox: {
//
feature: {
//
// dataView: {show: true, readOnly: false},
//
// magicType: {show: true, type: ['line', 'bar']},
//
restore: {show: true},
//
// saveAsImage: {show: true}
//
},
//
},
grid
:
{
left
:
'2%'
,
// 与容器左侧的距离
right
:
'2%'
,
// 与容器右侧的距离
height
:
160
,
top
:
"40"
,
height
:
180
,
containLabel
:
true
},
legend
:
{
data
:[
'金额'
,
'数量'
],
x
:
'left'
},
//
legend: {
//
data:['金额','数量'],
//
x: 'left'
//
},
xAxis
:
[{
type
:
'category'
,
data
:
data
.
value
.
map
(
v
=>
v
.
sCustomerN
ame
),
data
:
data
.
value
.
map
(
v
=>
v
.
n
ame
),
axisPointer
:
{
type
:
'shadow'
},
...
...
@@ -427,7 +439,8 @@ export default {
alignWithLabel
:
true
},
axisLabel
:
{
interval
:
0
interval
:
0
,
rotate
:
-
15
,
},
}],
yAxis
:
[
...
...
@@ -444,20 +457,20 @@ export default {
}
}
},
{
type
:
'value'
,
name
:
'数量'
,
scale
:
true
,
axisLabel
:
{
formatter
:
'{value}'
}
}
//
{
//
type: 'value',
//
name: '数量',
//
scale:true,
//
axisLabel: {
//
formatter: '{value}'
//
}
//
}
],
series
:
[
{
name
:
'金额'
,
type
:
'bar'
,
data
:
data
.
value
.
map
(
v
=>
v
.
nAmount
),
data
:
data
.
value
.
map
(
v
=>
v
.
value
),
barWidth
:
32
,
color
:
new
echarts
.
graphic
.
LinearGradient
(
0.5
,
0
,
0.5
,
1
,
[{
offset
:
0
,
...
...
@@ -467,17 +480,17 @@ export default {
color
:
'#00B2EE'
}])
},
{
name
:
'数量'
,
type
:
'line'
,
yAxisIndex
:
1
,
data
:
data
.
value
.
map
(
v
=>
v
.
nQty
),
itemStyle
:{
normal
:{
color
:
'#708bf6'
}
}
}
//
{
//
name:'数量',
//
type:'line',
//
yAxisIndex: 1,
//
data:data.value.map(v=>v.nQty),
//
itemStyle:{
//
normal:{
//
color:'#708bf6'
//
}
//
}
//
}
],
dataZoom
:
[{
type
:
'inside'
,
...
...
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