Commit 072a26c9 authored by pete谢兆麟's avatar pete谢兆麟

我的签字

parent 4a071546
......@@ -14,7 +14,6 @@ class YHGCMySignatureDetailViewController: YHBaseViewController {
var bottomView: UIView!
var bottomButton: UIButton!
var tableView: UITableView!
var promptView: YHFailPromptView!
var dataSource: [YHWorkItemListModel]?
var viewModel: YHGCMySignatureDetailViewModel!
var id: Int = 0
......@@ -66,36 +65,25 @@ class YHGCMySignatureDetailViewController: YHBaseViewController {
// 1000 1001 1002 1003-待签署; 1004-已签署; 1005-待审核; 1006-已驳回; 1007-已完成
if state == 1000 || state == 1001 || state == 1002 || state == 1003 {
self.promptView.isHidden = true
self.bottomButton.isEnabled = true
self.bottomView.isHidden = false
self.bottomButton.alpha = 1
self.bottomButton.setTitle("确定已签章,提交", for: .normal)
} else if state == 1004 || state == 1005 {
self.promptView.isHidden = true
self.bottomButton.isEnabled = false
self.bottomView.isHidden = false
self.bottomButton.alpha = 0.4
self.bottomButton.setTitle("提交成功", for: .normal)
} else if state == 1007 {
self.promptView.isHidden = true
self.bottomView.isHidden = true
self.bottomButton.isEnabled = true
self.bottomButton.alpha = 1
self.bottomButton.setTitle("确定已签章,提交", for: .normal)
} else if state == 1006 {
self.promptView.isHidden = false
self.promptView.setPrompt(self.viewModel.mainModel?.audit_opinion ?? "")
self.bottomButton.isEnabled = true
self.bottomView.isHidden = false
self.bottomButton.alpha = 1
self.bottomButton.setTitle("确定已签章,提交", for: .normal)
let height = self.getPromptHeight(self.viewModel.mainModel?.audit_opinion ?? "")
self.promptView.snp.remakeConstraints { make in
make.height.equalTo(height)
make.bottom.equalTo(-k_Height_safeAreaInsetsBottom() - 64)
make.left.right.equalTo(self.view)
}
}
self.tableView.reloadData()
} else {
......@@ -147,18 +135,6 @@ class YHGCMySignatureDetailViewController: YHBaseViewController {
make.left.right.bottom.equalTo(view)
}
promptView = {
let view = YHFailPromptView()
view.isHidden = true
return view
}()
view.addSubview(promptView)
promptView.snp.makeConstraints { make in
make.height.equalTo(35)
make.bottom.equalTo(-k_Height_safeAreaInsetsBottom() - 64)
make.left.right.equalTo(view)
}
bottomView = {
let bottom = UIView()
bottom.backgroundColor = .white
......
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