Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
655a843f
Commit
655a843f
authored
May 21, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪资单详情页判断
parent
38d456f7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
42 deletions
+32
-42
src/app/my/salary-detail/salary-detail.component.html
+6
-6
src/app/my/salary-detail/salary-detail.component.ts
+23
-16
src/app/my/salary-first-year/salary-first-year.component.html
+1
-1
src/app/my/salary-first-year/salary-first-year.component.ts
+2
-19
No files found.
src/app/my/salary-detail/salary-detail.component.html
View file @
655a843f
...
@@ -14,30 +14,30 @@
...
@@ -14,30 +14,30 @@
<div
class=
"part"
>
<div
class=
"part"
>
<div
class=
"item"
>
<div
class=
"item"
>
<div
class=
"title"
>
个人销售(A)
</div>
<div
class=
"title"
>
个人销售(A)
</div>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
1
)
"
>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
fycSalesInfo
.
SalaryName
,
1
)"
*
ngIf=
"fycSalesInfo
"
>
<span>
{{fycSalesInfo.SalaryName}}
</span>
<span>
{{fycSalesInfo.SalaryName}}
</span>
<span
class=
"red"
>
18,505.00
<i
class=
"iconfont icon-ar-r"
></i>
</span>
<span
class=
"red"
>
18,505.00
<i
class=
"iconfont icon-ar-r"
></i>
</span>
</div>
</div>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
2
)
"
>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
rycSalesInfo
.
SalaryName
,
1
)"
*
ngIf=
"rycSalesInfo
"
>
<span>
{{rycSalesInfo.SalaryName}}
</span>
<span>
{{rycSalesInfo.SalaryName}}
</span>
<span
class=
"red"
>
225.00
<i
class=
"iconfont icon-ar-r"
></i></span>
<span
class=
"red"
>
225.00
<i
class=
"iconfont icon-ar-r"
></i></span>
</div>
</div>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<div
class=
"title"
>
销售管理(B)
</div>
<div
class=
"title"
>
销售管理(B)
</div>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
3
)
"
>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
fycTutorInfo
.
SalaryName
,
1
)"
*
ngIf=
"fycTutorInfo
"
>
<span>
{{fycTutorInfo.SalaryName}}
</span>
<span>
{{fycTutorInfo.SalaryName}}
</span>
<span
class=
"red"
>
18,505.00
<i
class=
"iconfont icon-ar-r"
></i></span>
<span
class=
"red"
>
18,505.00
<i
class=
"iconfont icon-ar-r"
></i></span>
</div>
</div>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
4
)
"
>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
rycTutorInfo
.
SalaryName
,
1
)"
*
ngIf=
"rycTutorInfo
"
>
<span>
{{rycTutorInfo.SalaryName}}
</span>
<span>
{{rycTutorInfo.SalaryName}}
</span>
<span
class=
"red"
>
225.00
<i
class=
"iconfont icon-ar-r"
></i></span>
<span
class=
"red"
>
225.00
<i
class=
"iconfont icon-ar-r"
></i></span>
</div>
</div>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
3
)
"
>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
fycMeritsInfo
.
SalaryName
,
2
)"
*
ngIf=
"fycMeritsInfo
"
>
<span>
{{fycMeritsInfo.SalaryName}}
</span>
<span>
{{fycMeritsInfo.SalaryName}}
</span>
<span
class=
"red"
>
18,505.00
<i
class=
"iconfont icon-ar-r"
></i></span>
<span
class=
"red"
>
18,505.00
<i
class=
"iconfont icon-ar-r"
></i></span>
</div>
</div>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
4
)
"
>
<div
class=
"item_detail"
(
click
)="
jumpToFirstYearSales
(
rycMeritsInfo
.
SalaryName
,
2
)"
*
ngIf=
"rycMeritsInfo
"
>
<span>
{{rycMeritsInfo.SalaryName}}
</span>
<span>
{{rycMeritsInfo.SalaryName}}
</span>
<span
class=
"red"
>
225.00
<i
class=
"iconfont icon-ar-r"
></i></span>
<span
class=
"red"
>
225.00
<i
class=
"iconfont icon-ar-r"
></i></span>
</div>
</div>
...
...
src/app/my/salary-detail/salary-detail.component.ts
View file @
655a843f
...
@@ -34,6 +34,14 @@ export class SalaryDetailComponent implements OnInit {
...
@@ -34,6 +34,14 @@ export class SalaryDetailComponent implements OnInit {
specialManagementAward
:
any
=
null
;
specialManagementAward
:
any
=
null
;
//其他税前加扣款
//其他税前加扣款
otherPreTaxDeduction
:
any
=
null
;
otherPreTaxDeduction
:
any
=
null
;
//激励奖金
IncentiveBonus
:
any
=
null
;
//加码奖金
addWeight
:
any
=
null
;
//季度奖
quarterlyBonus
:
any
=
null
;
//银盾在线奖
onlineAward
:
any
=
null
;
constructor
(
public
lifeCommonService
:
LifeCommonService
,
constructor
(
public
lifeCommonService
:
LifeCommonService
,
private
activatedRoute
:
ActivatedRoute
,
private
activatedRoute
:
ActivatedRoute
,
private
router
:
Router
)
{
}
private
router
:
Router
)
{
}
...
@@ -109,12 +117,6 @@ export class SalaryDetailComponent implements OnInit {
...
@@ -109,12 +117,6 @@ export class SalaryDetailComponent implements OnInit {
"sumcommission"
:
17130.65
,
"sumcommission"
:
17130.65
,
},
},
{
{
"Project_id"
:
"91E8A0DD-8696-9964-CD35-AEBA6C8FDF19"
,
"SalaryName"
:
"其它税前加扣款"
,
"SalaryType"
:
"加扣款项"
,
"sumcommission"
:
17130.65
,
},
{
"Project_id"
:
"FC664684-4CBB-E3EC-FEC4-02FDDCAB4A02"
,
"Project_id"
:
"FC664684-4CBB-E3EC-FEC4-02FDDCAB4A02"
,
"SalaryName"
:
"加码奖金"
,
"SalaryName"
:
"加码奖金"
,
"SalaryType"
:
"加扣款项"
,
"SalaryType"
:
"加扣款项"
,
...
@@ -154,6 +156,16 @@ export class SalaryDetailComponent implements OnInit {
...
@@ -154,6 +156,16 @@ export class SalaryDetailComponent implements OnInit {
this
.
specialManagementAward
=
this
.
salaryDetailsList
[
i
];
this
.
specialManagementAward
=
this
.
salaryDetailsList
[
i
];
}
else
if
(
this
.
salaryDetailsList
[
i
][
'Project_id'
]
===
'91E8A0DD-8696-9964-CD35-AEBA6C8FDF19'
){
}
else
if
(
this
.
salaryDetailsList
[
i
][
'Project_id'
]
===
'91E8A0DD-8696-9964-CD35-AEBA6C8FDF19'
){
this
.
otherPreTaxDeduction
=
this
.
salaryDetailsList
[
i
];
this
.
otherPreTaxDeduction
=
this
.
salaryDetailsList
[
i
];
}
else
if
(
this
.
salaryDetailsList
[
i
][
'Project_id'
]
===
'45C0E205-653A-641B-1A35-C5C4148B1DA6'
){
this
.
IncentiveBonus
=
this
.
salaryDetailsList
[
i
];
}
else
if
(
this
.
salaryDetailsList
[
i
][
'Project_id'
]
===
'FC664684-4CBB-E3EC-FEC4-02FDDCAB4A02'
){
this
.
addWeight
=
this
.
salaryDetailsList
[
i
];
}
else
if
(
this
.
salaryDetailsList
[
i
][
'Project_id'
]
===
'105B9197-7B64-5AE6-AC47-C15AA857DDC5'
){
this
.
quarterlyBonus
=
this
.
salaryDetailsList
[
i
];
}
else
if
(
this
.
salaryDetailsList
[
i
][
'Project_id'
]
===
'12C24EDF-83D7-081C-AE2C-085031C4DCAF'
){
this
.
onlineAward
=
this
.
salaryDetailsList
[
i
];
}
else
{
break
;
}
}
}
}
}
}
...
@@ -164,16 +176,11 @@ export class SalaryDetailComponent implements OnInit {
...
@@ -164,16 +176,11 @@ export class SalaryDetailComponent implements OnInit {
/**
/**
*
*
* @param type
* @param type
* 1.首年度销售佣金
* 1.跳转到保单
* 2.续年度销售佣金
* 2.跳转到体系
* 3.首年度辅导奖金
* 4.续年度辅导奖金
* 5.特别管理奖金
* 6.其他应税加扣款
*/
*/
jumpToFirstYearSales
(
type
){
jumpToFirstYearSales
(
salaryName
,
type
){
this
.
router
.
navigate
([
`/salary_detail/
${
this
.
monDtlPeriod
}
`
],{
queryParams
:{
type
:
type
}});
this
.
router
.
navigate
([
`/salary_detail/
${
this
.
monDtlPeriod
}
`
],{
queryParams
:{
type
:
type
,
salaryName
:
salaryName
}});
}
}
}
}
src/app/my/salary-first-year/salary-first-year.component.html
View file @
655a843f
<div
class=
"wrapper"
>
<div
class=
"wrapper"
>
<div
class=
"header"
>
<div
class=
"header"
>
<div
class=
"iconfont icon-fanhui"
(
click
)="
goBack
()"
></div>
<div
class=
"iconfont icon-fanhui"
(
click
)="
goBack
()"
></div>
<div>
{{
getTitleName(type)
}}
</div>
<div>
{{
salaryName
}}
</div>
</div>
</div>
<div
class=
"content_wrapper"
>
<div
class=
"content_wrapper"
>
<div
class=
"policy_item"
>
<div
class=
"policy_item"
>
...
...
src/app/my/salary-first-year/salary-first-year.component.ts
View file @
655a843f
...
@@ -9,33 +9,16 @@ import { ActivatedRoute,Router } from "@angular/router";
...
@@ -9,33 +9,16 @@ import { ActivatedRoute,Router } from "@angular/router";
export
class
SalaryFirstYearComponent
implements
OnInit
{
export
class
SalaryFirstYearComponent
implements
OnInit
{
status
:
boolean
;
status
:
boolean
;
type
:
any
;
type
:
any
;
salaryName
:
any
;
constructor
(
private
activatedRoute
:
ActivatedRoute
)
{
}
constructor
(
private
activatedRoute
:
ActivatedRoute
)
{
}
ngOnInit
()
{
ngOnInit
()
{
this
.
type
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
:
null
;
this
.
type
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
type
:
null
;
this
.
salaryName
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
salaryName
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
salaryName
:
null
;
}
}
goBack
(){
goBack
(){
history
.
go
(
-
1
);
history
.
go
(
-
1
);
}
}
getTitleName
(
type
){
switch
(
type
){
case
'1'
:
return
'首年度销售佣金'
;
case
'2'
:
return
'续年度销售佣金'
;
case
'3'
:
return
'首年度辅导奖金'
;
case
'4'
:
return
'续年度辅导奖金'
;
case
'5'
:
return
'特别管理奖金'
;
case
'6'
:
return
'其他应税加扣款'
;
default
:
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