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
961eb2be
Commit
961eb2be
authored
Sep 03, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 旅行证件
parent
b92f37a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
12 deletions
+9
-12
YHTravelDocsPreparationDetailVC.swift
...aration(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
+7
-10
YHTravelDocsPreparationDetailModel.swift
...tion(6 旅行证件准备)/M/YHTravelDocsPreparationDetailModel.swift
+1
-1
YHTravelCertificateUploadCell.swift
...eparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
View file @
961eb2be
...
...
@@ -48,13 +48,6 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
//上个界面传递过来的数据对象
var
dataModel
:
YHTravelDocsPreparationListModel
=
YHTravelDocsPreparationListModel
()
var
isDisableEdit
:
Bool
{
get
{
// 待审核或已完成 不能编辑
return
(
self
.
dataModel
.
status
==
1
||
self
.
dataModel
.
status
==
3
)
}
}
var
orderId
:
Int
=
0
var
sectionItems
:[
YHTravelCerSectionItem
]
=
[]
...
...
@@ -143,6 +136,7 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
let
item1
=
YHTravelCerSectionItem
(
type
:
.
tips
,
tipsArr
:
tipsArr
)
sectionItems
.
append
(
item1
)
var
isCanEdit
:
Bool
=
false
// 证件相关
if
let
list
=
self
.
viewModel
.
travelDetailModel
?
.
list
,
list
.
count
>
0
{
for
model
in
list
{
...
...
@@ -150,12 +144,15 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
if
let
model
=
model
{
item2
.
cerDetailModel
=
model
model
.
isCanEdit
=
(
model
.
status
==
2
)
if
model
.
status
==
2
{
isCanEdit
=
true
}
sectionItems
.
append
(
item2
)
}
}
}
else
{
// 没有上传过证件
isCanEdit
=
true
let
age
=
self
.
viewModel
.
travelDetailModel
?
.
age
??
0
var
userId
=
0
if
let
uid
=
YHLoginManager
.
shared
.
userModel
?
.
id
{
...
...
@@ -201,9 +198,9 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
}
}
self
.
bottomView
.
isHidden
=
self
.
isDisable
Edit
self
.
bottomView
.
isHidden
=
!
isCan
Edit
self
.
bottomView
.
snp
.
updateConstraints
{
make
in
make
.
height
.
equalTo
(
self
.
isDisableEdit
?
0.0
:
bottomViewHeight
)
make
.
height
.
equalTo
(
isCanEdit
?
bottomViewHeight
:
0.0
)
}
tableView
.
reloadData
()
self
.
view
.
setNeedsLayout
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/M/YHTravelDocsPreparationDetailModel.swift
View file @
961eb2be
...
...
@@ -109,7 +109,7 @@ class YHTravelDocsPreparationDetailItemModel: SmartCodable {
return
false
}
if
date1
<
=
date2
{
if
date1
<
date2
{
return
false
}
return
true
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
View file @
961eb2be
...
...
@@ -227,7 +227,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
}
if
item
.
id
==
.
signDate
||
item
.
id
==
.
deadDate
{
YHDatePickView
.
show
(
type
:
.
yyyymmdd
)
{
YHDatePickView
.
show
(
type
:
.
yyyymmdd
,
currentDay
:
item
.
value
)
{
time
in
if
item
.
id
==
.
signDate
{
...
...
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