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
9b597a37
Commit
9b597a37
authored
Dec 31, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
高A收入记录增加校验
parent
cb14b04d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
103 additions
and
6 deletions
+103
-6
YHAddIncomeRecordCell.swift
...(我的信息流程)/IncomeRecord(收入记录)/V/YHAddIncomeRecordCell.swift
+53
-1
YHEmploymentVerificationAvailableCell.swift
...ecord(收入记录)/V/YHEmploymentVerificationAvailableCell.swift
+50
-5
YHGCIncomeRecordViewController.swift
...IncomeRecord(收入记录)/C/YHGCIncomeRecordViewController.swift
+0
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/IncomeRecord(收入记录)/V/YHAddIncomeRecordCell.swift
View file @
9b597a37
...
...
@@ -14,7 +14,7 @@ class YHAddIncomeRecordCell: YHResignDocumentCell {
private
lazy
var
addItemView
:
YHWorkItemAddView
=
{
let
view
=
YHWorkItemAddView
()
view
.
addBtn
.
setTitle
(
"新增收入信息"
.
local
,
for
:
.
normal
)
view
.
addBtn
.
setTitle
(
"新增收入
/工作
信息"
.
local
,
for
:
.
normal
)
view
.
addBtn
.
setImage
(
UIImage
(
named
:
"income_item_add"
),
for
:
.
normal
)
view
.
clickBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
...
...
@@ -22,6 +22,14 @@ class YHAddIncomeRecordCell: YHResignDocumentCell {
}
return
view
}()
private
lazy
var
infoFailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
.
failColor
label
.
text
=
"请新增"
return
label
}()
override
init
(
style
:
UITableViewCell
.
CellStyle
,
reuseIdentifier
:
String
?)
{
super
.
init
(
style
:
style
,
reuseIdentifier
:
reuseIdentifier
)
...
...
@@ -31,12 +39,51 @@ class YHAddIncomeRecordCell: YHResignDocumentCell {
required
init
?(
coder
:
NSCoder
)
{
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setupCellInfo
(
_
addTitle
:
String
,
needShowFailButton
:
Bool
)
{
addItemView
.
addBtn
.
setTitle
(
addTitle
.
local
,
for
:
.
normal
)
updateFailLabel
(
needShowFailButton
)
}
}
extension
YHAddIncomeRecordCell
{
private
func
updateFailLabel
(
_
needShowFailButton
:
Bool
)
{
if
needShowFailButton
{
infoFailLabel
.
isHidden
=
false
addItemView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
height
.
equalTo
(
44
)
}
infoFailLabel
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
addItemView
.
snp
.
bottom
)
.
offset
(
6
)
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
else
{
infoFailLabel
.
isHidden
=
true
addItemView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
height
.
equalTo
(
44
)
}
infoFailLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
}
private
func
setupUI
()
{
updateCellCorner
(
.
bottom
)
subContainerView
.
addSubview
(
addItemView
)
subContainerView
.
addSubview
(
infoFailLabel
)
addItemView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
...
...
@@ -44,5 +91,10 @@ extension YHAddIncomeRecordCell {
make
.
right
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
height
.
equalTo
(
44
)
}
infoFailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/ServiceProcess(我的信息流程)/IncomeRecord(收入记录)/V/YHEmploymentVerificationAvailableCell.swift
View file @
9b597a37
...
...
@@ -35,6 +35,14 @@ class YHEmploymentVerificationAvailableCell: YHResignDocumentCell {
return
label
}()
private
lazy
var
infoFailLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
font
=
.
PFSC_R
(
ofSize
:
12
)
label
.
textColor
=
.
failColor
label
.
text
=
"请选择"
return
label
}()
private
lazy
var
rightArrowIcon
:
UIImageView
=
{
let
imageView
=
UIImageView
(
image
:
UIImage
(
named
:
"form_right_arrow"
))
return
imageView
...
...
@@ -49,13 +57,42 @@ class YHEmploymentVerificationAvailableCell: YHResignDocumentCell {
fatalError
(
"init(coder:) has not been implemented"
)
}
func
setupCellInfo
(
detail
:
String
?)
{
func
setupCellInfo
(
detail
:
String
?
,
needShowFailButton
:
Bool
)
{
infoDetailLabel
.
text
=
detail
updateContentState
((
detail
?
.
count
??
0
)
>
0
)
updateFailLabel
(
needShowFailButton
)
}
}
extension
YHEmploymentVerificationAvailableCell
{
private
func
updateFailLabel
(
_
needShowFailButton
:
Bool
)
{
if
needShowFailButton
{
infoFailLabel
.
isHidden
=
false
infoTitleLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
dotIcon
.
snp
.
right
)
.
offset
(
2
)
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
}
infoFailLabel
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
infoTitleLabel
.
snp
.
bottom
)
.
offset
(
6
)
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
else
{
infoFailLabel
.
isHidden
=
true
infoTitleLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalTo
(
dotIcon
.
snp
.
right
)
.
offset
(
2
)
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
make
.
bottom
.
lessThanOrEqualToSuperview
()
.
offset
(
-
16
)
}
infoFailLabel
.
snp
.
remakeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
}
private
func
updateContentState
(
_
isNotBlank
:
Bool
)
{
if
!
isNotBlank
{
infoDetailLabel
.
text
=
"请选择"
...
...
@@ -73,6 +110,7 @@ extension YHEmploymentVerificationAvailableCell {
subContainerView
.
addSubview
(
infoDetailLabel
)
subContainerView
.
addSubview
(
dotIcon
)
subContainerView
.
addSubview
(
rightArrowIcon
)
subContainerView
.
addSubview
(
infoFailLabel
)
dotIcon
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
rightArrowIcon
.
setContentCompressionResistancePriority
(
.
required
,
for
:
.
horizontal
)
...
...
@@ -82,13 +120,12 @@ extension YHEmploymentVerificationAvailableCell {
dotIcon
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
height
.
width
.
equalTo
(
6
)
make
.
centerY
.
equalTo
Superview
(
)
make
.
centerY
.
equalTo
(
infoTitleLabel
)
}
infoTitleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalTo
(
dotIcon
.
snp
.
right
)
.
offset
(
2
)
make
.
centerY
.
equalToSuperview
()
make
.
top
.
greaterThanOrEqualToSuperview
()
.
offset
(
16
)
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
make
.
bottom
.
lessThanOrEqualToSuperview
()
.
offset
(
-
16
)
}
...
...
@@ -100,11 +137,19 @@ extension YHEmploymentVerificationAvailableCell {
infoDetailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
greaterThanOrEqualTo
(
infoTitleLabel
.
snp
.
right
)
.
offset
(
20
)
make
.
centerY
.
equalTo
Superview
(
)
make
.
centerY
.
equalTo
(
infoTitleLabel
)
make
.
right
.
equalTo
(
rightArrowIcon
.
snp
.
left
)
make
.
top
.
greaterThanOrEqualToSuperview
()
.
offset
(
16
)
make
.
bottom
.
lessThanOrEqualToSuperview
()
.
offset
(
-
16
)
}
infoFailLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
18
)
make
.
right
.
lessThanOrEqualToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
16
)
}
infoFailLabel
.
isHidden
=
true
updateContentState
(
false
)
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/IncomeRecord(收入记录)/C/YHGCIncomeRecordViewController.swift
View file @
9b597a37
This diff is collapsed.
Click to expand it.
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