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
165bc1cb
Commit
165bc1cb
authored
Dec 27, 2019
by
张锡奇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
6854e9e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
13 deletions
+43
-13
index.vue
src/view/shopVersion/form/liabilities/index.vue
+43
-13
No files found.
src/view/shopVersion/form/liabilities/index.vue
View file @
165bc1cb
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
@import url('../../../../styles/common.less');
@import url('../../../../styles/common.less');
#Liabilities{
#Liabilities{
background: #f6f5f9;
background: #f6f5f9;
//
height:100%;
height:100%;
//
display: flex;
display: flex;
//
flex-direction: column;
flex-direction: column;
.HEADER{
.HEADER{
display:flex;
display:flex;
padding:10px;
padding:10px;
...
@@ -26,15 +26,15 @@
...
@@ -26,15 +26,15 @@
.Content{
.Content{
height:100%;
height:100%;
//
height:1px;
height:1px;
//
flex-grow: 1;
flex-grow: 1;
//
overflow: auto;
overflow: auto;
//
-webkit-overflow-scrolling: touch;
-webkit-overflow-scrolling: touch;
margin-bottom:8px;
margin-bottom:8px;
>div{
>div{
display:flex;
display:flex;
align-items: center;
align-items: center;
&
:not(:last-child)
{
&{
>div{
>div{
border-bottom:1px solid #ddd;
border-bottom:1px solid #ddd;
}
}
...
@@ -57,7 +57,8 @@
...
@@ -57,7 +57,8 @@
>a{
>a{
flex-shrink: 0;
flex-shrink: 0;
padding: 18px 13px;
padding: 18px 13px;
&.iconfont{border-bottom: 1px solid #ddd;
&.iconfont{
border-bottom: 1px solid #ddd;
display: flex;
display: flex;
align-items: center;
align-items: center;
color: #FF7601;
color: #FF7601;
...
@@ -66,11 +67,27 @@
...
@@ -66,11 +67,27 @@
}
}
}
}
}
}
.img{
width:100%;
display: flex;
justify-content: center;
img{
width:100%;
height:300px;
}
}
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
id=
"Liabilities"
>
<div
id=
"Liabilities"
>
<div
class=
"tabs"
>
<tab
:animate=
"false"
active-color=
"#708bf6"
>
<tab-item
:selected=
'Liabilities.activeTab == "0"'
@
on-item-click=
"changeLiabilitiesTab"
>
客户欠款
</tab-item>
<tab-item
:selected=
'Liabilities.activeTab == "1"'
@
on-item-click=
"changeLiabilitiesTab"
>
欠供应商款
</tab-item>
</tab>
</div>
<div
class=
"HEADER iCard"
>
<div
class=
"HEADER iCard"
>
<span
style=
"color:#777;margin-right:10rpx;"
>
总负债额
</span>
<span
style=
"color:#777;margin-right:10rpx;"
>
总负债额
</span>
<div
:style=
"
{'width':rate+'%','background':color}">
</div>
<div
:style=
"
{'width':rate+'%','background':color}">
</div>
...
@@ -83,7 +100,10 @@
...
@@ -83,7 +100,10 @@
<div
style=
"margin-bottom:10rpx;"
>
{{
item
.
sCustomerName
}}
</div>
<div
style=
"margin-bottom:10rpx;"
>
{{
item
.
sCustomerName
}}
</div>
<div
style=
"font-size:28rpx;color:#777;"
>
欠款:
{{
item
.
nAmount
}}
元
</div>
<div
style=
"font-size:28rpx;color:#777;"
>
欠款:
{{
item
.
nAmount
}}
元
</div>
</div>
</div>
<a
class=
"iconfont icon-dianhua"
:href=
"'tel:' + item.sTelephone01"
></a>
<a
class=
"iconfont icon-dianhua"
:href=
"'tel:' + item.sTelephone01"
v-if=
'Liabilities.activeTab == "0"'
></a>
</div>
<div
class=
"img"
v-if=
"list.length
<
=
0
"
>
<img
src=
"@/assets/noData.jpg"
class=
"_img"
alt=
""
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -92,7 +112,7 @@
...
@@ -92,7 +112,7 @@
<
script
>
<
script
>
import
Util
from
'@/libs/util.js'
;
import
Util
from
'@/libs/util.js'
;
import
{
mapState
}
from
'vuex'
;
import
{
mapState
}
from
'vuex'
;
import
{
XProgress
}
from
'vux'
import
{
XProgress
,
Tab
,
TabItem
}
from
'vux'
export
default
{
export
default
{
name
:
'Liabilities'
,
name
:
'Liabilities'
,
...
@@ -102,10 +122,13 @@ export default {
...
@@ -102,10 +122,13 @@ export default {
total
:
0
,
total
:
0
,
rate
:
1110
,
rate
:
1110
,
color
:
''
,
color
:
''
,
Liabilities
:{
activeTab
:
'0'
}
}
}
},
},
components
:{
components
:{
XProgress
XProgress
,
Tab
,
TabItem
},
},
computed
:{
computed
:{
...
mapState
({
...
mapState
({
...
@@ -122,7 +145,9 @@ export default {
...
@@ -122,7 +145,9 @@ export default {
methods
:{
methods
:{
async
getData
(){
async
getData
(){
let
value
=
await
this
.
request
(
'getCipLiabilities'
,{
let
value
=
await
this
.
request
(
'getCipLiabilities'
,{
data
:{}
data
:{
sCustomerType
:
this
.
Liabilities
.
activeTab
==
0
?
'客户'
:
'供应商'
}
},
'加载中'
,{
iProjectId
:
this
.
iProjectId
});
},
'加载中'
,{
iProjectId
:
this
.
iProjectId
});
this
.
list
=
value
;
this
.
list
=
value
;
this
.
total
=
0
;
this
.
total
=
0
;
...
@@ -140,6 +165,11 @@ export default {
...
@@ -140,6 +165,11 @@ export default {
this
.
rate
>=
90
&&
(
this
.
color
=
"red"
)
this
.
rate
>=
90
&&
(
this
.
color
=
"red"
)
}
}
},
},
changeLiabilitiesTab
(
index
){
if
(
this
.
Liabilities
.
activeTab
==
index
)
return
false
;
this
.
Liabilities
.
activeTab
=
index
;
this
.
getData
();
},
routerToDetail
(
item
){
routerToDetail
(
item
){
this
.
$router
.
push
({
name
:
'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