Commit 5fb8aa79 authored by lujunye's avatar lujunye

采购设置

parent 09d2b7c9
...@@ -137,7 +137,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega ...@@ -137,7 +137,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
pageIndicator?.reloadData(numberOfItems: numberOfItems(), pageIndex: pageIndex) pageIndicator?.reloadData(numberOfItems: numberOfItems(), pageIndex: pageIndex)
} }
let lbl = UILabel(frame: CGRect(x: 20, y: 0, width: 100, height: 100)) let lbl = UILabel()
open override func viewDidLoad() { open override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
...@@ -158,9 +158,22 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega ...@@ -158,9 +158,22 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
} }
lbl.text = "返回" lbl.text = "返回"
lbl.textColor = UIColor.white lbl.textColor = UIColor.white
view.addSubview(lbl) view.addSubview(lbl)
lbl.snp.makeConstraints { (make) in
make.top.equalTo(NavHeight)
make.left.equalTo(20)
make.width.equalTo(60)
make.height.equalTo(30)
}
lbl.textAlignment = .center
lbl.font = UIFont(name: "PingFangSC-Medium", size: 15)
lbl.backgroundColor = UIColor(named: "蓝色字体颜色")
lbl.layer.cornerRadius = 15
lbl.layer.masksToBounds = true
view.setNeedsLayout() view.setNeedsLayout()
view.layoutIfNeeded() view.layoutIfNeeded()
...@@ -189,6 +202,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega ...@@ -189,6 +202,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
open override func viewWillDisappear(_ animated: Bool) { open override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated) super.viewWillDisappear(animated)
lbl.removeFromSuperview()
hideNavigationBar(false) hideNavigationBar(false)
} }
...@@ -285,7 +299,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega ...@@ -285,7 +299,7 @@ open class JXPhotoBrowser: UIViewController, UIViewControllerTransitioningDelega
deinit { deinit {
JXPhotoBrowserLog.low("deinit - \(self.classForCoder)") JXPhotoBrowserLog.low("deinit - \(self.classForCoder)")
lbl.removeFromSuperview()
navigationController?.delegate = previousNavigationControllerDelegate navigationController?.delegate = previousNavigationControllerDelegate
} }
......
...@@ -30,6 +30,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA ...@@ -30,6 +30,7 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
func sureGeliAlertViewAction(sender: UIButton) { func sureGeliAlertViewAction(sender: UIButton) {
delegate?.GLAlertSelectViewFinish?(sender:sender,title: ysyfTitle,cellTag: cellTag!) delegate?.GLAlertSelectViewFinish?(sender:sender,title: ysyfTitle,cellTag: cellTag!)
} }
var isHideCaiGou = false
var isBz = false var isBz = false
var is_center_select = false var is_center_select = false
var isNonSelect = false { var isNonSelect = false {
...@@ -89,7 +90,9 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA ...@@ -89,7 +90,9 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
var dataArr = Array<String>(){ var dataArr = Array<String>(){
didSet{ didSet{
var tbvH = CGFloat(dataArr.count * 49) var tbvH = CGFloat(dataArr.count * 49)
if isHideCaiGou {
tbvH = CGFloat((dataArr.count-1) * 49)
}
if tbvH > fullScreenHeight*0.6 { if tbvH > fullScreenHeight*0.6 {
tbvH = fullScreenHeight*0.6 tbvH = fullScreenHeight*0.6
selectTbv.isScrollEnabled = true selectTbv.isScrollEnabled = true
...@@ -190,12 +193,18 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA ...@@ -190,12 +193,18 @@ class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleA
return 0.001 return 0.001
} }
} }
if isHideCaiGou {
if indexPath.row == 0 {
return 0.001
}
}
return 49 return 49
} }
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if (titleLbl.text?.contains("库位"))! && isOnlySelectKuWei == false{ if (titleLbl.text?.contains("库位"))! && isOnlySelectKuWei == false{
return kuWeiArr.count return kuWeiArr.count
} }
return dataArr.count return dataArr.count
} }
......
...@@ -416,11 +416,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne ...@@ -416,11 +416,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
if isCaiGou == false{ if isCaiGou == false{
if glSelectView == nil { if glSelectView == nil {
let view = GLAlertSelectView(frame: self.view.bounds) let view = GLAlertSelectView(frame: self.view.bounds)
view.isHideCaiGou = true
view.tag = indexPath.row view.tag = indexPath.row
if typeSelect != nil { view.selectNum = typeSelect
view.selectNum = typeSelect view.tempNum = view.selectNum
view.tempNum = view.selectNum
}
view.isOnlySelectKuWei = true view.isOnlySelectKuWei = true
view.delegate = self view.delegate = self
view.titleLbl.text = "请选择入库类型" view.titleLbl.text = "请选择入库类型"
......
...@@ -701,7 +701,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -701,7 +701,7 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
let rowModel = self.dataArr[indexPath.row] let rowModel = self.dataArr[indexPath.row]
let vc = OrderDViewController() let vc = OrderDViewController()
vc.delegate = self vc.delegate = self
vc.orderId = rowModel.order_id! vc.orderId = rowModel.order_id!
vc.lmIdx = orderStatus vc.lmIdx = orderStatus
self.navigationController?.pushViewController(vc, animated: true) self.navigationController?.pushViewController(vc, animated: true)
} }
......
...@@ -61,7 +61,6 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate { ...@@ -61,7 +61,6 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
}else{ }else{
//MARK:--代客下单流程 //MARK:--代客下单流程
if inputData.count > 0 { if inputData.count > 0 {
let item = inputData[0] let item = inputData[0]
titleLbl.text = item.goods_name titleLbl.text = item.goods_name
detailLbl.text = item.spec_str detailLbl.text = item.spec_str
...@@ -70,7 +69,6 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate { ...@@ -70,7 +69,6 @@ class XiuGaiYuShouJiaViewController: BaseViewController, UITextFieldDelegate {
weiKuanTF.text = wkTFstr weiKuanTF.text = wkTFstr
countLbl.text = "¥" + item.target_Price! + "x\(item.target_Count!)" countLbl.text = "¥" + item.target_Price! + "x\(item.target_Count!)"
} }
} }
//MARK:--输入框代理 //MARK:--输入框代理
dingJinTF.delegate = self dingJinTF.delegate = self
......
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