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
db561ca2
Commit
db561ca2
authored
Dec 26, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
签字流程
parent
47c8d594
Changes
22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
949 additions
and
110 deletions
+949
-110
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+28
-0
YHDocumentFileItemView.swift
...QMAS(优才)/MyDocuments(我的文书)/V/YHDocumentFileItemView.swift
+36
-0
YHDocumentPromptTableViewCell.swift
...)/MyDocuments(我的文书)/V/YHDocumentPromptTableViewCell.swift
+1
-1
YHMySignatureDetailModel.swift
...才)/MySignature(我的签字)/Model/YHMySignatureDetailModel.swift
+16
-0
YHMyFileMethodTableViewCell.swift
...优才)/MySignature(我的签字)/V/YHMyFileMethodTableViewCell.swift
+1
-0
YHGCMySignatureDetailViewController.swift
...gnature(我的签字)/C/YHGCMySignatureDetailViewController.swift
+0
-0
YHGCMySignatureListViewController.swift
...Signature(我的签字)/C/YHGCMySignatureListViewController.swift
+2
-1
YHGCSignatureAddViewController.swift
.../MySignature(我的签字)/C/YHGCSignatureAddViewController.swift
+188
-0
YHGCMySignatureListModel.swift
...PS(高才)/MySignature(我的签字)/M/YHGCMySignatureListModel.swift
+2
-2
YHGCSignatureAddModel.swift
.../TTPS(高才)/MySignature(我的签字)/M/YHGCSignatureAddModel.swift
+24
-0
YHGCDocListCell.swift
...(服务中心)/TTPS(高才)/MySignature(我的签字)/V/YHGCDocListCell.swift
+45
-25
YHGCDocumentPromptTableViewCell.swift
...MySignature(我的签字)/V/YHGCDocumentPromptTableViewCell.swift
+128
-0
YHGCSignatureAddTableViewCell.swift
...)/MySignature(我的签字)/V/YHGCSignatureAddTableViewCell.swift
+124
-0
YHGCSignatureToActionTableViewCell.swift
...ignature(我的签字)/V/YHGCSignatureToActionTableViewCell.swift
+0
-0
YHGCSignatureUploadTableViewCell.swift
...ySignature(我的签字)/V/YHGCSignatureUploadTableViewCell.swift
+200
-0
YHGCMySignatureDetailViewModel.swift
...MySignature(我的签字)/VM/YHGCMySignatureDetailViewModel.swift
+15
-59
YHGCSignatureAddViewModel.swift
...(高才)/MySignature(我的签字)/VM/YHGCSignatureAddViewModel.swift
+110
-0
YHGCWorkExperienceListViewController.swift
...rience(工作经验)/C/YHGCWorkExperienceListViewController.swift
+4
-9
YHGCWorkExperienceViewController.swift
...Experience(工作经验)/C/YHGCWorkExperienceViewController.swift
+7
-11
YHGCWorkExperienceViewModel.swift
...WorkExperience(工作经验)/VM/YHGCWorkExperienceViewModel.swift
+9
-1
YHGCWorkItemListViewModel.swift
...)/WorkExperience(工作经验)/VM/YHGCWorkItemListViewModel.swift
+1
-1
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+8
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
db561ca2
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyDocuments(我的文书)/V/YHDocumentFileItemView.swift
View file @
db561ca2
...
@@ -24,6 +24,12 @@ class YHDocumentFileItemView: UIView {
...
@@ -24,6 +24,12 @@ class YHDocumentFileItemView: UIView {
}
}
}
}
var
docDataSource
:
YHMySignedDocumentModel
?
{
didSet
{
updateDocAllViews
()
}
}
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
backgroundColor
=
.
white
backgroundColor
=
.
white
...
@@ -144,6 +150,36 @@ class YHDocumentFileItemView: UIView {
...
@@ -144,6 +150,36 @@ class YHDocumentFileItemView: UIView {
fileNameLabel
.
text
=
name
+
"
\(
index
+
1
)
(已签章)"
fileNameLabel
.
text
=
name
+
"
\(
index
+
1
)
(已签章)"
}
}
func
updateDocAllViews
()
{
guard
let
docDataSource
=
docDataSource
else
{
return
}
let
suffix
=
docDataSource
.
url
.
pathExtension
.
lowercased
()
var
iconImgName
=
""
if
suffix
==
"jpeg"
{
iconImgName
=
"my_cer_type_jpg"
}
else
if
suffix
==
"jpg"
{
iconImgName
=
"my_cer_type_jpg"
}
else
if
suffix
==
"png"
{
iconImgName
=
"my_cer_type_png"
}
else
if
suffix
==
"pdf"
{
iconImgName
=
"my_cer_type_pdf"
}
else
if
suffix
==
"doc"
||
suffix
==
"docx"
{
iconImgName
=
"my_cer_type_word"
}
else
if
suffix
==
"ppt"
||
suffix
==
"pptx"
{
iconImgName
=
"my_cer_type_ppt"
}
else
if
suffix
==
"bmp"
{
iconImgName
=
"my_cer_type_bmp"
}
else
if
suffix
==
"tiff"
{
iconImgName
=
"my_cer_type_tiff"
}
else
if
suffix
==
"xls"
||
suffix
==
"xlsx"
{
iconImgName
=
"my_cer_type_excel"
}
fileImageView
.
image
=
UIImage
(
named
:
iconImgName
)
fileNameLabel
.
text
=
docDataSource
.
fileName
}
@objc
func
centerClick
()
{
@objc
func
centerClick
()
{
if
let
block
=
itemBlock
{
if
let
block
=
itemBlock
{
block
(
.
look
,
index
)
block
(
.
look
,
index
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyDocuments(我的文书)/V/YHDocumentPromptTableViewCell.swift
View file @
db561ca2
...
@@ -115,7 +115,7 @@ class YHDocumentPromptTableViewCell: UITableViewCell {
...
@@ -115,7 +115,7 @@ class YHDocumentPromptTableViewCell: UITableViewCell {
func
updatePrompt
()
{
func
updatePrompt
()
{
// 1-代理委托书,2-受养人声明,3-工作经验补充表,4-声明书,5-人才清单声明书,6-个人陈述书,7-推荐信,8-组织架构图
// 1-代理委托书,2-受养人声明,3-工作经验补充表,4-声明书,5-人才清单声明书,6-个人陈述书,7-推荐信,8-组织架构图
if
type
==
7
||
type
==
8
{
if
type
==
7
||
type
==
8
{
let
a
:
ASAttributedString
=
.
init
(
"您可以"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
subTextColor2
))
let
a
:
ASAttributedString
=
.
init
(
"您可以"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
subTextColor2
))
let
aa
:
ASAttributedString
=
.
init
(
"转发给需签署的人签字,若需要盖章,则先确认文书是否已签完,然后下载打印去盖章,扫描签章件上传"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
aa
:
ASAttributedString
=
.
init
(
"转发给需签署的人签字,若需要盖章,则先确认文书是否已签完,然后下载打印去盖章,扫描签章件上传"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
brandMainColor
))
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MySignature(我的签字)/Model/YHMySignatureDetailModel.swift
View file @
db561ca2
...
@@ -21,6 +21,22 @@ class YHMySignatureDetailModel: SmartCodable {
...
@@ -21,6 +21,22 @@ class YHMySignatureDetailModel: SmartCodable {
var
is_show_button
:
Bool
=
false
var
is_show_button
:
Bool
=
false
var
status
:
Int
=
0
var
status
:
Int
=
0
var
audit_opinion
:
String
=
""
var
audit_opinion
:
String
=
""
var
docStatus
:
Int
=
0
var
signFileOrigin
:
String
=
""
var
signFile
:
String
=
""
var
docType
:
Int
=
0
var
signedDocument
:
[
YHMySignedDocumentModel
]
=
[]
required
init
()
{
}
}
class
YHMySignedDocumentModel
:
SmartCodable
{
var
fileName
:
String
=
""
var
fileUrl
:
String
=
""
var
timestamp
:
String
=
""
var
url
:
String
=
""
var
name
:
String
=
""
required
init
()
{
required
init
()
{
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MySignature(我的签字)/V/YHMyFileMethodTableViewCell.swift
View file @
db561ca2
...
@@ -17,6 +17,7 @@ enum YHMyFileMethodType: Int {
...
@@ -17,6 +17,7 @@ enum YHMyFileMethodType: Int {
case
upload
=
5
// 上传
case
upload
=
5
// 上传
case
delete
=
6
// 删除
case
delete
=
6
// 删除
case
reUpload
=
7
// 重传
case
reUpload
=
7
// 重传
case
add
=
8
//补充信息
}
}
class
YHSignatureToActionTableViewCell
:
UITableViewCell
{
class
YHSignatureToActionTableViewCell
:
UITableViewCell
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/C/YHGCMySignatureDetailViewController.swift
View file @
db561ca2
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/C/YHGCMySignatureListViewController.swift
View file @
db561ca2
...
@@ -95,7 +95,7 @@ extension YHGCMySignatureListViewController {
...
@@ -95,7 +95,7 @@ extension YHGCMySignatureListViewController {
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"数据获取失败"
)
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"数据获取失败"
)
}
}
self
.
headSessionView
.
titleLable
.
text
=
self
.
viewModel
.
mainModel
?
.
top_title
self
.
headSessionView
.
userInfoData
=
self
.
viewModel
.
mainModel
?
.
user_info
self
.
headSessionView
.
canShowDownLoadBtnFlag
=
true
self
.
headSessionView
.
canShowDownLoadBtnFlag
=
true
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
})
})
...
@@ -342,6 +342,7 @@ extension YHGCMySignatureListViewController: UITableViewDelegate, UITableViewDat
...
@@ -342,6 +342,7 @@ extension YHGCMySignatureListViewController: UITableViewDelegate, UITableViewDat
vc
.
id
=
model
.
id
vc
.
id
=
model
.
id
// vc.isAuth = viewModel.mainModel?.user_info.is_auth ?? true
// vc.isAuth = viewModel.mainModel?.user_info.is_auth ?? true
vc
.
orderID
=
orderId
vc
.
orderID
=
orderId
vc
.
mobile
=
mobile
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/C/YHGCSignatureAddViewController.swift
0 → 100644
View file @
db561ca2
//
// YHGCSignatureAddViewController.swift
// galaxy
//
// Created by EDY on 2024/12/25.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHGCSignatureAddViewController
:
YHBaseViewController
{
var
bottomView
:
YHBottomNextView
!
var
tableView
:
UITableView
!
var
viewModel
:
YHGCSignatureAddViewModel
!
var
baseDataSource
:
[
YHSectionWorkExperienceModel
]?
var
workID
:
Int
=
0
var
orderID
:
Int
=
0
var
isMore
:
Bool
=
false
var
isShowPrompt
:
Bool
=
false
var
isShowMessageSelect
:
Bool
=
true
var
isKeyboardShow
:
Bool
=
false
var
selectReasonIndex
:
Int
=
5
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
viewModel
=
YHGCSignatureAddViewModel
()
gk_navTitle
=
"信息补充"
gk_navBackgroundColor
=
.
white
gk_navBarAlpha
=
1.0
setView
()
getData
()
}
func
getData
()
{
viewModel
.
requestDetail
(
orderID
)
{[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
success
??
false
{
updateDataSource
()
}
else
{
self
.
viewModel
.
position
.
order_id
=
orderID
updateDataSource
()
}
}
}
func
updateDataSource
()
{
bottomView
.
nextButton
.
setTitle
(
"提交"
,
for
:
.
normal
)
self
.
baseDataSource
=
self
.
viewModel
.
getBaseDataSource
(
false
)
self
.
tableView
.
reloadData
()
}
func
setView
()
{
tableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
if
#available(iOS 11.0, *)
{
tableView
.
contentInsetAdjustmentBehavior
=
.
never
}
tableView
.
sectionHeaderHeight
=
16
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
register
(
cellWithClass
:
YHGCSignatureAddTableViewCell
.
self
)
tableView
.
register
(
cellWithClass
:
YHGCDocumentPromptTableViewCell
.
self
)
return
tableView
}()
view
.
addSubview
(
tableView
)
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
k_Height_NavigationtBarAndStatuBar
)
make
.
bottom
.
equalTo
(
-
k_Height_safeAreaInsetsBottom
()
-
64
)
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
}
bottomView
=
{
let
bottom
=
YHBottomNextView
()
bottom
.
saveButton
.
isHidden
=
true
bottom
.
nextButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
10
)
make
.
height
.
equalTo
(
44
)
make
.
left
.
equalTo
(
16
)
}
bottom
.
nextblock
=
{
[
weak
self
]
in
bottom
.
nextButton
.
isEnabled
=
false
guard
let
self
=
self
else
{
return
}
if
self
.
viewModel
.
isCanNext
()
{
self
.
viewModel
.
saveGcSaveinfo
(
callBackBlock
:
{[
weak
self
]
flag
,
error
in
guard
let
self
=
self
else
{
return
}
bottom
.
nextButton
.
isEnabled
=
true
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
YHHUD
.
hideFlashMessage
()
YHHUD
.
flash
(
message
:
"提交成功"
)
self
.
navigationController
?
.
popViewController
()
}
})
}
else
{
bottom
.
nextButton
.
isEnabled
=
true
self
.
isShowPrompt
=
true
self
.
updateDataSource
()
YHHUD
.
flash
(
message
:
"您还有信息未填写"
)
}
}
return
bottom
}()
view
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
bottom
.
equalTo
(
view
)
make
.
height
.
equalTo
(
k_Height_safeAreaInsetsBottom
()
+
64
)
}
bottomView
.
layoutIfNeeded
()
bottomView
.
nextButton
.
addYinHeGradualLayer
()
}
}
extension
YHGCSignatureAddViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
2
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
1
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
==
1
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHGCSignatureAddTableViewCell
.
self
)
cell
.
dataSource
=
baseDataSource
?[
indexPath
.
row
]
cell
.
workExperienceBlock
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
updateModel
(
model
)
let
id
=
model
.
id
if
id
!=
.
id1
&&
id
!=
.
id2
&&
id
!=
.
id3
&&
id
!=
.
id4
&&
id
!=
.
id5
{
self
.
updateDataSource
()
}
}
return
cell
}
else
{
let
cell
=
tableView
.
dequeueReusableCell
(
withClass
:
YHGCDocumentPromptTableViewCell
.
self
)
cell
.
backgroundColor
=
.
clear
cell
.
contentView
.
backgroundColor
=
.
clear
return
cell
}
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
==
1
{
let
array
=
baseDataSource
?[
indexPath
.
row
]
.
models
??
[]
var
h
=
0
for
i
in
0
..<
array
.
count
{
let
data
=
array
[
i
]
let
message
=
data
.
message
??
""
let
isShow
=
data
.
isShowPrompts
??
false
if
data
.
id
==
.
id6
{
h
=
h
+
72
}
else
{
h
=
h
+
52
}
if
isShow
&&
message
.
count
==
0
{
h
=
h
+
20
}
}
return
CGFloat
(
h
+
14
)
}
else
{
return
104
}
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
let
view
=
UIView
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
KScreenWidth
,
height
:
7
))
return
view
}
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
16
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/M/YHGCMySignatureListModel.swift
View file @
db561ca2
...
@@ -11,7 +11,7 @@ import SmartCodable
...
@@ -11,7 +11,7 @@ import SmartCodable
class
YHGCMySignatureListModel
:
SmartCodable
{
class
YHGCMySignatureListModel
:
SmartCodable
{
var
renewal_manage_docs
:
[
YHGCMySignatureModel
]
=
[]
var
renewal_manage_docs
:
[
YHGCMySignatureModel
]
=
[]
var
top_title
:
String
=
""
var
user_info
:
YHMyDocumentsUserModel
=
YHMyDocumentsUserModel
()
required
init
()
{
required
init
()
{
}
}
}
}
...
@@ -28,7 +28,7 @@ class YHGCMySignatureModel: SmartCodable {
...
@@ -28,7 +28,7 @@ class YHGCMySignatureModel: SmartCodable {
var
is_second_page
:
Bool
=
false
var
is_second_page
:
Bool
=
false
var
contract_id
:
String
=
""
var
contract_id
:
String
=
""
var
doc_type_label
:
String
=
""
var
doc_type_label
:
String
=
""
var
doc_type_text
:
String
=
""
var
isEditFlag
:
Bool
=
false
//是否为编辑状态
var
isEditFlag
:
Bool
=
false
//是否为编辑状态
var
isSelectedFlag
:
Bool
=
true
//是否被选择 默认全部全部选择
var
isSelectedFlag
:
Bool
=
true
//是否被选择 默认全部全部选择
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/M/YHGCSignatureAddModel.swift
0 → 100644
View file @
db561ca2
//
// YHGCSignatureAddModel.swift
// galaxy
//
// Created by EDY on 2024/12/25.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
SmartCodable
class
YHGCSignatureAddModel
:
SmartCodable
{
var
id
:
Int
=
0
var
order_id
:
Int
=
0
var
archives_location
:
String
=
""
var
unit_name
:
String
=
""
var
unit_address
:
String
=
""
var
phone
:
String
=
""
var
email
:
String
=
""
var
date
:
String
=
""
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/V/YHGCDocListCell.swift
View file @
db561ca2
...
@@ -128,7 +128,7 @@ class YHGCDocListCell: UITableViewCell {
...
@@ -128,7 +128,7 @@ class YHGCDocListCell: UITableViewCell {
//签字状态
//签字状态
func
updateAllViewsForSign
()
{
func
updateAllViewsForSign
()
{
guard
let
dataSource
=
dataSourceForSign
else
{
return
}
guard
let
dataSource
=
dataSourceForSign
else
{
return
}
titleLabel
.
text
=
dataSource
.
doc_type_
name
titleLabel
.
text
=
dataSource
.
doc_type_
text
if
dataSource
.
isEditFlag
{
if
dataSource
.
isEditFlag
{
checkButton
.
isHidden
=
false
checkButton
.
isHidden
=
false
statusHoldView
.
isHidden
=
true
statusHoldView
.
isHidden
=
true
...
@@ -137,36 +137,56 @@ class YHGCDocListCell: UITableViewCell {
...
@@ -137,36 +137,56 @@ class YHGCDocListCell: UITableViewCell {
checkButton
.
isHidden
=
true
checkButton
.
isHidden
=
true
statusHoldView
.
isHidden
=
false
statusHoldView
.
isHidden
=
false
/*
/*
statusOpt: {
3: '待签章',
3: '待签章',
4: '已签章',
4: '已签章',
5: '已完成',
5: '已完成',
6: '已驳回'
6: '已驳回'
},
*/
*/
var
statusTxt
=
""
var
statusTxt
=
""
var
color
:
UIColor
=
.
brandMainColor
var
color
:
UIColor
=
.
brandMainColor
let
status
=
dataSource
.
doc_status
let
status
=
dataSource
.
doc_status
if
status
==
1003
&&
dataSource
.
doc_type
==
1001
{
if
dataSource
.
doc_type
==
1000
{
statusTxt
=
"待签章"
if
status
==
1000
||
status
==
1001
||
status
==
1002
||
status
==
1003
{
color
=
UIColor
.
brandMainColor
statusTxt
=
"待签署"
}
else
if
status
==
1003
{
color
=
UIColor
.
brandMainColor
statusTxt
=
"待签署"
}
else
if
status
==
1004
||
status
==
1005
||
status
==
1006
{
color
=
UIColor
.
successColor
statusTxt
=
"审核中"
}
else
if
status
==
1000
||
status
==
1001
||
status
==
1002
{
color
=
UIColor
.
failColor
statusTxt
=
"待补充"
}
else
if
status
==
1007
{
color
=
UIColor
.
successColor
statusTxt
=
"已完成"
}
else
if
status
==
1007
{
color
=
UIColor
.
labelTextColor2
statusTxt
=
"已完成"
}
color
=
UIColor
.
labelTextColor2
}
else
if
dataSource
.
doc_type
==
1001
{
}
else
if
status
==
1005
||
status
==
1006
{
if
status
==
1000
{
statusTxt
=
"审核中"
statusTxt
=
"待补充"
color
=
UIColor
.
failColor
color
=
UIColor
.
brandMainColor
}
else
{
}
else
if
status
==
1000
||
status
==
1001
||
status
==
1002
{
statusTxt
=
"--"
statusTxt
=
"待签署"
color
=
UIColor
.
failColor
color
=
UIColor
.
brandMainColor
}
else
if
status
==
1004
||
status
==
1005
||
status
==
1006
{
statusTxt
=
"审核中"
color
=
UIColor
.
failColor
}
else
if
status
==
1007
{
statusTxt
=
"已完成"
color
=
UIColor
.
labelTextColor2
}
else
if
status
==
1003
{
statusTxt
=
"待签署"
color
=
UIColor
.
successColor
}
}
else
if
dataSource
.
doc_type
==
1002
{
if
status
==
1000
||
status
==
1001
||
status
==
1002
||
status
==
1003
{
statusTxt
=
"待签署"
color
=
UIColor
.
brandMainColor
}
else
if
status
==
1004
||
status
==
1005
||
status
==
1006
{
statusTxt
=
"审核中"
color
=
UIColor
.
failColor
}
else
if
status
==
1007
{
statusTxt
=
"已完成"
color
=
UIColor
.
labelTextColor2
}
}
}
statusLabel
.
text
=
statusTxt
statusLabel
.
text
=
statusTxt
statusLabel
.
textColor
=
color
statusLabel
.
textColor
=
color
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/V/YHGCDocumentPromptTableViewCell.swift
0 → 100644
View file @
db561ca2
//
// YHGCDocumentPromptTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/12/25.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
class
YHGCDocumentPromptTableViewCell
:
UITableViewCell
{
var
centerView
:
UIImageView
!
var
promptImageView
:
UIImageView
!
var
titleLabel
:
UILabel
!
var
subTitleLabel
:
UILabel
!
var
link
:
String
=
""
var
type
:
Int
=
0
{
didSet
{
updatePrompt
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
backgroundColor
=
.
clear
centerView
=
{
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"document_prompt_bg"
)
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
view
.
isUserInteractionEnabled
=
true
return
view
}()
contentView
.
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
8
)
make
.
bottom
.
equalTo
(
-
8
)
}
promptImageView
=
{
let
view
=
UIImageView
()
view
.
image
=
UIImage
(
named
:
"tips_icon"
)
return
view
}()
centerView
.
addSubview
(
promptImageView
)
promptImageView
.
snp
.
makeConstraints
{
make
in
make
.
width
.
height
.
equalTo
(
14
)
make
.
left
.
equalTo
(
16
)
make
.
top
.
equalTo
(
16
)
}
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
brandMainColor
label
.
text
=
"填写指引"
return
label
}()
centerView
.
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
38
)
make
.
top
.
equalTo
(
16
)
make
.
height
.
equalTo
(
17
)
}
subTitleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
labelTextColor2
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
"请如实填写,以下补充信息将使用于生成赴港同意书
\n
工作单位名称"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
subTextColor2
))
let
aa
:
ASAttributedString
=
.
init
(
"需要与盖章公司名称一致"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
brandMainColor
))
label
.
attributed
.
text
=
a
+
aa
return
label
}()
centerView
.
addSubview
(
subTitleLabel
)
subTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
15
)
make
.
right
.
equalTo
(
-
15
)
make
.
top
.
equalTo
(
38.5
)
}
}
func
updatePrompt
()
{
// 1000-代理委托书,1001-同意书,1002-声明书
if
type
==
1000
{
let
a
:
ASAttributedString
=
.
init
(
"请主申请人"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
subTextColor2
))
let
aa
:
ASAttributedString
=
.
init
(
"点击签署或上传已签章文件"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
brandMainColor
))
subTitleLabel
.
attributed
.
text
=
a
+
aa
}
else
if
type
==
1001
{
let
a
:
ASAttributedString
=
.
init
(
"请主申请人"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
subTextColor2
))
let
aa
:
ASAttributedString
=
.
init
(
"点击签署或上传已签章文件"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
brandMainColor
))
subTitleLabel
.
attributed
.
text
=
a
+
aa
}
else
{
let
a
:
ASAttributedString
=
.
init
(
"请您尽快核对文本内容,如需修改,可进行在线编辑
\n
如内容无误,请主申请人"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
subTextColor2
))
let
aa
:
ASAttributedString
=
.
init
(
"点击签署或上传已签署文件"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
12
)),
.
foreground
(
UIColor
.
brandMainColor
))
subTitleLabel
.
attributed
.
text
=
a
+
aa
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/V/YHGCSignatureAddTableViewCell.swift
0 → 100644
View file @
db561ca2
//
// YHGCSignatureAddTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/12/25.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHGCSignatureAddTableViewCell
:
UITableViewCell
{
typealias
WorkExperienceBlock
=
(
_
model
:
YHWorkExperienceModel
)
->
()
typealias
CompanyBlock
=
(
_
model
:
YHCompanyModelListModel
)
->
()
var
companyBlock
:
CompanyBlock
?
var
workExperienceBlock
:
WorkExperienceBlock
?
var
centerView
:
UIView
!
var
mainItemView
:
UIView
!
var
country
:
String
=
""
var
dataSource
:
YHSectionWorkExperienceModel
?{
didSet
{
updateAllViews
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
backgroundColor
=
.
clear
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
contentView
.
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
7
)
make
.
bottom
.
equalTo
(
-
7
)
}
mainItemView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
centerView
.
addSubview
(
mainItemView
)
mainItemView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
bottom
.
equalToSuperview
()
}
}
func
updateAllViews
()
{
mainItemView
.
removeSubviews
()
var
y
=
0
for
i
in
0
..<
(
dataSource
?
.
models
?
.
count
??
0
)
{
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
.
separatorColor
mainItemView
.
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
1
)
make
.
right
.
equalTo
(
-
18
)
}
y
=
y
+
1
let
data
=
dataSource
?
.
models
?[
i
]
let
isShow
=
data
?
.
isShowPrompts
??
false
let
message
=
data
?
.
message
??
""
var
h
=
51
if
data
?
.
id
==
.
id7
{
h
=
71
}
if
isShow
&&
message
.
count
==
0
{
h
=
h
+
20
}
let
itemView
=
YHWorkExperienceItemView
()
itemView
.
dataSource
=
data
itemView
.
country
=
country
itemView
.
block
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
workExperienceBlock
{
block
(
model
)
}
}
itemView
.
companyBlock
=
{[
weak
self
]
model
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
companyBlock
{
block
(
model
)
}
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
h
)
make
.
right
.
equalTo
(
-
18
)
}
y
=
y
+
h
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/V/YHGCSignatureToActionTableViewCell.swift
0 → 100644
View file @
db561ca2
This diff is collapsed.
Click to expand it.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/V/YHGCSignatureUploadTableViewCell.swift
0 → 100644
View file @
db561ca2
//
// YHGCSignatureUploadTableViewCell.swift
// galaxy
//
// Created by EDY on 2024/12/25.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHGCSignatureUploadTableViewCell
:
UITableViewCell
{
typealias
Block
=
(
YHMyFileMethodType
,
Int
)
->
()
var
block
:
Block
?
var
centerView
:
UIView
!
var
titleLabel
:
UILabel
!
var
topLineView
:
UIView
!
var
promptLabel
:
UILabel
!
var
mainItemView
:
UIView
!
var
bottomView
:
YHWorkItemAddView
!
var
dataSource
:
YHMySignatureDetailModel
?
{
didSet
{
updateAllViews
()
}
}
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
required
init
?(
coder
:
NSCoder
)
{
super
.
init
(
coder
:
coder
)
}
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
selectionStyle
=
.
none
setupUI
()
}
func
setupUI
()
{
let
width
=
(
KScreenWidth
-
32
)
/
3.0
backgroundColor
=
.
clear
centerView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
contentView
.
addSubview
(
centerView
)
centerView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
8
)
make
.
bottom
.
equalTo
(
-
8
)
}
titleLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
17
)
label
.
textColor
=
UIColor
.
mainTextColor
label
.
text
=
"上传已签章件"
return
label
}()
centerView
.
addSubview
(
titleLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
16
)
make
.
height
.
equalTo
(
24
)
}
promptLabel
=
{
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
UIColor
.
labelTextColor2
label
.
numberOfLines
=
0
label
.
text
=
"注意:1.支持PDF、JPEG、JPG、PNG、BMP、TIFF文件格式,文件大小不限制;2.上传成功后会自动更新文件名;3.最多上传10张图片或文件,若有问题可联系文案"
return
label
}()
centerView
.
addSubview
(
promptLabel
)
promptLabel
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
left
.
equalTo
(
16
)
make
.
height
.
equalTo
(
60
)
make
.
bottom
.
equalTo
(
-
16
)
}
bottomView
=
{
let
view
=
YHWorkItemAddView
()
view
.
addBtn
.
setTitle
(
"上传已签章件"
.
local
,
for
:
.
normal
)
view
.
addBtn
.
setImage
(
UIImage
(
named
:
"document_upload"
),
for
:
.
normal
)
view
.
clickBlock
=
{[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
self
.
block
{
block
(
.
upload
,
0
)
}
}
return
view
}()
centerView
.
addSubview
(
bottomView
)
bottomView
.
snp
.
makeConstraints
{
make
in
make
.
bottom
.
equalTo
(
-
92
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
height
.
equalTo
(
45
)
}
mainItemView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
.
white
view
.
layer
.
cornerRadius
=
kCornerRadius6
return
view
}()
centerView
.
addSubview
(
mainItemView
)
mainItemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
153
)
make
.
top
.
equalTo
(
52
)
}
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
.
separatorColor
centerView
.
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
52
)
make
.
height
.
equalTo
(
1
)
make
.
right
.
equalTo
(
-
18
)
}
}
func
updateAllViews
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
mainItemView
.
removeSubviews
()
if
dataSource
.
doc_return_manual
.
count
!=
0
{
bottomView
.
addBtn
.
setTitle
(
"继续上传"
.
local
,
for
:
.
normal
)
}
else
{
bottomView
.
addBtn
.
setTitle
(
"上传已签章件"
.
local
,
for
:
.
normal
)
}
var
y
=
0
for
i
in
0
..<
(
dataSource
.
signedDocument
.
count
)
{
let
line
=
UIView
()
line
.
backgroundColor
=
UIColor
.
separatorColor
mainItemView
.
addSubview
(
line
)
line
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
1
)
make
.
right
.
equalTo
(
-
18
)
}
y
=
y
+
1
let
data
=
dataSource
.
signedDocument
[
i
]
let
h
=
70
let
itemView
=
YHDocumentFileItemView
()
itemView
.
index
=
i
itemView
.
docDataSource
=
data
itemView
.
itemBlock
=
{[
weak
self
]
type
,
index
in
guard
let
self
=
self
else
{
return
}
if
let
block
=
block
{
block
(
type
,
index
)
}
}
mainItemView
.
addSubview
(
itemView
)
itemView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
18
)
make
.
top
.
equalTo
(
y
)
make
.
height
.
equalTo
(
h
)
make
.
right
.
equalTo
(
-
18
)
}
y
=
y
+
h
}
updateAddView
()
}
func
updateAddView
()
{
guard
let
dataSource
=
dataSource
else
{
return
}
if
dataSource
.
docStatus
==
1005
{
self
.
bottomView
.
alpha
=
0.4
self
.
bottomView
.
addBtn
.
isEnabled
=
false
}
if
dataSource
.
docStatus
==
1007
{
self
.
bottomView
.
isHidden
=
true
mainItemView
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
-
92
)
make
.
top
.
equalTo
(
52
)
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/VM/YHGCMySignatureDetailViewModel.swift
View file @
db561ca2
...
@@ -19,8 +19,8 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
...
@@ -19,8 +19,8 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
func
requestSignatureDetail
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
requestSignatureDetail
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
// let params: [String : Any] = ["order_id": orderId]
// let params: [String : Any] = ["order_id": orderId]
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
let
params
:
[
String
:
Any
]
=
[
"
doc_
id"
:
id
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
detail
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
gc
detail
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
@@ -42,13 +42,14 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
...
@@ -42,13 +42,14 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
func
requestSignaturePageURL
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
?,
_
error
:
YHErrorModel
?)
->
())
{
func
requestSignaturePageURL
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
?,
_
error
:
YHErrorModel
?)
->
())
{
// let params: [String : Any] = ["order_id": orderId]
// let params: [String : Any] = ["order_id": orderId]
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
let
params
:
[
String
:
Any
]
=
[
"
doc_
id"
:
id
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
pageUrl
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
gc
pageUrl
let
_
=
YHNetRequest
.
ge
tRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
pos
tRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
if
json
.
code
==
200
{
self
.
pageUrl
=
json
.
data
?
.
peel
as?
String
let
data
=
json
.
data
?
.
peel
as?
[
String
:
String
]
self
.
pageUrl
=
data
?[
"url"
]
callBackBlock
(
true
,
nil
)
callBackBlock
(
true
,
nil
)
}
else
{
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
...
@@ -121,24 +122,6 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
...
@@ -121,24 +122,6 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
}
}
}
}
func
requestSignatureLook
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
look
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
self
.
pageUrl
=
json
.
data
?
.
peel
as?
String
callBackBlock
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
func
requestSignatureDownload
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
requestSignatureDownload
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
download
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
download
...
@@ -161,39 +144,20 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
...
@@ -161,39 +144,20 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
}
}
}
}
func
requestSignConfirm
(
_
id
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
func
requestSignConfirm
(
_
id
:
String
,
orderID
:
Int
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
// let params: [String : Any] = ["order_id": orderId]
// let params: [String : Any] = ["order_id": orderId]
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
var
array
:
[[
String
:
String
]]
=
[]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
confirm
let
dataSource
=
mainModel
?
.
signedDocument
??
[]
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
for
item
in
dataSource
{
//1. json字符串 转 对象
let
param
:
[
String
:
String
]
=
[
"name"
:
item
.
name
,
"url"
:
item
.
url
]
guard
let
self
=
self
else
{
return
}
array
.
append
(
param
)
if
json
.
code
==
200
{
callBackBlock
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
}
let
params
:
[
String
:
Any
]
=
[
"id"
:
orderID
,
"doc_id"
:
id
,
"signed_docs"
:
array
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
gcinfo
func
requestFileAction
(
_
id
:
String
,
_
type
:
Int
,
_
newArray
:
[
String
],
_
oldUrl
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
,
"op_type"
:
type
,
"new_url"
:
newArray
,
"old_url"
:
oldUrl
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
upload
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
if
json
.
code
==
200
{
// guard let dic = json.data?.peel as? [String : Any], let result = YHMySignatureURLModel.deserialize(from: dic) else {
// callBackBlock(false,nil)
// return
// }
// self.pageUrl = result.url
callBackBlock
(
true
,
nil
)
callBackBlock
(
true
,
nil
)
}
else
{
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
...
@@ -240,12 +204,4 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
...
@@ -240,12 +204,4 @@ class YHGCMySignatureDetailViewModel: YHBaseViewModel {
callBackBlock
(
false
,
err
)
callBackBlock
(
false
,
err
)
}
}
}
}
func
requestCheckPersonalStatus
(
_
id
:
String
)
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
id
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
personal
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
code
in
}
failBlock
:
{
err
in
}
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MySignature(我的签字)/VM/YHGCSignatureAddViewModel.swift
0 → 100644
View file @
db561ca2
//
// YHGCSignatureAddViewModel.swift
// galaxy
//
// Created by EDY on 2024/12/25.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHGCSignatureAddViewModel
:
YHBaseViewModel
{
var
position
:
YHGCSignatureAddModel
=
YHGCSignatureAddModel
()
override
init
()
{
super
.
init
()
}
func
getBaseDataSource
(
_
isShowPrompt
:
Bool
)
->
[
YHSectionWorkExperienceModel
]
{
let
item
=
YHWorkExperienceModel
(
id
:
.
id1
,
isNeed
:
true
,
title
:
"档案所在单位"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
position
.
archives_location
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入"
)
let
item1
=
YHWorkExperienceModel
(
id
:
.
id2
,
isNeed
:
true
,
title
:
"工作单位名称"
,
isUserKeyBoard
:
true
,
prompts
:
"请选择"
,
message
:
position
.
unit_name
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请选择"
)
let
item2
=
YHWorkExperienceModel
(
id
:
.
id3
,
isNeed
:
true
,
title
:
"工作单位地址"
,
isUserKeyBoard
:
true
,
prompts
:
"请选择"
,
message
:
position
.
unit_address
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入"
)
let
item3
=
YHWorkExperienceModel
(
id
:
.
id4
,
isNeed
:
true
,
title
:
"负责人电话"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
position
.
phone
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入"
)
let
item4
=
YHWorkExperienceModel
(
id
:
.
id5
,
isNeed
:
false
,
title
:
"公司邮箱"
,
isUserKeyBoard
:
true
,
prompts
:
"请输入"
,
message
:
position
.
email
,
isShowPrompts
:
isShowPrompt
,
alertMessage
:
"请输入"
)
var
section
=
YHSectionWorkExperienceModel
(
title
:
"企业信息"
,
models
:
[
item
,
item1
,
item2
,
item3
,
item4
])
return
[
section
]
}
func
updateModel
(
_
item
:
YHWorkExperienceModel
)
{
guard
let
type
=
item
.
id
else
{
return
}
switch
type
{
case
.
id1
:
// 用人单位
position
.
archives_location
=
item
.
message
??
""
case
.
id2
:
// 用人单位性质
position
.
unit_name
=
item
.
message
??
""
case
.
id3
:
position
.
unit_address
=
item
.
message
??
""
case
.
id4
:
position
.
phone
=
item
.
message
??
""
case
.
id5
:
position
.
email
=
item
.
message
??
""
default
:
break
}
}
func
isCanNext
()
->
Bool
{
let
archives_location
=
position
.
archives_location
let
unit_name
=
position
.
unit_name
let
unit_address
=
position
.
unit_address
let
phone
=
position
.
phone
guard
archives_location
.
count
>
0
else
{
return
false
}
guard
unit_name
.
count
>
0
else
{
return
false
}
guard
unit_address
.
count
>
0
else
{
return
false
}
guard
phone
.
count
>
0
else
{
return
false
}
return
true
}
func
requestDetail
(
_
orderID
:
Int
,
callBackBlock
:
@escaping
(
_
success
:
Bool
?,
_
error
:
YHErrorModel
?)
->
())
{
let
param
:
[
String
:
Any
]
=
[
"order_id"
:
orderID
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
gcinfo
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
param
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
result
=
YHGCSignatureAddModel
.
deserialize
(
from
:
dic
)
else
{
callBackBlock
(
false
,
nil
)
return
}
self
.
position
=
result
callBackBlock
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
func
saveGcSaveinfo
(
callBackBlock
:
@escaping
(
_
success
:
Bool
?,
_
error
:
YHErrorModel
?)
->
())
{
let
params
:
[
String
:
Any
]
=
[
"id"
:
position
.
id
,
"order_id"
:
position
.
order_id
,
"archives_location"
:
position
.
archives_location
,
"unit_name"
:
position
.
unit_name
,
"phone"
:
position
.
phone
,
"unit_address"
:
position
.
unit_address
,
"email"
:
position
.
email
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Signature
.
gcSaveinfo
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
result
=
YHWorkExperiencePositionModel
.
deserialize
(
from
:
dic
)
else
{
callBackBlock
(
false
,
nil
)
return
}
callBackBlock
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
err
in
callBackBlock
(
false
,
err
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHGCWorkExperienceListViewController.swift
View file @
db561ca2
...
@@ -182,15 +182,10 @@ extension YHGCWorkExperienceListViewController: UITableViewDelegate, UITableView
...
@@ -182,15 +182,10 @@ extension YHGCWorkExperienceListViewController: UITableViewDelegate, UITableView
if
self
.
dataSource
?
.
count
==
10
{
if
self
.
dataSource
?
.
count
==
10
{
YHHUD
.
flash
(
message
:
"新增工作经历不能超过10条"
)
YHHUD
.
flash
(
message
:
"新增工作经历不能超过10条"
)
}
else
{
}
else
{
self
.
viewModel
?
.
requestCreateNewWork
(
self
.
orderId
,
callBackBlock
:
{[
weak
self
]
success
,
error
in
let
vc
=
YHGCWorkExperienceViewController
()
guard
let
self
=
self
else
{
return
}
vc
.
orderID
=
self
.
orderId
if
success
!=
0
{
vc
.
workID
=
0
let
vc
=
YHGCWorkExperienceViewController
()
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
vc
.
orderID
=
self
.
orderId
vc
.
workID
=
success
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
})
}
}
}
}
cell
.
backgroundColor
=
.
clear
cell
.
backgroundColor
=
.
clear
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/C/YHGCWorkExperienceViewController.swift
View file @
db561ca2
...
@@ -78,6 +78,13 @@ class YHGCWorkExperienceViewController: YHBaseViewController {
...
@@ -78,6 +78,13 @@ class YHGCWorkExperienceViewController: YHBaseViewController {
bottomView
=
{
bottomView
=
{
let
bottom
=
YHBottomNextView
()
let
bottom
=
YHBottomNextView
()
bottom
.
saveButton
.
isHidden
=
true
bottom
.
nextButton
.
snp
.
makeConstraints
{
make
in
make
.
right
.
equalTo
(
-
16
)
make
.
top
.
equalTo
(
10
)
make
.
height
.
equalTo
(
44
)
make
.
left
.
equalTo
(
16
)
}
bottom
.
nextblock
=
{
[
weak
self
]
in
bottom
.
nextblock
=
{
[
weak
self
]
in
bottom
.
nextButton
.
isEnabled
=
false
bottom
.
nextButton
.
isEnabled
=
false
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
@@ -100,17 +107,6 @@ class YHGCWorkExperienceViewController: YHBaseViewController {
...
@@ -100,17 +107,6 @@ class YHGCWorkExperienceViewController: YHBaseViewController {
YHHUD
.
flash
(
message
:
"您还有信息未填写"
)
YHHUD
.
flash
(
message
:
"您还有信息未填写"
)
}
}
}
}
bottom
.
saveBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
viewModel
.
saveWorkPosition
(
callBackBlock
:
{[
weak
self
]
flag
,
error
in
guard
let
_
=
self
else
{
return
}
if
let
error
=
error
{
YHHUD
.
flash
(
message
:
error
.
errorMsg
)
}
else
{
YHHUD
.
flash
(
message
:
"保存成功"
)
}
})
}
return
bottom
return
bottom
}()
}()
view
.
addSubview
(
bottomView
)
view
.
addSubview
(
bottomView
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/VM/YHGCWorkExperienceViewModel.swift
View file @
db561ca2
...
@@ -187,6 +187,13 @@ class YHGCWorkExperienceViewModel: YHBaseViewModel {
...
@@ -187,6 +187,13 @@ class YHGCWorkExperienceViewModel: YHBaseViewModel {
"country"
:
position
.
location
.
country
,
"country"
:
position
.
location
.
country
,
"details"
:
position
.
location
.
details
,
"details"
:
position
.
location
.
details
,
"foreign"
:
position
.
location
.
foreign
]
as
[
String
:
Any
]
"foreign"
:
position
.
location
.
foreign
]
as
[
String
:
Any
]
let
country
=
position
.
location
.
country
var
location_aboard
=
0
if
country
.
contains
(
"中国"
)
{
location_aboard
=
0
}
else
{
location_aboard
=
1
}
let
params
:
[
String
:
Any
]
=
[
"id"
:
position
.
id
,
let
params
:
[
String
:
Any
]
=
[
"id"
:
position
.
id
,
"order_id"
:
position
.
order_id
,
"order_id"
:
position
.
order_id
,
"company_name"
:
position
.
company_name
,
"company_name"
:
position
.
company_name
,
...
@@ -196,7 +203,8 @@ class YHGCWorkExperienceViewModel: YHBaseViewModel {
...
@@ -196,7 +203,8 @@ class YHGCWorkExperienceViewModel: YHBaseViewModel {
"has_work_certificate"
:
position
.
has_work_certificate
,
"has_work_certificate"
:
position
.
has_work_certificate
,
"company_type"
:
position
.
company_type
,
"company_type"
:
position
.
company_type
,
"company_type_other"
:
position
.
company_type_other
,
"company_type_other"
:
position
.
company_type_other
,
"location"
:
address
]
"location"
:
address
,
"location_aboard"
:
location_aboard
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
WorkExperience
.
gcWorkSave
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
WorkExperience
.
gcWorkSave
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/WorkExperience(工作经验)/VM/YHGCWorkItemListViewModel.swift
View file @
db561ca2
...
@@ -117,7 +117,7 @@ class YHGCWorkItemListViewModel: YHBaseViewModel {
...
@@ -117,7 +117,7 @@ class YHGCWorkItemListViewModel: YHBaseViewModel {
"why_work_time_overlap"
:
self
.
mainModel
.
why_work_time_overlap
,
"why_work_time_overlap"
:
self
.
mainModel
.
why_work_time_overlap
,
"has_work_experience"
:
self
.
mainModel
.
has_work_experience
,
"has_work_experience"
:
self
.
mainModel
.
has_work_experience
,
"is_submit"
:
true
]
"is_submit"
:
true
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
WorkExperience
.
save
WorkTimeRemark
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
WorkExperience
.
save
All
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
db561ca2
...
@@ -364,6 +364,14 @@ class YHAllApiName {
...
@@ -364,6 +364,14 @@ class YHAllApiName {
static
let
personal
=
"infoflow/sign/check-personal-status"
static
let
personal
=
"infoflow/sign/check-personal-status"
static
let
signUrl
=
"infoflow/get-sign-url"
static
let
signUrl
=
"infoflow/get-sign-url"
static
let
gclist
=
"super-app/gc/signature/doc/list"
static
let
gclist
=
"super-app/gc/signature/doc/list"
// 高才签字详情
static
let
gcdetail
=
"super-app/gc/sign-detail"
static
let
gcpageUrl
=
"super-app/gc/signature"
static
let
gcinfo
=
"super-app/gc/hk-consent-info"
static
let
gcSaveinfo
=
"super-app/gc/edit-hk-consent-info"
static
let
gcconfirm
=
"super-app/gc/upload-sign-file"
}
}
//我的文书
//我的文书
...
...
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