Commit 3641da40 authored by Tiank's avatar Tiank

工单详情界面 添加领单人

parent e14fb525
......@@ -33,8 +33,6 @@ extension AppDelegate:JPUSHRegisterDelegate{
guard notification.userInfo != nil else {
return
}
let userInfo = notification.userInfo!["extras"]
// SBSkipTool.share.skipViewController(parameters: userInfo as? [AnyHashable : Any])
}
func registerPush(launchOptions: [UIApplicationLaunchOptionsKey: Any]?){
NotificationCenter.default.addObserver(self, selector: #selector(networkDidReceiveMessage(notification:)), name: NSNotification.Name.jpfNetworkDidReceiveMessage, object: nil)
......
......@@ -60,6 +60,7 @@ class RepairOrderDetailViewController: BaseTableViewController {
//条形码
@IBOutlet weak var codeImageView: UIImageView!
@IBOutlet weak var codeLabel: UILabel!
@IBOutlet weak var drawOrderPerson: UILabel!
/// 附件宽度
let imageWidth = ((kWidth - 90) - CGFloat((3 + kONE) * 5)) / 3
/// 工单状态回调
......
......@@ -246,6 +246,15 @@ extension RepairOrderDetailViewModel {
}
controller.codeImageView.image = LBXScanWrapper.createCode128(codeString: billDetailModel.workNo, size: CGSize(width: kWidth - 120, height: 80), qrColor: UIColor.black, bkColor: UIColor.white)
controller.codeLabel.text = billDetailModel.workNo
if billDetailModel.executes != nil{
controller.drawOrderPerson.text = billDetailModel.executes!.map { (model) -> String in
if model.owner != nil{
return model.owner.name
}else{
return ""
}
}.joined(separator: ",")
}
}
// MARK: - 处理空数据
......
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