Commit e45207fc authored by Tiank's avatar Tiank

待办列表添加内容预览

parent af6e6022
...@@ -90,34 +90,14 @@ class TodoViewController: BaseTableViewPullController { ...@@ -90,34 +90,14 @@ class TodoViewController: BaseTableViewPullController {
let lindanVC = HomeLinDanController.instantiateViewController(.Function) as! HomeLinDanController let lindanVC = HomeLinDanController.instantiateViewController(.Function) as! HomeLinDanController
lindanVC.model = model lindanVC.model = model
pushVC(lindanVC) pushVC(lindanVC)
// ShowAlertView(hint, "请确认是否领单?", [cancel,sure], .alert, {[weak self] (index) in
// if index == kZERO { return }
// self?.orderDetailViewModel.getChildBillAction(model.entityUuid).subscribe(onNext: { () in
// self?.loadDataWhenDraw()
// ShowMessage("领取成功")
// Network.request(target: Service.ChildOrderComplete(model.entityUuid, "drew"), success: { (json) in
//
// }, failure: { (error) in
//
// })
// }).disposed(by: self!.disposeBag)
// })
break break
case TODO_STATE.DREW: case TODO_STATE.DREW:
// if !PermissionsManager.saveChildPermissions() {
// ShowMessage("当前用户对此工单没有编辑权限!")
// return;
// }
let childBillVc = RepairOrderEditSonOrderViewController.instantiateViewController(.Function) as! RepairOrderEditSonOrderViewController let childBillVc = RepairOrderEditSonOrderViewController.instantiateViewController(.Function) as! RepairOrderEditSonOrderViewController
childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary())) childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary()))
childBillVc.billModel.uuid = model.entityUuid childBillVc.billModel.uuid = model.entityUuid
pushVC(childBillVc) pushVC(childBillVc)
break break
case TODO_STATE.PROCESSING: case TODO_STATE.PROCESSING:
// if !PermissionsManager.childViewPermissions() {
// ShowMessage("当前用户对此工单没有查看权限!")
// return;
// }
let childBillVc = RepairOrderChildBillDetailViewController.instantiateViewController(.Function) as! RepairOrderChildBillDetailViewController let childBillVc = RepairOrderChildBillDetailViewController.instantiateViewController(.Function) as! RepairOrderChildBillDetailViewController
childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary())) childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary()))
childBillVc.billModel.uuid = model.entityUuid childBillVc.billModel.uuid = model.entityUuid
......
...@@ -10,7 +10,8 @@ import UIKit ...@@ -10,7 +10,8 @@ import UIKit
class TodoTableViewCell: UITableViewCell { class TodoTableViewCell: UITableViewCell {
/// 内容
@IBOutlet weak var contentLabel: UILabel!
/// 标题 + code /// 标题 + code
@IBOutlet weak var titleCodeLabel: UILabel! @IBOutlet weak var titleCodeLabel: UILabel!
/// 操作时间 /// 操作时间
...@@ -34,6 +35,7 @@ class TodoTableViewCell: UITableViewCell { ...@@ -34,6 +35,7 @@ class TodoTableViewCell: UITableViewCell {
} }
operationDateLabel.text = String(format: "%@", model.createTime) operationDateLabel.text = String(format: "%@", model.createTime)
todoStateLabel.text = model.workState.getStateString() todoStateLabel.text = model.workState.getStateString()
contentLabel.text = model.content
} }
} }
...@@ -72,9 +72,9 @@ class HomeTableViewController: BaseTableViewPullController { ...@@ -72,9 +72,9 @@ class HomeTableViewController: BaseTableViewPullController {
return todoViewModel.todoResultArray.count return todoViewModel.todoResultArray.count
} }
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { // func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 60 // return 60
} // }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true) tableView.deselectRow(at: indexPath, animated: true)
...@@ -96,21 +96,12 @@ class HomeTableViewController: BaseTableViewPullController { ...@@ -96,21 +96,12 @@ class HomeTableViewController: BaseTableViewPullController {
pushVC(lindanVC) pushVC(lindanVC)
break break
case TODO_STATE.DREW: case TODO_STATE.DREW:
// if !PermissionsManager.saveChildPermissions() {
// ShowMessage("当前用户对此工单没有编辑权限!")
// return;
// }
let childBillVc = RepairOrderEditSonOrderViewController.instantiateViewController(.Function) as! RepairOrderEditSonOrderViewController let childBillVc = RepairOrderEditSonOrderViewController.instantiateViewController(.Function) as! RepairOrderEditSonOrderViewController
childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary())) childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary()))
childBillVc.billModel.uuid = model.entityUuid childBillVc.billModel.uuid = model.entityUuid
pushVC(childBillVc) pushVC(childBillVc)
break break
case TODO_STATE.PROCESSING: case TODO_STATE.PROCESSING:
// if !PermissionsManager.childViewPermissions() {
// ShowMessage("当前用户对此工单没有查看权限!")
// return;
// }
let childBillVc = RepairOrderChildBillDetailViewController.instantiateViewController(.Function) as! RepairOrderChildBillDetailViewController let childBillVc = RepairOrderChildBillDetailViewController.instantiateViewController(.Function) as! RepairOrderChildBillDetailViewController
childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary())) childBillVc.billModel = BillDetailExecute(fromJson: JSON(model.toDictionary()))
childBillVc.billModel.uuid = model.entityUuid childBillVc.billModel.uuid = model.entityUuid
......
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
import UIKit import UIKit
class HomeTableViewCell: UITableViewCell { class HomeTableViewCell: UITableViewCell {
/** 内容 */
@IBOutlet weak var contentLabel: UILabel!
/// 部门(代码) /// 部门(代码)
@IBOutlet weak var departmentLabel: UILabel! @IBOutlet weak var departmentLabel: UILabel!
/// 单据时间 /// 单据时间
...@@ -28,6 +29,7 @@ class HomeTableViewCell: UITableViewCell { ...@@ -28,6 +29,7 @@ class HomeTableViewCell: UITableViewCell {
departmentLabel.text = model.dept.name + titleString departmentLabel.text = model.dept.name + titleString
} }
orderTimeLabel.text = String(format: "创建时间:%@", model.createTime) orderTimeLabel.text = String(format: "创建时间:%@", model.createTime)
contentLabel.text = model.content
} }
} }
This diff is collapsed.
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.1.7</string> <string>1.1.9</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.1.7</string> <string>1.1.9</string>
<key>LSRequiresIPhoneOS</key> <key>LSRequiresIPhoneOS</key>
<true/> <true/>
<key>NSAppTransportSecurity</key> <key>NSAppTransportSecurity</key>
......
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