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
4be64f0f
Commit
4be64f0f
authored
Oct 29, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
9a23bd8f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
23 deletions
+50
-23
YHResignAppointContainerViewController.swift
...nt(在港递交预约)/C/YHResignAppointContainerViewController.swift
+27
-22
YHResignAppointScheduleListViewController.swift
...在港递交预约)/C/YHResignAppointScheduleListViewController.swift
+23
-1
YHResignAppointTimeModifyViewController.swift
...t(在港递交预约)/C/YHResignAppointTimeModifyViewController.swift
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointContainerViewController.swift
View file @
4be64f0f
...
...
@@ -72,31 +72,36 @@ class YHResignAppointContainerViewController: YHBaseViewController {
YHHUD
.
flash
(
message
:
msg
)
return
}
let
isNotAppointed
=
self
.
viewModel
.
scheduleInfoList
.
renewal_List
.
count
<=
0
if
isNotAppointed
{
// 没有预约过
// 请求预约人员列表
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getResignAppointUserlist
(
renewalId
:
self
.
renewalId
)
{
[
weak
self
]
success2
,
error2
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
if
!
success2
{
let
msg
=
error2
?
.
errorMsg
??
"服务器未知错误"
YHHUD
.
flash
(
message
:
msg
)
return
}
// 请求预约人员列表
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getResignAppointUserlist
(
renewalId
:
self
.
renewalId
)
{
[
weak
self
]
success2
,
error2
in
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
if
!
success2
{
let
msg
=
error2
?
.
errorMsg
??
"服务器未知错误"
YHHUD
.
flash
(
message
:
msg
)
return
}
let
isNotAppointed
=
self
.
viewModel
.
scheduleInfoList
.
renewal_List
.
count
<=
0
if
isNotAppointed
{
// 没有预约过
self
.
appointVC
.
allAppointUsers
=
self
.
viewModel
.
appointUsers
self
.
appointVC
.
view
.
isHidden
=
false
self
.
scheduleVC
.
view
.
isHidden
=
true
}
}
else
{
// 预约过
self
.
scheduleVC
.
result_open
=
self
.
viewModel
.
scheduleInfoList
.
result_open
self
.
scheduleVC
.
scheduleArr
=
self
.
viewModel
.
scheduleInfoList
.
renewal_List
self
.
scheduleVC
.
isTogether
=
self
.
viewModel
.
scheduleInfoList
.
is_together
self
.
scheduleVC
.
view
.
isHidden
=
false
self
.
appointVC
.
view
.
isHidden
=
true
scheduleBlock
?()
}
else
{
// 预约过
self
.
scheduleVC
.
allAppointUsers
=
self
.
viewModel
.
appointUsers
self
.
scheduleVC
.
result_open
=
self
.
viewModel
.
scheduleInfoList
.
result_open
self
.
scheduleVC
.
scheduleArr
=
self
.
viewModel
.
scheduleInfoList
.
renewal_List
self
.
scheduleVC
.
isTogether
=
self
.
viewModel
.
scheduleInfoList
.
is_together
self
.
scheduleVC
.
view
.
isHidden
=
false
self
.
appointVC
.
view
.
isHidden
=
true
scheduleBlock
?()
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointScheduleListViewController.swift
View file @
4be64f0f
...
...
@@ -25,6 +25,10 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
self
.
updateBottomBtnAndMotifyBtnStatus
()
}
}
// 所有未预约人员
var
allAppointUsers
:
[
YHResignAppointMember
]
=
[]
// 是否隐藏修改按钮
var
isHiddenModifyBtn
:
Bool
=
false
...
...
@@ -216,7 +220,7 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
}
}
if
isOnlyOneUser
||
isOnlyOneGroup
{
// 只有一个人或多人单批 此时scheduleArr只有一个元素
if
isOnlyOneUser
{
// 只有一个人
if
scheduleArr
.
count
>
0
{
// 先得到所有分批用户的集合
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
...
...
@@ -254,6 +258,7 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
}
let
appAppointUsers
=
self
.
viewModel
.
appointUsers
// 组装数据
// 上一个批次中未选中的用户集合
var
lastLeftUnselectUsers
:
[
YHResignAppointMember
]
=
appAppointUsers
.
deepCopy
()
...
...
@@ -339,6 +344,10 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
let
modifyVC
=
YHResignAppointTimeModifyViewController
()
modifyVC
.
renewalId
=
self
.
renewalId
modifyVC
.
selectGroupArr
=
groupArr
modifyVC
.
allAppointUsers
=
appAppointUsers
.
deepCopy
()
// 只要有一个已确认在港则不能再编辑是否一起递交
modifyVC
.
isCanEditTogether
=
!
self
.
isAtLeastOneHeaveConfirmInHK
()
modifyVC
.
isTogether
=
(
self
.
isTogether
==
1
)
self
.
navigationController
?
.
pushViewController
(
modifyVC
)
}
}
...
...
@@ -354,6 +363,19 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
return
isAllHaveConfirmed
}
func
isAtLeastOneHeaveConfirmInHK
()
->
Bool
{
// 至少有一个已确认在港
var
isAtLeastOneHaveConfirmed
=
false
for
group
in
scheduleArr
{
let
status
=
group
.
getConfirmInHKStatus
()
if
status
==
.
haveConfirmHK
{
isAtLeastOneHaveConfirmed
=
true
}
}
return
isAtLeastOneHaveConfirmed
}
func
requestConfirmInHK
(
_
model
:
YHResignAppointGroup
)
{
YHHUD
.
show
(
.
progress
(
message
:
"提交中..."
))
self
.
viewModel
.
submitConfirmInHK
(
id
:
model
.
id
,
is_edit
:
model
.
is_edit
)
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointTimeModifyViewController.swift
View file @
4be64f0f
This diff is collapsed.
Click to expand it.
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