Commit 0015941c authored by lujunye's avatar lujunye

修复出入库列表显示bug

parent 99b7768b
...@@ -93,7 +93,16 @@ class CRKCell: UITableViewCell { ...@@ -93,7 +93,16 @@ class CRKCell: UITableViewCell {
rightBtn.isHidden = true rightBtn.isHidden = true
btmH.constant = 15 btmH.constant = 15
}else{ }else{
if status! > 1 { if status == 1 {
leftBtn.isHidden = false
rightBtn.isHidden = false
leftBtn.backgroundColor = UIColor.white
leftBtn.setTitle("通过", for: .normal)
leftBtn.setTitleColor(UIColor.white, for: .normal)
leftBtn.isUserInteractionEnabled = false
leftBtn.backgroundColor = UIColor(named: "蓝色字体颜色")
leftBtn.layer.cornerRadius = 3
}else{ //通过,不通过
rightBtn.isHidden = true rightBtn.isHidden = true
leftBtn.isHidden = false leftBtn.isHidden = false
leftBtn.backgroundColor = UIColor.white leftBtn.backgroundColor = UIColor.white
...@@ -104,6 +113,7 @@ class CRKCell: UITableViewCell { ...@@ -104,6 +113,7 @@ class CRKCell: UITableViewCell {
leftBtn.layer.masksToBounds = true leftBtn.layer.masksToBounds = true
leftBtn.layer.borderColor = UIColor(named: "蓝色字体颜色")?.cgColor leftBtn.layer.borderColor = UIColor(named: "蓝色字体颜色")?.cgColor
leftBtn.layer.borderWidth = 1 leftBtn.layer.borderWidth = 1
} }
btmH.constant = 60 btmH.constant = 60
} }
......
...@@ -190,10 +190,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo ...@@ -190,10 +190,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
} }
self.btmLbl.text = "提交申请" self.btmLbl.text = "提交申请"
// if self.authArr.contains("64"){ if self.authArr.contains("64"){
// self.isGm = true self.isGm = true
// self.btmLbl.text = "直接出库" self.btmLbl.text = "直接出库"
// } }
self.listView.reloadData() self.listView.reloadData()
}) { (error) in }) { (error) in
......
...@@ -72,7 +72,7 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR ...@@ -72,7 +72,7 @@ class CRKListVC: BaseViewController,UITableViewDelegate,UITableViewDataSource,CR
} }
//MARK: - 权限控制 //MARK: - 权限控制
var isGm = false var isGm = true
private let animations = [AnimationType.from(direction: .bottom, offset: 300*glscale)] private let animations = [AnimationType.from(direction: .bottom, offset: 300*glscale)]
......
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