Commit 11732d8a authored by lujunye's avatar lujunye

调整为普通流程

parent 5c50ce17
......@@ -238,10 +238,10 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
self.lgBtnTitLbl.text = "提交申请"
if self.authArr.contains("63"){
self.isGm = true
self.lgBtnTitLbl.text = "直接入库"
}
// if self.authArr.contains("63"){
// self.isGm = true
// self.lgBtnTitLbl.text = "直接入库"
// }
model.data?.warehouse_res?.forEach({ (item) in
self.rkWareHouseArr.append(item)
......@@ -357,7 +357,7 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
cell.nameLbl.text = data.goods_name
cell.detailLbl.text = data.spec_str! + " " + \(data.price!)"
cell.rkPriceTf.text = "\(data.price!)"
cell.rkCountTf.text = ""
cell.rkCountTf.text = "1"
cell.bzqTf.text = ""
cell.timeLbl.text = "请选择生产日期"
if data.RKJG != nil {
......@@ -365,6 +365,8 @@ class NewRKVc: BaseViewController ,UITableViewDelegate,UITableViewDataSource, Ne
}
if data.RKSL != nil {
cell.rkCountTf.text = "\(data.RKSL!)"
}else{
cell.rkCountTf.text = "1"
}
if data.BZQ != nil {
cell.bzqTf.text = "\(data.BZQ!)"
......
......@@ -159,8 +159,15 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
//输入数据
let num = sender as NSString
let data = rkSelectArr[cell.tag]
if num.integerValue == 0 {
HUD.flash(.label("出库数量不低于1"), delay: 1.2)
data.chuKuLiang = 1
let idx = IndexPath(row: cell.tag, section: 1)
listView.reloadRows(at: [idx], with: .none)
}else{
data.chuKuLiang = num.integerValue
}
}
@IBOutlet weak var btmBtn: LGButton!
@IBOutlet weak var btmLbl: UILabel!
......@@ -206,10 +213,10 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
}
self.btmLbl.text = "提交申请"
if self.authArr.contains("64"){
self.isGm = true
self.btmLbl.text = "直接出库"
}
// if self.authArr.contains("64"){
// self.isGm = true
// self.btmLbl.text = "直接出库"
// }
self.listView.reloadData()
}) { (error) in
......@@ -227,6 +234,7 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section == 1 {
if isGm {
let cell = tableView.dequeueReusableCell(withIdentifier: "CKGmCell") as! CKGmCell
cell.tag = indexPath.row
......@@ -261,6 +269,8 @@ class NewCKVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,CKNo
cell.detailLbl.text = data.spec_str
if data.chuKuLiang != nil {
cell.ckCountTf.text = "\(data.chuKuLiang!)"
}else{
cell.ckCountTf.text = "1"
}
return cell
......
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