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
d3f4cf37
Commit
d3f4cf37
authored
Aug 08, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 原则批
parent
47c7bcf3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
283 additions
and
5 deletions
+283
-5
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-0
YHServiceOrderListViewController.swift
...entService(服务中心)/C/YHServiceOrderListViewController.swift
+18
-2
YHPrincipleApprovedWaitSubmitVC.swift
...incipleBatch(原则批)/C/YHPrincipleApprovedWaitSubmitVC.swift
+197
-0
YHPrincipleReviewListVC.swift
...(客服段)/PrincipleBatch(原则批)/C/YHPrincipleReviewListVC.swift
+20
-1
YHPrincipleUnapprovedCell.swift
...服段)/PrincipleBatch(原则批)/V/YHPrincipleUnapprovedCell.swift
+12
-0
YHPrincleViewModel.swift
...vice(客服段)/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
+29
-1
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-1
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
d3f4cf37
...
@@ -304,6 +304,7 @@
...
@@ -304,6 +304,7 @@
0480976D2BA158A1000B9DCA
/* YHCertificateListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
;
};
0480976D2BA158A1000B9DCA
/* YHCertificateListVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
;
};
048097712BA18D66000B9DCA
/* YHCertificateSearchBar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
;
};
048097712BA18D66000B9DCA
/* YHCertificateSearchBar.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
;
};
0485DFD42C649A2500B50293
/* YHPrincipleUploadModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0485DFD32C649A2500B50293
/* YHPrincipleUploadModel.swift */
;
};
0485DFD42C649A2500B50293
/* YHPrincipleUploadModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0485DFD32C649A2500B50293
/* YHPrincipleUploadModel.swift */
;
};
0485DFD62C64E70200B50293
/* YHPrincipleApprovedWaitSubmitVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0485DFD52C64E70200B50293
/* YHPrincipleApprovedWaitSubmitVC.swift */
;
};
048787D12BCE61B20036E221
/* YHServiceNoOrderView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048787D02BCE61B20036E221
/* YHServiceNoOrderView.swift */
;
};
048787D12BCE61B20036E221
/* YHServiceNoOrderView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048787D02BCE61B20036E221
/* YHServiceNoOrderView.swift */
;
};
048787D52BCE880B0036E221
/* YHServiceOrderListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048787D42BCE880B0036E221
/* YHServiceOrderListViewController.swift */
;
};
048787D52BCE880B0036E221
/* YHServiceOrderListViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048787D42BCE880B0036E221
/* YHServiceOrderListViewController.swift */
;
};
048787D72BCE96F50036E221
/* YHServiceOrderProgressTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048787D62BCE96F50036E221
/* YHServiceOrderProgressTableViewCell.swift */
;
};
048787D72BCE96F50036E221
/* YHServiceOrderProgressTableViewCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
048787D62BCE96F50036E221
/* YHServiceOrderProgressTableViewCell.swift */
;
};
...
@@ -953,6 +954,7 @@
...
@@ -953,6 +954,7 @@
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateListVC.swift
;
sourceTree
=
"<group>"
;
};
0480976C2BA158A1000B9DCA
/* YHCertificateListVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateListVC.swift
;
sourceTree
=
"<group>"
;
};
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateSearchBar.swift
;
sourceTree
=
"<group>"
;
};
048097702BA18D66000B9DCA
/* YHCertificateSearchBar.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCertificateSearchBar.swift
;
sourceTree
=
"<group>"
;
};
0485DFD32C649A2500B50293
/* YHPrincipleUploadModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUploadModel.swift
;
sourceTree
=
"<group>"
;
};
0485DFD32C649A2500B50293
/* YHPrincipleUploadModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleUploadModel.swift
;
sourceTree
=
"<group>"
;
};
0485DFD52C64E70200B50293
/* YHPrincipleApprovedWaitSubmitVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPrincipleApprovedWaitSubmitVC.swift
;
sourceTree
=
"<group>"
;
};
048787D02BCE61B20036E221
/* YHServiceNoOrderView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceNoOrderView.swift
;
sourceTree
=
"<group>"
;
};
048787D02BCE61B20036E221
/* YHServiceNoOrderView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceNoOrderView.swift
;
sourceTree
=
"<group>"
;
};
048787D42BCE880B0036E221
/* YHServiceOrderListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceOrderListViewController.swift
;
sourceTree
=
"<group>"
;
};
048787D42BCE880B0036E221
/* YHServiceOrderListViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceOrderListViewController.swift
;
sourceTree
=
"<group>"
;
};
048787D62BCE96F50036E221
/* YHServiceOrderProgressTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceOrderProgressTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
048787D62BCE96F50036E221
/* YHServiceOrderProgressTableViewCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHServiceOrderProgressTableViewCell.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -2207,6 +2209,7 @@
...
@@ -2207,6 +2209,7 @@
0472CB9C2C5A11640096F48F
/* YHPrincipleReviewListVC.swift */
,
0472CB9C2C5A11640096F48F
/* YHPrincipleReviewListVC.swift */
,
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
,
04B360F22C636525001EB053
/* YHPrincipleWaitResultViewController.swift */
,
04B360F42C646844001EB053
/* YHPrincipleApprovedMailViewController.swift */
,
04B360F42C646844001EB053
/* YHPrincipleApprovedMailViewController.swift */
,
0485DFD52C64E70200B50293
/* YHPrincipleApprovedWaitSubmitVC.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -3677,6 +3680,7 @@
...
@@ -3677,6 +3680,7 @@
04B360ED2C61F157001EB053
/* YHPrincipleEnvelopeCell.swift in Sources */
,
04B360ED2C61F157001EB053
/* YHPrincipleEnvelopeCell.swift in Sources */
,
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
,
04B9EE5B2C06CC3100A4018D
/* YHOtherLoginViewController.swift in Sources */
,
045EEF0C2B9F171A0022A143
/* YHBasicInfoFillBottomView.swift in Sources */
,
045EEF0C2B9F171A0022A143
/* YHBasicInfoFillBottomView.swift in Sources */
,
0485DFD62C64E70200B50293
/* YHPrincipleApprovedWaitSubmitVC.swift in Sources */
,
A5ACE93D2B4564F7002C94D2
/* UIButton+Extension.swift in Sources */
,
A5ACE93D2B4564F7002C94D2
/* UIButton+Extension.swift in Sources */
,
0472CBA92C5A11640096F48F
/* YHPrincleGroupModel.swift in Sources */
,
0472CBA92C5A11640096F48F
/* YHPrincleGroupModel.swift in Sources */
,
04213B232C48B7F700797900
/* YHIdentityTabBar.swift in Sources */
,
04213B232C48B7F700797900
/* YHIdentityTabBar.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceOrderListViewController.swift
View file @
d3f4cf37
...
@@ -11,6 +11,8 @@ import JXSegmentedView
...
@@ -11,6 +11,8 @@ import JXSegmentedView
class
YHServiceOrderListView
:
YHBaseViewController
{
class
YHServiceOrderListView
:
YHBaseViewController
{
private
let
viewModel
:
YHServiceCenterMainViewModel
=
YHServiceCenterMainViewModel
()
private
let
viewModel
:
YHServiceCenterMainViewModel
=
YHServiceCenterMainViewModel
()
let
principleViewModel
:
YHPrincleViewModel
=
YHPrincleViewModel
()
typealias
Block
=
(
Int
,
Int
,
Bool
)
->
()
typealias
Block
=
(
Int
,
Int
,
Bool
)
->
()
var
block
:
Block
?
var
block
:
Block
?
var
orderID
:
Int
=
0
var
orderID
:
Int
=
0
...
@@ -221,9 +223,23 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
...
@@ -221,9 +223,23 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
vc
.
orderId
=
orderID
vc
.
orderId
=
orderID
navigationController
?
.
pushViewController
(
vc
)
navigationController
?
.
pushViewController
(
vc
)
}
else
if
model
.
type
==
13
{
}
else
if
model
.
type
==
13
{
//原则批已获批~
principleViewModel
.
requestIsSendMail
(
orderId
:
orderID
)
{
isSend
in
if
isSend
{
// 已发送邮件
let
vc
=
YHPrincipleApprovedMailViewController
()
vc
.
status
=
model
.
type
vc
.
orderId
=
self
.
orderID
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
// 未发送邮件
}
//原则批已获批~
let
vc
=
YHPrincipleWaitResultViewController
()
let
vc
=
YHPrincipleWaitResultViewController
()
vc
.
status
=
model
.
type
vc
.
status
=
model
.
type
vc
.
orderId
=
orderID
vc
.
orderId
=
orderID
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/C/YHPrincipleApprovedWaitSubmitVC.swift
0 → 100644
View file @
d3f4cf37
//
// YHPrincipleApprovedWaitSubmitVC.swift
// galaxy
//
// Created by edy on 2024/8/8.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
import
AttributedString
// 原则批已获批 - 待提交
class
YHPrincipleApprovedWaitSubmitVC
:
YHBaseViewController
{
var
orderId
:
Int
=
-
1
var
items
:
[
YHPrincipleEnvelopeModel
]
=
[]
let
viewModel
=
YHPrincleViewModel
()
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
contentInsetAdjustmentBehavior
=
.
never
tableView
.
estimatedSectionHeaderHeight
=
24.0
tableView
.
estimatedSectionFooterHeight
=
1.0
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
backgroundColor
=
.
clear
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHPrincipleUnapprovedCell
.
self
,
forCellReuseIdentifier
:
YHPrincipleUnapprovedCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHPrincipleEnvelopeCell
.
self
,
forCellReuseIdentifier
:
YHPrincipleEnvelopeCell
.
cellReuseIdentifier
)
return
tableView
}()
lazy
var
bgView
:
UIView
=
{
let
view
=
UIView
()
view
.
backgroundColor
=
UIColor
.
init
(
hex
:
0xF8F8F8
)
let
imgView
=
UIImageView
(
image
:
UIImage
(
named
:
"principle_detail_head_bg"
))
view
.
addSubview
(
imgView
)
imgView
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
top
.
equalToSuperview
()
make
.
height
.
equalTo
(
imgView
.
snp
.
width
)
}
return
view
}()
lazy
var
uploadBtn
:
UIButton
=
{
let
btn
=
UIButton
()
btn
.
setTitle
(
"去上传"
.
local
,
for
:
.
normal
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSC_M
(
ofSize
:
16
)
btn
.
setTitleColor
(
.
white
,
for
:
.
normal
)
btn
.
backgroundColor
=
UIColor
.
brandMainColor
btn
.
layer
.
cornerRadius
=
kCornerRadius3
btn
.
addTarget
(
self
,
action
:
#selector(
didUploadBtnClicked
)
,
for
:
.
touchUpInside
)
return
btn
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
self
.
view
.
backgroundColor
=
.
white
self
.
gk_navTitle
=
"原则批"
gk_navigationBar
.
backgroundColor
=
.
clear
createUI
()
requestData
()
}
func
createUI
()
{
view
.
addSubview
(
bgView
)
view
.
addSubview
(
tableView
)
view
.
addSubview
(
uploadBtn
)
bgView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
}
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
uploadBtn
.
snp
.
top
)
.
offset
(
-
8
)
}
uploadBtn
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
16
)
make
.
right
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
42
)
make
.
height
.
equalTo
(
48.0
)
}
}
@objc
func
didUploadBtnClicked
()
{
let
vc
=
YHPrincipleReviewListVC
()
vc
.
orderId
=
12345
navigationController
?
.
pushViewController
(
vc
)
}
func
requestData
()
{
viewModel
.
getEnvelopeInfo
(
orderId
:
orderId
)
{
success
,
error
in
self
.
items
.
removeAll
()
// 已获得港府甄选名额
self
.
items
.
append
(
self
.
viewModel
.
envelopModel
)
self
.
tableView
.
reloadData
()
}
}
}
extension
YHPrincipleApprovedWaitSubmitVC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHPrincipleEnvelopeCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHPrincipleEnvelopeCell
if
0
<=
indexPath
.
row
&&
indexPath
.
row
<
items
.
count
{
let
model
=
items
[
indexPath
.
row
]
cell
.
updateModel
(
model
)
cell
.
expandClick
=
{
[
weak
self
]
isUnfold
in
guard
let
self
=
self
else
{
return
}
model
.
isUnfold
=
isUnfold
self
.
tableView
.
reloadData
()
}
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
0
<=
indexPath
.
section
&&
indexPath
.
section
<
items
.
count
{
}
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
UITableView
.
automaticDimension
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
0.01
}
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
return
self
.
getApproveHeaderView
()
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
}
extension
YHPrincipleApprovedWaitSubmitVC
{
func
getApproveHeaderView
()
->
UIView
{
let
view
=
UIView
()
let
titleLabel
=
UILabel
()
titleLabel
.
numberOfLines
=
0
let
title
:
ASAttributedString
=
.
init
(
"祝贺您,
\(
self
.
viewModel
.
waitResultModel
.
applicant
.
userName
)
先生!"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
24
)),
.
foreground
(
UIColor
.
mainTextColor
))
titleLabel
.
attributed
.
text
=
title
view
.
addSubview
(
titleLabel
)
let
detailLabel
=
UILabel
()
detailLabel
.
numberOfLines
=
0
let
str1
:
ASAttributedString
=
.
init
(
"您【与家人】申请的【优秀人才入境计划】,"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
let
str2
:
ASAttributedString
=
.
init
(
"已获得港府的甄选名额"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
str3
:
ASAttributedString
=
.
init
(
",请您于"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
let
time
:
ASAttributedString
=
.
init
(
"
\(
self
.
viewModel
.
envelopModel
.
date
)
"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
str4
:
ASAttributedString
=
.
init
(
"前补充更多文件,即可等待获得港府的正式批准!"
,
.
font
(
UIFont
.
PFSC_R
(
ofSize
:
14
)),
.
foreground
(
UIColor
.
mainTextColor
(
alpha
:
0.7
)))
detailLabel
.
attributed
.
text
=
str1
+
str2
+
str3
+
time
+
str4
view
.
addSubview
(
detailLabel
)
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
12
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
height
.
equalTo
(
34
)
}
detailLabel
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalTo
(
titleLabel
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
equalTo
(
20
)
make
.
right
.
equalTo
(
-
20
)
make
.
bottom
.
equalTo
(
-
36
)
}
return
view
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/C/YHPrincipleReviewListVC.swift
View file @
d3f4cf37
...
@@ -9,10 +9,23 @@
...
@@ -9,10 +9,23 @@
import
UIKit
import
UIKit
import
SmartCodable
import
SmartCodable
enum
YHPrincipleUploadStatus
:
Int
{
// 全部
case
all
=
-
1
// 审核中
case
review
=
0
// 已完成
case
finish
=
1
// 已驳回
case
rejected
=
2
// 待上传
case
preUpload
=
3
}
class
YHPrincipleReviewListVC
:
YHBaseViewController
{
class
YHPrincipleReviewListVC
:
YHBaseViewController
{
var
orderId
:
Int
=
0
var
orderId
:
Int
=
0
var
status
:
Int
=
0
var
items
:
[
SmartCodable
]
=
[]
var
items
:
[
SmartCodable
]
=
[]
let
viewModel
=
YHPrincleViewModel
()
let
viewModel
=
YHPrincleViewModel
()
...
@@ -58,6 +71,7 @@ class YHPrincipleReviewListVC: YHBaseViewController {
...
@@ -58,6 +71,7 @@ class YHPrincipleReviewListVC: YHBaseViewController {
func
createUI
()
{
func
createUI
()
{
view
.
addSubview
(
bgView
)
view
.
addSubview
(
bgView
)
view
.
addSubview
(
tableView
)
view
.
addSubview
(
tableView
)
bgView
.
snp
.
makeConstraints
{
make
in
bgView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
top
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
...
@@ -107,6 +121,11 @@ class YHPrincipleReviewListVC: YHBaseViewController {
...
@@ -107,6 +121,11 @@ class YHPrincipleReviewListVC: YHBaseViewController {
self
.
items
.
append
(
agreementModel
)
self
.
items
.
append
(
agreementModel
)
// 申请人意见访问
// 申请人意见访问
let
opinionModel
=
self
.
viewModel
.
uploadDetailModel
.
file_data
.
agreement
opinionModel
.
customType
=
YHPrincipleAgreementType
.
agreement
.
rawValue
opinionModel
.
title
=
"申请人意见访问"
opinionModel
.
isMust
=
true
opinionModel
.
isNeedTemplate
=
true
self
.
items
.
append
(
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
)
self
.
items
.
append
(
self
.
viewModel
.
uploadDetailModel
.
file_data
.
opinion
)
// 其他证明条件
// 其他证明条件
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/V/YHPrincipleUnapprovedCell.swift
View file @
d3f4cf37
...
@@ -101,6 +101,8 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
...
@@ -101,6 +101,8 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
var
items
:
[
YHPrincipleFileModel
]
=
[]
var
items
:
[
YHPrincipleFileModel
]
=
[]
var
expandClick
:((
Bool
)
->
())?
var
expandClick
:((
Bool
)
->
())?
let
viewModel
=
YHPrincleViewModel
()
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
let
label
=
UILabel
()
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
label
.
font
=
UIFont
.
PFSC_R
(
ofSize
:
15
)
...
@@ -136,6 +138,11 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
...
@@ -136,6 +138,11 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
return
btn
return
btn
}()
}()
lazy
var
previewFileTool
:
YHFilePreviewTool
=
{
let
tool
=
YHFilePreviewTool
(
targetVC
:
UIViewController
.
current
)
return
tool
}()
func
updateModel
(
_
model
:
YHPrincipleWaitResultModel
)
{
func
updateModel
(
_
model
:
YHPrincipleWaitResultModel
)
{
itemModel
=
model
itemModel
=
model
...
@@ -200,6 +207,11 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
...
@@ -200,6 +207,11 @@ class YHPrincipleUnapprovedCell: UITableViewCell {
itemView
.
btnClick
=
{
itemView
.
btnClick
=
{
YHHUD
.
flash
(
message
:
"查看文件"
)
YHHUD
.
flash
(
message
:
"查看文件"
)
// 私链转公链
// 私链转公链
self
.
viewModel
.
getPublicImageUrl
(
item
.
value
)
{
success
,
error
in
if
let
success
=
success
{
self
.
previewFileTool
.
openXLSXRemoteFile
(
urlString
:
success
,
fileName
:
"申请确认通知书"
)
}
}
}
}
}
else
if
model
.
type
==
.
profile
{
}
else
if
model
.
type
==
.
profile
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService(客服段)/PrincipleBatch(原则批)/VM/YHPrincleViewModel.swift
View file @
d3f4cf37
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
YHPrincleViewModel
:
NSObject
{
class
YHPrincleViewModel
:
YHBaseViewModel
{
var
waitResultModel
=
YHPrincipleWaitResultModel
()
var
waitResultModel
=
YHPrincipleWaitResultModel
()
var
envelopModel
=
YHPrincipleEnvelopeModel
()
var
envelopModel
=
YHPrincipleEnvelopeModel
()
...
@@ -62,14 +62,17 @@ class YHPrincleViewModel: NSObject {
...
@@ -62,14 +62,17 @@ class YHPrincleViewModel: NSObject {
return
return
}
}
self
.
envelopModel
=
resultModel
self
.
envelopModel
=
resultModel
self
.
envelopModel
=
self
.
getEnvelopModel
()
callback
?(
true
,
nil
)
callback
?(
true
,
nil
)
}
else
{
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
self
.
envelopModel
=
self
.
getEnvelopModel
()
callback
?(
false
,
err
)
callback
?(
false
,
err
)
}
}
}
failBlock
:
{
err
in
}
failBlock
:
{
err
in
self
.
envelopModel
=
self
.
getEnvelopModel
()
callback
?(
false
,
err
)
callback
?(
false
,
err
)
}
}
}
}
...
@@ -104,6 +107,31 @@ class YHPrincleViewModel: NSObject {
...
@@ -104,6 +107,31 @@ class YHPrincleViewModel: NSObject {
}
}
}
}
func
requestIsSendMail
(
orderId
:
Int
,
callback
:((
_
isSend
:
Bool
)
->
())?)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Principle
.
getIsSendMail
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
orderId
]
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
if
let
isSend
=
json
.
data
as?
Bool
{
callback
?(
isSend
)
}
else
{
callback
?(
false
)
}
}
else
{
callback
?(
false
)
}
}
failBlock
:
{
err
in
callback
?(
false
)
}
}
func
getEnvelopModel
()
->
YHPrincipleEnvelopeModel
{
func
getEnvelopModel
()
->
YHPrincipleEnvelopeModel
{
let
model
=
YHPrincipleEnvelopeModel
()
let
model
=
YHPrincipleEnvelopeModel
()
model
.
name
=
"黄金龙"
model
.
name
=
"黄金龙"
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
d3f4cf37
...
@@ -344,7 +344,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
...
@@ -344,7 +344,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
// YHPrincipleCongratulationAlertView.alertView().show()
// YHPrincipleCongratulationAlertView.alertView().show()
// YHPrincipleWaitResultViewController
// YHPrincipleWaitResultViewController
let
vc
=
YHPrincipleApproved
MailViewController
()
let
vc
=
YHPrincipleApproved
WaitSubmitVC
()
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
return
return
}
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
d3f4cf37
...
@@ -384,6 +384,8 @@ class YHAllApiName {
...
@@ -384,6 +384,8 @@ class YHAllApiName {
static
let
getProfileList
=
"super-app/order/approval/info"
static
let
getProfileList
=
"super-app/order/approval/info"
// 原则批详情
// 原则批详情
static
let
getUploadDetail
=
"super-app/order/approval/uploadInfo"
static
let
getUploadDetail
=
"super-app/order/approval/uploadInfo"
// 原则批已获批 是否发送邮件
static
let
getIsSendMail
=
"super-app/order/customer/service/interview/is-send-email"
}
}
}
}
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