Commit 36597ff9 authored by lujunye's avatar lujunye

界面完成一半

parent 183582f9
Pipeline #10 failed with stages
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "baogao.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "baogao@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "baogao@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "矩形.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "矩形@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "矩形@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "riqi.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "riqi@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "riqi@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "shangla.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "shangla@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "shangla@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "xiala.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "xiala@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "xiala@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -66,6 +66,9 @@ func SetTopFrame(view:UIView,height:CGFloat){
make.height.equalTo(height)
}
}
func timeStampToString(timeStamp: Double, outputFormatter: String)->String {
//时间戳为毫秒级要/1000 (13位数), 秒就不用除1000(10位数),参数带没带000
let timeString = String.init(format: "%d", timeStamp)
......
......@@ -428,5 +428,9 @@
<string>Customer/deleteCusAdd</string>
<key>特殊客户地址查询</key>
<string>Customer/getAddrsInfoCaddr</string>
<key>商品单位列表接口</key>
<string>goods_unit/getUnitList</string>
<key>添加商品单位接口</key>
<string>goods_unit/addUnit</string>
</dict>
</plist>
......@@ -8,7 +8,7 @@
import Foundation
import ObjectMapper
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,取消订单审核,确认收到退货,审核同意退货或退款,订单确认收货,取消运单,支付运费,选定地址添加收发货历史,取消货拉拉订单,货拉拉二次支付,货拉拉格利支付,发票消息短信通知,修改电子发票链接地址,分销分账设置,供应商新增店铺,标记已人工结算,铺货与取消铺货,终止合作,分销商品管理,分销商新增供应商,审核操作(通过和不通过),删除客户,新增分销员,删除分销员,修改不二制油订单打印,店长审核通过、审核通过待补齐资料、不通过,保存店长审核信息(商家信息),拼拼货取消订单,供应商新增代理商(批量和单个新增代理商),终止与代理商合作,给代理商设置分销商品,商品上下架,供应商取消商品分销,上下架(设置分销商品给分销商),代理商终止与供应商合作,代理商的铺货或分销设置,取消分销,代理商设置分销商品上下架商品,代理商终止合作,分销商新增代理商,删除下游店长,新增店铺,上下架,上游商品上下架,上游取消分销,设置商品参与分销,修改客户收货地址,删除客户地址,
//发送验证码,验证短信验证码,修改登录密码,绑定、更换绑定格利支付账号,简单通用操作接口,普通订单发货,预售订单发货,订单绑定/更换绑定客户,确认订单,订单取消,修改订单商品价格,订单退款,普通订单退货,预售订单退货,修改订单支付方式(状态),商家仓库添加,商家仓库修改,商家仓库删除,提交下单,商品入库申请,商品出库,商品申请出库,商品审核出库,出库入库审核不通过,编辑地址,删除地址,新增采购单,审核采购单,撤销入库,采购单修改支付状态,供应商编辑,新增供应商,编辑客户,新增客户,应收账款收款,设为未收,取消采购单,修改采购订单,新增品牌,拒绝退款,确认用户退款到账,拒绝接单,审核同意退货退款,取消订单审核,确认收到退货,审核同意退货或退款,订单确认收货,取消运单,支付运费,选定地址添加收发货历史,取消货拉拉订单,货拉拉二次支付,货拉拉格利支付,发票消息短信通知,修改电子发票链接地址,分销分账设置,供应商新增店铺,标记已人工结算,铺货与取消铺货,终止合作,分销商品管理,分销商新增供应商,审核操作(通过和不通过),删除客户,新增分销员,删除分销员,修改不二制油订单打印,店长审核通过、审核通过待补齐资料、不通过,保存店长审核信息(商家信息),拼拼货取消订单,供应商新增代理商(批量和单个新增代理商),终止与代理商合作,给代理商设置分销商品,商品上下架,供应商取消商品分销,上下架(设置分销商品给分销商),代理商终止与供应商合作,代理商的铺货或分销设置,取消分销,代理商设置分销商品上下架商品,代理商终止合作,分销商新增代理商,删除下游店长,新增店铺,上下架,上游商品上下架,上游取消分销,设置商品参与分销,修改客户收货地址,删除客户地址,添加商品单位接口,
class UpDataModel: Mappable {
......
//
// goods_unit_inferface.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/4.
// Copyright © 2021 junye lu. All rights reserved.
//
import Foundation
import Alamofire
import SwiftyJSON
import ObjectMapper
//MARK:--商品单位列表接口
/*
user_token : 验证token
page : 分页查询(默认第一页)
*/
func getUnitList(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:@escaping(_ error:Error)->()) {
NetworkRequest.sharedInstance.postRequest("商品单位列表接口", params, { (rep:DataResponse<getUnitList_model>) in
}, success: { (data) in
success(data)
}) { (error) in
failture(error)
}
}
//MARK:--添加商品单位接口
/*
user_token : 验证token
unit :商品单位名称
*/
func addUnit(_ params:[String:Any],success:@escaping (_ res:Any)->(),failture:@escaping(_ error:Error)->()) {
NetworkRequest.sharedInstance.postRequest("添加商品单位接口", params, { (rep:DataResponse<UpDataModel>) in
}, success: { (data) in
success(data)
}) { (error) in
failture(error)
}
}
//
// goods_unit_model.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/4.
// Copyright © 2021 junye lu. All rights reserved.
//
import Foundation
import ObjectMapper
//MARK: - 商品单位列表接口
class getUnitList_model: Mappable {
var code:Int?
var message : String?
var data :Array<getUnitList_data_model>?
required init?( map: Map) {
}
func mapping(map: Map) {
code <- map["code"]
message <- map["message"]
data <- map["data"]
}
}
class getUnitList_data_model: Mappable {
var id:Int?
var unit : String?
var is_show :Int?
required init?( map: Map) {
}
func mapping(map: Map) {
id <- map["id"]
unit <- map["unit"]
is_show <- map["is_show"]
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<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="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<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"/>
......
......@@ -26,8 +26,9 @@
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="252" verticalHuggingPriority="251" text="标题:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6wI-Bk-Hnz">
<rect key="frame" x="15" y="17" width="40" height="16"/>
<rect key="frame" x="15" y="0.5" width="40" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="5zD-B5-Sfl"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="40" id="L8l-dk-MgC"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
......
......@@ -16,22 +16,25 @@ class FXSZ_View: UIView {
delegate?.FXSZ_View_submitAction(tag: self.tag, price: FX_Price_Tf.text!, commission: commission_tf.text!,view:self)
self.close_alt_action(UIButton())
}
@IBOutlet weak var commission_tf: UITextField!
@IBOutlet weak var FX_Price_Tf: UITextField!
@IBAction func close_alt_action(_ sender: Any) {
self.removeFromSuperview()
}
var contentView:UIView!
var is_all_select_mode = false
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
......
......@@ -56,13 +56,10 @@ class New_Fx_Cell: UITableViewCell {
btn2.tag = 1
btn3.tag = 2
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
......@@ -82,9 +82,7 @@ class SY_DLS_GL_VC: BaseViewController, UISearchBarDelegate, SearchBarViewDelega
}
var gys_centers:Array<getAllAge_data_model> = []
func rightBtnClick() {
print("新增代理商")
func rightBtnClick() {
getAllAge(["user_token":UserToken as Any]) { (data) in
let model = data as! getAllAge_model
model.data?.forEach({ (item) in
......
//
// ZYSR_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/2.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class ZYSR_Cell: 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
}
}
This diff is collapsed.
//
// QT_FY_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/3.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class QT_FY_Cell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
//
// QT_FY_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/3.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class QT_FY_ViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "QT_FY_Cell") as! QT_FY_Cell
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if title_str == "其他收入" {
return 240
}
return 270
}
@IBOutlet weak var list_view: UITableView!
@IBOutlet weak var top_btn_view: UIView!
var title_str = "其他收入"
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = title_str
SetTopFrame(view: top_btn_view, height: 44)
self.view.addSubview(navbar)
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "QT_FY_Cell", bundle: nil), forCellReuseIdentifier: "QT_FY_Cell")
}
}
//
// DWLB_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/4.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class DWLB_ViewController: BaseViewController ,UITableViewDelegate,UITableViewDataSource,XZDW_ViewController_Delegate{
func XZDW_ViewController_Finish() {
list_view.mj_header?.beginRefreshing()
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return dataArr.count
}
func rightBtnClick() {
let vc = XZDW_ViewController()
vc.delegate = self
self.navigationController?.pushViewController(vc, animated: true)
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cellid = "testCellID"
var cell = tableView.dequeueReusableCell(withIdentifier: cellid)
if cell==nil {
cell = UITableViewCell(style: .subtitle, reuseIdentifier: cellid)
}
let model = dataArr[indexPath.row]
cell?.textLabel?.text = model.unit
return cell!
}
let UserToken = UserDefaults.standard.value(forKey: "user_token")
var dataArr:Array<getUnitList_data_model> = []
let list_view = UITableView()
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "单位列表"
navbar.rightTitle = "新增"
self.view.addSubview(navbar)
// Do any additional setup after loading the view.
list_view.delegate = self
list_view.dataSource = self
self.view.addSubview(list_view)
list_view.snp.makeConstraints { make in
make.top.equalTo(navbar.snp.bottom)
make.left.right.bottom.equalTo(0)
}
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "XY_DZ_GL_VC_Cell", bundle: nil), forCellReuseIdentifier: "XY_DZ_GL_VC_Cell")
headerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadData))
list_view.mj_header = self.headerMJ
list_view.mj_header?.beginRefreshing()
footerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadMoreData))
list_view.mj_footer = self.footerMJ
}
var page = 0
@objc func loadData(){
page = 1
let dict = [
"user_token":UserToken as Any,
"page":page as Any
]
getUnitList(dict) { data in
let dataM = data as! getUnitList_model
self.dataArr.removeAll()
dataM.data?.forEach({ (model) in
self.dataArr.append(model)
})
self.list_view.mj_header?.endRefreshing()
self.list_view.reloadData()
if dataM.data?.count == 0 {
self.list_view.mj_footer?.endRefreshingWithNoMoreData()
}else{
self.list_view.mj_footer?.endRefreshing()
}
self.page = 2
} failture: { err in
self.list_view.mj_header?.endRefreshing()
}
}
@objc func loadMoreData(){
let dict = [
"user_token":UserToken as Any,
"page":page as Any
]
getUnitList(dict) { data in
let dataM = data as! getUnitList_model
if dataM.data?.count == 0 {
self.list_view.mj_footer?.endRefreshingWithNoMoreData()
}else{
self.page += 1
dataM.data?.forEach({ (model) in
self.dataArr.append(model)
})
self.list_view.reloadData()
self.list_view.mj_footer?.endRefreshing()
}
} failture: { err in
self.list_view.mj_footer?.endRefreshing()
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.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="DWLB_ViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<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"/>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<point key="canvasLocation" x="132" y="75"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// XZDW_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/4.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol XZDW_ViewController_Delegate {
func XZDW_ViewController_Finish()
}
class XZDW_ViewController: BaseViewController {
let UserToken = UserDefaults.standard.value(forKey: "user_token")
var delegate:XZDW_ViewController_Delegate?
@IBAction func finish_action(_ sender: Any) {
if unit_tf.text!.count > 0 {
let dict = ["user_token":UserToken as Any,"unit":unit_tf.text]
addUnit(dict) { data in
self.navigationController?.popViewController(animated: true)
self.delegate?.XZDW_ViewController_Finish()
} failture: { err in
}
}else{
HUD.flash(.label("请输入单位名称"), delay: 1.2)
}
}
@IBOutlet weak var unit_tf: UITextField!
@IBOutlet weak var top_view: UIView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "添加单位信息"
SetTopFrame(view: top_view, height: 44)
self.view.addSubview(navbar)
}
}
//
// SPXSETJ_CellTableViewCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/4.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class SPXSETJ_CellTableViewCell: 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
}
}
//
// SPXSEXQ_CellTableViewCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/5.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class SPXSEXQ_CellTableViewCell: 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="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.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="SPXSEXQ_CellTableViewCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Wjv-6b-l0v">
<rect key="frame" x="15" y="0.0" width="290" height="44"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="u9s-fa-95S">
<rect key="frame" x="0.0" y="0.0" width="72.5" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="14"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AIj-iu-Tty">
<rect key="frame" x="72.5" y="0.0" width="72.5" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="14"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZBD-We-rOV">
<rect key="frame" x="145" y="0.0" width="72.5" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="14"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cPK-xt-HPb">
<rect key="frame" x="217.5" y="0.0" width="72.5" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="14"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="cPK-xt-HPb" firstAttribute="width" secondItem="u9s-fa-95S" secondAttribute="width" id="2VU-Uq-OOj"/>
<constraint firstAttribute="bottom" secondItem="AIj-iu-Tty" secondAttribute="bottom" id="4zn-pN-DId"/>
<constraint firstAttribute="trailing" secondItem="cPK-xt-HPb" secondAttribute="trailing" id="C7r-cR-34Y"/>
<constraint firstItem="ZBD-We-rOV" firstAttribute="leading" secondItem="AIj-iu-Tty" secondAttribute="trailing" id="D89-Oo-zDd"/>
<constraint firstItem="cPK-xt-HPb" firstAttribute="top" secondItem="Wjv-6b-l0v" secondAttribute="top" id="KE4-Hp-XrF"/>
<constraint firstItem="AIj-iu-Tty" firstAttribute="leading" secondItem="u9s-fa-95S" secondAttribute="trailing" id="Qjj-09-ihn"/>
<constraint firstItem="AIj-iu-Tty" firstAttribute="top" secondItem="Wjv-6b-l0v" secondAttribute="top" id="RhL-sO-HXG"/>
<constraint firstItem="u9s-fa-95S" firstAttribute="top" secondItem="Wjv-6b-l0v" secondAttribute="top" id="W30-nR-sUu"/>
<constraint firstItem="ZBD-We-rOV" firstAttribute="top" secondItem="Wjv-6b-l0v" secondAttribute="top" id="gyi-b3-l79"/>
<constraint firstAttribute="bottom" secondItem="u9s-fa-95S" secondAttribute="bottom" id="iaC-Zx-4Ie"/>
<constraint firstItem="AIj-iu-Tty" firstAttribute="width" secondItem="u9s-fa-95S" secondAttribute="width" id="mVI-Ad-yCA"/>
<constraint firstAttribute="bottom" secondItem="ZBD-We-rOV" secondAttribute="bottom" id="uZo-XH-PS5"/>
<constraint firstItem="cPK-xt-HPb" firstAttribute="leading" secondItem="ZBD-We-rOV" secondAttribute="trailing" id="whk-Lw-hTl"/>
<constraint firstItem="u9s-fa-95S" firstAttribute="leading" secondItem="Wjv-6b-l0v" secondAttribute="leading" id="xhF-jI-4IU"/>
<constraint firstItem="ZBD-We-rOV" firstAttribute="width" secondItem="u9s-fa-95S" secondAttribute="width" id="xop-ah-O4e"/>
<constraint firstAttribute="bottom" secondItem="cPK-xt-HPb" secondAttribute="bottom" id="ztM-xq-eVf"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="Wjv-6b-l0v" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="1z6-FW-s5q"/>
<constraint firstAttribute="bottom" secondItem="Wjv-6b-l0v" secondAttribute="bottom" id="C24-ET-LhQ"/>
<constraint firstAttribute="trailing" secondItem="Wjv-6b-l0v" secondAttribute="trailing" constant="15" id="c8z-i8-aSH"/>
<constraint firstItem="Wjv-6b-l0v" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="qwB-9Z-a0E"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="132" y="83"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="18122" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="18093"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
......
......@@ -473,6 +473,8 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
return
case 61: //库存商品
HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = KCSP_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
return
case 62: //出入库记录
let vc = CRKListVC()
......@@ -521,7 +523,6 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 75: //收支统计
let vc = ShouZhiTongJiViewController()
self.navigationController?.pushViewController(vc, animated: true)
return
......@@ -827,6 +828,10 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
vc.vcType = 180
self.navigationController?.pushViewController(vc, animated: true)
return
case 201://单位列表
let vc = DWLB_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
return
default:
break;
}
......
//
// KCSPXQ_TableViewCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/6.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class KCSPXQ_TableViewCell: 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
}
}
//
// KCSPXQ_ViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/8/6.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class KCSPXQ_ViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "KCSPXQ_TableViewCell") as! KCSPXQ_TableViewCell
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 199
}
@IBOutlet weak var top_view: UIView!
@IBOutlet weak var list_view: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "库存商品详情"
self.view.addSubview(navbar)
SetTopFrame(view: top_view, height: 120)
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "KCSPXQ_TableViewCell", bundle: nil), forCellReuseIdentifier: "KCSPXQ_TableViewCell")
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
This diff is collapsed.
This diff is collapsed.
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