Commit c3a2c473 authored by lujunye's avatar lujunye

应付,应收账款,采购,供应商管理,客户管理

parent 48b0f733
......@@ -41,7 +41,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
// vc.delegate = self
// let contentView = vc
let vc = XinCaiGouViewController()
let vc = YingFuZhangKuanXQViewController()
let contentView = vc
if let windowScene = sceneC as? UIWindowScene {
......
......@@ -11,6 +11,7 @@ import UIKit
@objc optional func textFieldContent(content:String,cell:TitleAndTFCell)
}
class TitleAndTFCell: UITableViewCell {
@IBOutlet weak var line: UIView!
var delegate:TitleAndTFCellDelegate?
@IBOutlet weak var textTF: UITextField!
@IBOutlet weak var nameLbl: UILabel!
......
......@@ -50,6 +50,7 @@
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="line" destination="zvz-cN-gmt" id="zWg-kq-cW7"/>
<outlet property="nameLbl" destination="6wI-Bk-Hnz" id="W9P-gn-wOa"/>
<outlet property="textTF" destination="Q6V-I9-aNd" id="Qep-Os-9qk"/>
</connections>
......
//
// OrderSuccessViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class OrderSuccessViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
listView.separatorStyle = .none
listView.register(UINib(nibName: "AdressSelectCell", bundle: nil), forCellReuseIdentifier: "AdressSelect")
// Do any additional setup after loading the view.
}
//MARK: - Cell delegate
func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 0 {
return 2
}
return 10
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// if indexPath.section == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "AdressSelect") as! AdressSelectCell
return cell
// }
}
}
//
// BtmBtnCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class BtmBtnCell: UITableViewCell {
@IBAction func btnClickAction(_ sender: UIButton) {
}
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="BtmBtnCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="108.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="108.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GA5-ph-e3Y">
<rect key="frame" x="92.5" y="20" width="90" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="48a-I5-oaq"/>
<constraint firstAttribute="height" constant="30" id="ibK-YI-9Ub"/>
</constraints>
<state key="normal" title="继续下单">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="蓝色字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="btnClickAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="Cnf-wV-WAH"/>
</connections>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="WYB-IU-5ll">
<rect key="frame" x="192.5" y="20" width="90" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="qDW-aj-1Vm"/>
<constraint firstAttribute="height" constant="30" id="z52-Lc-SpW"/>
</constraints>
<state key="normal" title="运单详情">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="蓝色字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="btnClickAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="rsj-ga-xL7"/>
</connections>
</button>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="1D3-Ie-AV7">
<rect key="frame" x="157.5" y="70" width="60" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="F12-eU-DN8"/>
<constraint firstAttribute="height" constant="30" id="iVa-BE-Mi1"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="运单列表"/>
<connections>
<action selector="btnClickAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="QuN-Z1-l7B"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstItem="WYB-IU-5ll" firstAttribute="centerY" secondItem="GA5-ph-e3Y" secondAttribute="centerY" id="Jg6-e9-YeW"/>
<constraint firstItem="GA5-ph-e3Y" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" constant="-50" id="N0Y-bY-nAP"/>
<constraint firstItem="1D3-Ie-AV7" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="NmW-rI-Uhk"/>
<constraint firstItem="GA5-ph-e3Y" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="UMH-7H-am9"/>
<constraint firstItem="1D3-Ie-AV7" firstAttribute="top" secondItem="GA5-ph-e3Y" secondAttribute="bottom" constant="20" id="b1A-RN-kGd"/>
<constraint firstItem="WYB-IU-5ll" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" constant="50" id="waK-xX-xHt"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="132" y="122"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// ChengGongCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class ChengGongCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ChengGongCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="136.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="136.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wancheng" translatesAutoresizingMaskIntoConstraints="NO" id="tTy-wn-IPH">
<rect key="frame" x="155.5" y="24" width="64" height="64"/>
<constraints>
<constraint firstAttribute="height" constant="64" id="Uki-aJ-B8b"/>
<constraint firstAttribute="width" constant="64" id="zZ7-kj-was"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h3S-fe-5u3">
<rect key="frame" x="20" y="96" width="335" height="26.5"/>
<constraints>
<constraint firstAttribute="height" constant="26.5" id="QnB-M5-dUk"/>
</constraints>
<attributedString key="attributedText">
<fragment content="下单成功">
<attributes>
<color key="NSColor" name="按钮渐变色下,字体颜色"/>
<font key="NSFont" size="19" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ToH-lo-feq">
<rect key="frame" x="0.0" y="135.5" width="375" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="R6Z-1A-8lG"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="h3S-fe-5u3" firstAttribute="top" secondItem="tTy-wn-IPH" secondAttribute="bottom" constant="8" id="Flc-0n-vOz"/>
<constraint firstItem="tTy-wn-IPH" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="IEX-WJ-QxW"/>
<constraint firstItem="ToH-lo-feq" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="OfQ-fh-X1i"/>
<constraint firstAttribute="trailing" secondItem="ToH-lo-feq" secondAttribute="trailing" id="Qil-g3-vXX"/>
<constraint firstAttribute="trailingMargin" secondItem="h3S-fe-5u3" secondAttribute="trailing" id="Uhm-e0-Hj2"/>
<constraint firstItem="h3S-fe-5u3" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" id="V4j-HX-bOq"/>
<constraint firstItem="tTy-wn-IPH" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="24" id="op7-rd-wuO"/>
<constraint firstAttribute="bottom" secondItem="ToH-lo-feq" secondAttribute="bottom" id="t1c-A5-scs"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="131.15942028985509" y="121.54017857142857"/>
</tableViewCell>
</objects>
<resources>
<image name="wancheng" width="64" height="64"/>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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>
</resources>
</document>
//
// JiBenXinXiCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class JiBenXinXiCell: UITableViewCell {
@IBOutlet weak var payStatusLbl: UILabel!
@IBOutlet weak var orderStatusLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
//
// XiaDanCGDiZhiCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class XiaDanCGDiZhiCell: UITableViewCell {
@IBOutlet weak var adrLbl: UILabel!
@IBOutlet weak var phoneLbl: UILabel!
@IBOutlet weak var namelbl: UILabel!
@IBOutlet weak var statusLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="XiaDanCGDiZhiCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="64.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="64.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rEJ-LN-YNz">
<rect key="frame" x="15" y="63.5" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="8uc-82-OFS"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LtM-kL-bvY">
<rect key="frame" x="15" y="21.5" width="22" height="22"/>
<color key="backgroundColor" name="蓝色字体颜色"/>
<constraints>
<constraint firstAttribute="height" constant="22" id="39P-EG-0tC"/>
<constraint firstAttribute="width" constant="22" id="P9S-6B-flu"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="白色背景色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="r2q-vU-NH6">
<rect key="frame" x="47" y="10" width="42" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="HM8-Xf-qiE"/>
<constraint firstAttribute="width" constant="42" id="hbk-rG-MdJ"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="15"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iSv-bJ-NyY">
<rect key="frame" x="99" y="12.5" width="42" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="dxh-7j-bGh"/>
<constraint firstAttribute="width" constant="42" id="zF6-S4-bQZ"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iRc-P8-Tpp">
<rect key="frame" x="47" y="36" width="313" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="axX-P9-4dT"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="LtM-kL-bvY" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="53J-5I-L83"/>
<constraint firstAttribute="trailing" secondItem="rEJ-LN-YNz" secondAttribute="trailing" id="7gY-Lc-sJH"/>
<constraint firstItem="iRc-P8-Tpp" firstAttribute="top" secondItem="r2q-vU-NH6" secondAttribute="bottom" constant="5" id="Cpj-vz-7Li"/>
<constraint firstAttribute="trailing" secondItem="iRc-P8-Tpp" secondAttribute="trailing" constant="15" id="EtC-Al-wEo"/>
<constraint firstItem="r2q-vU-NH6" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="10" id="F9a-ys-axx"/>
<constraint firstItem="iSv-bJ-NyY" firstAttribute="bottom" secondItem="r2q-vU-NH6" secondAttribute="bottom" id="MNo-vf-zjk"/>
<constraint firstItem="r2q-vU-NH6" firstAttribute="leading" secondItem="LtM-kL-bvY" secondAttribute="trailing" constant="10" id="cPg-H5-5rJ"/>
<constraint firstItem="LtM-kL-bvY" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="cZs-1k-CCo"/>
<constraint firstAttribute="bottom" secondItem="rEJ-LN-YNz" secondAttribute="bottom" id="pkd-00-6sA"/>
<constraint firstItem="rEJ-LN-YNz" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="t0f-1o-QAH"/>
<constraint firstItem="iSv-bJ-NyY" firstAttribute="leading" secondItem="r2q-vU-NH6" secondAttribute="trailing" constant="10" id="wK3-le-72G"/>
<constraint firstItem="iRc-P8-Tpp" firstAttribute="leading" secondItem="r2q-vU-NH6" secondAttribute="leading" id="xqW-hO-tlX"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="adrLbl" destination="iRc-P8-Tpp" id="sam-X3-5k0"/>
<outlet property="namelbl" destination="r2q-vU-NH6" id="oHu-Vd-MPG"/>
<outlet property="phoneLbl" destination="iSv-bJ-NyY" id="akE-IR-s6w"/>
<outlet property="statusLbl" destination="LtM-kL-bvY" id="fZq-w3-Dpb"/>
</connections>
<point key="canvasLocation" x="132" y="122"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" 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="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// XiaDanChengGongViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class XiaDanChengGongViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "成功下单"
self.view.addSubview(navbar)
SetTopFrame(view: listView, height: fullScreenHeight - NavCGRect.height)
listView.separatorStyle = .none
listView.register(UINib(nibName: "ChengGongCell", bundle: nil), forCellReuseIdentifier: "ChengGongCell")
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
listView.register(UINib(nibName: "XiaDanCGDiZhiCell", bundle: nil), forCellReuseIdentifier: "XiaDanCGDiZhiCell")
listView.register(UINib(nibName: "JiBenXinXiCell", bundle: nil), forCellReuseIdentifier: "JiBenXinXiCell")
listView.register(UINib(nibName: "BtmBtnCell", bundle: nil), forCellReuseIdentifier: "BtmBtnCell")
}
//MARK: - CELL DELEGATE
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
switch section {
case 0,1:return 0.001
default:
return 36
}
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
switch section {
case 0,1:return UIView()
default:
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 36))
view.backgroundColor = UIColor.white
let lbl = UILabel()
lbl.text = "货物信息"
lbl.textColor = UIColor(named: "标题字颜色")
lbl.font = UIFont.boldSystemFont(ofSize: 15)
view.addSubview(lbl)
lbl.snp.makeConstraints { (make) in
make.top.left.right.equalTo(15)
make.height.equalTo(21)
}
return view
}
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView()
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 10
}
func numberOfSections(in tableView: UITableView) -> Int {
return 3
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
switch section {
case 0:return 3
case 1:return 5
default:return 10
}
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
switch indexPath.section {
case 0:
if indexPath.row == 0 {
return 136.5
}
return 64.5
case 1:
if indexPath.row == 0 {
return 84.5
}
return 30
default:
if indexPath.row == 9 {
return 108.5
}
return 30
}
}
let p2Arr = ["关联平台:","关联订单号:","运费:","运费支付方式:"]
let p3Arr = ["寄托物:","总重量:","总件数:","体积:","温控范围:","寄件方式:","派件方式:","保价(元人民币):","备注:","0"]
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.section {
case 0:
if indexPath.row == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "ChengGongCell") as! ChengGongCell
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "XiaDanCGDiZhiCell") as! XiaDanCGDiZhiCell
cell.statusLbl.text = "寄"
if indexPath.row == 2 {
cell.statusLbl.backgroundColor = UIColor(named: "企业、预售字体")
cell.statusLbl.text = "收"
}
return cell
case 1:
if indexPath.row == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "JiBenXinXiCell") as! JiBenXinXiCell
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.nameLbl.text = p2Arr[indexPath.row-1]
cell.textTF.text = p2Arr[indexPath.row-1]
cell.textTF.isUserInteractionEnabled = false
cell.line.isHidden = true
return cell
default:
if indexPath.row == 9 {
let cell = tableView.dequeueReusableCell(withIdentifier: "BtmBtnCell") as! BtmBtnCell
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
cell.line.isHidden = true
cell.nameLbl.text = p3Arr[indexPath.row]
cell.textTF.text = p3Arr[indexPath.row]
return cell
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="XiaDanChengGongViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="listView" destination="Hgm-Vh-hNf" id="Z1n-x4-dVj"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Hgm-Vh-hNf">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="rzX-2f-zbF"/>
<outlet property="delegate" destination="-1" id="mZw-3J-wAZ"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Hgm-Vh-hNf" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="7aW-gP-0bc"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Hgm-Vh-hNf" secondAttribute="trailing" id="HOi-nb-SGs"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="Hgm-Vh-hNf" secondAttribute="bottom" id="WpD-AP-y4B"/>
<constraint firstItem="Hgm-Vh-hNf" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="xXC-iA-voE"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="152"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -532,7 +532,7 @@
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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"/>
......
......@@ -160,7 +160,7 @@
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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"/>
......
//
// YunDanXiangQingViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class YunDanXiangQingViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource{
@IBOutlet weak var listView: UITableView!
@IBOutlet weak var btmView: UIView!
let btnTitleArr = ["1","2","3"]
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "运单详情"
self.view.addSubview(navbar)
listView.separatorStyle = .none
SetTopFrameView(view: listView, btmView: btmView)
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
listView.register(UINib(nibName: "XiaDanCGDiZhiCell", bundle: nil), forCellReuseIdentifier: "XiaDanCGDiZhiCell")
listView.register(UINib(nibName: "JiBenXinXiCell", bundle: nil), forCellReuseIdentifier: "JiBenXinXiCell")
for i in 0 ..< btnTitleArr.count {
let btn = UIButton()
let idx = btnTitleArr.count-i-1
btn.tag = idx
btn.setTitle(btnTitleArr[idx], for: .normal)
btn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
btn.setTitleColor(UIColor(named: "蓝色字体颜色"), for: .normal)
btn.layer.cornerRadius = 15
btn.layer.masksToBounds = true
btn.layer.borderColor = UIColor(named: "蓝色字体颜色")?.cgColor
btn.layer.borderWidth = 1
if btn.tag == 0 {
btn.backgroundColor = UIColor(named: "蓝色字体颜色")
btn.setTitleColor(UIColor.white, for: .normal)
}
btn.addTarget(self, action: #selector(btnClick(sender:)), for: .touchUpInside)
btmView.addSubview(btn)
let x = -i * 105 - 15
btn.snp.makeConstraints { (make) in
make.width.equalTo(90)
make.height.equalTo(30)
make.top.equalTo(9.5)
make.right.equalTo(x)
}
}
}
@objc func btnClick(sender:UIButton){
print(sender.tag)
}
//MARK: - CELL DELEGATE
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
switch section {
case 0:return 0.001
default:
return 36
}
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
switch section {
case 0:return UIView()
default:
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 36))
view.backgroundColor = UIColor.white
let lbl = UILabel()
lbl.text = "货物信息"
lbl.textColor = UIColor(named: "标题字颜色")
lbl.font = UIFont.boldSystemFont(ofSize: 15)
view.addSubview(lbl)
lbl.snp.makeConstraints { (make) in
make.top.left.right.equalTo(15)
make.height.equalTo(21)
}
return view
}
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView()
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 10
}
func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 0 {
return 7
}
return 9
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section == 0 {
switch indexPath.row {
case 0:
return 84.5
case 1,2:
return 64.5
default:
return 30
}
}
return 30
}
let p2Arr = ["0","0","0","关联平台:","关联订单号:","运费:","运费支付方式:"]
let p3Arr = ["寄托物:","总重量:","总件数:","体积:","温控范围:","寄件方式:","派件方式:","保价(元人民币):","备注:"]
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section == 0 {
switch indexPath.row {
case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: "JiBenXinXiCell") as! JiBenXinXiCell
return cell
case 1,2:
let cell = tableView.dequeueReusableCell(withIdentifier: "XiaDanCGDiZhiCell") as! XiaDanCGDiZhiCell
cell.statusLbl.text = "寄"
if indexPath.row == 2 {
cell.statusLbl.backgroundColor = UIColor(named: "企业、预售字体")
cell.statusLbl.text = "收"
}
return cell
default:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.nameLbl.text = p2Arr[indexPath.row]
cell.textTF.text = p2Arr[indexPath.row]
cell.textTF.isUserInteractionEnabled = false
cell.line.isHidden = true
return cell
}
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.nameLbl.text = p3Arr[indexPath.row]
cell.textTF.text = p3Arr[indexPath.row]
cell.textTF.isUserInteractionEnabled = false
cell.line.isHidden = true
return cell
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YunDanXiangQingViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="btmView" destination="aKi-sa-aRb" id="QKe-z7-dzE"/>
<outlet property="listView" destination="QVe-VE-lfz" id="slI-bE-Qhf"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QpR-nl-408">
<rect key="frame" x="0.0" y="812" width="414" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="mI0-Ab-wcx"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aKi-sa-aRb">
<rect key="frame" x="0.0" y="812" width="414" height="84"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8z7-ME-rA7">
<rect key="frame" x="0.0" y="0.0" width="414" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="xIJ-po-nEW"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="8z7-ME-rA7" firstAttribute="top" secondItem="aKi-sa-aRb" secondAttribute="top" id="7an-UI-4tc"/>
<constraint firstAttribute="trailing" secondItem="8z7-ME-rA7" secondAttribute="trailing" id="Jjh-1W-ek2"/>
<constraint firstItem="8z7-ME-rA7" firstAttribute="leading" secondItem="aKi-sa-aRb" secondAttribute="leading" id="gVO-DO-mNZ"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="QVe-VE-lfz">
<rect key="frame" x="0.0" y="44" width="414" height="768"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="POq-kc-q3K"/>
<outlet property="delegate" destination="-1" id="ueD-Lj-RMF"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="QVe-VE-lfz" secondAttribute="trailing" id="46V-1F-NWH"/>
<constraint firstItem="QpR-nl-408" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="5Fc-jb-0jg"/>
<constraint firstItem="aKi-sa-aRb" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="AdQ-rE-gtU"/>
<constraint firstItem="QVe-VE-lfz" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="F3p-wz-M0E"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="QpR-nl-408" secondAttribute="trailing" id="JIv-N0-ThV"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="aKi-sa-aRb" secondAttribute="trailing" id="K4c-bx-KBT"/>
<constraint firstItem="aKi-sa-aRb" firstAttribute="top" secondItem="QpR-nl-408" secondAttribute="top" id="MpL-Rg-1qH"/>
<constraint firstItem="QpR-nl-408" firstAttribute="top" secondItem="QVe-VE-lfz" secondAttribute="bottom" id="OGt-a2-sui"/>
<constraint firstItem="QVe-VE-lfz" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Qsa-mM-qMA"/>
<constraint firstAttribute="bottom" secondItem="aKi-sa-aRb" secondAttribute="bottom" id="RHQ-yY-CKq"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="QpR-nl-408" secondAttribute="bottom" constant="49" id="fH8-qM-kId"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="121.875"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" 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>
</resources>
</document>
......@@ -12,6 +12,12 @@ class GYSGLCell: UITableViewCell {
@IBAction func btnClickAction(_ sender: Any) {
}
@IBOutlet weak var selectTypeBtn: UIButton!
@IBOutlet weak var selectTypeView: UIView!
@IBAction func selectAction(_ sender: Any) {
selectTypeBtn.isSelected = !selectTypeBtn.isSelected
}
@IBOutlet weak var Lbl3: UILabel!
@IBOutlet weak var Lbl2: UILabel!
@IBOutlet weak var Lbl1: UILabel!
......
......@@ -76,9 +76,39 @@
<constraint firstAttribute="width" constant="50" id="Xmo-fD-fPw"/>
</constraints>
<connections>
<action selector="btnClickAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="6Yb-io-6Fd"/>
<action selector="btnClickAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="Fag-OG-40g"/>
</connections>
</button>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yTm-Gk-jr3">
<rect key="frame" x="315" y="0.0" width="60" height="100"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="q1A-kf-Vam">
<rect key="frame" x="25" y="40" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="AeE-UX-Ikx"/>
<constraint firstAttribute="width" constant="20" id="Brp-ot-2Vd"/>
</constraints>
<state key="normal" image="daixuan"/>
<state key="selected" image="yuxuan"/>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Hl5-nJ-ltZ">
<rect key="frame" x="0.0" y="0.0" width="60" height="100"/>
<connections>
<action selector="selectAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="gos-H7-iRU"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="q1A-kf-Vam" secondAttribute="trailing" constant="15" id="7rf-NV-2qJ"/>
<constraint firstItem="Hl5-nJ-ltZ" firstAttribute="leading" secondItem="yTm-Gk-jr3" secondAttribute="leading" id="JZ8-4t-68d"/>
<constraint firstItem="q1A-kf-Vam" firstAttribute="centerY" secondItem="yTm-Gk-jr3" secondAttribute="centerY" id="Lfn-Bw-qKb"/>
<constraint firstAttribute="trailing" secondItem="Hl5-nJ-ltZ" secondAttribute="trailing" id="WTh-w4-hQk"/>
<constraint firstAttribute="width" constant="60" id="XEz-wR-bpA"/>
<constraint firstAttribute="bottom" secondItem="Hl5-nJ-ltZ" secondAttribute="bottom" id="cYf-p4-glJ"/>
<constraint firstItem="Hl5-nJ-ltZ" firstAttribute="top" secondItem="yTm-Gk-jr3" secondAttribute="top" id="lWD-4j-dMX"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="W6d-cJ-9O2" firstAttribute="top" secondItem="aA4-ew-uVO" secondAttribute="bottom" constant="10" id="4ja-aV-p8o"/>
......@@ -88,6 +118,7 @@
<constraint firstItem="obp-L0-Hyo" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="IcD-zd-GwU"/>
<constraint firstAttribute="trailingMargin" secondItem="gCZ-v5-18O" secondAttribute="trailing" constant="15" id="KmV-2J-Ktk"/>
<constraint firstItem="Q4n-jx-b2i" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Nl0-Ry-QSS"/>
<constraint firstAttribute="trailing" secondItem="yTm-Gk-jr3" secondAttribute="trailing" id="QBt-hh-KdV"/>
<constraint firstAttribute="trailing" secondItem="aA4-ew-uVO" secondAttribute="trailing" constant="15" id="TVN-TY-K04"/>
<constraint firstItem="aA4-ew-uVO" firstAttribute="top" secondItem="obp-L0-Hyo" secondAttribute="top" id="V6H-bP-wZa"/>
<constraint firstItem="aA4-ew-uVO" firstAttribute="leading" secondItem="obp-L0-Hyo" secondAttribute="trailing" constant="10" id="ZN0-cm-6VW"/>
......@@ -98,6 +129,8 @@
<constraint firstItem="obp-L0-Hyo" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="hPq-wZ-Zs7"/>
<constraint firstItem="W6d-cJ-9O2" firstAttribute="leading" secondItem="obp-L0-Hyo" secondAttribute="trailing" constant="10" id="hbe-0C-ipP"/>
<constraint firstAttribute="trailing" secondItem="W6d-cJ-9O2" secondAttribute="trailing" constant="15" id="hrs-VD-yxZ"/>
<constraint firstItem="yTm-Gk-jr3" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="oYu-bO-2AH"/>
<constraint firstAttribute="bottom" secondItem="yTm-Gk-jr3" secondAttribute="bottom" id="tsf-sQ-CMj"/>
<constraint firstItem="gCZ-v5-18O" firstAttribute="leading" secondItem="obp-L0-Hyo" secondAttribute="trailing" constant="10" id="vJb-Xu-Cf6"/>
<constraint firstAttribute="bottom" secondItem="PwA-w2-l4g" secondAttribute="bottom" id="xUg-Hr-ZwM"/>
</constraints>
......@@ -108,13 +141,17 @@
<outlet property="Lbl2" destination="W6d-cJ-9O2" id="qdE-gt-On2"/>
<outlet property="Lbl3" destination="gCZ-v5-18O" id="qvG-eJ-vzh"/>
<outlet property="iconImg" destination="obp-L0-Hyo" id="VNJ-Cu-Zux"/>
<outlet property="selectTypeBtn" destination="q1A-kf-Vam" id="W8O-iC-w6u"/>
<outlet property="selectTypeView" destination="yTm-Gk-jr3" id="Ugs-4D-dI3"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="121.875"/>
</tableViewCell>
</objects>
<resources>
<image name="daixuan" width="19" height="19"/>
<image name="jinruDetail" width="4.5" height="9"/>
<image name="moren" width="70" height="70"/>
<image name="yuxuan" width="19" height="19"/>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......@@ -578,14 +578,14 @@
</userDefinedRuntimeAttributes>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Z2W-C4-bTR">
<rect key="frame" x="46" y="92.5" width="14" height="26"/>
<rect key="frame" x="32" y="79.5" width="28" height="52"/>
<state key="normal" image="idCard1"/>
<connections>
<action selector="previousAction:" destination="-1" eventType="touchUpInside" id="dyV-e4-TCQ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="iyE-E4-Dko">
<rect key="frame" x="315" y="92.5" width="14" height="26"/>
<rect key="frame" x="315" y="79.5" width="28" height="52"/>
<state key="normal" image="idCard2"/>
<connections>
<action selector="nextAction:" destination="-1" eventType="touchUpInside" id="RFo-kU-6z8"/>
......
//
// YingFuZhangKuanCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class YingFuZhangKuanCell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="YingFuZhangKuanCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="kehu" translatesAutoresizingMaskIntoConstraints="NO" id="Yux-Cx-8zT">
<rect key="frame" x="15" y="15.5" width="17" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="5y6-cQ-G2k"/>
<constraint firstAttribute="width" constant="17" id="cL1-xt-fPC"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="后台管理_app" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MMT-eN-xhE">
<rect key="frame" x="37" y="0.0" width="323" height="49"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jinru" translatesAutoresizingMaskIntoConstraints="NO" id="dda-Kn-9Tp">
<rect key="frame" x="355" y="20" width="5" height="9"/>
<constraints>
<constraint firstAttribute="height" constant="9" id="81d-wV-JvD"/>
<constraint firstAttribute="width" constant="5" id="Shn-OB-dCF"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-¥12005" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LNJ-Lj-fmP">
<rect key="frame" x="47" y="0.0" width="303" height="49"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="#F57575"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="MMT-eN-xhE" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="5G2-a8-mnX"/>
<constraint firstItem="dda-Kn-9Tp" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="5pB-IV-owe"/>
<constraint firstItem="Yux-Cx-8zT" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="IVR-Fp-nNS"/>
<constraint firstItem="dda-Kn-9Tp" firstAttribute="leading" secondItem="LNJ-Lj-fmP" secondAttribute="trailing" constant="5" id="LgD-KM-cyp"/>
<constraint firstAttribute="bottom" secondItem="LNJ-Lj-fmP" secondAttribute="bottom" id="RUp-dg-q0I"/>
<constraint firstItem="Yux-Cx-8zT" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Uhi-cZ-ilG"/>
<constraint firstItem="MMT-eN-xhE" firstAttribute="leading" secondItem="Yux-Cx-8zT" secondAttribute="trailing" constant="5" id="hni-5r-VUK"/>
<constraint firstAttribute="trailing" secondItem="dda-Kn-9Tp" secondAttribute="trailing" constant="15" id="meL-Za-SWk"/>
<constraint firstItem="LNJ-Lj-fmP" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="puj-8R-Pnv"/>
<constraint firstAttribute="trailing" secondItem="MMT-eN-xhE" secondAttribute="trailing" constant="15" id="sQy-lK-lPG"/>
<constraint firstAttribute="bottom" secondItem="MMT-eN-xhE" secondAttribute="bottom" id="u5Q-LP-hBO"/>
<constraint firstItem="LNJ-Lj-fmP" firstAttribute="leading" secondItem="Yux-Cx-8zT" secondAttribute="trailing" constant="15" id="zyX-u4-lu2"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="132" y="122"/>
</tableViewCell>
</objects>
<resources>
<image name="jinru" width="13" height="23"/>
<image name="kehu" width="17" height="18.5"/>
<namedColor name="#F57575">
<color red="0.96100002527236938" green="0.45899999141693115" blue="0.45899999141693115" 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>
</resources>
</document>
//
// YingFuZhangKuanViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class YingFuZhangKuanViewController: BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource {
var searchV : SearchBarView? = nil
@IBOutlet weak var searchBgView: UIView!
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "应付账款"
self.view.addSubview(navbar)
//searchbar
let searchBr = SearchBarView.init()
self.searchBgView.addSubview(searchBr)
searchBr.snp.makeConstraints { (make) in
make.left.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(35)
}
searchV = searchBr
searchBr.placeholderStr = "请输入客户名称"
searchBr.cornerRadius = 35/2.0
searchBr.delegate = self
searchBr.delegateL = self
SetTopFrame(view: searchBgView, height: 44)
listView.separatorStyle = .none
listView.register(UINib(nibName: "YingFuZhangKuanCell", bundle: nil), forCellReuseIdentifier: "YingFuZhangKuanCell")
// Do any additional setup after loading the view.
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
view.backgroundColor = UIColor.white
let title = UILabel()
title.text = "当前应付款余额总计:"
title.font = UIFont.boldSystemFont(ofSize: 13)
title.textColor = UIColor(named: "灰色字体颜色")
view.addSubview(title)
title.sizeToFit()
title.snp.makeConstraints { (make) in
make.left.equalTo(15)
make.top.bottom.equalTo(0)
make.width.equalTo(title.bounds.size.width)
}
let ti1 = UILabel()
ti1.text = "¥-594153"
ti1.font = UIFont.boldSystemFont(ofSize: 13)
ti1.textColor = UIColor(named: "#F57575")
view.addSubview(ti1)
ti1.snp.makeConstraints { (make) in
make.left.equalTo(title.snp_right)
make.top.right.bottom.equalTo(0)
}
let l1 = UIView()
l1.backgroundColor = UIColor(named: "灰色分界线")
view.addSubview(l1)
l1.snp.makeConstraints { (make) in
make.height.equalTo(1)
make.top.right.left.equalTo(0)
}
let l11 = UIView()
l11.backgroundColor = UIColor(named: "灰色分界线")
view.addSubview(l11)
l11.snp.makeConstraints { (make) in
make.height.equalTo(1)
make.bottom.right.left.equalTo(0)
}
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 49
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 10
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "YingFuZhangKuanCell") as! YingFuZhangKuanCell
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 49
}
func clearSearchAction() {
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YingFuZhangKuanViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="listView" destination="e48-X0-feC" id="Jpc-0I-r4J"/>
<outlet property="searchBgView" destination="4rg-BF-ud7" id="bK5-m1-G34"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4rg-BF-ud7">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="pRR-hl-89Q"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="e48-X0-feC">
<rect key="frame" x="0.0" y="88" width="414" height="774"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="Wir-12-2ul"/>
<outlet property="delegate" destination="-1" id="XGW-BV-gPf"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="4rg-BF-ud7" secondAttribute="trailing" id="3Pl-H0-jBI"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="e48-X0-feC" secondAttribute="bottom" id="7Ox-tP-iaa"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="e48-X0-feC" secondAttribute="trailing" id="Ksc-2F-dTk"/>
<constraint firstItem="e48-X0-feC" firstAttribute="top" secondItem="4rg-BF-ud7" secondAttribute="bottom" id="LV4-cd-CJd"/>
<constraint firstItem="4rg-BF-ud7" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="hze-mb-f8Z"/>
<constraint firstItem="4rg-BF-ud7" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="iZc-60-Uut"/>
<constraint firstItem="e48-X0-feC" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="ooV-6b-IXy"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="122"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// YingFuZhangKuanXQCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class YingFuZhangKuanXQCell: UITableViewCell {
@IBAction func submitAction(_ sender: Any) {
}
@IBOutlet weak var p3Title: UILabel!
@IBOutlet weak var p2Title: UILabel!
@IBOutlet weak var p1Title: UILabel!
@IBOutlet weak var submitBtn: UIButton!
@IBOutlet weak var priceLbl3: UILabel!
@IBOutlet weak var priceLbl2: UILabel!
@IBOutlet weak var priceLbl1: UILabel!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var dateLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
//
// YingFuZhangKuanXQViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/30.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class YingFuZhangKuanXQViewController:BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource {
var navTitle:String = "应付账款详情"
var searchV : SearchBarView? = nil
@IBOutlet weak var listView: UITableView!
@IBOutlet weak var searchBGView: UIView!
override func viewDidLoad() {
super.viewDidLoad()
super.viewDidLoad()
navbar.title = navTitle
self.view.addSubview(navbar)
//searchbar
let searchBr = SearchBarView.init()
self.searchBGView.addSubview(searchBr)
searchBr.snp.makeConstraints { (make) in
make.left.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(35)
}
searchV = searchBr
searchBr.placeholderStr = "请输入客户名称"
searchBr.cornerRadius = 35/2.0
searchBr.delegate = self
searchBr.delegateL = self
SetTopFrame(view: searchBGView, height: 44)
listView.separatorStyle = .none
listView.register(UINib(nibName: "YingFuZhangKuanXQCell", bundle: nil), forCellReuseIdentifier: "YingFuZhangKuanXQCell")
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 77))
view.backgroundColor = UIColor.white
let title = UILabel()
title.text = "当前应付款余额总计:"
title.font = UIFont.boldSystemFont(ofSize: 13)
title.textColor = UIColor(named: "灰色字体颜色")
view.addSubview(title)
title.sizeToFit()
title.snp.makeConstraints { (make) in
make.top.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(title.bounds.size.width)
}
let ti1 = UILabel()
ti1.text = "¥-594153"
ti1.font = UIFont.boldSystemFont(ofSize: 13)
ti1.textColor = UIColor(named: "#F57575")
view.addSubview(ti1)
ti1.snp.makeConstraints { (make) in
make.left.equalTo(title.snp_right)
make.right.equalTo(0)
make.centerY.equalTo(title.snp_centerY)
make.height.equalTo(18.5)
}
let title2 = UILabel()
title2.font = UIFont.boldSystemFont(ofSize: 13)
title2.text = "已付应付账款:"
title2.textColor = UIColor(named: "灰色字体颜色")
view.addSubview(title2)
title2.sizeToFit()
title2.snp.makeConstraints { (make) in
make.top.equalTo(title.snp_bottom).offset(10)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(title2.bounds.size.width)
}
let ti11 = UILabel()
ti11.text = "¥-594153"
ti11.font = UIFont.boldSystemFont(ofSize: 13)
ti11.textColor = UIColor(named: "#F57575")
view.addSubview(ti11)
ti11.snp.makeConstraints { (make) in
make.left.equalTo(title2.snp_right)
make.right.equalTo(0)
make.centerY.equalTo(title2.snp_centerY)
make.height.equalTo(18.5)
}
if navTitle.contains("应收"){
title.text = "当前应收款余额总计:"
title2.text = "本期借方余额:"
let title3 = UILabel()
title3.font = UIFont.boldSystemFont(ofSize: 13)
title3.text = "本期贷方余额:"
title3.textColor = UIColor(named: "灰色字体颜色")
view.addSubview(title3)
title3.sizeToFit()
title3.snp.makeConstraints { (make) in
make.top.equalTo(title2.snp_bottom).offset(10)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(title3.bounds.size.width)
}
let ti111 = UILabel()
ti111.text = "¥-594153"
ti111.font = UIFont.boldSystemFont(ofSize: 13)
ti111.textColor = UIColor(named: "#F57575")
view.addSubview(ti111)
ti111.snp.makeConstraints { (make) in
make.left.equalTo(title3.snp_right)
make.right.equalTo(0)
make.centerY.equalTo(title3.snp_centerY)
make.height.equalTo(18.5)
}
}
let l1 = UIView()
l1.backgroundColor = UIColor(named: "灰色分界线")
view.addSubview(l1)
l1.snp.makeConstraints { (make) in
make.height.equalTo(1)
make.top.right.left.equalTo(0)
}
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if navTitle.contains("应付"){
return 77
}
return 105.5
}
func clearSearchAction() {
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 2
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 210
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "YingFuZhangKuanXQCell") as! YingFuZhangKuanXQCell
if navTitle.contains("应付"){
if indexPath.row == 0 {
cell.submitBtn.backgroundColor = UIColor(named: "按钮渐变色下,字体颜色")
cell.submitBtn.setTitle("付款", for: .normal)
cell.submitBtn.setTitleColor(UIColor.white, for: .normal)
cell.submitBtn.layer.borderWidth = 0
}
}else{
cell.p1Title.text = "借方金额"
cell.p2Title.text = "贷方金额"
cell.p3Title.text = "已额"
cell.submitBtn.setTitle("未收", for: .normal)
if indexPath.row == 0 {
cell.submitBtn.backgroundColor = UIColor(named: "按钮渐变色下,字体颜色")
cell.submitBtn.setTitle("收款", for: .normal)
cell.submitBtn.setTitleColor(UIColor.white, for: .normal)
cell.submitBtn.layer.borderWidth = 0
}
}
return cell
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YingFuZhangKuanXQViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="listView" destination="7VX-Hn-lfa" id="MWv-pp-tI2"/>
<outlet property="searchBGView" destination="fQf-mJ-t0V" id="Flu-qf-wdv"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fQf-mJ-t0V">
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="NKC-DQ-7NV"/>
</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">
<rect key="frame" x="0.0" y="88" width="414" height="774"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="1aV-J5-RSt"/>
<outlet property="delegate" destination="-1" id="zHH-kE-AK4"/>
</connections>
</tableView>
</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="7VX-Hn-lfa" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="C7e-vT-gsO"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="7VX-Hn-lfa" secondAttribute="trailing" id="I5T-Hi-Vzl"/>
<constraint firstItem="fQf-mJ-t0V" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="icu-mW-FZt"/>
<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="132" y="122"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -28,7 +28,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oFn-kE-fo4">
<rect key="frame" x="320" y="11.5" width="55" height="22"/>
<rect key="frame" x="320" y="7.5" width="55" height="30"/>
<state key="normal" image="shaixuan"/>
<connections>
<action selector="SelectOtherAction:" destination="-1" eventType="touchUpInside" id="Q40-3H-hF7"/>
......
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