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
1b0c9fd3
Commit
1b0c9fd3
authored
Feb 03, 2021
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
历史保单和业绩注释&电子报聘拒绝后可修改
parent
83aeb5a9
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
190 additions
and
46 deletions
+190
-46
src/app/auth/login/login.component.ts
+2
-1
src/app/my/application-process/personal-statement/personal-statement.component.ts
+16
-12
src/app/my/application-process/work-experience/work-experience.component.ts
+3
-0
src/app/my/historical-rank/historical-rank.component.html
+9
-0
src/app/my/historical-rank/historical-rank.component.scss
+29
-0
src/app/my/historical-rank/historical-rank.component.spec.ts
+25
-0
src/app/my/historical-rank/historical-rank.component.ts
+15
-0
src/app/my/my-business-detail/my-business-detail.component.ts
+8
-0
src/app/my/my-center-home/my-center-home.component.ts
+29
-23
src/app/my/my-routing.module.ts
+4
-1
src/app/my/my.module.ts
+2
-1
src/app/my/recruiting-detail/recruiting-detail.component.ts
+4
-0
src/app/my/sales-detail/sales-detail.component.html
+9
-4
src/app/my/sales-detail/sales-detail.component.scss
+28
-2
src/app/my/sales-detail/sales-detail.component.ts
+5
-2
src/assets/images/history_cup.png
+0
-0
src/styles.scss
+2
-0
No files found.
src/app/auth/login/login.component.ts
View file @
1b0c9fd3
...
...
@@ -79,7 +79,8 @@ export class LoginComponent implements OnInit, OnDestroy {
}
}
}
else
{
this
.
openPopInfo
(
'仅供寿险经纪人登录!'
);
this
.
openPopInfo
(
'你好,只有授权的经纪人才可登录,请联系我们的客服4009219290'
);
// this.openPopInfo(`你好,只有授权的经纪人才可登录,请联系我们的客服 <a href="tel:4009219290">4009219290 </a>`);
return
;
}
...
...
src/app/my/application-process/personal-statement/personal-statement.component.ts
View file @
1b0c9fd3
...
...
@@ -47,11 +47,11 @@ export class PersonalStatementComponent implements OnInit {
this
.
approvalIdentity
=
this
.
activatedRoute
.
snapshot
.
queryParams
.
approvalIdentity
?
this
.
activatedRoute
.
snapshot
.
queryParams
.
approvalIdentity
:
null
;
if
(
this
.
type
==
"personal_statement"
){
this
.
dropOptionsQuery
();
}
else
{
}
if
(
this
.
type
==
"contract"
){
this
.
queryContractTerms
();
}
this
.
queryWholeInfo
(
this
.
hiringBasicInfoId
);
}
ngOnChanges
(){
...
...
@@ -62,11 +62,11 @@ export class PersonalStatementComponent implements OnInit {
if
(
this
.
type
==
'personal_statement'
){
this
.
savePersonalStatements
();
}
else
if
(
this
.
type
==
'contract'
){
this
.
saveContractTermsConfirms
();
if
(
!
this
.
isAllAgree
){
this
.
openPopInfo
(
'请详细阅读全部条款!'
)
return
;
}
this
.
saveContractTermsConfirms
();
this
.
router
.
navigate
([
'/signature'
],{
queryParams
:
{
hiringBasicInfoId
:
this
.
hiringBasicInfoId
}
});
}
}
...
...
@@ -78,11 +78,13 @@ export class PersonalStatementComponent implements OnInit {
this
.
dropOptionsInfoList
.
forEach
((
item
)
=>
{
item
.
status
=
0
;
item
.
userInput
=
null
;
})
});
this
.
queryWholeInfo
(
this
.
hiringBasicInfoId
);
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
}
})
}
// 打开弹窗
...
...
@@ -159,9 +161,12 @@ export class PersonalStatementComponent implements OnInit {
this
.
contractTermsList
=
res
[
'data'
][
'contractTermsList'
];
this
.
contractTermsList
.
forEach
((
item
)
=>
{
item
.
confirmStatus
=
0
;
})
});
this
.
queryWholeInfo
(
this
.
hiringBasicInfoId
);
}
else
{
this
.
openPopInfo
(
res
[
'message'
]);
}
})
})
;
}
// 关闭弹窗
...
...
@@ -178,10 +183,10 @@ export class PersonalStatementComponent implements OnInit {
this
.
isShow
=
true
;
setTimeout
(()
=>
{
let
scrollTop
=
this
.
toastContent
.
nativeElement
.
scrollTop
;
if
(
scrollTop
=
=
0
){
setTimeout
(()
=>
{
if
(
scrollTop
>
=
0
){
//
setTimeout(() => {
this
.
agreeBtnShow
=
true
;
},
1000
);
//
}, 1000);
}
},
500
);
this
.
curContract
=
contractItem
.
termNote
;
...
...
@@ -232,8 +237,7 @@ export class PersonalStatementComponent implements OnInit {
})
}
async
queryWholeInfo
(
hiringBasicInfoId
){
await
this
.
queryContractTerms
();
queryWholeInfo
(
hiringBasicInfoId
){
this
.
myService
.
queryWholeInfo
({
hiringBasicInfoId
:
hiringBasicInfoId
}).
subscribe
(
(
res
)
=>
{
if
(
res
[
'success'
]){
this
.
approveStatus
=
res
[
'data'
][
'hiringBasicInfo'
][
'approveStatus'
];
...
...
src/app/my/application-process/work-experience/work-experience.component.ts
View file @
1b0c9fd3
...
...
@@ -97,8 +97,11 @@ export class WorkExperienceComponent implements OnInit {
this
.
showworkingStart
=
result
;
}
if
(
type
==
'end'
){
alert
(
result
)
this
.
addExperience
.
workingEnd
=
this
.
currentDateFormat
(
result
,
'yyyy-mm-dd'
);
this
.
showworkingEnd
=
result
;
alert
(
this
.
addExperience
.
workingEnd
)
alert
(
this
.
showworkingEnd
)
}
}
...
...
src/app/my/historical-rank/historical-rank.component.html
0 → 100644
View file @
1b0c9fd3
<div
class=
"team_sales_detail_wrapper"
>
<div
class=
"teamHeader"
>
<div
class=
"teamItem teamInfo"
>
<img
src=
"assets/images/history_cup.png"
>
<div
style=
"letter-spacing: 5px;margin-left: 5%;margin-top: 2%;"
>
往期历史
</div>
</div>
</div>
</div>
\ No newline at end of file
src/app/my/historical-rank/historical-rank.component.scss
0 → 100644
View file @
1b0c9fd3
.team_sales_detail_wrapper
{
background
:
#fff
;
overflow
:
auto
;
height
:
100%
;
ul
li
,
ol
li
{
list-style
:
none
;
}
.teamHeader
{
background
:url
(
'../../../assets/images/team_bg.png'
)
no-repeat
;
background-size
:
100%
;
.teamInfo
{
font-size
:
26px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
text-align
:
center
;
overflow
:
hidden
;
border-radius
:
6px
;
color
:
#fff
;
height
:
125px
;
font-weight
:
bold
;
img
{
width
:
16%
;
margin-left
:
-8%
;
}
}
}
}
\ No newline at end of file
src/app/my/historical-rank/historical-rank.component.spec.ts
0 → 100644
View file @
1b0c9fd3
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
HistoricalRankComponent
}
from
'./historical-rank.component'
;
describe
(
'HistoricalRankComponent'
,
()
=>
{
let
component
:
HistoricalRankComponent
;
let
fixture
:
ComponentFixture
<
HistoricalRankComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
HistoricalRankComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
HistoricalRankComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/my/historical-rank/historical-rank.component.ts
0 → 100644
View file @
1b0c9fd3
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'ydlife-historical-rank'
,
templateUrl
:
'./historical-rank.component.html'
,
styleUrls
:
[
'./historical-rank.component.scss'
]
})
export
class
HistoricalRankComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/app/my/my-business-detail/my-business-detail.component.ts
View file @
1b0c9fd3
...
...
@@ -432,6 +432,14 @@ export class MyBusinessDetailComponent implements OnInit {
}
}
this
.
ownOpportunityDetailQuery
();
}
else
{
this
.
toastDialog
=
true
;
this
.
toastInfo
=
{
status
:
1
,
msg
:
res
[
'success'
],
timeout
:
3000
,
align
:
'center'
};
}
})
}
...
...
src/app/my/my-center-home/my-center-home.component.ts
View file @
1b0c9fd3
...
...
@@ -57,7 +57,8 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
this
.
performanceList
=
[
{
name
:
`
${
this
.
lifeCommonService
.
dateFormat
(
new
Date
,
(
'M'
))}
月`
,
time
:
1
},
{
name
:
`
${
this
.
getQuarter
(
this
.
lifeCommonService
.
dateFormat
(
new
Date
,
(
'M'
)))}
`
,
time
:
3
},
{
name
:
'本年度'
,
time
:
2
}
{
name
:
'本年度'
,
time
:
2
},
// { name:'往期历史' , time: 4 }
]
//初始化调本月线上 保费+ 本月线下保费
this
.
rank
(
1
,
1
,
1
)
...
...
@@ -208,29 +209,34 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
*/
rank
(
time
,
platform
,
type
)
{
this
.
performanceSelectedFlag
=
time
;
const
param
=
{
mobileNo
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'mobileNo'
],
time
:
time
,
platform
:
platform
,
type
:
type
}
if
(
time
==
1
)
{
this
.
leftWidth
=
'15%'
;
}
else
if
(
time
==
2
)
{
this
.
leftWidth
=
'30%'
;
}
else
{
this
.
leftWidth
=
'17%'
;
}
this
.
myService
.
rank
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
platform
==
1
)
{
this
.
onlineInfo
=
res
[
'data'
][
'practitionerInfo'
];
}
if
(
platform
==
2
)
{
this
.
offlineInfo
=
res
[
'data'
][
'practitionerInfo'
];
}
if
(
time
==
4
){
this
.
router
.
navigate
([
'/historical_rank'
])
}
else
{
const
param
=
{
mobileNo
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'mobileNo'
],
time
:
time
,
platform
:
platform
,
type
:
type
}
})
if
(
time
==
1
)
{
this
.
leftWidth
=
'15%'
;
}
else
if
(
time
==
2
)
{
this
.
leftWidth
=
'30%'
;
}
else
{
this
.
leftWidth
=
'17%'
;
}
this
.
myService
.
rank
(
param
).
subscribe
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
platform
==
1
)
{
this
.
onlineInfo
=
res
[
'data'
][
'practitionerInfo'
];
}
if
(
platform
==
2
)
{
this
.
offlineInfo
=
res
[
'data'
][
'practitionerInfo'
];
}
}
});
}
}
//截取字符串
...
...
src/app/my/my-routing.module.ts
View file @
1b0c9fd3
...
...
@@ -47,6 +47,8 @@ import { ApprovalResultListComponent } from './approval-result-list/approval-res
import
{
MyApplicationComponent
}
from
'./my-application/my-application.component'
;
import
{
SuggestionComponent
}
from
'./suggestion/suggestion.component'
;
import
{
EmployeeSalaryComponent
}
from
'./application-process/employee-salary/employee-salary.component'
;
import
{
HistoricalRankComponent
}
from
'./historical-rank/historical-rank.component'
;
const
myRoutes
:
Routes
=
[
{
path
:
''
,
component
:
MyCenterHomeComponent
,
canActivate
:
[
AuthGuard
],
data
:
[{
title
:
'银盾保险经纪 - 工作台'
}]
},
{
path
:
'material'
,
component
:
MkMaterialComponent
,
canActivate
:
[
AuthGuard
]
},
...
...
@@ -99,7 +101,8 @@ const myRoutes: Routes = [
{
path
:
'approval_comments'
,
component
:
ApprovalCommentsComponent
,
canActivate
:[
AuthGuard
]},
{
path
:
'approval_result_list'
,
component
:
ApprovalResultListComponent
,
data
:
[{
title
:
'审批流程'
}],
canActivate
:[
AuthGuard
]},
{
path
:
'my_application'
,
component
:
MyApplicationComponent
,
data
:
[{
title
:
'我的报聘'
}],
canActivate
:[
AuthGuard
]},
{
path
:
'suggestion'
,
component
:
SuggestionComponent
,
data
:
[{
title
:
'问题反馈'
}],
canActivate
:[
AuthGuard
]}
{
path
:
'suggestion'
,
component
:
SuggestionComponent
,
data
:
[{
title
:
'问题反馈'
}],
canActivate
:[
AuthGuard
]},
{
path
:
'historical_rank'
,
component
:
HistoricalRankComponent
,
canActivate
:
[
AuthGuard
]
}
];
...
...
src/app/my/my.module.ts
View file @
1b0c9fd3
...
...
@@ -57,9 +57,10 @@ import { ApprovalResultListComponent } from './approval-result-list/approval-res
import
{
MyApplicationComponent
}
from
'./my-application/my-application.component'
;
import
{
SuggestionComponent
}
from
'./suggestion/suggestion.component'
;
import
{
EmployeeSalaryComponent
}
from
'./application-process/employee-salary/employee-salary.component'
;
import
{
HistoricalRankComponent
}
from
'./historical-rank/historical-rank.component'
;
@
NgModule
({
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
,
SalesDetailComponent
,
AnnouncementDetailComponent
,
MyBusinessComponent
,
MyBusinessDetailComponent
,
PickerComponent
,
MyToastComponent
,
SalesRankComponent
,
TeamRankComponent
,
RecruitingComponent
,
RecruitingDetailComponent
,
ThanksComponent
,
MySettingComponent
,
MySettingDetailComponent
,
MyNewsComponent
,
MyTargetComponent
,
TeamPanelComponent
,
SwitchNumberPipe
,
TeamSalesScoreComponent
,
ScoreDetailsComponent
,
BusinessCardComponent
,
OrderDetailComponent
,
SalaryComponent
,
TodoListComponent
,
AddTaskComponent
,
MedicalServiceComponent
,
InvitationComponent
,
RegisterComponent
,
EmployeeInfoComponent
,
EmployeeBasicInfoComponent
,
WorkExperienceComponent
,
PersonalPhotosComponent
,
EmployeeIdCardComponent
,
EmployeeEducationComponent
,
PersonalStatementComponent
,
SignatureComponent
,
EmployeeSubmitComponent
,
BankCardComponent
,
MemberDetailComponent
,
ApprovalListComponent
,
ApprovalCommentsComponent
,
ApprovalResultListComponent
,
MyApplicationComponent
,
SuggestionComponent
,
EmployeeSalaryComponent
],
declarations
:
[
MyCenterHomeComponent
,
MkMaterialComponent
,
MkMaterialDetailComponent
,
FileUploadComponent
,
ImportantAnnouncementComponent
,
SalesDetailComponent
,
AnnouncementDetailComponent
,
MyBusinessComponent
,
MyBusinessDetailComponent
,
PickerComponent
,
MyToastComponent
,
SalesRankComponent
,
TeamRankComponent
,
RecruitingComponent
,
RecruitingDetailComponent
,
ThanksComponent
,
MySettingComponent
,
MySettingDetailComponent
,
MyNewsComponent
,
MyTargetComponent
,
TeamPanelComponent
,
SwitchNumberPipe
,
TeamSalesScoreComponent
,
ScoreDetailsComponent
,
BusinessCardComponent
,
OrderDetailComponent
,
SalaryComponent
,
TodoListComponent
,
AddTaskComponent
,
MedicalServiceComponent
,
InvitationComponent
,
RegisterComponent
,
EmployeeInfoComponent
,
EmployeeBasicInfoComponent
,
WorkExperienceComponent
,
PersonalPhotosComponent
,
EmployeeIdCardComponent
,
EmployeeEducationComponent
,
PersonalStatementComponent
,
SignatureComponent
,
EmployeeSubmitComponent
,
BankCardComponent
,
MemberDetailComponent
,
ApprovalListComponent
,
ApprovalCommentsComponent
,
ApprovalResultListComponent
,
MyApplicationComponent
,
SuggestionComponent
,
EmployeeSalaryComponent
,
HistoricalRankComponent
],
imports
:
[
CommonModule
,
LifeCommonModule
,
...
...
src/app/my/recruiting-detail/recruiting-detail.component.ts
View file @
1b0c9fd3
...
...
@@ -468,6 +468,10 @@ export class RecruitingDetailComponent implements OnInit {
}
saveMembership
(){
if
(
!
this
.
employQuery
.
mdDropOptionId
||
this
.
employQuery
.
mdDropOptionId
==
null
){
this
.
openPopInfo
(
'报聘职级不能为空!'
);
return
;
}
if
(
this
.
employQuery
.
mdDropOptionId
!=
30
){
if
(
!
this
.
employQuery
.
mentorPractitionerId
||
!
this
.
employQuery
.
mentor
){
this
.
openPopInfo
(
'S2级别以下,辅导人不可以为空!'
)
...
...
src/app/my/sales-detail/sales-detail.component.html
View file @
1b0c9fd3
<div
class=
"salesWrapper"
>
<div
class=
"teamHeader"
>
<div
class=
"teamItem teamInfo"
>
<img
src=
"assets/images/history_cup.png"
>
<div>
{{performanceTitle}}{{showType==='sales'?'佣金':'保单'}}
</div>
</div>
</div>
<div
class=
"top"
>
<ul
class=
"tab"
>
<li
*
ngFor=
"let item of performanceList"
(
click
)="
selectRang
(
item
.
time
)"
<li
*
ngFor=
"let item of performanceList"
(
click
)="
selectRang
(
item
.
time
,
item
.
name
)"
[
ngClass
]="{
selected:searchType=
=item.time}"
>
{{item.name}}
</li>
...
...
@@ -14,9 +22,6 @@
<div
class=
"salesContent"
>
<div
class=
"salesItem"
*
ngFor=
"let salesDetailItem of salesDetailList"
(
click
)="
jumpToOrderdetail
(
salesDetailItem
.
orderNo
,
salesDetailItem
.
platform
,
salesDetailItem
.
fortuneId
)"
>
<div
class=
"icon_bolck"
*
ngIf=
"showType==='sales'"
><span
class=
"iconfont icon-yongjin"
></span></div>
<div
class=
"icon_bolck"
*
ngIf=
"showType==='orderform'"
><span
class=
"iconfont icon-baodanyangben"
style=
"font-size: 20px;"
></span></div>
<div
class=
"line"
>
<div>
投保人:{{salesDetailItem.holderName}}
</div>
<span
class=
"iconfont icon-ar-r"
style=
"font-size: 10px;position: relative; right: -2px;"
></span>
...
...
src/app/my/sales-detail/sales-detail.component.scss
View file @
1b0c9fd3
.salesWrapper
{
width
:
100%
;
height
:
100%
;
overflow
:
auto
;
overflow
:
hidden
;
.teamHeader
{
background
:url
(
'../../../assets/images/team_bg.png'
)
no-repeat
;
background-size
:
100%
;
.teamInfo
{
font-size
:
26px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
text-align
:
center
;
overflow
:
hidden
;
border-radius
:
6px
;
color
:
#fff
;
height
:
125px
;
font-weight
:
bold
;
img
{
width
:
16%
;
margin-left
:
-8%
;
}
div
{
letter-spacing
:
5px
;
margin-left
:
5%
;
margin-top
:
2%
;
}
}
}
.top
{
display
:
flex
;
justify-content
:
space-between
;
...
...
@@ -37,10 +62,11 @@
}
.salesContent
{
overflow
:
auto
;
height
:
100%
;
.salesItem
{
border-bottom
:
1px
#dcdcdc
solid
;
padding
:
10px
;
padding-left
:
45px
;
position
:
relative
;
.icon_bolck
{
border
:
1px
#dcdcdc
solid
;
...
...
src/app/my/sales-detail/sales-detail.component.ts
View file @
1b0c9fd3
...
...
@@ -13,11 +13,13 @@ export class SalesDetailComponent implements OnInit {
performanceList
:
Array
<
any
>
;
showType
:
any
;
platform
:
number
;
performanceTitle
:
string
=
'本月'
;
constructor
(
private
router
:
Router
,
private
myService
:
MyService
,
private
activatedRoute
:
ActivatedRoute
,
public
lifeCommonService
:
LifeCommonService
)
{
this
.
performanceList
=
[
{
time
:
1
,
name
:
'本月'
},
{
time
:
3
,
name
:
'本季'
},
{
time
:
2
,
name
:
'本年度'
}
{
time
:
2
,
name
:
'本年度'
},
// { time: 4, name: '历史' }
]
}
...
...
@@ -51,8 +53,9 @@ export class SalesDetailComponent implements OnInit {
selectRang
(
e
)
{
selectRang
(
e
,
name
)
{
this
.
searchType
=
e
;
this
.
performanceTitle
=
name
;
this
.
practitionerPolicyListQuery
(
this
.
platform
);
}
...
...
src/assets/images/history_cup.png
0 → 100644
View file @
1b0c9fd3
3.64 KB
src/styles.scss
View file @
1b0c9fd3
...
...
@@ -189,6 +189,7 @@ footer.fixed{
.contentDetail.employ
.am-list-body
{
margin
:
5
.5px
10px
;
border-top
:
none
;
.am-list-item
{
padding-left
:
0
;
.am-list-line
{
...
...
@@ -271,3 +272,4 @@ footer.fixed{
font-size
:
22px
;
}
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