Commit 3b46a29b authored by lujunye's avatar lujunye

完善详情,仓库等

parent b3e38b9a
......@@ -286,7 +286,6 @@
E0F97B0D24516B1F001BD600 /* AddImgCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0F97B0B24516B1F001BD600 /* AddImgCell.xib */; };
E0F97B102451728D001BD600 /* AddGuiGeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0F97B0E2451728D001BD600 /* AddGuiGeCell.swift */; };
E0F97B112451728D001BD600 /* AddGuiGeCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0F97B0F2451728D001BD600 /* AddGuiGeCell.xib */; };
E0F97B1724517C87001BD600 /* AutoTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0F97B1624517C87001BD600 /* AutoTextField.swift */; };
E0F97B1A2451951D001BD600 /* ShangPinGguiGeCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0F97B182451951D001BD600 /* ShangPinGguiGeCell.swift */; };
E0F97B1B2451951D001BD600 /* ShangPinGguiGeCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0F97B192451951D001BD600 /* ShangPinGguiGeCell.xib */; };
F9023F62244999F500DD5A63 /* WarehoseMangementCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9023F60244999F500DD5A63 /* WarehoseMangementCell.swift */; };
......@@ -767,7 +766,6 @@
E0F97B0B24516B1F001BD600 /* AddImgCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AddImgCell.xib; sourceTree = "<group>"; };
E0F97B0E2451728D001BD600 /* AddGuiGeCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddGuiGeCell.swift; sourceTree = "<group>"; };
E0F97B0F2451728D001BD600 /* AddGuiGeCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AddGuiGeCell.xib; sourceTree = "<group>"; };
E0F97B1624517C87001BD600 /* AutoTextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AutoTextField.swift; sourceTree = "<group>"; };
E0F97B182451951D001BD600 /* ShangPinGguiGeCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShangPinGguiGeCell.swift; sourceTree = "<group>"; };
E0F97B192451951D001BD600 /* ShangPinGguiGeCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ShangPinGguiGeCell.xib; sourceTree = "<group>"; };
F9023F60244999F500DD5A63 /* WarehoseMangementCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WarehoseMangementCell.swift; sourceTree = "<group>"; };
......@@ -1479,7 +1477,6 @@
F9023F642449A3AE00DD5A63 /* Cell */,
F95D9B4E24484F140080D6E3 /* AlertView */,
E09B03C42445BF4600211A51 /* NavBarView */,
E0F97B1624517C87001BD600 /* AutoTextField.swift */,
);
path = View;
sourceTree = "<group>";
......@@ -2641,7 +2638,6 @@
E0C4F4BD244EF53D00CC7E2F /* BindStepTwoViewController.swift in Sources */,
E0A409CC2464026B00CFF109 /* SecondCell.swift in Sources */,
E0BE8A87245A7A1500E80134 /* JiBenXinXiCell.swift in Sources */,
E0F97B1724517C87001BD600 /* AutoTextField.swift in Sources */,
E0DDCB13244ADF2C00DF54C7 /* ChangePriceNormalCell.swift in Sources */,
F956D5B2246A2D9C003FF510 /* LMNDraft.m in Sources */,
E09B03B62445B85A00211A51 /* LoginViewController.swift in Sources */,
......
......@@ -43,13 +43,14 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate, UITabBarControllerDeleg
//MARK:--loginVC
func addLoginVc (isAgain:Bool){
// let vc = LoginViewController()
// vc.delegate = self
// let contentView = vc
// let vc = LoginViewController()
// vc.delegate = self
// let contentView = vc
//
let vc = ProductDetailViewController()
let vc = CheckWareHourseViewController()
vc.titleStr = "新增仓库"
let contentView = vc
......
......@@ -12,9 +12,9 @@ import IQKeyboardManagerSwift
@objc protocol GLAlertSelectViewDelegate {
//普通状态(单多选)
@objc optional func GLAlertSelectViewClick(selectNum:Int,view:GLAlertSelectView)//单选
@objc optional func GLAlertMoreSelectViewClick(sender:NSArray,view:UIView)//多选
//通用
@objc optional func GLAlertSelectViewClose(sender:UIButton)//关闭
@objc optional func GLAlertMoreSelectViewClick(sender:Array<Int>,view:UIView)//多选
@objc func GLASClose(view:GLAlertSelectView,selectnum:Int,selectArr:Array<Int>)
//库位专用
//删除
@objc optional func GLAlertSelectDelAction(sender:Array<Any>)
......@@ -22,17 +22,36 @@ import IQKeyboardManagerSwift
@objc optional func GLAlertSelectEditAction(sender:Int)
//库位专用
@objc optional func KuWeiDataArr(sender:Array<Any>)
}
class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleAndSelectCellDelegate,KuWeiCellCellDelegate{
var isMultipleS:Bool = false
var contentView:UIView!
var delegate:GLAlertSelectViewDelegate?
var inputTextTF:UITextField?
var selectArray:NSMutableArray?
var selectArray:Array<Int>? = []
var selectNum:Int?
var selectLblText:String? = ""
var tempNum:Int?
var tempArr:Array<Int>? = []
var selectLblText:String? = ""
var kuWeiArr = Array<Any>(){
didSet{
var tbvH = CGFloat(kuWeiArr.count * 49)
if tbvH > fullScreenHeight*0.6 {
tbvH = fullScreenHeight*0.6
selectTbv.isScrollEnabled = true
}
UIView.animate(withDuration: 0.5) {
self.btmVHeight.constant = 146.5+tbvH
if self.btmVHeight.constant > fullScreenHeight*0.75 {
self.btmVHeight.constant = fullScreenHeight*0.75
}
}
}
}
var dataArr = Array<String>(){
didSet{
var tbvH = CGFloat(dataArr.count * 49)
......@@ -40,22 +59,35 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
tbvH = fullScreenHeight*0.6
selectTbv.isScrollEnabled = true
}
if (titleLbl.text?.contains("库位"))!{
UIView.animate(withDuration: 0.5) {
self.btmVHeight.constant = 146.5+tbvH
if self.btmVHeight.constant > fullScreenHeight*0.75 {
self.btmVHeight.constant = fullScreenHeight*0.75
}
}
}else{
UIView.animate(withDuration: 0.5) {
self.btmVHeight.constant = 51+tbvH
}
UIView.animate(withDuration: 0.5) {
self.btmVHeight.constant = 51+tbvH
}
}
}
@IBAction func closeAction(_ sender: UIButton) {
delegate?.GLAlertSelectViewClose?(sender: sender)
print("close",tempArr,selectArray)
if tempNum == nil {
tempNum = 10086
}
delegate?.GLASClose(view: self, selectnum: tempNum!, selectArr: tempArr!)
// if isMultipleS == false {
// if selectNum == nil {
// HUD.flash(.label("\(titleLbl.text!)"), delay: 1.2)
// return
// }
// delegate?.GLAlertSelectViewClick?(selectNum: selectNum!,view: self)
// }else{
//
// if selectArray?.componentsJoined(by: "_") == "99_99_99_99" {
// HUD.flash(.label("\(titleLbl.text!)"), delay: 1.2)
// return
// }
// delegate?.GLAlertMoreSelectViewClick?(sender: selectArray!,view:self)
// }
}
//初始化时将xib中的view添加进来
@IBOutlet weak var btmView: UIView!
......@@ -114,6 +146,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
//选择页面
func setSelectView(){
IQKeyboardManager.shared.resignFirstResponder()
selectTbv.register(UINib(nibName: "TitleAndSelectCell", bundle: nil), forCellReuseIdentifier: "selectTbvCell")
btmVHeight.constant = 0
......@@ -121,6 +154,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
ipdVHeight.constant = 0.001
}
func setKuWeiView(){
IQKeyboardManager.shared.resignFirstResponder()
selectTbv.register(UINib(nibName: "KuWeiCell", bundle: nil), forCellReuseIdentifier: "KuWei")
btmVHeight.constant = 0
......@@ -134,35 +168,43 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
return 49
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if (titleLbl.text?.contains("库位"))!{
return kuWeiArr.count
}
return dataArr.count
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if (titleLbl.text?.contains("库位"))! {
print(indexPath.row)
selectNum = indexPath.row
selectTbv.reloadData()
}
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if (titleLbl.text?.contains("库位"))! {
let cell = tableView.dequeueReusableCell(withIdentifier: "KuWei") as! KuWeiCell
cell.delegate = self
cell.tag = indexPath.row
cell.nameLbl.text = dataArr[indexPath.row]
cell.nameLbl.text = kuWeiArr[indexPath.row] as! String
cell.nameLbl.textColor = UIColor(named: "标题字颜色")
cell.countLbl.textColor = UIColor(named: "标题字颜色")
if selectNum == indexPath.row {
cell.nameLbl.textColor = UIColor(named: "蓝色字体颜色")
cell.countLbl.textColor = UIColor(named: "蓝色字体颜色")
}
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "selectTbvCell") as! TitleAndSelectCell
cell.titleLbl.text = dataArr[indexPath.row]
cell.titleLbl.text = dataArr[indexPath.row] as! String
cell.delegate = self
cell.tag = indexPath.row
cell.titleLbl.textColor = UIColor(named: "标题字颜色")
cell.selectBtn.isSelected = false
if isMultipleS == true {
for item in selectArray! {
let row = "\(item)" as! NSString
if row.integerValue == indexPath.row {
if item == indexPath.row {
cell.titleLbl.textColor = UIColor(named: "蓝色字体颜色")
cell.selectBtn.isSelected = true
}
......@@ -176,28 +218,37 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
return cell
}
@IBAction func submitClick(_ sender: Any) {
if (titleLbl.text?.contains("库位"))! {
if isMultipleS == false {
if selectNum == nil {
HUD.flash(.label("\(titleLbl.text!)"), delay: 1.2)
return
}
print("abc == \(selectNum)")
delegate?.GLAlertSelectViewClick?(selectNum: selectNum!,view: self)
}else{
if isMultipleS == false {
delegate?.GLAlertSelectViewClick?(selectNum: selectNum!,view: self)
}else{
delegate?.GLAlertMoreSelectViewClick?(sender: selectArray!,view:self)
if selectArray == [99,99,99,99] {
HUD.flash(.label("\(titleLbl.text!)"), delay: 1.2)
return
}
delegate?.GLAlertMoreSelectViewClick?(sender: selectArray!,view:self)
}
}
//MARK: - 自定义CELL DELEGATE
//普通
func TitleAndSelectCellClick(content: UIButton, cell: TitleAndSelectCell) {
if isMultipleS == false {
selectNum = cell.tag
}else{
if cell.selectBtn.isSelected == true {
selectArray!.replaceObject(at: cell.tag, with: "99")
selectArray?.insert(99, at: cell.tag)
selectArray?.remove(at: cell.tag+1)
}else{
selectArray!.replaceObject(at: cell.tag, with: cell.tag)
selectArray?.insert(cell.tag, at: cell.tag)
selectArray?.remove(at: cell.tag+1)
}
}
selectTbv.reloadData()
......@@ -313,20 +364,22 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
}
@objc func addKuWei(){
IQKeyboardManager.shared.resignFirstResponder()
if (inputTextTF?.text!.count)! > 0 {
dataArr.append(inputTextTF!.text!)
let tbvH = CGFloat(dataArr.count)*49.0
kuWeiArr.append(inputTextTF!.text!)
let tbvH = CGFloat(kuWeiArr.count)*49.0
self.btmVHeight.constant = 146.5+tbvH
if self.btmVHeight.constant > fullScreenHeight*0.75 {
self.btmVHeight.constant = fullScreenHeight*0.75
}
inputTextTF?.text = ""
delegate?.KuWeiDataArr?(sender: dataArr)
delegate?.KuWeiDataArr?(sender: kuWeiArr)
selectTbv?.reloadData()
}else{
print("请输入xxx")
HUD.flash(.label("请输入库位名称"), delay: 1.2)
}
}
}
//
// AutoTextField.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/23.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
@objc protocol AutoTextFieldDelegate {
@objc optional func sendString(str:String)
@objc optional func sendHeight(height:CGFloat)
}
class AutoTextField: UITextView,UITextViewDelegate {
var tfDelegate:AutoTextFieldDelegate?
/// 占位文字颜色
var placeholderColor: UIColor? {
willSet {
self.placeholderLable.textColor = newValue ?? UIColor.lightGray
}
}
/// 占位文字
var placeholder: String? {
willSet {
self.placeholderLable.text = " " + (newValue ?? "")
}
}
/// 字体大小
var textFont: UIFont? {
willSet {
self.placeholderLable.font = newValue
self.font = newValue
}
}
/// 最小的高度
private var minHeight: CGFloat = 0.0
/// 初始化方法
///
/// - Parameters:
/// - frame: frame
/// - placeholder: 占位文字
convenience init(frame: CGRect, placeholder: String?) {
self.init(frame: frame, textContainer: nil)
self.minHeight = self.frame.height
// 设置字体
self.font = UIFont.systemFont(ofSize: 14.0)
if let placeholder = placeholder {
self.placeholderLable.text = " " + placeholder
}
// 添加边框
self.layer.borderWidth = 0.0
let num: CGFloat = 236.0 / 255.0
self.layer.borderColor = UIColor.init(red: num, green: num, blue: num, alpha: 1.0).cgColor
self.layer.cornerRadius = 5.0
self.clipsToBounds = true
self.delegate = self
}
/// 占位Label
private lazy var placeholderLable: UILabel = {
let label = UILabel.init(frame: CGRect.init(origin: CGPoint.init(x: 2.0, y: 0.0), size: self.frame.size))
label.textColor = UIColor.lightGray
label.font = self.font
self.addSubview(label)
return label
}()
func textViewDidChange(_ textView: UITextView) {
let text: String = textView.text!
self.placeholderLable.isHidden = true
tfDelegate?.sendString?(str: text)
if text.isEmpty {
var newFrame = self.placeholderLable.frame
newFrame.origin.y = 2.0
self.placeholderLable.frame = newFrame
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.3) {
self.placeholderLable.isHidden = false
}
return
}
// 计算文字高度
let height = self.getInputTextHeight(text: text)
if self.frame.height != height {
tfDelegate?.sendHeight?(height: height)
var newFrame = self.frame
newFrame.size.height = height
newFrame.origin.y -= (height - self.frame.height)
UIView.animate(withDuration: 0.3, animations: {
self.frame = newFrame
})
self.setContentOffset(CGPoint.init(x: 0.0, y: 4.0), animated: true)
}
}
/// 计算文字高度
///
/// - Parameters:
/// - text: 输入文字
/// - maxWidth: 最大宽度,控件宽度
/// - Returns: 文字高度
func getInputTextHeight(text: String) -> CGFloat {
if text.isEmpty {
return self.minHeight
}
let str = NSString.init(string: self.text)
let rect = str.boundingRect(with: CGSize.init(width: self.frame.width - 10.0, height: 999.0), options: .usesLineFragmentOrigin, attributes: [NSAttributedString.Key.font : self.font!], context: nil)
return max(rect.size.height + 13.0, self.minHeight)
}
}
......@@ -30,7 +30,7 @@ class AddImgCell: UITableViewCell {
print(imgs.count)
if imgs.count > 0{
if scrollView == nil {
let scrView = UIScrollView(frame: CGRect(x: addBtn.frame.minX, y: addBtn.frame.minY, width: fullScreenWidth, height: 90))
let scrView = UIScrollView(frame: CGRect(x: addBtn.frame.minX, y: addBtn.frame.minY, width: fullScreenWidth, height: addBtn.frame.size.height))
scrView.showsHorizontalScrollIndicator = false
scrView.backgroundColor = UIColor.white
self.contentView.addSubview(scrView)
......@@ -60,7 +60,7 @@ class AddImgCell: UITableViewCell {
@IBOutlet weak var addBtnX: NSLayoutConstraint!
func setImgUI(arr:Array<UIImage>){
let y = addBtn.frame.minY
let h:CGFloat = 90
let h:CGFloat = addBtn.frame.size.height
if isSingle == false {
addBtn.isHidden = false
scrollView?.isHidden = false
......
......@@ -35,16 +35,16 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OQa-ir-x7J">
<rect key="frame" x="15" y="39.5" width="93" height="93"/>
<rect key="frame" x="15" y="39.5" width="90" height="90"/>
<constraints>
<constraint firstAttribute="width" constant="93" id="Sbh-ll-iOW">
<constraint firstAttribute="width" constant="90" id="Sbh-ll-iOW">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="NO"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstAttribute="height" constant="93" id="gLW-Bq-4tz">
<constraint firstAttribute="height" constant="90" id="gLW-Bq-4tz">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="NO"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
......
......@@ -12,7 +12,7 @@ import UIKit
@objc optional func deleClickAction(sender:Int)
}
class KuWeiCell: UITableViewCell {
var delegate:KuWeiCellCellDelegate?
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var countLbl: UILabel!
......@@ -25,14 +25,14 @@ class KuWeiCell: UITableViewCell {
}
override func awakeFromNib() {
super.awakeFromNib()
// self.selectionStyle = .none
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
......
......@@ -32,6 +32,7 @@ class WareHouseSpCell: UITableViewCell {
// Initialization code
}
@objc func swValueChange(sender:UISwitch){
print("abc")
delegate?.whSwitchChange(sender: sender)
}
@objc func textChange(sender:UITextField){
......
......@@ -9,6 +9,30 @@
import UIKit
class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate,DaiKeXiaDanFooterViewDelegate,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate{
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
if selectnum != 10086 {
if view.titleLbl.text == "请选择支付状态" {
zhiFuType = selectnum
}
if view.titleLbl.text == "请选择支付方式" {
zhiFuWay = selectnum
}
if view.titleLbl.text == "请选择提货方式" {
tiHuoWay = selectnum
}
if view.titleLbl.text == "请选择出货状态" {
chuHuoWay = selectnum
}
}
view.removeFromSuperview()
glSelectView = nil
}
var orderType:Int? //订单类型
......@@ -16,7 +40,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
var holderArr = ["未支付","未付款","自提","暂不出库","0","0"]
let p3Arr = ["支付状态","支付方式","提货方式","出货状态","运费","其他费用"]
var footerView:DaiKeXiaDanFooterView?
var itemArr = NSMutableArray()
var itemArr:Array<Any> = []
@IBAction func submitAction(_ sender: Any) {
}
@IBOutlet weak var listView: UITableView!
......@@ -116,7 +140,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}
return 49
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.section {
case 0:
......@@ -126,8 +150,10 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
}else{
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
// view.isMultipleSelect = false//是否多选
if orderType != nil {
view.selectNum = orderType!
view.tempNum = view.selectNum
}
view.delegate = self
view.titleLbl.text = "请选择订单类型"
view.dataArr = ["普通订单","预售下单"]
......@@ -149,26 +175,37 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
func btnClick(content: String, cell: TitleAndBtnCell) {
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
// view.isMultipleSelect = false//是否多选
view.delegate = self
switch cell.tag {
case 0://支付状态
if zhiFuType != nil {
view.selectNum = zhiFuType!
view.tempNum = view.selectNum
}
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break
case 1://支付方式
if zhiFuWay != nil {
view.selectNum = zhiFuWay!
view.tempNum = view.selectNum
}
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break
case 2://提货方式
if tiHuoWay != nil {
view.selectNum = tiHuoWay!
view.tempNum = view.selectNum
}
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break
default://出货状态
if chuHuoWay != nil {
view.selectNum = chuHuoWay!
view.tempNum = view.selectNum
}
view.titleLbl.text = "请选择\(p3Arr[cell.tag])"
view.dataArr = ["预售","普通","期货","团购"]
break
......@@ -189,10 +226,7 @@ class DaiKeXiaDanGouWuViewController: BaseViewController,UITableViewDataSource,U
glSelectView?.removeFromSuperview()
glSelectView = nil
}
func GLAlertSelectViewClose(sender: UIButton) {
glSelectView?.removeFromSuperview()
glSelectView = nil
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.section {
case 0:
......
......@@ -20,7 +20,7 @@
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="6n5-Zr-Oki">
<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="6n5-Zr-Oki">
<rect key="frame" x="0.0" y="44" width="414" height="768"/>
<color key="backgroundColor" name="app底色"/>
<connections>
......
......@@ -25,7 +25,7 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
var lat:CLLocationDegrees = 23.142059
var lng:CLLocationDegrees = 113.240747
var adrArr:NSMutableArray = NSMutableArray()
var adrArr:Array<Any> = []
override func viewWillAppear(_ animated: Bool) {
self.navigationController?.navigationBar.isHidden = true
......@@ -77,8 +77,8 @@ class SJMapViewController: UIViewController,AMapLocationManagerDelegate,MAMapVie
return
}
//解析response获取POI信息,具体解析见 Demo
adrArr.removeAllObjects()
adrArr.addObjects(from: response.pois)
adrArr.removeAll()
adrArr.append(response.pois)
listView?.reloadData()
}
......
......@@ -24,13 +24,14 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
@IBOutlet weak var leftSelectView: UITableView!
@IBOutlet weak var rightSelectView: UITableView!
let selectListRecord = NSMutableArray()
var selectListRecord:Array<Int> = []
override func viewDidLoad() {
super.viewDidLoad()
selectListRecord.add(99)
selectListRecord.add(99)
selectListRecord.append(99)
selectListRecord.append(99)
navbar.title = "客户管理"
self.view.addSubview(navbar)
......@@ -129,7 +130,8 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
//MARK: - CELL DELEGATE
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if tableView == leftSelectView {
selectListRecord.replaceObject(at: 0, with: indexPath.row)
selectListRecord.insert(0, at: indexPath.row)
selectListRecord.remove(at: indexPath.row+1)
coverBtn.isHidden = true
leftSelectView.isHidden = true
rightSelectView.isHidden = true
......@@ -138,7 +140,8 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
leftSelectView.reloadData()
}
if tableView == rightSelectView {
selectListRecord.replaceObject(at: 1, with: indexPath.row)
selectListRecord.insert(1, at: indexPath.row)
selectListRecord.remove(at: indexPath.row+1)
coverBtn.isHidden = true
leftSelectView.isHidden = true
rightSelectView.isHidden = true
......@@ -183,15 +186,15 @@ class KeHuListViewController: BaseViewController,UITableViewDelegate,UITableView
cell.nameLbl.textColor = UIColor(named: "标题字颜色")
if tableView == leftSelectView {
cell.nameLbl.text = leftArr[indexPath.row]
let num:Int = selectListRecord.firstObject as! Int
if num == indexPath.row {
if selectListRecord.first == indexPath.row {
cell.nameLbl.textColor = UIColor(named: "蓝色字体颜色")
}
}
if tableView == rightSelectView {
cell.nameLbl.text = rightArr[indexPath.row]
let num:Int = selectListRecord.lastObject as! Int
if num == indexPath.row {
if selectListRecord.last == indexPath.row {
cell.nameLbl.textColor = UIColor(named: "蓝色字体颜色")
}
}
......
......@@ -10,16 +10,29 @@ import UIKit
import LGButton
import IQKeyboardManagerSwift
class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,WareHouseSpCellDelegate,GLAlertSelectViewDelegate{
func whSwitchChange(sender: UISwitch) {
shiFouMoRen = sender.isOn
}
class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,WareHouseSpCellDelegate,GLAlertSelectViewDelegate,UITextFieldDelegate{
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
if view.titleLbl.text == "请选择仓库类型"{
if selectnum != 10086 {
warehourseType = selectnum
}
}
if view.titleLbl.text == "请选择或填写包含库位"{
kuWeiSelect = selectnum
}
view.removeFromSuperview()
glSelectView = nil
}
@IBOutlet weak var btnTitleLbl: UILabel!
@IBOutlet weak var listView: UITableView!
var titleStr:String?
let titleArr = ["仓库名称:","仓库类型:","包含库位:","仓库地址:","仓库容积:","仓库面积:","联系人:","联系人电话:"]
let placeHArr = ["请输入仓库名称","请选择仓库类型","请输入库位名","请输入仓库地址","请输入仓库容积","请输入仓库面积","请输入联系人","请输入联系人电话"]
var kuWeiArr:Array<Any>? = []
var listArray = ["a","b","c"]
var glSelectView:GLAlertSelectView?
var btnArray:Array<UIButton> = []
......@@ -64,14 +77,14 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
let cell = tableView.dequeueReusableCell(withIdentifier: "WareHouse") as! WareHouseSpCell
cell.clickBtn.isHidden = true
cell.detailTF.isUserInteractionEnabled = false
cell.whSwitch.isUserInteractionEnabled = false
cell.tag = indexPath.row
cell.delegate = self
if indexPath.section == 0 {//仓库名称等
cell.whSwitch.isHidden = true
cell.delegate = self
cell.titleLbl.text = titleArr[indexPath.row]
cell.detailTF.placeholder = placeHArr[indexPath.row]
cell.btnImg.isHidden = true
cell.detailTF.returnKeyType = .done
switch indexPath.row {
case 0:
cell.detailTF.text = cangKuName
......@@ -99,6 +112,7 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
cell.detailTF.text = lianXiRen
break
case 7:
cell.detailTF.keyboardType = .numberPad
cell.detailTF.text = phone
break
default:
......@@ -107,6 +121,11 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
//cell ui 布局
self.setCellLayout(cell: cell, indexPath: indexPath)
}else{//默认仓库
if btnTitleLbl.text == "编辑"{
cell.whSwitch.isUserInteractionEnabled = false
}else{
cell.whSwitch.isUserInteractionEnabled = true
}
cell.detailTF.isHidden = true
cell.clickBtn.isHidden = true
cell.btnImg.isHidden = true
......@@ -140,42 +159,62 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
}
}
@IBAction func submitAction(_ sender: LGButton) {
print(shiFouMoRen)
print(lianXiRen)
print(mianJi)
print(rongJi)
print(phone)
print(cangKuAdr)
print(cangKuName)
print(kuWeiName)
print(listArray[warehourseType!])
print(listArray[kuWeiSelect!])
// if sender.tag == 999 {//请选择或填写包含库位的确定按钮
// print("tag 999")
//
// }else{
// if sender.titleString == "确定"{
// print("确定 -- 仓库类型:\(warehourseType) (0:冷冻、1:冷藏、2:常温)")
// }else{
// if sender.titleString == "保存" {
// sender.titleString = "编辑"
// statusStr = sender.titleString
// print("确定 -- 仓库类型:\(warehourseType) (0:冷冻、1:冷藏、2:常温)")
//
// }else{
// sender.titleString = "保存"
// statusStr = sender.titleString
// }
// }
// }
if titleStr == "新增仓库" {
print(shiFouMoRen)
print(lianXiRen)
print(mianJi)
print(rongJi)
print(phone)
print(cangKuAdr)
print(cangKuName)
print(kuWeiName)
print("仓库类型:\(warehourseType) (0:冷冻、1:冷藏、2:常温)")
if warehourseType != nil {
print(listArray[warehourseType!])
}
if kuWeiSelect != nil {
print(kuWeiArr![kuWeiSelect!])
}
}else{
if btnTitleLbl.text == "保存" {
btnTitleLbl.text = "编辑"
statusStr = btnTitleLbl.text!
//MARK: - 提交修改后的数据
print(shiFouMoRen)
print(lianXiRen)
print(mianJi)
print(rongJi)
print(phone)
print(cangKuAdr)
print(cangKuName)
print(kuWeiName)
print("仓库类型:\(warehourseType) (0:冷冻、1:冷藏、2:常温)")
if warehourseType != nil {
print(listArray[warehourseType!])
}
if kuWeiSelect != nil {
print(kuWeiArr![kuWeiSelect!])
}
}else{
btnTitleLbl.text = "保存"
statusStr = btnTitleLbl.text!
}
listView.reloadData()
}
}
//库位
func GLAlertSelectViewClick(selectNum:Int,view:GLAlertSelectView){
if view.titleLbl.text!.contains("库位") {
kuWeiSelect = selectNum
kuWeiName = kuWeiArr![kuWeiSelect!] as! String
}else{
warehourseType = selectNum
}
glSelectView?.removeFromSuperview()
glSelectView = nil
......@@ -202,6 +241,7 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
}
func clickAction(sender: UIButton) {
IQKeyboardManager.shared.resignFirstResponder()
if sender.tag == 1 {
......@@ -212,6 +252,7 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
view.dataArr = listArray
if warehourseType != nil {
view.selectNum = warehourseType
view.tempNum = warehourseType
}
self.view.addSubview(view)
glSelectView = view
......@@ -221,7 +262,9 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds,title:"请选择或填写包含库位")
view.delegate = self
view.dataArr = listArray
view.kuWeiArr = kuWeiArr!
view.selectNum = kuWeiSelect
view.tempNum = kuWeiSelect
self.view.addSubview(view)
glSelectView = view
}
......@@ -321,12 +364,6 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
}
}
func GLAlertSelectViewClose(sender: UIButton) {
glSelectView?.removeFromSuperview()
glSelectView = nil
}
//footer
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
......@@ -341,5 +378,14 @@ class CheckWareHourseViewController: BaseViewController,UITableViewDelegate,UITa
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 49
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
IQKeyboardManager.shared.resignFirstResponder()
}
func KuWeiDataArr(sender: Array<Any>) {
print(sender)
kuWeiArr = sender
}
func whSwitchChange(sender: UISwitch) {
shiFouMoRen = sender.isOn
}
}
......@@ -8,11 +8,28 @@
import UIKit
import LGButton
import IQKeyboardManagerSwift
protocol CreatNewSpecsViewControllerDelegate {
func CreatNewSpecsViewControllerSaveAction(datas:Array<GuiGeModel>)
func CreatNewSpecsViewControllerDeleteAction()
func CreatNewSpecsViewControllerDeleteAction(datas:Array<GuiGeModel>,selectIdx:IndexPath)
}
class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndTFCellDelegate,TitleAndBtnCellDelegate,TitleAndSwitchCellDelegate,TitleAndSwitchHeaderViewDelegate,NewCreateHeaderDelegate,NewCreateFooterDelegate,YuShouCellDelegate,GLAlertSelectViewDelegate,PuTongJieTiCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout{
class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndTFCellDelegate,TitleAndBtnCellDelegate,TitleAndSwitchCellDelegate,TitleAndSwitchHeaderViewDelegate,NewCreateHeaderDelegate,NewCreateFooterDelegate,YuShouCellDelegate,GLAlertSelectViewDelegate,PuTongJieTiCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,UITextFieldDelegate{
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
if selectnum != 10086 {
if view.titleLbl.text == "请选择商品温藏" {
tempSelect = selectnum
}
if view.titleLbl.text == "请选择商品单位" {
itemDanWeiSelect = selectnum
}
}
view.removeFromSuperview()
selectView = nil
}
var layout = UICollectionViewFlowLayout()
......@@ -41,7 +58,12 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
//选择页面
var selectView:GLAlertSelectView? = nil
var selectListArr:Array<String> = ["冷冻","冷藏","常温"]
var selectListArr1:Array<String> = ["吨","件","箱","包","桶","瓶"]
var danWeiArr:Array<String>?{
willSet{
print(newValue)
danWeiArr = newValue
}
}
var price = ""{
willSet{
price = newValue
......@@ -60,11 +82,23 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
var wenDu = ""{
willSet{
wenDu = newValue
for i in 0 ..< selectListArr.count {
if newValue == selectListArr[i] {
tempSelect = i
}
}
}
}
var danWei = ""{
willSet{
danWei = newValue
if danWeiArr != nil {
for i in 0 ..< danWeiArr!.count {
if newValue == selectListArr[i] {
itemDanWeiSelect = i
}
}
}
}
}//规格
var specalArr:Array<Any> = []{
......@@ -93,7 +127,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
navbar.title = barTitle
self.view.addSubview(navbar)
if datasArr.count > 1 && barTitle!.contains("编辑") == true {//展示topbar
SetTopFrame(view: topBarView, height: 41)
if collectView == nil {
let collectionView = UICollectionView(frame: CGRect(x: 0, y: 0, width: 0, height: 0), collectionViewLayout: layout)
......@@ -186,7 +220,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
// }
// }
// let dict = NSMutableDictionary()
// let dict = NSMutableDictionary()
dataModel.price = price
dataModel.guiGe = guiGe
dataModel.weight = weight
......@@ -198,16 +232,40 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
dataModel.isYuShouSetting = isYuShouSetting
dataModel.yuShouPrice = yuShouPrice
if barTitle?.contains("编辑") == true {
// datasArr.replaceObject(at: selectIdx!.item, with: dict)
datasArr.insert(dataModel, at: selectIdx!.item)
datasArr.remove(at: selectIdx!.item+1)
}else{
datasArr.append(dataModel)
}
delegate?.CreatNewSpecsViewControllerSaveAction(datas:datasArr)
self.navigationController?.popViewController(animated: true)
}
//MARK: - TEXTFIELD DELEGATE
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
IQKeyboardManager.shared.resignFirstResponder()
print(textField.text,textField.tag)
switch textField.tag {
case 0:
price = textField.text!
break
case 1:
guiGe = textField.text!
break
case 2:
weight = textField.text!
break
default:
break
}
// delegate?.ChangeGoodsPriceVCKeyboardDone(str: textField.text!)
return true
}
func PuTongJieTiClickDone() {
IQKeyboardManager.shared.resignFirstResponder()
}
//MARK: - cell delegate
func numberOfSections(in tableView: UITableView) -> Int {
if (navbar.title?.contains("编辑"))! {
......@@ -240,6 +298,10 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTF") as! TitleAndTFCell
cell.nameLbl.text = titleArray[indexPath.row]
cell.tag = indexPath.row
cell.textTF.tag = cell.tag
//keyboardType
cell.textTF.returnKeyType = .done
cell.textTF.delegate = self
let str = NSAttributedString(string: pliceHolderArr[indexPath.row], attributes: [NSAttributedString.Key.foregroundColor:UIColor(named: "灰色字体颜色")])
cell.textTF.attributedPlaceholder = str
if datasArr.count > 0 {
......@@ -271,7 +333,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
if indexPath.row == 4 {
if itemDanWeiSelect != nil {
cell.contentLbl.text = selectListArr1[itemDanWeiSelect!]
cell.contentLbl.text = danWeiArr![itemDanWeiSelect!]
}
}
if datasArr.count > 0 {
......@@ -291,8 +353,6 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndSwitch") as! TitleAndSwitchCell
cell.delegate = self
cell.namelbl.font = UIFont.boldSystemFont(ofSize: 15)
......@@ -352,7 +412,16 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if indexPath.section == 3 {
delegate?.CreatNewSpecsViewControllerDeleteAction()
//删除
datasArr.remove(at: selectIdx!.item)
var num = 0
if selectIdx!.item > 0 {
num = selectIdx!.item - 1
}
let idx = IndexPath(item: num, section: 0)
delegate?.CreatNewSpecsViewControllerDeleteAction(datas: datasArr,selectIdx:idx)
self.navigationController?.popViewController(animated: true)
}
}
......@@ -455,22 +524,18 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
cell.contentLbl.text = selectListArr[selectNum]
}else{
itemDanWeiSelect = selectNum
cell.contentLbl.text = selectListArr1[selectNum]
danWei = selectListArr1[selectNum]
cell.contentLbl.text = danWeiArr![selectNum]
danWei = danWeiArr![selectNum]
}
selectView?.removeFromSuperview()
selectView = nil
}
func GLAlertSelectViewClose(sender: UIButton) {
print("关闭")
selectView?.removeFromSuperview()
selectView = nil
}
// var tempSelectArr = NSMutableArray()
var tempSelect:Int?
var itemDanWeiSelect:Int?
......@@ -484,6 +549,7 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
view.dataArr = selectListArr
if tempSelect != nil {
view.selectNum = tempSelect!
view.tempNum = view.selectNum
}
self.view.addSubview(view)
selectView = view
......@@ -497,7 +563,10 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
if itemDanWeiSelect != nil {
view.selectNum = itemDanWeiSelect!
}
view.dataArr = selectListArr1
if danWeiArr != nil {
view.dataArr = danWeiArr!
}
self.view.addSubview(view)
selectView = view
}
......@@ -512,7 +581,6 @@ class CreatNewSpecsViewController: BaseViewController,UITableViewDelegate,UITabl
func switchClick(content: UISwitch, cell: TitleAndSwitchCell) {
//控制
print("status2 = \(isYuShouSetting) , \(isJieTiJiaSetting)")
if cell.tag == 5{
isYuShouSetting = content.isOn
let idxPath = IndexPath(row: 0, section: 1)
......
......@@ -10,8 +10,9 @@ import UIKit
@objc protocol PuTongJieTiCellDelegate {
@objc optional func PuTongJieTiDelAction(sender:PuTongJieTiCell)
@objc optional func PuTongJieTiContent(price:String,count:String,cell:PuTongJieTiCell)
@objc optional func PuTongJieTiClickDone()
}
class PuTongJieTiCell: UITableViewCell {
class PuTongJieTiCell: UITableViewCell,UITextFieldDelegate {
var delegate:PuTongJieTiCellDelegate?
@IBAction func delAction(_ sender: UIButton) {
delegate?.PuTongJieTiDelAction?(sender: self)
......@@ -27,9 +28,15 @@ class PuTongJieTiCell: UITableViewCell {
countTF.addTarget(self, action: #selector(textChange(textF:)), for: .editingChanged)
priceTF.tag = 0
countTF.tag = 1
countTF.keyboardType = .numberPad
priceTF.keyboardType = .numbersAndPunctuation
priceTF.returnKeyType = .done
priceTF.delegate = self
// Initialization code
}
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
((delegate?.PuTongJieTiClickDone?()) != nil)
}
@objc func textChange(textF:UITextField){
delegate?.PuTongJieTiContent?(price: priceTF.text!, count: countTF.text!, cell: self)
......
......@@ -9,6 +9,18 @@
import UIKit
class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,GLAlertSelectViewDelegate,AddGuiGeCellDelegate{
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
if selectnum != 10086 {
if view.titleLbl.text == "请选择购物类型" {
gouWuType = selectnum
}
}
view.removeFromSuperview()
glSelectView = nil
}
var glSelectView:GLAlertSelectView? = nil
......@@ -194,8 +206,11 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
if indexPath.row == 5 {
if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds)
// view.isMultipleSelect = false//是否多选
view.selectNum = gouWuType!
// view.isMultipleSelect = false//是否多选
if gouWuType != nil {
view.selectNum = gouWuType!
view.tempNum = view.selectNum
}
view.delegate = self
view.titleLbl.text = "请选择购物类型"
view.dataArr = ["普通订单","预售下单"]
......@@ -257,13 +272,6 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
glSelectView = nil
}
func GLAlertMoreSelectViewClick(sender: NSArray, view:UIView) {
print("多选",sender)
glSelectView?.removeFromSuperview()
glSelectView = nil
}
func GLAlertSelectViewClose(sender: UIButton) {
glSelectView?.removeFromSuperview()
glSelectView = nil
}
}
......@@ -9,6 +9,24 @@
import UIKit
class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GuanLianKehuVCDelegate,OrderDViewFooterViewDelegate,TitleAndTFCellDelegate,GeliAlertViewDelegate,GLAlertSelectViewDelegate{
func GLASClose(view: GLAlertSelectView, selectnum: Int, selectArr: Array<Int>) {
if selectnum != 10086 {
if view.titleLbl.text == "请选择支付方式" {
zhiFuSelect = selectnum
}
if view.titleLbl.text == "请选择支付状态" {
zhiFuStatusSelect = selectnum
}
if view.titleLbl.text == "请选择物流公司" {
wuLiuSelect = selectnum
}
}
view.removeFromSuperview()
glSelectView = nil
}
var orderId:Int? //订单编号
......@@ -461,6 +479,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
view.dataArr = wuLiuFSArr
if wuLiuSelect != nil {
view.selectNum = wuLiuSelect!
view.tempNum = view.selectNum
}
self.view.addSubview(view)
glSelectView = view
......@@ -484,6 +503,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
view.dataArr = zhiFuFangShiArr
if zhiFuSelect != nil {
view.selectNum = zhiFuSelect!
view.tempNum = view.selectNum
}
self.view.addSubview(view)
glSelectView = view
......@@ -498,6 +518,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
view.dataArr = zhiFuStatus
if zhiFuStatusSelect != nil {
view.selectNum = zhiFuStatusSelect!
view.tempNum = view.selectNum
}
self.view.addSubview(view)
glSelectView = view
......@@ -522,10 +543,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
glSelectView = nil
listView.reloadData()
}
func GLAlertSelectViewClose(sender: UIButton) {
glSelectView?.removeFromSuperview()
glSelectView = nil
}
func scrollViewDidScroll(_ scrollView: UIScrollView) {
......
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