Commit 51648b74 authored by David黄金龙's avatar David黄金龙

Merge branch 'yinhe-live-1212' of...

Merge branch 'yinhe-live-1212' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into yinhe-live-1212

* 'yinhe-live-1212' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS:
  收入记录测试bug修复
  文案修改
  修改提交逻辑
parents 52ca2c3f 2b3d5862
...@@ -21,8 +21,9 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -21,8 +21,9 @@ class YHInformationPerfectListVC: YHBaseViewController {
submitBtn.isHidden = hasSubmitFlag submitBtn.isHidden = hasSubmitFlag
submitHoldView.isHidden = !hasSubmitFlag submitHoldView.isHidden = !hasSubmitFlag
if hasSubmitFlag == true { if hasSubmitFlag {
headerTitleDesLable.text = "您已提交信息表" headerTitleDesLable.text = "您已提交信息表"
myDeslable.text = "您已提交个人信息表,我的方案详情和个人信息表可点击底部按钮进行查看"
} else { } else {
var name = "" var name = ""
if let applicant = serviceCenterMainReqVM.informationFillStepModel { if let applicant = serviceCenterMainReqVM.informationFillStepModel {
...@@ -40,6 +41,7 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -40,6 +41,7 @@ class YHInformationPerfectListVC: YHBaseViewController {
} }
} }
headerTitleDesLable.text = "您好," + name headerTitleDesLable.text = "您好," + name
myDeslable.text = "此表由主申请人填写,我们将会根据您的个人信息制作资料清单,请按顺序填写,提交后1-2个工作日内联系您哦~"
} }
} }
} }
...@@ -90,7 +92,16 @@ class YHInformationPerfectListVC: YHBaseViewController { ...@@ -90,7 +92,16 @@ class YHInformationPerfectListVC: YHBaseViewController {
return view return view
}() }()
var myDeslable : UILabel!
//提交按钮
var submitBtn: UIButton! var submitBtn: UIButton!
//提交按钮2
var submitBtn2: UIButton!
//我的方案
var mySchemeBtn : UIButton!
//信息预览
var preInforBtn : UIButton!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
...@@ -194,34 +205,58 @@ extension YHInformationPerfectListVC { ...@@ -194,34 +205,58 @@ extension YHInformationPerfectListVC {
func loadData() { func loadData() {
guard let orderId = orderId else { return} guard let orderId = orderId else { return}
self.serviceCenterMainReqVM.getPersonInfoFillStep(params: ["orderId":orderId]) { success, error in self.serviceCenterMainReqVM.getPersonInfoFillStep(params: ["orderId":orderId]) { success, error in
if success == true { if success {
if self.serviceCenterMainReqVM.myInfoFillStep == 7 { if self.serviceCenterMainReqVM.myInfoFillStep == 7 {
self.hasSubmitFlag = true self.hasSubmitFlag = true
} else { } else {
self.hasSubmitFlag = false
if self.serviceCenterMainReqVM.informationFillStepModel?.step == 6 { let retValue = self.serviceCenterMainReqVM.informationFillStepModel?.policy_switch ?? false
self.submitBtn.layer.opacity = 1
self.submitBtn.isEnabled = true if retValue {
self.hasSubmitFlag = true
self.submitBtn.isHidden = true
self.submitHoldView.isHidden = false
self.submitBtn2.isHidden = false
self.preInforBtn.isHidden = true
if self.serviceCenterMainReqVM.informationFillStepModel?.step == 6 {
//提交按钮可点击
self.submitBtn2.layer.opacity = 1
self.submitBtn2.isEnabled = true
} else {
//提交按钮不点击
self.submitBtn2.layer.opacity = 0.4
self.submitBtn2.isEnabled = false
}
} else { } else {
self.submitBtn.layer.opacity = 0.4 self.hasSubmitFlag = false
self.submitBtn.isEnabled = false
self.submitBtn.isHidden = true
self.submitHoldView.isHidden = false
if self.serviceCenterMainReqVM.informationFillStepModel?.step == 6 {
self.submitBtn.layer.opacity = 1
self.submitBtn.isEnabled = true
} else {
self.submitBtn.layer.opacity = 0.4
self.submitBtn.isEnabled = false
}
} }
} }
// self.checkSubmitTips()
} }
self.homeTableView.reloadData() self.homeTableView.reloadData()
} }
} }
//我的评分 -> 我的方案 //我的方案
@objc func goScoreVC() { @objc func goMySchemeVC() {
// //我的评分
// let vc = YHScoreDetailViewController()
// vc.orderId = orderId
// vc.model = serviceCenterMainReqVM.allInfoScoreModel
// navigationController?.pushViewController(vc)
YHMyNewSchemeViewController.shared.goToSchemePage() YHMyNewSchemeViewController.shared.goToSchemePage()
} }
...@@ -252,7 +287,7 @@ extension YHInformationPerfectListVC { ...@@ -252,7 +287,7 @@ extension YHInformationPerfectListVC {
} }
} }
func submitAllInfo() { @objc func submitAllInfo() {
guard let orderId = orderId else { guard let orderId = orderId else {
printLog("error: orderId 为空") printLog("error: orderId 为空")
return return
...@@ -271,7 +306,7 @@ extension YHInformationPerfectListVC { ...@@ -271,7 +306,7 @@ extension YHInformationPerfectListVC {
//2、跳转其他界面 //2、跳转其他界面
if agree == true { if agree == true {
self?.goScoreVC() self?.goMySchemeVC()
} }
} }
//1、刷新当前界面 //1、刷新当前界面
...@@ -335,8 +370,8 @@ extension YHInformationPerfectListVC { ...@@ -335,8 +370,8 @@ extension YHInformationPerfectListVC {
make.height.equalTo(48) make.height.equalTo(48)
} }
//我的积分 -> 我的方案 //我的方案
let scoreButton = { let mySchemeBtn = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor(hex:0xffffff) button.backgroundColor = UIColor(hex:0xffffff)
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
...@@ -346,16 +381,17 @@ extension YHInformationPerfectListVC { ...@@ -346,16 +381,17 @@ extension YHInformationPerfectListVC {
button.layer.cornerRadius = kCornerRadius3 button.layer.cornerRadius = kCornerRadius3
button.layer.borderWidth = 1 button.layer.borderWidth = 1
button.layer.borderColor = UIColor.brandMainColor.cgColor button.layer.borderColor = UIColor.brandMainColor.cgColor
button.addTarget(self, action: #selector(goScoreVC), for: .touchUpInside) button.addTarget(self, action: #selector(goMySchemeVC), for: .touchUpInside)
return button return button
}() }()
submitHoldView.addSubview(scoreButton) submitHoldView.addSubview(mySchemeBtn)
scoreButton.snp.makeConstraints { make in mySchemeBtn.snp.makeConstraints { make in
make.left.top.bottom.equalToSuperview() make.left.top.bottom.equalToSuperview()
make.right.equalTo(submitHoldView.snp.centerX).offset(-6) make.right.equalTo(submitHoldView.snp.centerX).offset(-6)
} }
self.mySchemeBtn = mySchemeBtn
let infoButton = { let preInforBtn = {
let button = UIButton(type: .custom) let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor button.backgroundColor = UIColor.brandMainColor
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
...@@ -367,13 +403,40 @@ extension YHInformationPerfectListVC { ...@@ -367,13 +403,40 @@ extension YHInformationPerfectListVC {
button.addTarget(self, action: #selector(goInfoListVC), for: .touchUpInside) button.addTarget(self, action: #selector(goInfoListVC), for: .touchUpInside)
return button return button
}() }()
submitHoldView.addSubview(infoButton)
infoButton.snp.makeConstraints { make in self.preInforBtn = preInforBtn
submitHoldView.addSubview(preInforBtn)
preInforBtn.snp.makeConstraints { make in
make.right.top.bottom.equalToSuperview()
make.left.equalTo(submitHoldView.snp.centerX).offset(6)
}
preInforBtn.layoutIfNeeded()
preInforBtn.addYinHeGradualLayer()
let submitBtn2 = {
let button = UIButton(type: .custom)
button.backgroundColor = UIColor.brandMainColor
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 16)
button.contentHorizontalAlignment = .center
button.setTitle("提交信息", for: .normal)
button.setTitleColor(.white, for: .normal)
button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true
button.addTarget(self, action: #selector(submitAllInfo), for: .touchUpInside)
button.isHidden = true
return button
}()
self.submitBtn2 = submitBtn2
submitHoldView.addSubview(submitBtn2)
submitBtn2.snp.makeConstraints { make in
make.right.top.bottom.equalToSuperview() make.right.top.bottom.equalToSuperview()
make.left.equalTo(submitHoldView.snp.centerX).offset(6) make.left.equalTo(submitHoldView.snp.centerX).offset(6)
} }
infoButton.layoutIfNeeded() submitBtn2.layoutIfNeeded()
infoButton.addYinHeGradualLayer() submitBtn2.addYinHeGradualLayer()
homeTableView.delegate = self homeTableView.delegate = self
homeTableView.dataSource = self homeTableView.dataSource = self
...@@ -397,6 +460,7 @@ extension YHInformationPerfectListVC { ...@@ -397,6 +460,7 @@ extension YHInformationPerfectListVC {
desLable.numberOfLines = 0 desLable.numberOfLines = 0
desLable.textColor = UIColor.mainTextColor desLable.textColor = UIColor.mainTextColor
desLable.lineBreakMode = .byWordWrapping desLable.lineBreakMode = .byWordWrapping
self.myDeslable = desLable
myHeadView.addSubview(desLable) myHeadView.addSubview(desLable)
desLable.snp.makeConstraints { make in desLable.snp.makeConstraints { make in
......
...@@ -145,7 +145,7 @@ extension YHIncomeRecordWorkExperienceViewController { ...@@ -145,7 +145,7 @@ extension YHIncomeRecordWorkExperienceViewController {
} }
private func setupUI() { private func setupUI() {
gk_navTitle = "工作经验信息填写" gk_navTitle = "收入记录信息填写"
gk_navBarAlpha = 1.0 gk_navBarAlpha = 1.0
gk_navBackgroundColor = .white gk_navBackgroundColor = .white
...@@ -453,8 +453,8 @@ extension YHIncomeRecordWorkExperienceViewController: UITableViewDelegate, UITab ...@@ -453,8 +453,8 @@ extension YHIncomeRecordWorkExperienceViewController: UITableViewDelegate, UITab
case let .documentComfirm(title, question, docs): case let .documentComfirm(title, question, docs):
if let cell = tableView.dequeueReusableCell(withIdentifier: YHIncomeDocumentationConfirmationCell.cellReuseIdentifier) as? YHIncomeDocumentationConfirmationCell { if let cell = tableView.dequeueReusableCell(withIdentifier: YHIncomeDocumentationConfirmationCell.cellReuseIdentifier) as? YHIncomeDocumentationConfirmationCell {
hasAllFileIndexPath = indexPath hasAllFileIndexPath = indexPath
cell.setupCellInfo(title: title, question: question, documents: docs, needShowFailButton: !isHasAllFileOK)
cell.selectedSureButton = YHIncomeRecordHasAllFile(rawValue: companyModel.has_all_file) ?? .unknown cell.selectedSureButton = YHIncomeRecordHasAllFile(rawValue: companyModel.has_all_file) ?? .unknown
cell.setupCellInfo(title: title, question: question, documents: docs, needShowFailButton: !isHasAllFileOK)
cell.didSelectSureButton = { [weak self] flag in cell.didSelectSureButton = { [weak self] flag in
guard let self = self else { guard let self = self else {
return return
......
...@@ -56,7 +56,8 @@ enum YHIncomeType: Int, CaseIterable { ...@@ -56,7 +56,8 @@ enum YHIncomeType: Int, CaseIterable {
"绝对实益拥有人声明书", "绝对实益拥有人声明书",
"企业所得税月(季)度预缴纳税申报表(A类)(前4个季度/前12个月)", "企业所得税月(季)度预缴纳税申报表(A类)(前4个季度/前12个月)",
"企业所得税完税证明(表格式)", "企业所得税完税证明(表格式)",
"企业所得税年度纳税申报表(A类)(近一年度)"] "企业所得税年度纳税申报表(A类)(近一年度)",
"工作证明"]
case .incomeOfHKCompanies: case .incomeOfHKCompanies:
return ["周年申报表", return ["周年申报表",
"审计报告", "审计报告",
...@@ -109,7 +110,9 @@ enum YHIncomeType: Int, CaseIterable { ...@@ -109,7 +110,9 @@ enum YHIncomeType: Int, CaseIterable {
case .incomeOfOtherOverseasCompanies: case .incomeOfOtherOverseasCompanies:
return ["财务报表", return ["财务报表",
"合法纳税及完税证明", "合法纳税及完税证明",
"公司所有权官方证明文件"] "公司所有权官方证明文件",
"工作签证",
"工作证明"]
} }
} }
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved. // Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
// //
import AttributedString
import UIKit import UIKit
class YHIncomeDocumentationConfirmationCell: YHResignDocumentCell { class YHIncomeDocumentationConfirmationCell: YHResignDocumentCell {
...@@ -82,6 +83,8 @@ class YHIncomeDocumentationConfirmationCell: YHResignDocumentCell { ...@@ -82,6 +83,8 @@ class YHIncomeDocumentationConfirmationCell: YHResignDocumentCell {
label.font = .PFSC_R(ofSize: 12) label.font = .PFSC_R(ofSize: 12)
label.textColor = .failColor label.textColor = .failColor
label.text = "请选择" label.text = "请选择"
label.numberOfLines = 0
label.lineBreakMode = .byCharWrapping
return label return label
}() }()
...@@ -135,8 +138,9 @@ class YHIncomeDocumentationConfirmationCell: YHResignDocumentCell { ...@@ -135,8 +138,9 @@ class YHIncomeDocumentationConfirmationCell: YHResignDocumentCell {
extension YHIncomeDocumentationConfirmationCell { extension YHIncomeDocumentationConfirmationCell {
private func updateFailLabel(_ needShowFailButton: Bool) { private func updateFailLabel(_ needShowFailButton: Bool) {
if needShowFailButton { if needShowFailButton || selectedSureButton == .false {
infoFailLabel.isHidden = false infoFailLabel.isHidden = false
infoFailLabel.attributed.text = selectedSureButton.selectedTips()
containerView.snp.remakeConstraints { make in containerView.snp.remakeConstraints { make in
make.left.equalTo(infoTitleLabel.snp.left) make.left.equalTo(infoTitleLabel.snp.left)
make.right.equalToSuperview().offset(-18) make.right.equalToSuperview().offset(-18)
...@@ -149,8 +153,10 @@ extension YHIncomeDocumentationConfirmationCell { ...@@ -149,8 +153,10 @@ extension YHIncomeDocumentationConfirmationCell {
make.right.lessThanOrEqualToSuperview().offset(-18) make.right.lessThanOrEqualToSuperview().offset(-18)
make.bottom.equalToSuperview().offset(-16) make.bottom.equalToSuperview().offset(-16)
} }
} else { } else {
infoFailLabel.isHidden = true infoFailLabel.isHidden = true
infoFailLabel.attributed.text = selectedSureButton.selectedTips()
containerView.snp.remakeConstraints { make in containerView.snp.remakeConstraints { make in
make.left.equalTo(infoTitleLabel.snp.left) make.left.equalTo(infoTitleLabel.snp.left)
make.right.equalToSuperview().offset(-18) make.right.equalToSuperview().offset(-18)
...@@ -336,3 +342,19 @@ class YHIncomeDocumentationView: UIView { ...@@ -336,3 +342,19 @@ class YHIncomeDocumentationView: UIView {
} }
} }
} }
private extension YHIncomeRecordHasAllFile {
func selectedTips() -> ASAttributedString? {
switch self {
case .unknown:
return .init(string: "请选择", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor.failColor))
case .true:
return nil
case .false:
let first: ASAttributedString = .init(string: "若不能提供以上证明材料,将导致您的该收入", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor(hexString: "#8993A2") ?? .gray))
let second: ASAttributedString = .init(string: "不被认可不予加分", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor.failColor))
let third: ASAttributedString = .init(string: ",请尽可能准备以上材料并修改此选项。", .font(UIFont.PFSC_R(ofSize: 12)), .foreground(UIColor(hexString: "#8993A2") ?? .gray))
return first + second + third
}
}
}
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