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
0e732c70
Commit
0e732c70
authored
Jul 04, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情日期筛选UI添加完成
parent
7c5be7bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
165 additions
and
3 deletions
+165
-3
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
...ViewController/应付账款/YingFuZhangKuanXQViewController.swift
+29
-2
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.xib
...m/ViewController/应付账款/YingFuZhangKuanXQViewController.xib
+136
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0e732c70
No preview for this file type
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.swift
View file @
0e732c70
...
...
@@ -16,7 +16,32 @@ protocol YingFuZhangKuanXQViewControllerDelegate {
class
YingFuZhangKuanXQViewController
:
BaseViewController
,
UISearchBarDelegate
,
SearchBarViewDelegate
,
UITableViewDelegate
,
UITableViewDataSource
,
YingFuZhangKuanXQCellDelegate
,
GLAlertSelectViewDelegate
,
GeliAlertViewDelegate
{
var
delegate
:
YingFuZhangKuanXQViewControllerDelegate
?
@IBOutlet
weak
var
selectView
:
UIView
!
@IBAction
func
btnSelect
(
_
sender
:
UIButton
)
{
if
sender
.
tag
==
0
{
leftBtn
.
backgroundColor
=
UIColor
(
named
:
"按钮背景颜色"
)
rightBtn
.
backgroundColor
=
UIColor
(
named
:
"分类Cell背景色"
)
leftBtn
.
isSelected
=
true
rightBtn
.
isSelected
=
false
}
else
{
leftBtn
.
backgroundColor
=
UIColor
(
named
:
"分类Cell背景色"
)
rightBtn
.
backgroundColor
=
UIColor
(
named
:
"按钮背景颜色"
)
leftBtn
.
isSelected
=
false
rightBtn
.
isSelected
=
true
}
}
@IBOutlet
weak
var
rightBtn
:
UIButton
!
@IBOutlet
weak
var
leftBtn
:
UIButton
!
@IBOutlet
weak
var
closeBtn
:
UIButton
!
@IBAction
func
closeAction
(
_
sender
:
UIButton
)
{
selectView
.
isHidden
=
true
closeBtn
.
isHidden
=
true
}
@IBAction
func
showSelectAction
(
_
sender
:
UIButton
)
{
selectView
.
isHidden
=
!
selectView
.
isHidden
closeBtn
.
isHidden
=
selectView
.
isHidden
}
override
func
backAction
()
{
...
...
@@ -133,13 +158,15 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
let
searchBr
=
SearchBarView
.
init
()
self
.
searchBGView
.
addSubview
(
searchBr
)
searchBr
.
snp
.
makeConstraints
{
(
make
)
in
make
.
left
.
right
.
equalTo
(
0
)
make
.
left
.
equalTo
(
0
)
make
.
right
.
equalTo
(
-
48
)
make
.
centerY
.
equalToSuperview
()
make
.
height
.
equalTo
(
35
)
}
searchV
=
searchBr
if
(
navTitle
.
contains
(
"应收"
))
{
searchBr
.
placeholderStr
=
"请输入客户名字或ID"
rightBtn
.
setTitle
(
"收款时间"
,
for
:
.
normal
)
}
else
{
searchBr
.
placeholderStr
=
"请输入供应商名字或ID"
}
...
...
GeliBusinessPlatform/ViewController/应付账款/YingFuZhangKuanXQViewController.xib
View file @
0e732c70
...
...
@@ -11,8 +11,12 @@
<objects>
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"YingFuZhangKuanXQViewController"
customModule=
"TestClass"
customModuleProvider=
"target"
>
<connections>
<outlet
property=
"closeBtn"
destination=
"5UV-zj-jxf"
id=
"Vbq-dY-Ijt"
/>
<outlet
property=
"leftBtn"
destination=
"CGG-bQ-22Y"
id=
"ISw-SU-qHs"
/>
<outlet
property=
"listView"
destination=
"7VX-Hn-lfa"
id=
"MWv-pp-tI2"
/>
<outlet
property=
"rightBtn"
destination=
"aff-vT-yfV"
id=
"x2Z-c9-IDg"
/>
<outlet
property=
"searchBGView"
destination=
"fQf-mJ-t0V"
id=
"Flu-qf-wdv"
/>
<outlet
property=
"selectView"
destination=
"ZLV-28-Hdt"
id=
"lGm-Zi-tm9"
/>
<outlet
property=
"view"
destination=
"i5M-Pr-FkT"
id=
"sfx-zR-JGt"
/>
</connections>
</placeholder>
...
...
@@ -23,9 +27,24 @@
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fQf-mJ-t0V"
>
<rect
key=
"frame"
x=
"0.0"
y=
"44"
width=
"414"
height=
"44"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"BfG-M0-rMl"
>
<rect
key=
"frame"
x=
"366"
y=
"0.0"
width=
"48"
height=
"44"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"48"
id=
"a7U-9z-fsr"
/>
</constraints>
<state
key=
"normal"
image=
"shaixuan"
/>
<connections>
<action
selector=
"showSelectAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"DrM-Gx-Bhq"
/>
</connections>
</button>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstItem=
"BfG-M0-rMl"
firstAttribute=
"top"
secondItem=
"fQf-mJ-t0V"
secondAttribute=
"top"
id=
"LMG-Fb-BMI"
/>
<constraint
firstAttribute=
"height"
constant=
"44"
id=
"NKC-DQ-7NV"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"BfG-M0-rMl"
secondAttribute=
"trailing"
id=
"Ouz-1S-i5d"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"BfG-M0-rMl"
secondAttribute=
"bottom"
id=
"ZMt-pI-gxj"
/>
</constraints>
</view>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
style=
"plain"
separatorStyle=
"default"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
sectionFooterHeight=
"28"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"7VX-Hn-lfa"
>
...
...
@@ -36,24 +55,140 @@
<outlet
property=
"delegate"
destination=
"-1"
id=
"zHH-kE-AK4"
/>
</connections>
</tableView>
<button
hidden=
"YES"
opaque=
"NO"
alpha=
"0.40000000000000002"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"5UV-zj-jxf"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"808"
/>
<color
key=
"backgroundColor"
name=
"标题字颜色"
/>
<color
key=
"tintColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<connections>
<action
selector=
"closeAction:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"T7h-TJ-vEk"
/>
</connections>
</button>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ZLV-28-Hdt"
>
<rect
key=
"frame"
x=
"0.0"
y=
"88"
width=
"414"
height=
"369"
/>
<subviews>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
selected=
"YES"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"CGG-bQ-22Y"
>
<rect
key=
"frame"
x=
"15"
y=
"20"
width=
"86"
height=
"30"
/>
<color
key=
"backgroundColor"
name=
"按钮背景颜色"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"86"
id=
"ib9-Xk-jxb"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"wM8-De-cNt"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"tintColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"欠款时间"
>
<color
key=
"titleColor"
name=
"多选按钮字体颜色"
/>
</state>
<state
key=
"selected"
>
<color
key=
"titleColor"
name=
"白色背景色"
/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"btnSelect:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Igq-qf-4WO"
/>
</connections>
</button>
<button
opaque=
"NO"
tag=
"1"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"roundedRect"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aff-vT-yfV"
>
<rect
key=
"frame"
x=
"121"
y=
"20"
width=
"86"
height=
"30"
/>
<color
key=
"backgroundColor"
name=
"分类Cell背景色"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"86"
id=
"0KA-eV-XwP"
/>
<constraint
firstAttribute=
"height"
constant=
"30"
id=
"HAd-fs-Y0R"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"tintColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"付款时间"
>
<color
key=
"titleColor"
name=
"多选按钮字体颜色"
/>
</state>
<state
key=
"selected"
>
<color
key=
"titleColor"
name=
"白色背景色"
/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute
type=
"number"
keyPath=
"cornerRadius"
>
<real
key=
"value"
value=
"3"
/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action
selector=
"btnSelect:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"Yaf-ii-zss"
/>
</connections>
</button>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Fyo-qu-1M0"
>
<rect
key=
"frame"
x=
"15"
y=
"70"
width=
"399"
height=
"1"
/>
<color
key=
"backgroundColor"
name=
"灰色分界线"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"1"
id=
"krB-MO-YmS"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"K8k-7a-iai"
>
<rect
key=
"frame"
x=
"0.0"
y=
"71"
width=
"414"
height=
"298"
/>
<color
key=
"backgroundColor"
name=
"标题背景色"
/>
</view>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor"
cocoaTouchSystemColor=
"whiteColor"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"K8k-7a-iai"
secondAttribute=
"bottom"
id=
"1mU-CM-tdG"
/>
<constraint
firstItem=
"Fyo-qu-1M0"
firstAttribute=
"top"
secondItem=
"CGG-bQ-22Y"
secondAttribute=
"bottom"
constant=
"20"
id=
"9OI-Bg-5VR"
/>
<constraint
firstItem=
"Fyo-qu-1M0"
firstAttribute=
"leading"
secondItem=
"ZLV-28-Hdt"
secondAttribute=
"leading"
constant=
"15"
id=
"BH9-fU-n3W"
/>
<constraint
firstItem=
"CGG-bQ-22Y"
firstAttribute=
"top"
secondItem=
"ZLV-28-Hdt"
secondAttribute=
"top"
constant=
"20"
id=
"Cbl-8z-Y0X"
/>
<constraint
firstAttribute=
"height"
constant=
"369"
id=
"JZx-xw-bJf"
/>
<constraint
firstItem=
"K8k-7a-iai"
firstAttribute=
"leading"
secondItem=
"ZLV-28-Hdt"
secondAttribute=
"leading"
id=
"Lre-Yb-BNZ"
/>
<constraint
firstItem=
"aff-vT-yfV"
firstAttribute=
"leading"
secondItem=
"CGG-bQ-22Y"
secondAttribute=
"trailing"
constant=
"20"
id=
"OJp-NB-irk"
/>
<constraint
firstItem=
"CGG-bQ-22Y"
firstAttribute=
"leading"
secondItem=
"ZLV-28-Hdt"
secondAttribute=
"leading"
constant=
"15"
id=
"jrh-a0-6Wf"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Fyo-qu-1M0"
secondAttribute=
"trailing"
id=
"lOa-vY-pnz"
/>
<constraint
firstItem=
"aff-vT-yfV"
firstAttribute=
"centerY"
secondItem=
"CGG-bQ-22Y"
secondAttribute=
"centerY"
id=
"n9G-ib-t15"
/>
<constraint
firstItem=
"K8k-7a-iai"
firstAttribute=
"top"
secondItem=
"Fyo-qu-1M0"
secondAttribute=
"bottom"
id=
"qHj-wg-VSj"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"K8k-7a-iai"
secondAttribute=
"trailing"
id=
"rlh-yY-Twy"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"bottom"
secondItem=
"7VX-Hn-lfa"
secondAttribute=
"bottom"
id=
"2Iq-cw-oqg"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"5UV-zj-jxf"
secondAttribute=
"trailing"
id=
"8Bf-1V-7xw"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"ZLV-28-Hdt"
secondAttribute=
"trailing"
id=
"8p9-2z-2Oc"
/>
<constraint
firstItem=
"7VX-Hn-lfa"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"C7e-vT-gsO"
/>
<constraint
firstItem=
"5UV-zj-jxf"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"CyH-Qz-hdT"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"7VX-Hn-lfa"
secondAttribute=
"trailing"
id=
"I5T-Hi-Vzl"
/>
<constraint
firstItem=
"ZLV-28-Hdt"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"ImO-oE-lyy"
/>
<constraint
firstItem=
"ZLV-28-Hdt"
firstAttribute=
"top"
secondItem=
"fQf-mJ-t0V"
secondAttribute=
"bottom"
id=
"OOX-HO-WB4"
/>
<constraint
firstItem=
"5UV-zj-jxf"
firstAttribute=
"top"
secondItem=
"fQf-mJ-t0V"
secondAttribute=
"bottom"
id=
"WEt-z9-b0d"
/>
<constraint
firstItem=
"fQf-mJ-t0V"
firstAttribute=
"leading"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"leading"
id=
"icu-mW-FZt"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"5UV-zj-jxf"
secondAttribute=
"bottom"
id=
"kfL-Si-92f"
/>
<constraint
firstItem=
"fQf-mJ-t0V"
firstAttribute=
"top"
secondItem=
"fnl-2z-Ty3"
secondAttribute=
"top"
id=
"nfj-aR-oRw"
/>
<constraint
firstItem=
"fnl-2z-Ty3"
firstAttribute=
"trailing"
secondItem=
"fQf-mJ-t0V"
secondAttribute=
"trailing"
id=
"nr6-M0-Qmp"
/>
<constraint
firstItem=
"7VX-Hn-lfa"
firstAttribute=
"top"
secondItem=
"fQf-mJ-t0V"
secondAttribute=
"bottom"
id=
"zbU-xQ-hmN"
/>
</constraints>
<viewLayoutGuide
key=
"safeArea"
id=
"fnl-2z-Ty3"
/>
<point
key=
"canvasLocation"
x=
"13
2"
y=
"122
"
/>
<point
key=
"canvasLocation"
x=
"13
1.8840579710145"
y=
"121.875
"
/>
</view>
</objects>
<resources>
<image
name=
"shaixuan"
width=
"17"
height=
"15"
/>
<namedColor
name=
"app底色"
>
<color
red=
"0.94509803921568625"
green=
"0.94509803921568625"
blue=
"0.94509803921568625"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"分类Cell背景色"
>
<color
red=
"0.9100000262260437"
green=
"0.93699997663497925"
blue=
"0.97299998998641968"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"多选按钮字体颜色"
>
<color
red=
"0.41200000047683716"
green=
"0.41200000047683716"
blue=
"0.41200000047683716"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"按钮背景颜色"
>
<color
red=
"0.2199999988079071"
green=
"0.45500001311302185"
blue=
"0.82700002193450928"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题字颜色"
>
<color
red=
"0.18000000715255737"
green=
"0.18000000715255737"
blue=
"0.18000000715255737"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"标题背景色"
>
<color
red=
"1"
green=
"0.68999999761581421"
blue=
"0.47099998593330383"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"灰色分界线"
>
<color
red=
"0.92941176470588238"
green=
"0.92941176470588238"
blue=
"0.92941176470588238"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
<namedColor
name=
"白色背景色"
>
<color
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
</namedColor>
</resources>
</document>
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