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
6757bebd
Commit
6757bebd
authored
Dec 14, 2019
by
张锡奇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://47.110.145.204:2222/godwithdh/wx_h5
parents
1412962b
564d0795
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
55 deletions
+100
-55
index.js
src/router/index.js
+1
-1
Finance.vue
src/view/tiip/kanban/Finance.vue
+8
-7
abnormal.vue
src/view/tiip/kanban/abnormal.vue
+21
-17
capital.vue
src/view/tiip/kanban/capital.vue
+19
-11
index.vue
src/view/tiip/kanban/index.vue
+40
-15
operate.vue
src/view/tiip/kanban/operate.vue
+11
-4
No files found.
src/router/index.js
View file @
6757bebd
...
...
@@ -109,7 +109,7 @@ let routes = [
{
path
:
"/kanban/:userId"
,
name
:
"kanban"
,
component
:()
=>
import
(
"@/view/kanban/index.vue"
),
component
:()
=>
import
(
"@/view/
tiip/
kanban/index.vue"
),
meta
:{
title
:
"老板看板"
}
...
...
src/view/kanban/Finance.vue
→
src/view/
tiip/
kanban/Finance.vue
View file @
6757bebd
...
...
@@ -23,6 +23,7 @@
>div.num{
flex-grow:1;
>div{
font-size:15px;
&:not(:last-child){padding-bottom:4px;}
>span:first-child{
color:#777;
...
...
@@ -48,7 +49,7 @@
<div><span>
余额
</span><span
style=
"color:#FF6633;"
>
{{
v
.
nCloseAmount
||
0
}}
</span></div>
</div>
<XCircle
style=
"width:
60px;height: 6
0px;"
style=
"width:
70px;height: 7
0px;"
:percent=
"Number(v.nPercent)||0"
:stroke-width=
"7"
:stroke-color=
"color[k%4]"
...
...
@@ -94,12 +95,12 @@ export default {
methods
:{
async
search
(){
var
value
=
await
this
.
request
(
"getBoss"
,{
data
:[
{
key
:
"url"
,
value
:
"Financial Summary"
}],
params
:{
begin_date
:
util
.
dateFormat
(
this
.
start
,
"yyyy-MM-dd"
)
,
end_date
:(
this
.
end
?
util
.
dateFormat
(
this
.
end
,
"yyyy-MM-dd"
):
util
.
dateFormat
(
new
Date
,
"yyyy-MM-dd"
))
+
' 23:59'
,
},
},
true
,{})
data
:[
{
key
:
"url"
,
value
:
"Financial Summary"
},
{
key
:
"begin_date"
,
value
:
util
.
dateFormat
(
this
.
start
,
"yyyy-MM-dd"
)}
,
{
key
:
"end_date"
,
value
:(
this
.
end
?
util
.
dateFormat
(
this
.
end
,
"yyyy-MM-dd"
):
util
.
dateFormat
(
new
Date
,
"yyyy-MM-dd"
))
+
' 23:59'
}
,
]
},
"加载中"
,{})
if
(
typeof
value
==
'object'
&&
value
.
length
>
0
){
this
.
list
=
value
}
else
{
...
...
src/view/kanban/abnormal.vue
→
src/view/
tiip/
kanban/abnormal.vue
View file @
6757bebd
...
...
@@ -10,8 +10,12 @@
>td{
padding:10px 0;
>div{
height:45px;
display:flex;
justify-content: center;
align-items: center;
background:#fff;
padding:5px
0
;
padding:5px
2px
;
}
&:first-child>div{
border-left:2px solid #8D90FF;
...
...
@@ -35,13 +39,13 @@
<div>
销售退货
</div>
</td>
<td>
<div>
{{
value
[
'销售退货'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'销售退货'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
<td
style=
"width:100px;"
>
<div>
采购退货
</div>
</td>
<td>
<div>
{{
value
[
'采购退货'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'采购退货'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -49,13 +53,13 @@
<div>
加工回修
</div>
</td>
<td>
<div>
{{
value
[
'加工回修'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'加工回修'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
<td>
<div>
疵品数量
</div>
</td>
<td>
<div>
{{
value
[
'疵品汇总'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'疵品汇总'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -66,13 +70,13 @@
<div>
数量
</div>
</td>
<td>
<div>
{{
value
[
'拖期订单总数量'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'拖期订单总数量'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
<td>
<div>
金额
</div>
</td>
<td>
<div>
{{
value
[
'拖期订单总金额'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'拖期订单总金额'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -80,13 +84,13 @@
<div>
供应商赔款
</div>
</td>
<td>
<div>
{{
value
[
'供应商索赔'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'供应商索赔'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
<td>
<div>
客户赔款
</div>
</td>
<td>
<div>
{{
value
[
'客户索赔'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'客户索赔'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
</tr>
<tr>
...
...
@@ -94,13 +98,13 @@
<div>
超期应收额
</div>
</td>
<td>
<div>
{{
value
[
'超期应收'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'超期应收'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
<td>
<div>
超期应付额
</div>
</td>
<td>
<div>
{{
value
[
'超期应付'
]
||
0
}}
</div>
<div>
{{
Number
(
value
[
'超期应付'
]
||
0
).
toLocaleString
()
}}
</div>
</td>
</tr>
</table>
...
...
@@ -135,12 +139,12 @@ export default {
methods
:{
async
search
(){
var
value
=
await
this
.
request
(
'getBoss'
,{
data
:[
{
key
:
"url"
,
value
:
"Abnormal early warning"
}],
params
:{
begin_date
:
util
.
dateFormat
(
this
.
start
,
"yyyy-MM-dd"
)
,
end_date
:(
this
.
end
?
util
.
dateFormat
(
this
.
end
,
"yyyy-MM-dd"
):
util
.
dateFormat
(
new
Date
,
"yyyy-MM-dd"
))
+
' 23:59'
,
},
},
true
,{})
data
:[
{
key
:
"url"
,
value
:
"Abnormal early warning"
},
{
key
:
"begin_date"
,
value
:
util
.
dateFormat
(
this
.
start
,
"yyyy-MM-dd"
)}
,
{
key
:
"end_date"
,
value
:(
this
.
end
?
util
.
dateFormat
(
this
.
end
,
"yyyy-MM-dd"
):
util
.
dateFormat
(
new
Date
,
"yyyy-MM-dd"
))
+
' 23:59'
}
,
]
},
"加载中"
,{})
if
(
typeof
value
==
"object"
&&
value
.
length
>
0
){
this
.
value
=
value
[
0
]
}
else
{
...
...
src/view/kanban/capital.vue
→
src/view/
tiip/
kanban/capital.vue
View file @
6757bebd
...
...
@@ -2,7 +2,7 @@
.capital{
>div.card{
margin: 15px;
background:
rgb(94,154,254
);
background:
linear-gradient(25deg, var(--color,#5180D4,#5180D4)
);
padding:15px;
border-radius: 5px;
box-shadow: 2px 2px 3px rgba(94,154,254,0.5);
...
...
@@ -17,12 +17,12 @@
</
style
>
<
template
>
<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
class=
"card"
v-if=
"list.length>0"
v-for=
"(v,i) in list"
:key=
"i"
:style=
"
{'--color':color[i%6]}"
>
<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;"
v-if=
"v.rate=0"
>
<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>
...
...
@@ -42,6 +42,14 @@ export default{
data
(){
return
{
list
:[],
color
:[
"#ff9700, #fe777c"
,
"#0081ff, #1cbbb4"
,
"#fe5a9f,#ff5c40"
,
"#ca2af4,#8850ff"
,
"#ffd65b,#ff9833"
,
"#3b83f6, #24c2dd"
,
],
}
},
watch
:{
...
...
@@ -61,16 +69,16 @@ export default{
methods
:{
async
search
(){
var
value
=
await
this
.
request
(
"getBoss"
,{
data
:[
{
key
:
"url"
,
value
:
"Summary of funds"
}],
params
:{
begin_date
:
util
.
dateFormat
(
this
.
start
,
"yyyy-MM-dd"
)
,
end_date
:(
this
.
end
?
util
.
dateFormat
(
this
.
end
,
"yyyy-MM-dd"
):
util
.
dateFormat
(
new
Date
,
"yyyy-MM-dd"
))
+
' 23:59'
,
}
},
true
,{})
data
:[
{
key
:
"url"
,
value
:
"Summary of funds"
},
{
key
:
"begin_date"
,
value
:
util
.
dateFormat
(
this
.
start
,
"yyyy-MM-dd"
)}
,
{
key
:
"end_date"
,
value
:(
this
.
end
?
util
.
dateFormat
(
this
.
end
,
"yyyy-MM-dd"
):
util
.
dateFormat
(
new
Date
,
"yyyy-MM-dd"
))
+
' 23:59'
}
,
]
},
"加载中"
,{})
if
(
typeof
value
==
'object'
&&
value
.
length
>
0
){
this
.
list
=
value
.
map
(
v
=>
{
if
(
v
.
sValued
==
0
){
v
.
rate
=
100
if
(
v
.
sValued
==
0
&&
v
.
sValue
!=
0
){
v
.
rate
=
v
.
sValue
>
0
?
100
:
-
100
}
else
if
(
v
.
sValue
==
0
){
v
.
rate
=
0
}
else
{
...
...
src/view/kanban/index.vue
→
src/view/
tiip/
kanban/index.vue
View file @
6757bebd
...
...
@@ -11,8 +11,9 @@
>span{
width:calc(100%/5);
text-align: center;
padding: 10px 0;
position:relative;
height: 35px;
line-height: 35px;
&:after{
content:" ";
left:50%;
...
...
@@ -23,39 +24,62 @@
border-radius: 20px;
transition: all 0.3s;
}
&.active:after{
&.active{
font-size:15px;
&:after{
width:100%;
left:0;
}
}
}
}
>.date{
flex-shrink: 0;
display: flex;
padding:7px 0
;
height: 30px
;
>div{
flex-grow:1;
display:flex;
justify-content:
space-around
;
justify-content:
center
;
align-items: center;
font-size: 1
0
px;
font-size: 1
4
px;
>.line{
width:
20
px;
background: #
43B884
;
width:
15
px;
background: #
815EFF
;
height: 3px;
border-radius: 50px;
margin: 0
-20
px;
margin: 0
5
px;
}
}
>
spa
n{
>
butto
n{
flex-shrink: 0;
padding: 0 10px;
position:relative;
overflow:hidden;
color:#815EFF;
&:after{
content:" ";
width:0;
height:0;
left:50%;
top:50%;
position:absolute;
background:rgba(50, 125, 255, 0.4);
border-radius: 50%;
transform:translate(-50%,-50%);
}
&:active:after{
transition: all 0.4s;
width:100px;
height:100px;
}
}
}
>.list{
flex-shrink: 0;
display:flex;
background: #f2f2f2;
color:#679FFE;
>span{
width: calc(100%/5);
text-align: center;
...
...
@@ -73,6 +97,7 @@
flex-grow:1;
overflow:auto;
height:1px;
-webkit-overflow-scrolling: touch;
}
}
</
style
>
...
...
@@ -86,13 +111,13 @@
<span
:class=
"
{active:dateMode==5}" @click="dateSelect(5)">自定义
</span>
</div>
<div
class=
"date"
>
<
span
v-if=
"dateMode
<5
"
@
click=
"preDate"
>
前一
{{
dateMode
==
1
&&
'天'
||
dateMode
==
2
&&
'周'
||
dateMode
==
3
&&
'月'
||
dateMode
==
4
&&
'年'
}}
</spa
n>
<
button
v-if=
"dateMode
<5
"
@
click=
"preDate"
>
上一
{{
dateMode
==
1
&&
'天'
||
dateMode
==
2
&&
'周'
||
dateMode
==
3
&&
'月'
||
dateMode
==
4
&&
'年'
}}
</butto
n>
<div>
<span>
{{
startDate
}}
</span>
<span
v-show=
"dateMode>1"
class=
"line"
/>
<span
v-show=
"dateMode>1"
>
{{
endDate
}}
</span>
</div>
<
span
v-if=
"dateMode
<5
"
@
click=
"nextDate"
>
后一
{{
dateMode
==
1
&&
'天'
||
dateMode
==
2
&&
'周'
||
dateMode
==
3
&&
'月'
||
dateMode
==
4
&&
'年'
}}
</spa
n>
<
button
v-if=
"dateMode
<5
"
@
click=
"nextDate"
>
下一
{{
dateMode
==
1
&&
'天'
||
dateMode
==
2
&&
'周'
||
dateMode
==
3
&&
'月'
||
dateMode
==
4
&&
'年'
}}
</butto
n>
</div>
<div
class=
"list"
>
<span
:class=
"
{active:situation=='operate'}" @click="situation='operate'">运营概况
</span>
...
...
@@ -207,10 +232,10 @@ export default {
},
computed
:{
startDate
(
val
){
return
util
.
dateFormat
(
this
.
DateValue
[
0
],
"yyyy
-MM-dd
"
)
return
util
.
dateFormat
(
this
.
DateValue
[
0
],
"yyyy
年MM月dd日
"
)
},
endDate
(
val
){
return
util
.
dateFormat
(
this
.
DateValue
[
1
],
"yyyy
-MM-dd
"
);
return
util
.
dateFormat
(
this
.
DateValue
[
1
],
"yyyy
年MM月dd日
"
);
}
},
watch
:{
...
...
src/view/kanban/operate.vue
→
src/view/
tiip/
kanban/operate.vue
View file @
6757bebd
...
...
@@ -8,14 +8,20 @@
text-align: center;
tr:first-child{
font-size: 13px;
font-weight: bold;
>td{
height:30px;
}
}
tr:not(:first-child){
>td{
padding
:5px 0
;
padding
-bottom:18px
;
>div{
background:#fff;
padding:6px 0;
height: 45px;
background: #fff;
padding: 6px 0;
display: flex;
justify-content: center;
align-items: center;
}
&:first-child{
>div{
...
...
@@ -30,6 +36,7 @@
}
}
}
tr:last-child>td{ padding-bottom:30px; }
}
}
</
style
>
...
...
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