Commit b3a26d71 authored by lujunye's avatar lujunye

萨达是打发斯蒂芬

parent f3119db8
...@@ -106,6 +106,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -106,6 +106,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
"demo":"" as Any, "demo":"" as Any,
"typeid":pphCarTypesArr[pph_selectCarType].type as Any, "typeid":pphCarTypesArr[pph_selectCarType].type as Any,
"tailplate":0 as Any, "tailplate":0 as Any,
"sale_plat":pph_guanlianPingStr as Any,
"order_sn":pph_guanlianDingStr as Any,
"addinfos":infosData as Any "addinfos":infosData as Any
] ]
...@@ -140,7 +142,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -140,7 +142,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
@IBOutlet weak var pph_milelbl: UILabel! @IBOutlet weak var pph_milelbl: UILabel!
@IBOutlet weak var pph_priceLbl: UILabel! @IBOutlet weak var pph_priceLbl: UILabel!
var totalPrice = "" var totalPrice = ""
func P_P_H_Adr_VC_Data(adrData: addPinPinOrder_adrInfo, isSend: Bool, idx: Int) { func P_P_H_Adr_VC_Data(adrData:addPinPinOrder_adrInfo,isSend:Bool,idx:Int) {
if isSend { if isSend {
if pph_send_arr.count == 0 { if pph_send_arr.count == 0 {
pph_send_arr.append(adrData) pph_send_arr.append(adrData)
...@@ -943,11 +945,26 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -943,11 +945,26 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
//MARK:--关联信息 //MARK:--关联信息
var guanlianDingStr:String? = "" var guanlianDingStr:String? = ""
var guanlianPingStr:String? = "" var guanlianPingStr:String? = ""
var pph_guanlianDingStr:String = ""
var pph_guanlianPingStr:String? = ""
func TitleAndTFBtnCellEndEdit(contentStr: String, cellTag: Int) { func TitleAndTFBtnCellEndEdit(contentStr: String, cellTag: Int) {
if cellTag == 0 { switch cellTag {
case 0:
guanlianDingStr = contentStr guanlianDingStr = contentStr
}else if cellTag == 1 { break
case 1:
guanlianPingStr = contentStr guanlianPingStr = contentStr
break
case 4:
pph_guanlianPingStr = contentStr
break
case 5:
pph_guanlianDingStr = contentStr
break
default:
break
} }
} }
...@@ -1095,6 +1112,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1095,6 +1112,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
getPPH_Price() getPPH_Price()
} }
} }
var pphCarTypesArr:Array<getVehicleTypeData_model> = [] var pphCarTypesArr:Array<getVehicleTypeData_model> = []
@IBAction func selectAction(_ sender: UIButton) { @IBAction func selectAction(_ sender: UIButton) {
...@@ -1110,7 +1128,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1110,7 +1128,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if adrDatas.count == 0{ if adrDatas.count == 0{
HUD.flash(.progress) HUD.flash(.progress)
cityList(["user_token":UserToken as Any,"nonce_str":nonce_str as Any], success: { (data) in cityList(["user_token":UserToken as Any,"nonce_str":nonce_str as Any], success: { (data) in
let model = data as! cityListModel let model = data as! cityListModel
if model.data == nil { if model.data == nil {
HUD.flash(.label("暂无数据"), delay: 1.2) HUD.flash(.label("暂无数据"), delay: 1.2)
...@@ -1140,7 +1157,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1140,7 +1157,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
} }
} }
}else{ }else{
if leftBtn == sender {//普通冷运 if leftBtn == sender {//普通冷运
locBtn.isUserInteractionEnabled = false locBtn.isUserInteractionEnabled = false
rightBtn.isSelected = false rightBtn.isSelected = false
...@@ -1148,7 +1164,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1148,7 +1164,6 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
p_p_view.isHidden = true p_p_view.isHidden = true
pin_pin_huo.isSelected = false pin_pin_huo.isSelected = false
hllView.isHidden = true hllView.isHidden = true
}else{//MARK: - 拼拼货 }else{//MARK: - 拼拼货
isPPH = true isPPH = true
rightBtn.isSelected = false rightBtn.isSelected = false
...@@ -1158,9 +1173,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1158,9 +1173,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
p_p_view.isHidden = false p_p_view.isHidden = false
pphCarList() pphCarList()
} }
} }
} }
func pphCarList(){ func pphCarList(){
rightBtn.isSelected = false rightBtn.isSelected = false
leftBtn.isSelected = false leftBtn.isSelected = false
...@@ -1184,8 +1199,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1184,8 +1199,8 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
make.height.equalTo(1) make.height.equalTo(1)
make.left.right.bottom.equalTo(0) make.left.right.bottom.equalTo(0)
} }
} }
fileprivate func getPPHCar(){ fileprivate func getPPHCar(){
getVehicleType(["user_token":UserToken as Any]) { (data) in getVehicleType(["user_token":UserToken as Any]) { (data) in
let model = data as! getVehicleType_model let model = data as! getVehicleType_model
...@@ -1201,7 +1216,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -1201,7 +1216,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if self.pphCarTypesArr.count == 0 { if self.pphCarTypesArr.count == 0 {
HUD.flash(.label("暂无车型可供选择"), delay: 1.2) HUD.flash(.label("暂无车型可供选择"), delay: 1.2)
} }
let cell = self.pph_listView.cellForRow(at: IndexPath(row: 0, section: 0)) as! HLLTopCell let cell = self.pph_listView.cellForRow(at:IndexPath(row:0,section:0)) as! HLLTopCell
cell.idx = 0 cell.idx = 0
cell.scrollView?.setContentOffset(CGPoint(x: 0, y: 0), animated: false) cell.scrollView?.setContentOffset(CGPoint(x: 0, y: 0), animated: false)
cell.tjLbl.text = "--" cell.tjLbl.text = "--"
...@@ -2538,7 +2553,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie ...@@ -2538,7 +2553,9 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
if indexPath.row == 1 { if indexPath.row == 1 {
cell.nameLbl.text = "关联订单号:" cell.nameLbl.text = "关联订单号:"
} }
cell.tag = indexPath.section + indexPath.row
cell.edit_btn.setTitleColor(UIColor(named: "green"), for: .normal) cell.edit_btn.setTitleColor(UIColor(named: "green"), for: .normal)
cell.delegate = self
return cell 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