Commit 384db1bc authored by pete谢兆麟's avatar pete谢兆麟

高才列表bug修复

parent e368eb3a
...@@ -68,7 +68,11 @@ class YHGCMySignatureDetailViewController: YHBaseViewController { ...@@ -68,7 +68,11 @@ class YHGCMySignatureDetailViewController: YHBaseViewController {
self.bottomButton.isEnabled = true self.bottomButton.isEnabled = true
self.bottomView.isHidden = false self.bottomView.isHidden = false
self.bottomButton.alpha = 1 self.bottomButton.alpha = 1
if self.viewModel.mainModel?.docType == 1001 {
self.bottomButton.setTitle("确定已签章,提交", for: .normal) self.bottomButton.setTitle("确定已签章,提交", for: .normal)
} else {
self.bottomButton.setTitle("确定已签署,提交", for: .normal)
}
} else if state == 1004 || state == 1005 { } else if state == 1004 || state == 1005 {
self.bottomButton.isEnabled = false self.bottomButton.isEnabled = false
self.bottomView.isHidden = false self.bottomView.isHidden = false
...@@ -78,12 +82,10 @@ class YHGCMySignatureDetailViewController: YHBaseViewController { ...@@ -78,12 +82,10 @@ class YHGCMySignatureDetailViewController: YHBaseViewController {
self.bottomView.isHidden = true self.bottomView.isHidden = true
self.bottomButton.isEnabled = true self.bottomButton.isEnabled = true
self.bottomButton.alpha = 1 self.bottomButton.alpha = 1
self.bottomButton.setTitle("确定已签章,提交", for: .normal)
} else if state == 1006 { } else if state == 1006 {
self.bottomView.isHidden = true
self.bottomButton.isEnabled = true self.bottomButton.isEnabled = true
self.bottomView.isHidden = false
self.bottomButton.alpha = 1 self.bottomButton.alpha = 1
self.bottomButton.setTitle("确定已签章,提交", for: .normal)
} }
self.tableView.reloadData() self.tableView.reloadData()
} else { } else {
...@@ -332,7 +334,7 @@ extension YHGCMySignatureDetailViewController: UITableViewDelegate, UITableViewD ...@@ -332,7 +334,7 @@ extension YHGCMySignatureDetailViewController: UITableViewDelegate, UITableViewD
} }
} }
} else { } else {
YHHUD.flash(message: "文书编写中,请稍候查看")
} }
} }
} }
...@@ -540,7 +542,7 @@ extension YHGCMySignatureDetailViewController: UITableViewDelegate, UITableViewD ...@@ -540,7 +542,7 @@ extension YHGCMySignatureDetailViewController: UITableViewDelegate, UITableViewD
return 180 return 180
} else { } else {
guard let count = self.viewModel.mainModel?.signedDocument.count else { return CGFloat(221) } guard let count = self.viewModel.mainModel?.signedDocument.count else { return CGFloat(221) }
if self.viewModel.mainModel?.docStatus == 1007 { if self.viewModel.mainModel?.docStatus == 1007 || self.viewModel.mainModel?.docStatus == 1006 {
return CGFloat(168 + count * 71) return CGFloat(168 + count * 71)
} else { } else {
return CGFloat(221 + count * 71) return CGFloat(221 + count * 71)
......
...@@ -293,11 +293,12 @@ class YHGCSignatureToActionTableViewCell: UITableViewCell { ...@@ -293,11 +293,12 @@ class YHGCSignatureToActionTableViewCell: UITableViewCell {
flagLabel.textColor = UIColor.brandMainColor flagLabel.textColor = UIColor.brandMainColor
if dataSource.docType == 1001 { if dataSource.docType == 1001 {
flagLabel.text = "待签章" flagLabel.text = "待签章"
editButton.setTitle("查看", for: .normal)
} else { } else {
flagLabel.text = "待签署" flagLabel.text = "待签署"
editButton.setTitle("签署", for: .normal)
} }
flagLabel.backgroundColor = UIColor(hex: 0xebf0f9) flagLabel.backgroundColor = UIColor(hex: 0xebf0f9)
editButton.setTitle("查看", for: .normal)
} else if dataSource.docStatus == 1004 || dataSource.docStatus == 1006 || dataSource.docStatus == 1005 { } else if dataSource.docStatus == 1004 || dataSource.docStatus == 1006 || dataSource.docStatus == 1005 {
bottomLeftLineView.isHidden = true bottomLeftLineView.isHidden = true
editButton.isHidden = true editButton.isHidden = true
......
...@@ -187,8 +187,12 @@ class YHGCSignatureUploadTableViewCell: UITableViewCell { ...@@ -187,8 +187,12 @@ class YHGCSignatureUploadTableViewCell: UITableViewCell {
if dataSource.docType == 1001 { if dataSource.docType == 1001 {
downLoadButton.setTitle("下载待签章文件", for: .normal) downLoadButton.setTitle("下载待签章文件", for: .normal)
bottomView.addBtn.setTitle("上传已签章件".local, for: .normal)
titleLabel.text = "上传已签章件"
} else { } else {
downLoadButton.setTitle("下载待签署文件", for: .normal) downLoadButton.setTitle("下载待签署文件", for: .normal)
bottomView.addBtn.setTitle("上传已签署件".local, for: .normal)
titleLabel.text = "上传已签署件"
} }
var y = 0 var y = 0
...@@ -234,7 +238,7 @@ class YHGCSignatureUploadTableViewCell: UITableViewCell { ...@@ -234,7 +238,7 @@ class YHGCSignatureUploadTableViewCell: UITableViewCell {
self.bottomView.addBtn.isEnabled = false self.bottomView.addBtn.isEnabled = false
} }
if dataSource.docStatus == 1007 { if dataSource.docStatus == 1007 || dataSource.docStatus == 1006 {
self.bottomView.isHidden = true self.bottomView.isHidden = true
mainItemView.snp.remakeConstraints { make in mainItemView.snp.remakeConstraints { make in
make.left.right.equalToSuperview() make.left.right.equalToSuperview()
......
...@@ -56,6 +56,7 @@ class YHGCWorkItemListViewModel: YHBaseViewModel { ...@@ -56,6 +56,7 @@ class YHGCWorkItemListViewModel: YHBaseViewModel {
mainModel.consent_work_id = item?.id ?? 0 mainModel.consent_work_id = item?.id ?? 0
} }
let item2 = YHWorkExperienceModel(id: .id4, isNeed: true, title: "可提供的在职公司", isUserKeyBoard: false, prompts: "请选择", message: company, type: .myCompany, isShowPrompts: isShowPrompt, alertMessage:"请选择") let item2 = YHWorkExperienceModel(id: .id4, isNeed: true, title: "可提供的在职公司", isUserKeyBoard: false, prompts: "请选择", message: company, type: .myCompany, isShowPrompts: isShowPrompt, alertMessage:"请选择")
if mainModel.has_work_experience == 1 {
if has_company_consent == 2 { if has_company_consent == 2 {
let section = YHSectionWorkExperienceModel(title: "赴港同意书提供", models: [item]) let section = YHSectionWorkExperienceModel(title: "赴港同意书提供", models: [item])
return section return section
...@@ -69,6 +70,10 @@ class YHGCWorkItemListViewModel: YHBaseViewModel { ...@@ -69,6 +70,10 @@ class YHGCWorkItemListViewModel: YHBaseViewModel {
let section = YHSectionWorkExperienceModel(title: "赴港同意书提供", models: [item]) let section = YHSectionWorkExperienceModel(title: "赴港同意书提供", models: [item])
return section return section
} }
} else {
let section = YHSectionWorkExperienceModel(title: "赴港同意书提供", models: [item1])
return section
}
} }
func requestWorkList(_ orderId: String, callBackBlock:@escaping (_ success: [YHWorkItemListModel]?, _ error:YHErrorModel?)->()) { func requestWorkList(_ orderId: String, callBackBlock:@escaping (_ success: [YHWorkItemListModel]?, _ error:YHErrorModel?)->()) {
......
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