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
172a4d76
Commit
172a4d76
authored
Oct 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 预约
parent
2097158d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
4 deletions
+21
-4
YHResignAppointScheduleListViewController.swift
...在港递交预约)/C/YHResignAppointScheduleListViewController.swift
+3
-1
YHResignAppointTimeViewController.swift
...Appoint(在港递交预约)/C/YHResignAppointTimeViewController.swift
+12
-0
YHResignAppointTimeMultipleCell.swift
...HKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
+0
-1
YHResignAppointTimeSingleCell.swift
...gnHKAppoint(在港递交预约)/V/YHResignAppointTimeSingleCell.swift
+6
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointScheduleListViewController.swift
View file @
172a4d76
...
...
@@ -264,7 +264,9 @@ class YHResignAppointScheduleListViewController: YHBaseViewController {
}
}
model
.
users
=
users
groupArr
.
append
(
model
)
if
users
.
count
>
0
{
groupArr
.
append
(
model
)
}
lastLeftUnselectUsers
=
users
.
filter
{
return
$0
.
isSelected
==
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/C/YHResignAppointTimeViewController.swift
View file @
172a4d76
...
...
@@ -299,6 +299,7 @@ class YHResignAppointTimeViewController: YHBaseViewController {
isNoSelectTime
=
true
}
}
if
isNoSelectTime
{
// 有分组没有选择时间
self
.
tableView
.
reloadData
()
return
...
...
@@ -322,6 +323,12 @@ class YHResignAppointTimeViewController: YHBaseViewController {
"users"
:
allUserInfoArr
]
as!
[
String
:
Any
]
batchs
.
append
(
dict
)
if
allAppointUsers
.
count
<=
0
{
// 人员列表不可为空
YHHUD
.
flash
(
message
:
"预约人员列表不可为空"
)
return
}
}
else
{
// 说明是分批递交
let
selectUser
=
group
.
users
.
filter
{
let
item
=
$0
...
...
@@ -335,6 +342,11 @@ class YHResignAppointTimeViewController: YHBaseViewController {
"leave_hk_at"
:
group
.
notleaveHK
?
""
:
group
.
getLeaveHKTime
(),
"users"
:
allUserInfoArr
]
as!
[
String
:
Any
]
batchs
.
append
(
dict
)
if
allUserInfoArr
.
count
<=
0
{
// 人员列表不可为空
YHHUD
.
flash
(
message
:
"预约人员列表不可为空"
)
return
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointTimeMultipleCell.swift
View file @
172a4d76
...
...
@@ -375,7 +375,6 @@ class YHResignAppointTimeMultipleCell: UITableViewCell {
result
?(
startTimeStr
,
endTimeStr
)
}
// dateStr1 >= dateStr2 return true 否则 return false
func
compareDates
(
_
dateStr1
:
String
,
_
dateStr2
:
String
)
->
YHDateCompareResult
{
let
dateFormatter
=
DateFormatter
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignHKAppoint(在港递交预约)/V/YHResignAppointTimeSingleCell.swift
View file @
172a4d76
...
...
@@ -236,8 +236,13 @@ class YHResignAppointTimeSingleCell: UITableViewCell {
}
func
getDateInfo
(
_
result
:
((
_
startTime
:
String
,
_
endTime
:
String
)
->
())?)
{
// 开始时间和结束时间 都有则都取服务器model时间
// 若开始时间为空则取当前时间
// 若结束时间为空则取当前时间+28天的时间
let
formatter
=
DateFormatter
()
formatter
.
dateFormat
=
"yyyy-MM-dd
HH:mm
"
formatter
.
dateFormat
=
"yyyy-MM-dd"
var
startTimeStr
=
formatter
.
string
(
from
:
Date
())
var
endTimeStr
=
""
if
let
date
=
formatter
.
date
(
from
:
startTimeStr
)
{
...
...
@@ -268,7 +273,6 @@ class YHResignAppointTimeSingleCell: UITableViewCell {
result
?(
startTimeStr
,
endTimeStr
)
}
// dateStr1 >= dateStr2 return true 否则 return false
func
compareDates
(
_
dateStr1
:
String
,
_
dateStr2
:
String
)
->
YHDateCompareResult
{
let
dateFormatter
=
DateFormatter
()
...
...
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