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
eda88060
Commit
eda88060
authored
Aug 30, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 旅行
parent
12599bd3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
12 deletions
+43
-12
YHServiceOrderListViewController.swift
...entService(服务中心)/C/YHServiceOrderListViewController.swift
+7
-3
YHTravelDocsPreparationDetailVC.swift
...aration(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
+5
-1
YHTravelDocsPreparationListViewController.swift
...旅行证件准备)/C/YHTravelDocsPreparationListViewController.swift
+2
-0
YHTravelDocsPreparationDetailModel.swift
...tion(6 旅行证件准备)/M/YHTravelDocsPreparationDetailModel.swift
+18
-6
YHTravelCertificateUploadCell.swift
...eparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
+5
-2
YHTravelDocsPreparationViewModel.swift
...ation(6 旅行证件准备)/VM/YHTravelDocsPreparationViewModel.swift
+6
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceOrderListViewController.swift
View file @
eda88060
...
@@ -165,9 +165,13 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
...
@@ -165,9 +165,13 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
let
model
=
self
.
viewModel
.
arrDataForSeviceCenterProgress
[
indexPath
.
section
]
let
arr
=
self
.
viewModel
.
arrDataForSeviceCenterProgress
if
model
.
type
==
27
{
if
0
<=
indexPath
.
section
,
indexPath
.
section
<
arr
.
count
{
return
146
let
model
=
arr
[
indexPath
.
section
]
if
model
.
type
==
27
{
return
146
}
return
128
}
}
return
128
return
128
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHTravelDocsPreparationDetailVC.swift
View file @
eda88060
...
@@ -148,7 +148,6 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
...
@@ -148,7 +148,6 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
for
model
in
list
{
for
model
in
list
{
let
item2
=
YHTravelCerSectionItem
(
type
:
.
certificate
,
tipsArr
:
[])
let
item2
=
YHTravelCerSectionItem
(
type
:
.
certificate
,
tipsArr
:
[])
if
let
model
=
model
{
if
let
model
=
model
{
model
.
latest_validaty_date
=
self
.
viewModel
.
travelDetailModel
?
.
latest_validaty_date
??
""
item2
.
cerDetailModel
=
model
item2
.
cerDetailModel
=
model
model
.
isCanEdit
=
!
self
.
isDisableEdit
model
.
isCanEdit
=
!
self
.
isDisableEdit
sectionItems
.
append
(
item2
)
sectionItems
.
append
(
item2
)
...
@@ -173,7 +172,9 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
...
@@ -173,7 +172,9 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
type
=
3
type
=
3
}
}
let
cerModel1
=
YHTravelDocsPreparationDetailItemModel
(
type
:
type
,
order_id
:
self
.
orderId
,
order_sn
:
""
,
img_back
:
""
,
img_front
:
""
,
status
:
0
,
issue_start
:
""
,
issue_end
:
""
,
user_id
:
userId
,
user_type
:
dataModel
.
type
,
remark
:
""
,
nationality
:
"
\(
dataModel
.
nationality
)
"
)
let
cerModel1
=
YHTravelDocsPreparationDetailItemModel
(
type
:
type
,
order_id
:
self
.
orderId
,
order_sn
:
""
,
img_back
:
""
,
img_front
:
""
,
status
:
0
,
issue_start
:
""
,
issue_end
:
""
,
user_id
:
userId
,
user_type
:
dataModel
.
type
,
remark
:
""
,
nationality
:
"
\(
dataModel
.
nationality
)
"
)
cerModel1
.
latest_validaty_date
=
self
.
viewModel
.
travelDetailModel
?
.
latest_validaty_date
??
""
cerModel1
.
latest_validaty_date
=
self
.
viewModel
.
travelDetailModel
?
.
latest_validaty_date
??
""
cerModel1
.
china_travel_latest_validate_date
=
self
.
viewModel
.
travelDetailModel
?
.
china_travel_latest_validate_date
??
""
cerModel1
.
isCanEdit
=
true
cerModel1
.
isCanEdit
=
true
item
.
cerDetailModel
=
cerModel1
item
.
cerDetailModel
=
cerModel1
sectionItems
.
append
(
item
)
sectionItems
.
append
(
item
)
...
@@ -183,6 +184,8 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
...
@@ -183,6 +184,8 @@ class YHTravelDocsPreparationDetailVC: YHBaseViewController {
// 外国护照
// 外国护照
let
item1
=
YHTravelCerSectionItem
(
type
:
.
certificate
,
tipsArr
:
[])
let
item1
=
YHTravelCerSectionItem
(
type
:
.
certificate
,
tipsArr
:
[])
let
cerModel1
=
YHTravelDocsPreparationDetailItemModel
(
type
:
1
,
order_id
:
self
.
orderId
,
order_sn
:
""
,
img_back
:
""
,
img_front
:
""
,
status
:
0
,
issue_start
:
""
,
issue_end
:
""
,
user_id
:
userId
,
user_type
:
dataModel
.
type
,
remark
:
""
,
nationality
:
"
\(
dataModel
.
nationality
)
"
)
let
cerModel1
=
YHTravelDocsPreparationDetailItemModel
(
type
:
1
,
order_id
:
self
.
orderId
,
order_sn
:
""
,
img_back
:
""
,
img_front
:
""
,
status
:
0
,
issue_start
:
""
,
issue_end
:
""
,
user_id
:
userId
,
user_type
:
dataModel
.
type
,
remark
:
""
,
nationality
:
"
\(
dataModel
.
nationality
)
"
)
cerModel1
.
latest_validaty_date
=
self
.
viewModel
.
travelDetailModel
?
.
latest_validaty_date
??
""
cerModel1
.
china_travel_latest_validate_date
=
self
.
viewModel
.
travelDetailModel
?
.
china_travel_latest_validate_date
??
""
cerModel1
.
isCanEdit
=
true
cerModel1
.
isCanEdit
=
true
item1
.
cerDetailModel
=
cerModel1
item1
.
cerDetailModel
=
cerModel1
sectionItems
.
append
(
item1
)
sectionItems
.
append
(
item1
)
...
@@ -340,6 +343,7 @@ private extension YHTravelDocsPreparationDetailVC {
...
@@ -340,6 +343,7 @@ private extension YHTravelDocsPreparationDetailVC {
YHHUD
.
hide
()
YHHUD
.
hide
()
if
success
{
if
success
{
YHHUD
.
flash
(
message
:
"保存成功"
)
YHHUD
.
flash
(
message
:
"保存成功"
)
self
.
navigationController
?
.
popViewController
()
return
return
}
}
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"保存失败"
)
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"保存失败"
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/C/YHTravelDocsPreparationListViewController.swift
View file @
eda88060
...
@@ -53,7 +53,9 @@ class YHTravelDocsPreparationListViewController: YHBaseViewController {
...
@@ -53,7 +53,9 @@ class YHTravelDocsPreparationListViewController: YHBaseViewController {
private
extension
YHTravelDocsPreparationListViewController
{
private
extension
YHTravelDocsPreparationListViewController
{
func
loadData
()
{
func
loadData
()
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
]
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
]
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
viewModel
.
getTravelDocsList
(
param
:
params
){
success
,
error
in
viewModel
.
getTravelDocsList
(
param
:
params
){
success
,
error
in
YHHUD
.
hide
()
if
success
{
if
success
{
}
else
{
}
else
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/M/YHTravelDocsPreparationDetailModel.swift
View file @
eda88060
...
@@ -12,11 +12,12 @@ import SmartCodable
...
@@ -12,11 +12,12 @@ import SmartCodable
class
YHTravelDocsPreparationDetailModel
:
SmartCodable
{
class
YHTravelDocsPreparationDetailModel
:
SmartCodable
{
var
ttl
:
Int
=
-
1
//电子签证有效期
var
ttl
:
Int
=
-
1
//电子签证有效期
var
latest_validaty_date
:
String
=
""
//有效期最晚时间
var
latest_validaty_date
:
String
=
""
//有效期最晚时间
var
china_travel_latest_validate_date
:
String
=
""
// 中国居留许可签证有效期最晚时间
var
list
:
[
YHTravelDocsPreparationDetailItemModel
?]
=
[]
//电子签证有效期
var
list
:
[
YHTravelDocsPreparationDetailItemModel
?]
=
[]
//电子签证有效期
required
init
()
{
required
init
()
{
}
}
}
}
...
@@ -40,10 +41,10 @@ class YHTravelDocsPreparationDetailItemModel: SmartCodable {
...
@@ -40,10 +41,10 @@ class YHTravelDocsPreparationDetailItemModel: SmartCodable {
// 证件错误信息
// 证件错误信息
var
checkTips
:
String
=
""
var
checkTips
:
String
=
""
// 是否显示被拒理由
// 是否显示被拒理由
var
isNeedShowRejectReason
:
Bool
=
false
var
isNeedShowRejectReason
:
Bool
=
false
// 被拒理由
var
latest_validaty_date
:
String
=
""
//有效期最晚时间
var
rejectReason
:
String
=
""
var
china_travel_latest_validate_date
:
String
=
""
// 中国居留许可签证有效期最晚时间
var
latest_validaty_date
:
String
=
""
// 是否检测时间
// 是否检测时间
var
isNeedCheckDate
:
Bool
=
false
var
isNeedCheckDate
:
Bool
=
false
// 是否可编辑
// 是否可编辑
...
@@ -70,7 +71,18 @@ class YHTravelDocsPreparationDetailItemModel: SmartCodable {
...
@@ -70,7 +71,18 @@ class YHTravelDocsPreparationDetailItemModel: SmartCodable {
}
}
func
isValidCer
()
->
Bool
{
func
isValidCer
()
->
Bool
{
let
latestDate
=
self
.
latest_validaty_date
var
latestDate
=
self
.
latest_validaty_date
if
self
.
type
==
2
{
// 中国居留许可签证
latestDate
=
self
.
china_travel_latest_validate_date
}
if
latestDate
.
isEmpty
{
if
self
.
type
==
2
{
YHHUD
.
flash
(
message
:
"赴港行程尚未预约,请前往预约"
)
return
false
}
return
true
}
let
isValid
=
self
.
compareDates
(
dateString1
:
latestDate
,
dateString2
:
self
.
issue_end
)
let
isValid
=
self
.
compareDates
(
dateString1
:
latestDate
,
dateString2
:
self
.
issue_end
)
return
isValid
return
isValid
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/V/YHTravelCertificateUploadCell.swift
View file @
eda88060
...
@@ -133,6 +133,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
...
@@ -133,6 +133,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
self
.
dataModel
.
img_front
=
""
self
.
dataModel
.
img_front
=
""
self
.
dataModel
.
img_back
=
""
self
.
dataModel
.
img_back
=
""
}
}
self
.
dataModel
.
status
=
0
self
.
updateBlock
?()
self
.
updateBlock
?()
}
}
return
view
return
view
...
@@ -172,6 +173,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
...
@@ -172,6 +173,7 @@ class YHTravelCertificateUploadCell: UITableViewCell {
self
.
dataModel
.
img_front
=
""
self
.
dataModel
.
img_front
=
""
self
.
dataModel
.
img_back
=
""
self
.
dataModel
.
img_back
=
""
}
}
self
.
dataModel
.
status
=
0
self
.
updateBlock
?()
self
.
updateBlock
?()
}
}
return
view
return
view
...
@@ -303,8 +305,9 @@ class YHTravelCertificateUploadCell: UITableViewCell {
...
@@ -303,8 +305,9 @@ class YHTravelCertificateUploadCell: UITableViewCell {
// 是否有证件
// 是否有证件
let
hasNoCertiInfo
=
model
.
img_front
.
isEmpty
&&
model
.
img_back
.
isEmpty
let
hasNoCertiInfo
=
model
.
img_front
.
isEmpty
&&
model
.
img_back
.
isEmpty
// 需要显示被拒原因
// 需要显示被拒原因
let
isShowReason
=
(
model
.
isNeedShowRejectReason
&&
!
model
.
rejectReason
.
isEmpty
)
model
.
isNeedShowRejectReason
=
(
model
.
status
==
2
)
let
isShowReason
=
(
model
.
isNeedShowRejectReason
&&
!
model
.
remark
.
isEmpty
)
rejectReasonLabel
.
text
=
isShowReason
?
"被驳回原因:"
+
model
.
remark
:
""
rejectReasonLabel
.
snp
.
remakeConstraints
{
make
in
rejectReasonLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/TravelDocumentsPreparation(6 旅行证件准备)/VM/YHTravelDocsPreparationViewModel.swift
View file @
eda88060
...
@@ -66,6 +66,12 @@ extension YHTravelDocsPreparationViewModel {
...
@@ -66,6 +66,12 @@ extension YHTravelDocsPreparationViewModel {
return
return
}
}
self
.
travelDetailModel
=
resultModel
self
.
travelDetailModel
=
resultModel
for
item
in
resultModel
.
list
{
if
let
item
=
item
{
item
.
latest_validaty_date
=
self
.
travelDetailModel
?
.
latest_validaty_date
??
""
item
.
china_travel_latest_validate_date
=
self
.
travelDetailModel
?
.
china_travel_latest_validate_date
??
""
}
}
callBackBlock
(
true
,
nil
)
callBackBlock
(
true
,
nil
)
}
else
{
}
else
{
...
...
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