Commit cea17f4a authored by 刘俊宏's avatar 刘俊宏

补全分销订单列表跳转区域+补全分销订单详情佣金结算时间异常数据的展示

parent b2f3400b
......@@ -138,7 +138,18 @@ class RetailManageDetailViewController: BaseViewController ,UITableViewDelegate,
cell.textTF.text = "-"
}
case 3:
cell.textTF.text = self.dataMdoel?.dbt_info?.commission_time
if self.dataMdoel?.dbt_info?.commission_time != nil{
if (self.dataMdoel?.dbt_info?.commission_time!.count)! > 0{
cell.textTF.text = self.dataMdoel?.dbt_info?.commission_time
}else{
cell.textTF.text = "-"
}
}else{
cell.textTF.text = "-"
}
case 4:
cell.textTF.text = "¥" + (self.dataMdoel?.order_res!.sum_commission_val)!
default:
......
......@@ -317,8 +317,18 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB
}
@objc func didselectCellHorF(sender:UITapGestureRecognizer){
let vc = RetailManageDetailViewController()
let goodArrModel = self.dataArr[sender.view!.tag]
vc.orderId = goodArrModel.order_id
self.navigationController?.pushViewController(vc, animated: true)
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let headerV = UIView()
let tap = UITapGestureRecognizer(target: self, action: #selector(didselectCellHorF))
headerV.addGestureRecognizer(tap)
headerV.tag = section
let contentV = RetailManageHeaderView()
headerV.addSubview(contentV)
contentV.snp_makeConstraints { (make) in
......@@ -356,6 +366,10 @@ class RetailManageViewController: BaseViewController,UISearchBarDelegate,SearchB
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let footerV = UIView()
let tap = UITapGestureRecognizer(target: self, action: #selector(didselectCellHorF))
footerV.addGestureRecognizer(tap)
footerV.tag = section
let contentV = RetailManageFooterView()
footerV.addSubview(contentV)
contentV.snp_makeConstraints { (make) in
......
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