Commit 8beca19e authored by 刘俊宏's avatar 刘俊宏

下单列表完善

parent a06773ef
...@@ -719,6 +719,17 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea ...@@ -719,6 +719,17 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
let rowModel = datas[indexPath.row] let rowModel = datas[indexPath.row]
if rowModel.lc_name == "货拉拉" {
if rowModel.delivery_status == 1 {
return 257
}
if rowModel.delivery_status == 4 && rowModel.pay_status == 1 {
return 257
}
return 227
}
if rowModel.delivery_status == 1 { if rowModel.delivery_status == 1 {
return 257 return 257
} }
...@@ -742,15 +753,27 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea ...@@ -742,15 +753,27 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
cell.acButton.isHidden = true cell.acButton.isHidden = true
let rowModel = datas[indexPath.row] let rowModel = datas[indexPath.row]
if rowModel.lc_name == "货拉拉" {
if rowModel.delivery_status == 1 { if rowModel.delivery_status == 1 {
cell.acButton.isHidden = false cell.acButton.isHidden = false
cell.acButton.setTitle("取消运单", for: .normal) cell.acButton.setTitle("取消运单", for: .normal)
}
if ((rowModel.freight)! > 0) && rowModel.pay_status == 1 { }
cell.acButton.isHidden = false if rowModel.delivery_status == 4 && rowModel.pay_status == 1 {
cell.acButton.setTitle("支付运费", for: .normal) cell.acButton.isHidden = false
cell.acButton.setTitle("支付运费", for: .normal)
}
}else{
if rowModel.delivery_status == 1 {
cell.acButton.isHidden = false
cell.acButton.setTitle("取消运单", for: .normal)
}
if ((rowModel.freight)! > 0) && rowModel.pay_status == 1 {
cell.acButton.isHidden = false
cell.acButton.setTitle("支付运费", for: .normal)
}
} }
cell.acButton.tag = indexPath.row cell.acButton.tag = indexPath.row
cell.title1.text = "运单号:" + rowModel.lwb_no! cell.title1.text = "运单号:" + rowModel.lwb_no!
...@@ -774,13 +797,25 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea ...@@ -774,13 +797,25 @@ class YDLBVc: BaseViewController,UITableViewDelegate,UITableViewDataSource,UISea
if rowModel.order_sn?.count == 0 { if rowModel.order_sn?.count == 0 {
cell.orderNumLbl.text = "订单号:-" cell.orderNumLbl.text = "订单号:-"
} }
return cell return cell
} }
//MARK:--cell 按钮方法 //MARK:--cell 按钮方法
var paymentView:PaymentView? var paymentView:PaymentView?
var selectIndex: Int? var selectIndex: Int?
func YunDanLieBiaoCellAction(sender: UIButton) { func YunDanLieBiaoCellAction(sender: UIButton) {
let rowModel = datas[sender.tag] let rowModel = datas[sender.tag]
if rowModel.lc_name == "货拉拉" {
let vc = WaybillDetailViewController()
vc.lwb_no = rowModel.lwb_no!
self.navigationController?.pushViewController(vc, animated: true)
return
}
selectIndex = sender.tag selectIndex = sender.tag
switch sender.titleLabel?.text { switch sender.titleLabel?.text {
case "支付运费": case "支付运费":
......
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