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
2f6ea612
Commit
2f6ea612
authored
Dec 24, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 高才
parent
f57c6c2b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
20 deletions
+111
-20
YHFamilyInitialInfo.swift
...我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
+9
-3
YHFormItemDoubleChoiceCell.swift
.../FamilyMember(家庭成员信息表)/V/YHFormItemDoubleChoiceCell.swift
+2
-2
YHGCChildPrimaryInfoVC.swift
...milyMember(家庭成员)/C/Child(子女)/YHGCChildPrimaryInfoVC.swift
+50
-7
YHGCSpousePrimaryInfoVC.swift
...lyMember(家庭成员)/C/Spouse(配偶)/YHGCSpousePrimaryInfoVC.swift
+50
-8
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
View file @
2f6ea612
...
...
@@ -796,9 +796,15 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
self
.
nows
=
(
value
?
1
:
0
)
}
// 是否拥有现时定居国家/地区的永久居留身份
func
isHavePermanentResidenceStatus
()
->
Bool
{
return
self
.
isCurrentlyOverseas
==
1
// 是否拥有现时定居国家/地区的永久居留身份 nil表示未选
func
isHavePermanentResidenceStatus
()
->
Bool
?
{
if
self
.
isCurrentlyOverseas
==
1
{
return
true
}
else
if
self
.
isCurrentlyOverseas
==
2
{
return
false
}
return
nil
}
func
setHavePermanentResidenceStatus
(
_
value
:
Bool
)
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/V/YHFormItemDoubleChoiceCell.swift
View file @
2f6ea612
...
...
@@ -210,14 +210,14 @@ class YHFormItemDoubleChoiceCell: UITableViewCell {
tipsLabel
.
text
=
tips
tipsLabel
.
isHidden
=
!
isShow
if
isShow
{
tipsLabel
.
snp
.
makeConstraints
{
make
in
tipsLabel
.
snp
.
re
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
horizonalGap
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
.
priority
(
.
medium
)
}
}
else
{
tipsLabel
.
snp
.
makeConstraints
{
make
in
tipsLabel
.
snp
.
re
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
horizonalGap
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
horizonalGap
)
make
.
height
.
equalTo
(
0
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员)/C/Child(子女)/YHGCChildPrimaryInfoVC.swift
View file @
2f6ea612
...
...
@@ -75,7 +75,9 @@ class YHGCChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
// 居住信息
let
title2
=
YHFormTitleItem
(
type
:
.
liveInfo
)
let
item20
=
YHFormDetailItem
(
type
:
.
isLiveTother
,
value
:
String
(
child
.
isLiveTother
()))
var
arr2
:
[
YHFormItemProtocol
]
=
[
title2
,
item20
]
let
item21
=
YHFormDetailItem
(
type
:
.
permanentResidenceStatus
,
value
:
String
(
child
.
isCurrentlyOverseas
))
item21
.
tips
=
"请选择"
var
arr2
:
[
YHFormItemProtocol
]
=
[
title2
,
item20
,
item21
]
if
!
child
.
isLiveTother
()
{
// 不同住 才需填写国家/地区
let
item21
=
YHFormDetailItem
(
type
:
.
nationOrArea
,
value
:
child
.
address
.
country
,
tips
:
"请选择国家/地区"
.
local
)
...
...
@@ -194,6 +196,7 @@ class YHGCChildPrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
||
detailItem
.
type
==
.
ownCustody
||
detailItem
.
type
==
.
isLiveTother
||
detailItem
.
type
==
.
isLiveOverSeasMore1Year
||
detailItem
.
type
==
.
permanentResidenceStatus
{
return
.
twoChoice
}
...
...
@@ -244,19 +247,51 @@ extension YHGCChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
enableEdit
=
true
cell
.
disableEditTips
=
nil
var
select
=
false
if
let
value
=
detailItem
.
value
{
select
=
Bool
(
value
)
!
var
isShowTips
=
detailItem
.
isShowTips
if
detailItem
.
type
==
.
permanentResidenceStatus
{
isShowTips
=
((
child
?
.
isHavePermanentResidenceStatus
())
==
nil
)
}
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
isShowTips
)
if
detailItem
.
type
==
.
isAccompanyToHK
,
let
child
=
child
,
child
.
is18YearsOld
()
{
// 是否随行至香港
// 年满18岁不能随行 随行按钮不可编辑固定为否
cell
.
enableEdit
=
isFollowCanEdit
cell
.
disableEditTips
=
"年满十八岁的子女不能随行至香港"
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
cell
.
answerArr
=
answers
if
detailItem
.
type
==
.
permanentResidenceStatus
{
// 永久居留身份
var
isSelectYES
=
false
var
isSelectNO
=
false
if
let
value
=
detailItem
.
value
,
let
status
=
Int
(
value
)
{
if
status
==
2
{
isSelectYES
=
false
isSelectNO
=
true
}
else
if
status
==
1
{
isSelectYES
=
true
isSelectNO
=
false
}
else
if
status
==
0
{
isSelectYES
=
false
isSelectNO
=
false
}
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
isSelectYES
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
isSelectNO
)]
cell
.
answerArr
=
answers
}
else
{
var
select
=
false
if
let
value
=
detailItem
.
value
{
select
=
Bool
(
value
)
!
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
cell
.
answerArr
=
answers
}
cell
.
answerBlock
=
{
...
...
@@ -286,7 +321,11 @@ extension YHGCChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
ownCustody
{
// 抚养权
self
.
child
?
.
setOwnCustody
(
option
)
}
else
if
detailItem
.
type
==
.
permanentResidenceStatus
{
// 永久居留身份
self
.
child
?
.
setHavePermanentResidenceStatus
(
option
)
}
self
.
loadInfo
()
save
()
}
...
...
@@ -507,6 +546,10 @@ extension YHGCChildPrimaryInfoVC {
return
false
}
if
child
.
isHavePermanentResidenceStatus
()
==
nil
{
return
false
}
if
!
child
.
isLiveTother
()
{
// 没有与主申请人同住
if
isEmptyString
(
child
.
address
.
country
)
{
return
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员)/C/Spouse(配偶)/YHGCSpousePrimaryInfoVC.swift
View file @
2f6ea612
...
...
@@ -81,8 +81,9 @@ class YHGCSpousePrimaryInfoVC: YHBaseViewController, YHFamilyMemberProtol {
let
item20
=
YHFormDetailItem
(
type
:
.
isLiveTother
,
value
:
String
(
spouse
.
isLiveTother
()))
arr2
.
append
(
item20
)
// let item21 = YHFormDetailItem(type:.permanentResidenceStatus, value: "")
// arr2.append(item21)
let
item21
=
YHFormDetailItem
(
type
:
.
permanentResidenceStatus
,
value
:
String
(
spouse
.
isCurrentlyOverseas
))
item21
.
tips
=
"请选择"
arr2
.
append
(
item21
)
if
!
spouse
.
isLiveTother
()
{
// 不同住 才需填写国家/地区
...
...
@@ -212,14 +213,45 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemDoubleChoiceCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemDoubleChoiceCell
cell
.
isMust
=
detailItem
.
isNeed
cell
.
title
=
detailItem
.
getTitle
()
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
var
isShowTips
=
detailItem
.
isShowTips
if
detailItem
.
type
==
.
permanentResidenceStatus
{
isShowTips
=
((
spouse
?
.
isHavePermanentResidenceStatus
())
==
nil
)
}
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
isShowTips
)
var
select
=
false
if
let
value
=
detailItem
.
value
{
select
=
Bool
(
value
)
!
if
detailItem
.
type
==
.
permanentResidenceStatus
{
// 永久居留身份
var
isSelectYES
=
false
var
isSelectNO
=
false
if
let
value
=
detailItem
.
value
,
let
status
=
Int
(
value
)
{
if
status
==
2
{
isSelectYES
=
false
isSelectNO
=
true
}
else
if
status
==
1
{
isSelectYES
=
true
isSelectNO
=
false
}
else
if
status
==
0
{
isSelectYES
=
false
isSelectNO
=
false
}
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
isSelectYES
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
isSelectNO
)]
cell
.
answerArr
=
answers
}
else
{
var
select
=
false
if
let
value
=
detailItem
.
value
{
select
=
Bool
(
value
)
!
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
cell
.
answerArr
=
answers
}
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
select
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
!
select
)]
cell
.
answerArr
=
answers
cell
.
answerBlock
=
{
...
...
@@ -251,9 +283,15 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
isLiveOverSeasMore1Year
{
// 是否在海外居住满1年及以上
self
.
spouse
?
.
setOverSearsOver1Year
(
option
)
self
.
loadInfo
()
}
else
if
detailItem
.
type
==
.
isLiveOverSeasMore1Year
{
// 是否在海外居住满1年及以上
self
.
spouse
?
.
setOverSearsOver1Year
(
option
)
self
.
loadInfo
()
}
else
if
detailItem
.
type
==
.
permanentResidenceStatus
{
// 永久居留身份
self
.
spouse
?
.
setHavePermanentResidenceStatus
(
option
)
self
.
loadInfo
()
}
save
()
}
...
...
@@ -446,6 +484,10 @@ extension YHGCSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
return
false
}
if
spouse
.
isHavePermanentResidenceStatus
()
==
nil
{
return
false
}
if
!
spouse
.
isLiveTother
()
{
// 没有与主申请人同住
if
isEmptyString
(
spouse
.
address
.
country
)
{
return
false
...
...
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