Commit 1a663eab authored by pete谢兆麟's avatar pete谢兆麟

详情4和5 不展示签署按钮

parent 72870f22
......@@ -274,11 +274,13 @@ class YHMyDocumentsDetailViewController: YHBaseViewController {
}
@objc func submit() {
YHHUD.show(.progress(message: ""))
viewModel.requestSignConfirm("\(self.viewModel.mainModel?.writing_document.doc_sign.id ?? 0)") {[weak self] success, error in
guard let self = self else { return }
YHHUD.hide()
if success {
self.getData()
YHHUD.flash(message: "提交成功")
self.getData()
} else {
if let errorMsg = error?.errorMsg, !errorMsg.isEmpty {
YHHUD.flash(message: errorMsg)
......@@ -463,7 +465,7 @@ extension YHMyDocumentsDetailViewController: UITableViewDelegate, UITableViewDat
let cell = tableView.dequeueReusableCell(withClass: YHDocumentToActionTableViewCell.self)
cell.dataSource = self.viewModel.mainModel
cell.isSign = self.isSign
if self.type == 5 {
if self.type == 5 || self.type == 4 {
cell.isSign = true
}
cell.backgroundColor = .clear
......
......@@ -365,7 +365,7 @@ extension YHMySignatureDetailViewController: UITableViewDelegate, UITableViewDat
let cell = tableView.dequeueReusableCell(withClass: YHSignatureToActionTableViewCell.self)
cell.dataSource = self.viewModel.mainModel
cell.isSign = self.isSign
if self.type == 5 {
if self.type == 5 || self.type == 4 {
cell.isSign = true
}
cell.backgroundColor = .clear
......
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