Commit 91b39340 authored by lujunye's avatar lujunye

补回物流公司,运单号显示

parent 2af5c9a1
...@@ -104,8 +104,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -104,8 +104,8 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
// let YuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","支付方式","支付状态","买家留言","订单备注"] // let YuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","支付方式","支付状态","买家留言","订单备注"]
// let isYuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","定金支付方式","定金支付状态","尾款支付方式","尾款支付状态","买家留言","订单备注"] // let isYuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","物流公司","运单号","定金支付方式","定金支付状态","尾款支付方式","尾款支付状态","买家留言","订单备注"]
//新的 //新的
let YuShouPart3Arr = ["订单编号","下单时间","订单来源","关联凭证","提货方式","支付方式","支付状态","买家留言","订单备注"] let YuShouPart3Arr = ["订单编号","下单时间","订单来源","关联凭证","物流公司","运单号","提货方式","支付方式","支付状态","买家留言","订单备注"]
let isYuShouPart3Arr = ["订单编号","下单时间","订单来源","关联凭证","提货方式","定金支付方式","定金支付状态","尾款支付方式","尾款支付状态","买家留言","订单备注"] let isYuShouPart3Arr = ["订单编号","下单时间","订单来源","关联凭证","物流公司","运单号","提货方式","定金支付方式","定金支付状态","尾款支付方式","尾款支付状态","买家留言","订单备注"]
let nonYuShouPart3Arr = ["收货人","联系电话","地址"] let nonYuShouPart3Arr = ["收货人","联系电话","地址"]
...@@ -668,7 +668,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -668,7 +668,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
if isYuShou { if isYuShou {
isYushoucount = 2 isYushoucount = 2
} }
if indexPath.row == (8 + isYushoucount){ if indexPath.row == 5 || indexPath.row == (10 + isYushoucount){
let cell = tableView.dequeueReusableCell(withIdentifier: "PingLunCell") as! PingLunCell let cell = tableView.dequeueReusableCell(withIdentifier: "PingLunCell") as! PingLunCell
cell.tag = indexPath.row cell.tag = indexPath.row
...@@ -679,7 +679,21 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -679,7 +679,21 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
} }
switch indexPath.row { switch indexPath.row {
case 8: case 5:
cell.contentLbl.text = self.dataMdoel?.order_res?.lwb_no
if self.dataMdoel?.order_res?.lwb_no == nil {
cell.contentLbl.text = "-"
}else if cell.contentLbl.text?.count == 0 {
cell.contentLbl.text = "请输入物流单号"
if !isCaneditLatsData {
//MARK:-不能进行修改了
cell.contentLbl.text = "-"
}
}
break
case 10:
cell.contentLbl.text = self.dataMdoel?.order_res?.order_postscript cell.contentLbl.text = self.dataMdoel?.order_res?.order_postscript
if self.dataMdoel?.order_res?.order_postscript == nil { if self.dataMdoel?.order_res?.order_postscript == nil {
cell.contentLbl.text = "-" cell.contentLbl.text = "-"
...@@ -705,7 +719,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -705,7 +719,7 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
} }
return cell return cell
} }
if indexPath.row == 5 || indexPath.row == 6 || indexPath.row == (5 + isYushoucount) || indexPath.row == (6 + isYushoucount){ if indexPath.row == 4 || indexPath.row == 7 || indexPath.row == 8 || indexPath.row == (7 + isYushoucount) || indexPath.row == (8 + isYushoucount){
if isYuShou { if isYuShou {
cell.nameLbl.text = isYuShouPart3Arr[indexPath.row] cell.nameLbl.text = isYuShouPart3Arr[indexPath.row]
...@@ -716,12 +730,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -716,12 +730,12 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell.arrowImg.isHidden = false cell.arrowImg.isHidden = false
cell.contentRight.constant = 32 cell.contentRight.constant = 32
if indexPath.row == 8 { if indexPath.row == 10 {
if self.dataMdoel?.order_res?.sale_res?.wk_pay_type == 11 || self.dataMdoel?.order_res?.sale_res?.wk_pay_type == 12 { if self.dataMdoel?.order_res?.sale_res?.wk_pay_type == 11 || self.dataMdoel?.order_res?.sale_res?.wk_pay_type == 12 {
cell.arrowImg.isHidden = true cell.arrowImg.isHidden = true
cell.contentRight.constant = 15 cell.contentRight.constant = 15
} }
}else if indexPath.row == 6 { }else if indexPath.row == 8 {
if isYuShou { if isYuShou {
if self.dataMdoel?.order_res?.sale_res?.dj_pay_type == 11 || self.dataMdoel?.order_res?.sale_res?.dj_pay_type == 12 { if self.dataMdoel?.order_res?.sale_res?.dj_pay_type == 11 || self.dataMdoel?.order_res?.sale_res?.dj_pay_type == 12 {
cell.arrowImg.isHidden = true cell.arrowImg.isHidden = true
...@@ -736,16 +750,18 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -736,16 +750,18 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
} }
switch indexPath.row { switch indexPath.row {
case 5: case 4:
cell.contentLbl.text = self.dataMdoel?.order_res?.lc_name
break
case 7:
if isYuShou { if isYuShou {
cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.dj_pay_type_cn cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.dj_pay_type_cn
}else{ }else{
cell.contentLbl.text = self.dataMdoel?.order_res?.pay_type_cn cell.contentLbl.text = self.dataMdoel?.order_res?.pay_type_cn
} }
break break
case 6: case 8:
if isYuShou { if isYuShou {
cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.dj_pay_status_cn cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.dj_pay_status_cn
...@@ -756,14 +772,14 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -756,14 +772,14 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
cell.arrowImg.isHidden = true cell.arrowImg.isHidden = true
cell.contentRight.constant = 15 cell.contentRight.constant = 15
break break
case 7: case 9:
if isYuShou { if isYuShou {
cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.wk_pay_type_cn cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.wk_pay_type_cn
}else{ }else{
cell.contentLbl.text = StringByInt(number: (self.dataMdoel?.order_res?.sale_res?.wk_pay_type!)!) cell.contentLbl.text = StringByInt(number: (self.dataMdoel?.order_res?.sale_res?.wk_pay_type!)!)
} }
break break
case 8: case 10:
cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.wk_pay_status_cn cell.contentLbl.text = self.dataMdoel?.order_res?.sale_res?.wk_pay_status_cn
cell.arrowImg.isHidden = true cell.arrowImg.isHidden = true
cell.contentRight.constant = 15 cell.contentRight.constant = 15
...@@ -811,14 +827,15 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa ...@@ -811,14 +827,15 @@ class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDa
case 3: case 3:
cell.textTF.text = self.dataMdoel?.order_res?.order_associated_code cell.textTF.text = self.dataMdoel?.order_res?.order_associated_code
break break
case 4: case 6:
if self.dataMdoel?.order_res?.shipping_type == 1 { if self.dataMdoel?.order_res?.shipping_type == 1 {
cell.textTF.text = "派送" cell.textTF.text = "派送"
}else{ }else{
cell.textTF.text = "自提" cell.textTF.text = "自提"
} }
break break
case (7 + isYushoucount):
case (9 + isYushoucount):
cell.textTF.text = self.dataMdoel?.order_res?.postscript cell.textTF.text = self.dataMdoel?.order_res?.postscript
break break
......
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