Commit 0e732c70 authored by lujunye's avatar lujunye

详情日期筛选UI添加完成

parent 7c5be7bf
...@@ -16,7 +16,32 @@ protocol YingFuZhangKuanXQViewControllerDelegate { ...@@ -16,7 +16,32 @@ protocol YingFuZhangKuanXQViewControllerDelegate {
class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource,YingFuZhangKuanXQCellDelegate,GLAlertSelectViewDelegate, GeliAlertViewDelegate{ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource,YingFuZhangKuanXQCellDelegate,GLAlertSelectViewDelegate, GeliAlertViewDelegate{
var delegate:YingFuZhangKuanXQViewControllerDelegate? 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() { override func backAction() {
...@@ -133,13 +158,15 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea ...@@ -133,13 +158,15 @@ class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,Sea
let searchBr = SearchBarView.init() let searchBr = SearchBarView.init()
self.searchBGView.addSubview(searchBr) self.searchBGView.addSubview(searchBr)
searchBr.snp.makeConstraints { (make) in searchBr.snp.makeConstraints { (make) in
make.left.right.equalTo(0) make.left.equalTo(0)
make.right.equalTo(-48)
make.centerY.equalToSuperview() make.centerY.equalToSuperview()
make.height.equalTo(35) make.height.equalTo(35)
} }
searchV = searchBr searchV = searchBr
if (navTitle.contains("应收")) { if (navTitle.contains("应收")) {
searchBr.placeholderStr = "请输入客户名字或ID" searchBr.placeholderStr = "请输入客户名字或ID"
rightBtn.setTitle("收款时间", for: .normal)
}else{ }else{
searchBr.placeholderStr = "请输入供应商名字或ID" searchBr.placeholderStr = "请输入供应商名字或ID"
} }
......
...@@ -11,8 +11,12 @@ ...@@ -11,8 +11,12 @@
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YingFuZhangKuanXQViewController" customModule="TestClass" customModuleProvider="target"> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YingFuZhangKuanXQViewController" customModule="TestClass" customModuleProvider="target">
<connections> <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="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="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"/> <outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections> </connections>
</placeholder> </placeholder>
...@@ -23,9 +27,24 @@ ...@@ -23,9 +27,24 @@
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fQf-mJ-t0V"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fQf-mJ-t0V">
<rect key="frame" x="0.0" y="44" width="414" height="44"/> <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"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints> <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="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> </constraints>
</view> </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"> <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 @@ ...@@ -36,24 +55,140 @@
<outlet property="delegate" destination="-1" id="zHH-kE-AK4"/> <outlet property="delegate" destination="-1" id="zHH-kE-AK4"/>
</connections> </connections>
</tableView> </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> </subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints> <constraints>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="7VX-Hn-lfa" secondAttribute="bottom" id="2Iq-cw-oqg"/> <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="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="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 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="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="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"/> <constraint firstItem="7VX-Hn-lfa" firstAttribute="top" secondItem="fQf-mJ-t0V" secondAttribute="bottom" id="zbU-xQ-hmN"/>
</constraints> </constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/> <viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="122"/> <point key="canvasLocation" x="131.8840579710145" y="121.875"/>
</view> </view>
</objects> </objects>
<resources> <resources>
<image name="shaixuan" width="17" height="15"/>
<namedColor name="app底色"> <namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </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> </resources>
</document> </document>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment