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
4061f109
Commit
4061f109
authored
Mar 07, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 家庭成员
parent
f4a5934e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
16 deletions
+64
-16
YHChildInfoContainerVC.swift
...yMember(家庭成员信息表)/C/Child(子女)/YHChildInfoContainerVC.swift
+9
-1
YHBrotherInfoVC.swift
...庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHBrotherInfoVC.swift
+12
-4
YHParentInfoVC.swift
...家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHParentInfoVC.swift
+12
-4
YHSpouseInfoContainerVC.swift
...ember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
+13
-5
YHFamilyMemberInfoListVC.swift
...程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfoListVC.swift
+18
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildInfoContainerVC.swift
View file @
4061f109
...
@@ -254,7 +254,15 @@ extension YHChildInfoContainerVC {
...
@@ -254,7 +254,15 @@ extension YHChildInfoContainerVC {
[
weak
self
]
success
,
error
in
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
isShowLoading
{
if
isShowLoading
{
YHHUD
.
flash
(
message
:
success
?
"保存成功"
:
"保存失败"
)
if
success
{
YHHUD
.
flash
(
message
:
isSubmit
?
"提交成功"
:
"保存成功"
)
}
else
{
var
msg
=
isSubmit
?
"提交失败"
:
"保存失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
msg
=
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
if
let
callBack
=
callBack
{
if
let
callBack
=
callBack
{
callBack
(
success
,
error
?
.
errorMsg
)
callBack
(
success
,
error
?
.
errorMsg
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHBrotherInfoVC.swift
View file @
4061f109
...
@@ -64,7 +64,7 @@ class YHBrotherInfoVC: YHBaseViewController {
...
@@ -64,7 +64,7 @@ class YHBrotherInfoVC: YHBaseViewController {
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
self
.
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
[
weak
self
]
success
,
msg
in
[
weak
self
]
success
in
if
success
{
if
success
{
self
?
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
?
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
...
@@ -544,7 +544,7 @@ extension YHBrotherInfoVC {
...
@@ -544,7 +544,7 @@ extension YHBrotherInfoVC {
}
}
// isSubmit 是否是提交 isSilent:是否显示toast
// isSubmit 是否是提交 isSilent:是否显示toast
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
,
String
?
)
->
Void
)?)
{
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
if
isSubmit
{
if
isSubmit
{
let
isChecked
=
checkIntegrity
()
let
isChecked
=
checkIntegrity
()
...
@@ -569,10 +569,18 @@ extension YHBrotherInfoVC {
...
@@ -569,10 +569,18 @@ extension YHBrotherInfoVC {
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
,
isShowLoading
:
isLoading
)
{
success
,
error
in
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
,
isShowLoading
:
isLoading
)
{
success
,
error
in
if
isLoading
{
if
isLoading
{
YHHUD
.
flash
(
message
:
success
?
"保存成功"
:
"保存失败"
)
if
success
{
YHHUD
.
flash
(
message
:
"保存成功"
)
}
else
{
var
msg
=
"保存失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
msg
=
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
if
let
callBack
=
callBack
{
if
let
callBack
=
callBack
{
callBack
(
success
,
error
?
.
errorMsg
)
callBack
(
success
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHParentInfoVC.swift
View file @
4061f109
...
@@ -66,7 +66,7 @@ class YHParentInfoVC: YHBaseViewController {
...
@@ -66,7 +66,7 @@ class YHParentInfoVC: YHBaseViewController {
[
weak
self
]
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
self
.
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
[
weak
self
]
success
,
msg
in
[
weak
self
]
success
in
if
success
{
if
success
{
self
?
.
navigationController
?
.
popViewController
(
animated
:
true
)
self
?
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
}
...
@@ -583,7 +583,7 @@ extension YHParentInfoVC {
...
@@ -583,7 +583,7 @@ extension YHParentInfoVC {
}
}
// isSubmit 是否是提交 isSilent:是否显示toast
// isSubmit 是否是提交 isSilent:是否显示toast
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
,
String
?
)
->
Void
)?)
{
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
if
isSubmit
{
if
isSubmit
{
let
isChecked
=
checkIntegrity
()
let
isChecked
=
checkIntegrity
()
...
@@ -608,10 +608,18 @@ extension YHParentInfoVC {
...
@@ -608,10 +608,18 @@ extension YHParentInfoVC {
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
,
isShowLoading
:
isLoading
)
{
success
,
error
in
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
,
isShowLoading
:
isLoading
)
{
success
,
error
in
if
isLoading
{
if
isLoading
{
YHHUD
.
flash
(
message
:
success
?
"保存成功"
:
"保存失败"
)
if
success
{
YHHUD
.
flash
(
message
:
"保存成功"
)
}
else
{
var
msg
=
"保存失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
msg
=
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
if
let
callBack
=
callBack
{
if
let
callBack
=
callBack
{
callBack
(
success
,
error
?
.
errorMsg
)
callBack
(
success
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
View file @
4061f109
...
@@ -202,7 +202,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
...
@@ -202,7 +202,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
extension
YHSpouseInfoContainerVC
{
extension
YHSpouseInfoContainerVC
{
// isSubmit:是否为提交 false为保存 true为提交
// isSubmit:是否为提交 false为保存 true为提交
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
,
String
?
)
->
Void
)?)
{
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
guard
let
spouse
=
spouse
else
{
return
}
guard
let
spouse
=
spouse
else
{
return
}
guard
let
info
=
spouse
.
toDictionary
()
else
{
return
}
guard
let
info
=
spouse
.
toDictionary
()
else
{
return
}
...
@@ -214,12 +214,20 @@ extension YHSpouseInfoContainerVC {
...
@@ -214,12 +214,20 @@ extension YHSpouseInfoContainerVC {
"info"
:
info
]
"info"
:
info
]
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
,
isShowLoading
:
isLoading
)
{
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
,
isShowLoading
:
isLoading
)
{
[
weak
self
]
success
,
error
in
success
,
error
in
if
isLoading
{
if
isLoading
{
YHHUD
.
flash
(
message
:
success
?
"保存成功"
:
"保存失败"
)
if
success
{
YHHUD
.
flash
(
message
:
isSubmit
?
"提交成功"
:
"保存成功"
)
}
else
{
var
msg
=
isSubmit
?
"提交失败"
:
"保存失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
msg
=
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
if
let
callBack
=
callBack
{
if
let
callBack
=
callBack
{
callBack
(
success
,
error
?
.
errorMsg
)
callBack
(
success
)
}
}
}
}
}
}
...
@@ -233,7 +241,7 @@ extension YHSpouseInfoContainerVC {
...
@@ -233,7 +241,7 @@ extension YHSpouseInfoContainerVC {
if
let
targetVC
=
getCurrentStepViewController
()
{
if
let
targetVC
=
getCurrentStepViewController
()
{
if
targetVC
.
nextStep
()
{
if
targetVC
.
nextStep
()
{
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
[
weak
self
]
success
,
tips
in
[
weak
self
]
success
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
success
{
if
success
{
// 当前步骤已是最后一步
// 当前步骤已是最后一步
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfoListVC.swift
View file @
4061f109
...
@@ -259,6 +259,12 @@ extension YHFamilyMemberInfoListVC {
...
@@ -259,6 +259,12 @@ extension YHFamilyMemberInfoListVC {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
success
{
if
success
{
self
.
requestFamilyInfo
()
self
.
requestFamilyInfo
()
}
else
{
var
errorMsg
=
"添加失败"
if
let
errMsg
=
error
?
.
errorMsg
,
errMsg
.
count
>
0
{
errorMsg
=
errMsg
}
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
}
}
}
}
...
@@ -272,7 +278,11 @@ extension YHFamilyMemberInfoListVC {
...
@@ -272,7 +278,11 @@ extension YHFamilyMemberInfoListVC {
if
success
{
if
success
{
YHHUD
.
flash
(
message
:
"删除成功"
.
local
)
YHHUD
.
flash
(
message
:
"删除成功"
.
local
)
}
else
{
}
else
{
YHHUD
.
flash
(
message
:
"删除失败"
.
local
)
var
errorMsg
=
"删除失败"
if
let
errMsg
=
error
?
.
errorMsg
,
errMsg
.
count
>
0
{
errorMsg
=
errMsg
}
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
if
let
callBack
=
callBack
{
if
let
callBack
=
callBack
{
callBack
(
success
)
callBack
(
success
)
...
@@ -286,8 +296,14 @@ extension YHFamilyMemberInfoListVC {
...
@@ -286,8 +296,14 @@ extension YHFamilyMemberInfoListVC {
success
,
error
in
success
,
error
in
if
success
{
if
success
{
YHHUD
.
flash
(
message
:
"保存成功"
)
YHHUD
.
flash
(
message
:
"保存成功"
)
self
.
navigationController
?
.
popViewController
()
}
else
{
}
else
{
YHHUD
.
flash
(
message
:
"保存失败"
)
var
errorMsg
=
"保存失败"
if
let
errMsg
=
error
?
.
errorMsg
,
errMsg
.
count
>
0
{
errorMsg
=
errMsg
}
YHHUD
.
flash
(
message
:
errorMsg
)
}
}
}
}
}
}
...
...
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