Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
a438dd2d
Commit
a438dd2d
authored
Dec 31, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收入记录完善提交校验
parent
0c8f007d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
22 deletions
+32
-22
YHGCIncomeRecordViewController.swift
...IncomeRecord(收入记录)/C/YHGCIncomeRecordViewController.swift
+32
-22
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/IncomeRecord(收入记录)/C/YHGCIncomeRecordViewController.swift
View file @
a438dd2d
...
@@ -232,8 +232,13 @@ extension YHGCIncomeRecordViewController {
...
@@ -232,8 +232,13 @@ extension YHGCIncomeRecordViewController {
})
})
thirdSection
.
append
(
.
consentForHKTravel
(
"赴港同意书提供"
,
detail
+
actionStr
,
"在职公司是否可以提供赴港同意书"
))
thirdSection
.
append
(
.
consentForHKTravel
(
"赴港同意书提供"
,
detail
+
actionStr
,
"在职公司是否可以提供赴港同意书"
))
if
viewModel
.
mainModel
.
has_company_consent
==
1
{
if
viewModel
.
mainModel
.
has_company_consent
==
1
{
//let id = viewModel.mainModel.consent_work_id > 0 ? viewModel.mainModel.consent_work_id : nil
let
employments
=
viewModel
.
listModel
.
filter
{
// thirdSection.append(.employmentVerification(viewModel.listModel, id))
$0
.
departure_time
==
"至今"
}
if
viewModel
.
mainModel
.
consent_work_id
==
0
,
employments
.
count
==
1
{
viewModel
.
mainModel
.
consent_work_id
=
employments
.
first
?
.
id
??
0
consentWorkIdOK
=
true
}
thirdSection
.
append
(
.
employmentVerification
)
thirdSection
.
append
(
.
employmentVerification
)
}
else
if
viewModel
.
mainModel
.
has_company_consent
==
2
{
//选择否时才显示
}
else
if
viewModel
.
mainModel
.
has_company_consent
==
2
{
//选择否时才显示
thirdSection
.
append
(
.
questionSelect
(
"人才中心是否可以提供赴港同意书"
))
thirdSection
.
append
(
.
questionSelect
(
"人才中心是否可以提供赴港同意书"
))
...
@@ -489,12 +494,14 @@ extension YHGCIncomeRecordViewController: UITableViewDelegate, UITableViewDataSo
...
@@ -489,12 +494,14 @@ extension YHGCIncomeRecordViewController: UITableViewDelegate, UITableViewDataSo
}
}
navigationController
?
.
pushViewController
(
ctl
,
animated
:
true
)
navigationController
?
.
pushViewController
(
ctl
,
animated
:
true
)
}
else
if
case
.
employmentVerification
=
tableRow
{
}
else
if
case
.
employmentVerification
=
tableRow
{
let
employments
=
viewModel
.
listModel
let
employments
=
viewModel
.
listModel
.
filter
{
$0
.
departure_time
==
"至今"
}
if
employments
.
count
==
0
{
YHHUD
.
flash
(
message
:
"没有在职公司!"
)
return
}
let
selectedId
=
viewModel
.
mainModel
.
consent_work_id
>
0
?
viewModel
.
mainModel
.
consent_work_id
:
nil
let
selectedId
=
viewModel
.
mainModel
.
consent_work_id
>
0
?
viewModel
.
mainModel
.
consent_work_id
:
nil
// guard employments.count > 1 else {
// return
// }
let
companies
=
employments
.
compactMap
{
let
companies
=
employments
.
compactMap
{
$0
.
company_name
$0
.
company_name
}
}
...
@@ -528,41 +535,44 @@ extension YHGCIncomeRecordViewController {
...
@@ -528,41 +535,44 @@ extension YHGCIncomeRecordViewController {
}
}
private
func
checkInput
()
->
Bool
{
private
func
checkInput
()
->
Bool
{
var
retValue
=
true
var
updateRows
:
[
IndexPath
]
=
[]
if
viewModel
.
listModel
.
count
==
0
{
if
viewModel
.
listModel
.
count
==
0
{
hasWorkListOK
=
false
hasWorkListOK
=
false
if
let
hasWorkListIndexPath
=
hasWorkListIndexPath
,
tableView
.
numberOfSections
>
hasWorkListIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
hasWorkListIndexPath
.
section
)
>
hasWorkListIndexPath
.
row
{
if
let
hasWorkListIndexPath
=
hasWorkListIndexPath
,
tableView
.
numberOfSections
>
hasWorkListIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
hasWorkListIndexPath
.
section
)
>
hasWorkListIndexPath
.
row
{
tableView
.
reloadRows
(
at
:
[
hasWorkListIndexPath
],
with
:
.
none
)
updateRows
.
append
(
hasWorkListIndexPath
)
}
}
ret
urn
false
ret
Value
=
false
}
}
hasWorkListOK
=
true
if
viewModel
.
mainModel
.
has_company_consent
==
YHCheckboxSelectType
.
unknown
.
rawValue
{
if
viewModel
.
mainModel
.
has_company_consent
==
YHCheckboxSelectType
.
unknown
.
rawValue
{
hasCompanyConsentOK
=
false
hasCompanyConsentOK
=
false
if
let
hasCompanyConsentIndexPath
=
hasCompanyConsentIndexPath
,
tableView
.
numberOfSections
>
hasCompanyConsentIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
hasCompanyConsentIndexPath
.
section
)
>
hasCompanyConsentIndexPath
.
row
{
if
let
hasCompanyConsentIndexPath
=
hasCompanyConsentIndexPath
,
tableView
.
numberOfSections
>
hasCompanyConsentIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
hasCompanyConsentIndexPath
.
section
)
>
hasCompanyConsentIndexPath
.
row
{
tableView
.
reloadRows
(
at
:
[
hasCompanyConsentIndexPath
],
with
:
.
none
)
updateRows
.
append
(
hasCompanyConsentIndexPath
)
}
}
ret
urn
false
ret
Value
=
false
}
}
hasCompanyConsentOK
=
true
if
viewModel
.
mainModel
.
has_company_consent
==
YHCheckboxSelectType
.
true
.
rawValue
,
viewModel
.
mainModel
.
consent_work_id
==
0
{
if
viewModel
.
mainModel
.
has_company_consent
==
YHCheckboxSelectType
.
true
.
rawValue
,
viewModel
.
mainModel
.
consent_work_id
==
0
{
consentWorkIdOK
=
false
consentWorkIdOK
=
false
if
let
consentWorkIdOKIndexPath
=
consentWorkIdOKIndexPath
,
tableView
.
numberOfSections
>
consentWorkIdOKIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
consentWorkIdOKIndexPath
.
section
)
>
consentWorkIdOKIndexPath
.
row
{
if
let
consentWorkIdOKIndexPath
=
consentWorkIdOKIndexPath
,
tableView
.
numberOfSections
>
consentWorkIdOKIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
consentWorkIdOKIndexPath
.
section
)
>
consentWorkIdOKIndexPath
.
row
{
tableView
.
reloadRows
(
at
:
[
consentWorkIdOKIndexPath
],
with
:
.
none
)
updateRows
.
append
(
consentWorkIdOKIndexPath
)
}
}
ret
urn
false
ret
Value
=
false
}
}
consentWorkIdOK
=
true
if
viewModel
.
mainModel
.
has_company_consent
==
YHCheckboxSelectType
.
false
.
rawValue
,
viewModel
.
mainModel
.
has_center_consent
==
YHCheckboxSelectType
.
unknown
.
rawValue
{
if
viewModel
.
mainModel
.
has_company_consent
==
YHCheckboxSelectType
.
false
.
rawValue
,
viewModel
.
mainModel
.
has_center_consent
==
YHCheckboxSelectType
.
unknown
.
rawValue
{
hasCenterConsentOK
=
false
hasCenterConsentOK
=
false
if
let
hasCenterConsentIndexPath
=
hasCenterConsentIndexPath
,
tableView
.
numberOfSections
>
hasCenterConsentIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
hasCenterConsentIndexPath
.
section
)
>
hasCenterConsentIndexPath
.
row
{
if
let
hasCenterConsentIndexPath
=
hasCenterConsentIndexPath
,
tableView
.
numberOfSections
>
hasCenterConsentIndexPath
.
section
,
tableView
.
numberOfRows
(
inSection
:
hasCenterConsentIndexPath
.
section
)
>
hasCenterConsentIndexPath
.
row
{
tableView
.
reloadRows
(
at
:
[
hasCenterConsentIndexPath
],
with
:
.
none
)
updateRows
.
append
(
hasCenterConsentIndexPath
)
}
}
return
false
retValue
=
false
}
if
updateRows
.
count
>
0
{
tableView
.
reloadRows
(
at
:
updateRows
,
with
:
.
none
)
hasWorkListOK
=
true
hasCompanyConsentOK
=
true
consentWorkIdOK
=
true
hasCenterConsentOK
=
true
}
}
hasCenterConsentOK
=
true
return
retValue
return
true
}
}
private
func
requestData
(
isNeedLoading
:
Bool
=
false
,
lastSelectedIncomeOver100
:
Int
?
=
nil
)
{
private
func
requestData
(
isNeedLoading
:
Bool
=
false
,
lastSelectedIncomeOver100
:
Int
?
=
nil
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment