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
6aa70bfc
Commit
6aa70bfc
authored
Dec 13, 2019
by
godwithdh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boss
parent
beb8ffec
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
30 deletions
+35
-30
host.js
src/libs/host.js
+2
-2
Finance.vue
src/view/kanban/Finance.vue
+5
-4
abnormal.vue
src/view/kanban/abnormal.vue
+14
-14
capital.vue
src/view/kanban/capital.vue
+8
-5
operate.vue
src/view/kanban/operate.vue
+3
-2
inventory.vue
src/view/tiip/chart/inventory.vue
+3
-3
No files found.
src/libs/host.js
View file @
6aa70bfc
...
...
@@ -12,8 +12,8 @@ function urlFun(name){
/**
* 默认公司
*/
default
:
`http://192.168.4.39:5001`
,
//
default:`https://weixin.huansi.net/apiproxy/huansi/service/proxy/${userID}`,
//
default:`http://192.168.4.39:5001`,
default
:
`https://weixin.huansi.net/apiproxy/huansi/service/proxy/
${
userID
}
`
,
/**
* 基本地址
...
...
src/view/kanban/Finance.vue
View file @
6aa70bfc
...
...
@@ -37,8 +37,8 @@
}
</
style
>
<
template
>
<div
class=
"Finance"
>
<div
v-for=
"(v,k) in list"
:key=
'k'
>
<div
class=
"Finance"
:style=
"list.length==0&&'background:#fff;height:100%;'"
>
<div
v-for=
"(v,k) in list"
:key=
'k'
v-if=
"list.length>0"
>
<div
class=
"title_"
>
{{
v
.
sName
}}
</div>
<div
class=
"card"
>
<div>
...
...
@@ -49,7 +49,7 @@
</div>
<XCircle
style=
"width: 60px;height: 60px;"
:percent=
"Number(v.nPercent)||
7
0"
:percent=
"Number(v.nPercent)||0"
:stroke-width=
"7"
:stroke-color=
"color[k%4]"
:trail-width=
"5"
...
...
@@ -59,6 +59,7 @@
</div>
</div>
</div>
<img
src=
"@/assets/noData.jpg"
style=
"width:100%;"
v-if=
"list.length==0"
/>
</div>
</
template
>
<
script
>
...
...
@@ -73,7 +74,7 @@ export default {
},
data
(){
return
{
list
:
{}
,
list
:
[]
,
color
:[
'#FF6633'
,
'#5E9AFE'
,
'#9966CC'
,
'#46FC43'
],
}
},
...
...
src/view/kanban/abnormal.vue
View file @
6aa70bfc
...
...
@@ -29,19 +29,19 @@
</
style
>
<
template
>
<div
class=
"abnormal"
>
<table
cellspacing=
"0"
>
<table
cellspacing=
"0"
>
<tr>
<td>
<td
style=
"width:100px;"
>
<div>
销售退货
</div>
</td>
<td>
<div>
{{
value
[
'销售退货'
]
}}
</div>
<div>
{{
value
[
'销售退货'
]
||
0
}}
</div>
</td>
<td>
<td
style=
"width:100px;"
>
<div>
采购退货
</div>
</td>
<td>
<div>
{{
value
[
'采购退货'
]
}}
</div>
<div>
{{
value
[
'采购退货'
]
||
0
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -49,30 +49,30 @@
<div>
加工回修
</div>
</td>
<td>
<div>
{{
value
[
'加工回修'
]
}}
</div>
<div>
{{
value
[
'加工回修'
]
||
0
}}
</div>
</td>
<td>
<div>
疵品数量
</div>
</td>
<td>
<div>
{{
value
[
'疵品汇总'
]
}}
</div>
<div>
{{
value
[
'疵品汇总'
]
||
0
}}
</div>
</td>
</tr>
<tr>
<td
colspan=
'4'
style=
"text-align:left;padding:0 0 0 10px;color:#68A0FE;"
>
拖期订单:
{{
value
[
'拖期订单数量'
]
}}
</td>
<td
colspan=
'4'
style=
"text-align:left;padding:0 0 0 10px;color:#68A0FE;"
>
拖期订单:
{{
value
[
'拖期订单数量'
]
||
0
}}
</td>
</tr>
<tr>
<td>
<div>
数量
</div>
</td>
<td>
<div>
{{
value
[
'拖期订单总数量'
]
}}
</div>
<div>
{{
value
[
'拖期订单总数量'
]
||
0
}}
</div>
</td>
<td>
<div>
金额
</div>
</td>
<td>
<div>
{{
value
[
'拖期订单总金额'
]
}}
</div>
<div>
{{
value
[
'拖期订单总金额'
]
||
0
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -80,13 +80,13 @@
<div>
供应商赔款
</div>
</td>
<td>
<div>
{{
value
[
'供应商索赔'
]
}}
</div>
<div>
{{
value
[
'供应商索赔'
]
||
0
}}
</div>
</td>
<td>
<div>
客户赔款
</div>
</td>
<td>
<div>
{{
value
[
'客户索赔'
]
}}
</div>
<div>
{{
value
[
'客户索赔'
]
||
0
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -94,13 +94,13 @@
<div>
超期应收额
</div>
</td>
<td>
<div>
{{
value
[
'超期应收'
]
}}
</div>
<div>
{{
value
[
'超期应收'
]
||
0
}}
</div>
</td>
<td>
<div>
超期应付额
</div>
</td>
<td>
<div>
{{
value
[
'超期应付'
]
}}
</div>
<div>
{{
value
[
'超期应付'
]
||
0
}}
</div>
</td>
</tr>
</table>
...
...
src/view/kanban/capital.vue
View file @
6aa70bfc
...
...
@@ -16,17 +16,18 @@
}
</
style
>
<
template
>
<div
class=
"capital"
>
<div
class=
"card"
v-for=
"(v,i) in list"
:key=
"i"
>
<div
class=
"capital"
:style=
"list.length==0&&'background:#fff;height:100%;'"
>
<div
class=
"card"
v-
if=
"list.length>0"
v-
for=
"(v,i) in list"
:key=
"i"
>
<div>
<div
style=
"font-size:13px;margin-bottom:14px;"
>
{{
v
.
sName
}}
</div>
<div
style=
"font-size: 28px;font-weight: 600;"
>
{{
Number
(
v
.
sValue
)
||
0
}}
</div>
</div>
<div
style=
"align-self: flex-end;"
>
<div>
↑
{{
v
.
rate
}}
</div>
<div>
比
{{
dateModeName
}}
下
降
</div>
<div
style=
"align-self: flex-end;"
v-if=
"v.rate=0"
>
<div>
{{
v
.
rate
>
0
?
'↑'
:
'↓'
}}{{
v
.
rate
}}
%
</div>
<div>
比
{{
dateModeName
}}
{{
v
.
rate
>
0
?
'上'
:
'下'
}}
降
</div>
</div>
</div>
<img
src=
"@/assets/noData.jpg"
style=
"width:100%;"
v-if=
"list.length==0"
/>
</div>
</
template
>
<
script
>
...
...
@@ -70,6 +71,8 @@ export default{
this
.
list
=
value
.
map
(
v
=>
{
if
(
v
.
sValued
==
0
){
v
.
rate
=
100
}
else
if
(
v
.
sValue
==
0
){
v
.
rate
=
0
}
else
{
v
.
rate
=
Math
.
round
((
v
.
sValue
-
v
.
sValued
)
/
v
.
sValued
*
100
)
/
100
}
...
...
src/view/kanban/operate.vue
View file @
6aa70bfc
...
...
@@ -34,8 +34,8 @@
}
</
style
>
<
template
>
<div
class=
"operate"
>
<table
cellspacing=
"0"
>
<div
class=
"operate"
:style=
"list.length==0&&'background:#fff;height:100%;'"
>
<table
cellspacing=
"0"
v-if=
"list.length>0"
>
<tr>
<td></td>
<td>
米数
</td>
...
...
@@ -57,6 +57,7 @@
</td>
</tr>
</table>
<img
src=
"@/assets/noData.jpg"
style=
"width:100%;"
v-else
/>
</div>
</
template
>
<
script
>
...
...
src/view/tiip/chart/inventory.vue
View file @
6aa70bfc
...
...
@@ -58,8 +58,8 @@
<div
class=
"CONTENT"
>
<div
class=
"iCard"
v-for=
"(item,index) in chartData"
:key=
"index"
>
<div
class=
"warehouse"
:style=
"
{'color':colorList[index]}">
{{
item
.
sStoreName
}}
</div>
<div
class=
"piece"
><span
style=
"color:#8a8a8a;"
>
总匹数:
</span>
{{
item
.
nStockPieceQty
}}
</div>
<div
class=
"qty"
><span
style=
"color:#8a8a8a;"
>
总数量:
</span>
{{
item
.
nStockQty
}}
</div>
<div
class=
"piece"
><span
style=
"color:#8a8a8a;"
>
总匹数:
</span>
{{
Number
(
item
.
nStockPieceQty
).
toLocaleString
()
}}
</div>
<div
class=
"qty"
><span
style=
"color:#8a8a8a;"
>
总数量:
</span>
{{
Number
(
item
.
nStockQty
).
toLocaleString
()
}}
</div>
</div>
</div>
...
...
@@ -186,7 +186,7 @@ export default {
const
data
=
this
.
chartData
;
const
map
=
{};
data
.
forEach
(
function
(
obj
)
{
map
[
obj
.
sStoreName
]
=
obj
.
nAmount
+
'元'
;
map
[
obj
.
sStoreName
]
=
(
obj
.
nAmount
||
0
)
+
'元'
;
});
this
.
myChart
=
new
F2
.
Chart
({
id
:
'myChart'
,
...
...
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