Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
952b06f9
Commit
952b06f9
authored
Jul 07, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接入筛选接口
parent
d6b1f678
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
14 deletions
+19
-14
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
...form/ViewController/应付账款/YingFuZKListViewController.swift
+19
-14
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
...ViewController/应付账款/YingFuZhangKuanXQViewController.swift
+0
-0
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
952b06f9
No preview for this file type
GeliBusinessPlatform/ViewController/应付账款/YingFuZKListViewController.swift
View file @
952b06f9
...
@@ -14,6 +14,10 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -14,6 +14,10 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
}
}
@IBOutlet
weak
var
selectListH
:
NSLayoutConstraint
!
@IBOutlet
weak
var
selectListH
:
NSLayoutConstraint
!
var
exist
=
0
var
amount_order
=
0
@IBAction
func
topBtnClick
(
_
sender
:
UIButton
)
{
@IBAction
func
topBtnClick
(
_
sender
:
UIButton
)
{
switch
sender
.
tag
{
switch
sender
.
tag
{
case
0
:
case
0
:
...
@@ -121,21 +125,20 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -121,21 +125,20 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
}
}
var
leftSelectNum
:
Int
?
var
rightSelectNum
:
Int
?
//MARK: - CELL DELEGATE
//MARK: - CELL DELEGATE
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
tableView
==
selectList
{
if
tableView
==
selectList
{
if
leftBtnTitle
.
textColor
==
UIColor
(
named
:
"蓝色字体颜色"
){
if
leftBtnTitle
.
textColor
==
UIColor
(
named
:
"蓝色字体颜色"
){
leftSelectNum
=
indexPath
.
row
exist
=
indexPath
.
row
leftBtnTitle
.
text
=
leftArr
2
[
leftSelectNum
!
]
leftBtnTitle
.
text
=
leftArr
1
[
exist
]
if
(
barTitle
?
.
contains
(
"应收"
))
!
{
if
(
barTitle
?
.
contains
(
"应收"
))
!
{
leftBtnTitle
.
text
=
leftArr
1
[
leftSelectNum
!
]
leftBtnTitle
.
text
=
leftArr
2
[
exist
]
}
}
}
else
{
}
else
{
rightSelectNum
=
indexPath
.
row
amount_order
=
indexPath
.
row
rightBtnTitle
.
text
=
rightArr
[
rightSelectNum
!
]
rightBtnTitle
.
text
=
rightArr
[
amount_order
]
}
}
leftImg
.
image
=
UIImage
(
named
:
"xiala"
)
leftImg
.
image
=
UIImage
(
named
:
"xiala"
)
rightImg
.
image
=
UIImage
(
named
:
"xiala"
)
rightImg
.
image
=
UIImage
(
named
:
"xiala"
)
...
@@ -143,7 +146,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -143,7 +146,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
leftBtnTitle
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
leftBtnTitle
.
textColor
=
UIColor
(
named
:
"标题字颜色"
)
selectList
.
isHidden
=
true
selectList
.
isHidden
=
true
closeBtn
.
isHidden
=
true
closeBtn
.
isHidden
=
true
tableView
.
reloadData
()
listView
.
mj_header
?
.
beginRefreshing
()
return
return
}
}
let
vc
=
YingFuZhangKuanXQViewController
()
let
vc
=
YingFuZhangKuanXQViewController
()
...
@@ -190,18 +193,18 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -190,18 +193,18 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
if
leftBtnTitle
.
textColor
==
UIColor
(
named
:
"蓝色字体颜色"
){
if
leftBtnTitle
.
textColor
==
UIColor
(
named
:
"蓝色字体颜色"
){
if
(
barTitle
?
.
contains
(
"应收"
))
!
{
if
(
barTitle
?
.
contains
(
"应收"
))
!
{
cell
?
.
textLabel
!.
text
=
leftArr2
[
indexPath
.
row
]
cell
?
.
textLabel
!.
text
=
leftArr2
[
indexPath
.
row
]
if
leftSelectNum
==
indexPath
.
row
{
if
exist
==
indexPath
.
row
{
cell
?
.
textLabel
?
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
?
.
textLabel
?
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
}
}
}
else
{
}
else
{
cell
?
.
textLabel
!.
text
=
leftArr1
[
indexPath
.
row
]
cell
?
.
textLabel
!.
text
=
leftArr1
[
indexPath
.
row
]
if
leftSelectNum
==
indexPath
.
row
{
if
exist
==
indexPath
.
row
{
cell
?
.
textLabel
?
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
?
.
textLabel
?
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
}
}
}
}
}
else
{
}
else
{
cell
?
.
textLabel
!.
text
=
rightArr
[
indexPath
.
row
]
cell
?
.
textLabel
!.
text
=
rightArr
[
indexPath
.
row
]
if
rightSelectNum
==
indexPath
.
row
{
if
amount_order
==
indexPath
.
row
{
cell
?
.
textLabel
?
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
cell
?
.
textLabel
?
.
textColor
=
UIColor
(
named
:
"蓝色字体颜色"
)
}
}
}
}
...
@@ -274,7 +277,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -274,7 +277,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
@objc
func
loadData
(){
@objc
func
loadData
(){
print
(
"加载数据"
)
print
(
"加载数据"
)
page
=
1
page
=
1
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
]
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
,
"exist"
:
exist
as
Any
,
"amount_order"
:
amount_order
+
1
as
Any
]
if
(
barTitle
?
.
contains
(
"应付"
))
!
{
if
(
barTitle
?
.
contains
(
"应付"
))
!
{
accountsPayableList
(
dic
,
success
:
{
(
data
)
in
accountsPayableList
(
dic
,
success
:
{
(
data
)
in
let
model
=
(
data
as!
accountsPayableListModel
)
let
model
=
(
data
as!
accountsPayableListModel
)
...
@@ -288,7 +291,9 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -288,7 +291,9 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
self
.
listView
.
mj_footer
=
self
.
footerMJ
self
.
listView
.
mj_footer
=
self
.
footerMJ
}
}
self
.
totalPriceLbl
.
text
=
"¥
\(
model
.
data
!.
total_payable_money
!
)
"
if
model
.
data
?
.
total_payable_money
!=
nil
{
self
.
totalPriceLbl
.
text
=
"¥
\(
model
.
data
!.
total_payable_money
!
)
"
}
self
.
listView
.
reloadData
()
self
.
listView
.
reloadData
()
self
.
listView
.
mj_header
?
.
endRefreshing
()
self
.
listView
.
mj_header
?
.
endRefreshing
()
self
.
page
=
2
self
.
page
=
2
...
@@ -330,7 +335,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
...
@@ -330,7 +335,7 @@ class YingFuZKListViewController: BaseViewController,UISearchBarDelegate,SearchB
@objc
func
loadMoreData
(){
@objc
func
loadMoreData
(){
print
(
"加载更多数据"
)
print
(
"加载更多数据"
)
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
]
let
dic
=
[
"user_token"
:
UserToken
as
Any
,
"keyword"
:
keyword
as
Any
,
"page"
:
page
as
Any
,
"exist"
:
exist
as
Any
,
"amount_order"
:
amount_order
+
1
as
Any
]
if
(
barTitle
?
.
contains
(
"应付"
))
!
{
if
(
barTitle
?
.
contains
(
"应付"
))
!
{
accountsPayableList
(
dic
,
success
:
{
(
data
)
in
accountsPayableList
(
dic
,
success
:
{
(
data
)
in
let
dataM
=
data
as!
accountsPayableListModel
let
dataM
=
data
as!
accountsPayableListModel
...
...
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
View file @
952b06f9
This diff is collapsed.
Click to expand it.
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