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
b9f3f457
Commit
b9f3f457
authored
Aug 13, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 必填字段
parent
4832ca0e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
10 deletions
+22
-10
YHPrincipleUploadListVC.swift
...rvice/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
+9
-5
YHPrincipleUploadModel.swift
...ervice/PrincipleBatch(原则批)/M/YHPrincipleUploadModel.swift
+11
-4
YHPrincipleUploadStatusCell.swift
...e/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
+2
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/C/YHPrincipleUploadListVC.swift
View file @
b9f3f457
...
@@ -132,7 +132,6 @@ class YHPrincipleUploadListVC: YHBaseViewController {
...
@@ -132,7 +132,6 @@ class YHPrincipleUploadListVC: YHBaseViewController {
let
agreementModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
agreement
let
agreementModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
agreement
if
agreementModel
.
id
>
0
{
if
agreementModel
.
id
>
0
{
agreementModel
.
customType
=
YHPrincipleAgreementType
.
agreement
.
rawValue
agreementModel
.
customType
=
YHPrincipleAgreementType
.
agreement
.
rawValue
agreementModel
.
isMust
=
true
agreementModel
.
isNeedTemplate
=
true
agreementModel
.
isNeedTemplate
=
true
self
.
items
.
append
(
agreementModel
)
self
.
items
.
append
(
agreementModel
)
}
}
...
@@ -141,7 +140,6 @@ class YHPrincipleUploadListVC: YHBaseViewController {
...
@@ -141,7 +140,6 @@ class YHPrincipleUploadListVC: YHBaseViewController {
let
opinionModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
let
opinionModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
if
opinionModel
.
id
>
0
{
if
opinionModel
.
id
>
0
{
opinionModel
.
customType
=
YHPrincipleAgreementType
.
opinion
.
rawValue
opinionModel
.
customType
=
YHPrincipleAgreementType
.
opinion
.
rawValue
opinionModel
.
isMust
=
true
opinionModel
.
isNeedTemplate
=
true
opinionModel
.
isNeedTemplate
=
true
self
.
items
.
append
(
opinionModel
)
self
.
items
.
append
(
opinionModel
)
}
}
...
@@ -150,7 +148,6 @@ class YHPrincipleUploadListVC: YHBaseViewController {
...
@@ -150,7 +148,6 @@ class YHPrincipleUploadListVC: YHBaseViewController {
let
otherModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
other
let
otherModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
other
if
otherModel
.
id
>
0
{
if
otherModel
.
id
>
0
{
otherModel
.
customType
=
YHPrincipleAgreementType
.
other
.
rawValue
otherModel
.
customType
=
YHPrincipleAgreementType
.
other
.
rawValue
otherModel
.
isMust
=
false
otherModel
.
isNeedTemplate
=
false
otherModel
.
isNeedTemplate
=
false
self
.
items
.
append
(
otherModel
)
self
.
items
.
append
(
otherModel
)
}
}
...
@@ -186,16 +183,23 @@ extension YHPrincipleUploadListVC {
...
@@ -186,16 +183,23 @@ extension YHPrincipleUploadListVC {
func
checkMustItems
()
->
Bool
{
func
checkMustItems
()
->
Bool
{
// 赴港居留同意书
// 赴港居留同意书
let
agreementModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
agreement
let
agreementModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
agreement
if
agreementModel
.
content_url
.
count
<=
0
{
if
agreementModel
.
isMust
,
agreementModel
.
content_url
.
count
<=
0
{
YHHUD
.
flash
(
message
:
"请上传必要文件赴港居留同意书"
)
YHHUD
.
flash
(
message
:
"请上传必要文件赴港居留同意书"
)
return
false
return
false
}
}
// 申请人意见访问
// 申请人意见访问
let
opinionModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
let
opinionModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
if
opinionModel
.
content_url
.
count
<=
0
{
if
opinionModel
.
isMust
,
opinionModel
.
content_url
.
count
<=
0
{
YHHUD
.
flash
(
message
:
"请上传必要文件申请人意见访问"
)
YHHUD
.
flash
(
message
:
"请上传必要文件申请人意见访问"
)
return
false
return
false
}
}
// 其他证明条件
let
otherModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
if
otherModel
.
isMust
,
otherModel
.
content_url
.
count
<=
0
{
YHHUD
.
flash
(
message
:
"请上传必要文件其他证明条件"
)
return
false
}
return
true
return
true
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/M/YHPrincipleUploadModel.swift
View file @
b9f3f457
...
@@ -195,12 +195,19 @@ class YHPrincipleAgreementModel: SmartCodable {
...
@@ -195,12 +195,19 @@ class YHPrincipleAgreementModel: SmartCodable {
// 自定义属性
// 自定义属性
var
customType
:
Int
=
YHPrincipleAgreementType
.
none
.
rawValue
var
customType
:
Int
=
YHPrincipleAgreementType
.
none
.
rawValue
var
isMust
:
Bool
=
false
// 是否必须
var
isMust
:
Bool
{
// 是否必须 0:必须提供 1:无需提供
get
{
return
self
.
upload_requirement
==
0
}
}
var
isNeedTemplate
:
Bool
=
false
var
isNeedTemplate
:
Bool
=
false
var
isNeedUploadBtn
:
Bool
{
var
isNeedUploadBtn
:
Bool
{
// 待上传或已驳回状态才显示上传按钮 且最多上传10个
// 待上传或已驳回状态才显示上传按钮 且最多上传10个
return
(
self
.
check_status
==
YHPrincipleUploadStatus
.
preUpload
.
rawValue
||
get
{
self
.
check_status
==
YHPrincipleUploadStatus
.
rejected
.
rawValue
)
&&
self
.
content_url
.
count
<
10
return
(
self
.
check_status
==
YHPrincipleUploadStatus
.
preUpload
.
rawValue
||
self
.
check_status
==
YHPrincipleUploadStatus
.
rejected
.
rawValue
)
&&
self
.
content_url
.
count
<
10
}
}
}
// 是否展示上传状态
// 是否展示上传状态
var
isNeedUploadStatus
:
Bool
{
var
isNeedUploadStatus
:
Bool
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/PrincipleBatch(原则批)/V/YHPrincipleUploadStatusCell.swift
View file @
b9f3f457
...
@@ -425,7 +425,8 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
...
@@ -425,7 +425,8 @@ class YHPrincipleUploadStatusCell: UITableViewCell {
return
""
return
""
}
}
if
type
==
YHPrincipleAgreementType
.
other
.
rawValue
{
if
type
==
YHPrincipleAgreementType
.
other
.
rawValue
{
return
"1.新公司在职证明(在申请期间更换了工作时必传)
\n
2.主申人的曾用名证明文件,例如户口本副本
\n
3.主申请人的中国无刑事罪行记录证明书副本(由公安局开具)"
let
remark
=
self
.
itemModel
?
.
remark
??
""
return
"新公司在职证明(在申请期间更换了工作时必传)
\n
"
+
remark
}
}
return
""
return
""
}
}
...
...
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