Commit daeff3d6 by sunchao

辅导人查看被邀请人详情

parent f8897870
...@@ -474,7 +474,7 @@ export class LifeCommonService { ...@@ -474,7 +474,7 @@ export class LifeCommonService {
} }
/** /**
* 姓名正则 * 姓名正则(包含公司名)
*/ */
nameValid(name) { nameValid(name) {
const NAME_REGEXP = /(^[\u4e00-\u9fa5]{1}[\u4e00-\u9fa5\.·()()。]{0,48}[\u4e00-\u9fa5]{1}$)|(^[a-zA-Z]{1}[a-zA-Z\s]{0,48}[a-zA-Z]{1}$)/; const NAME_REGEXP = /(^[\u4e00-\u9fa5]{1}[\u4e00-\u9fa5\.·()()。]{0,48}[\u4e00-\u9fa5]{1}$)|(^[a-zA-Z]{1}[a-zA-Z\s]{0,48}[a-zA-Z]{1}$)/;
......
...@@ -20,9 +20,13 @@ ...@@ -20,9 +20,13 @@
</div> </div>
</div> </div>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast> <ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
...@@ -17,6 +17,7 @@ export class BankCardComponent implements OnInit { ...@@ -17,6 +17,7 @@ export class BankCardComponent implements OnInit {
sureBankAccountId:string; sureBankAccountId:string;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
approvalIdentity:any;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService) { } public myService:MyService) { }
...@@ -25,6 +26,7 @@ export class BankCardComponent implements OnInit { ...@@ -25,6 +26,7 @@ export class BankCardComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId)
} }
...@@ -97,4 +99,12 @@ export class BankCardComponent implements OnInit { ...@@ -97,4 +99,12 @@ export class BankCardComponent implements OnInit {
} }
}) })
} }
viewNext(){
this.router.navigate(['/personal_statement'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
} }
...@@ -7,11 +7,13 @@ ...@@ -7,11 +7,13 @@
<div class="contentDetail employ"> <div class="contentDetail employ">
<div class="contentItem"> <div class="contentItem">
<span>姓名</span> <span>姓名</span>
<input type="text" class="form-control" [(ngModel)]="editEmployBasicInfo.name" (blur)="bs(2)"> <input type="text" class="form-control" [(ngModel)]="editEmployBasicInfo.name" (blur)="bs(2)"
[disabled]="approvalIdentity">
</div> </div>
<div class="contentItem"> <div class="contentItem">
<span>证件类型</span> <span>证件类型</span>
<select class="form-control" (ngModelChange)="idTypeChange($event);bs(null)" [ngModel]="editEmployBasicInfo.idTypeId"> <select class="form-control" (ngModelChange)="idTypeChange($event);bs(null)" [ngModel]="editEmployBasicInfo.idTypeId"
[disabled]="approvalIdentity">
<option value=null>请选择</option> <option value=null>请选择</option>
<option [value]="idType.id" *ngFor="let idType of this.idTypesList"> <option [value]="idType.id" *ngFor="let idType of this.idTypesList">
{{idType.name}} {{idType.name}}
...@@ -20,7 +22,8 @@ ...@@ -20,7 +22,8 @@
</div> </div>
<div class="contentItem"> <div class="contentItem">
<span>证件号</span> <span>证件号</span>
<input type="text" class="form-control" (blur)="bs(1)" [(ngModel)]="editEmployBasicInfo.idNo"> <input type="text" class="form-control" (blur)="bs(1)" [(ngModel)]="editEmployBasicInfo.idNo"
[disabled]="approvalIdentity">
</div> </div>
<List [className]="'date-picker-list'"> <List [className]="'date-picker-list'">
<ListItem <ListItem
...@@ -32,7 +35,7 @@ ...@@ -32,7 +35,7 @@
[maxDate] = "maxDate" [maxDate] = "maxDate"
[(ngModel)]="showPractitionerBirthdate" [(ngModel)]="showPractitionerBirthdate"
(onOk)="onOk($event)" (onOk)="onOk($event)"
[disabled]="editEmployBasicInfo.idTypeId==1" [disabled]="editEmployBasicInfo.idTypeId==1 || approvalIdentity"
> >
出生日期 出生日期
</ListItem> </ListItem>
...@@ -40,7 +43,8 @@ ...@@ -40,7 +43,8 @@
<div class="contentItem"> <div class="contentItem">
<span>性别</span> <span>性别</span>
<select class="form-control" [(ngModel)]="editEmployBasicInfo.gender" [disabled]="editEmployBasicInfo.idTypeId==1" (blur)="bs(null)"> <select class="form-control" [(ngModel)]="editEmployBasicInfo.gender" [disabled]="editEmployBasicInfo.idTypeId==1" (blur)="bs(null)"
[disabled]="approvalIdentity">
<option value=null>请选择</option> <option value=null>请选择</option>
<option value='1'></option> <option value='1'></option>
<option value="2"></option> <option value="2"></option>
...@@ -63,17 +67,23 @@ ...@@ -63,17 +67,23 @@
<div class="contentItem"> <div class="contentItem">
<span>居住地址</span> <span>居住地址</span>
<div> <div>
<input type="text" class="form-control" [(ngModel)]="editEmployBasicInfo.residentAddress" (blur)="bs(3)"> <input type="text" class="form-control" [(ngModel)]="editEmployBasicInfo.residentAddress" (blur)="bs(3)"
[disabled]="approvalIdentity">
</div> </div>
</div> </div>
<div class="contentItem"> <div class="contentItem">
<span>E-mail</span> <span>E-mail</span>
<div><input type="text" class="form-control" [(ngModel)]="editEmployBasicInfo.email" (blur)="bs(4)"></div> <div><input type="text" class="form-control" [(ngModel)]="editEmployBasicInfo.email" (blur)="bs(4)"
[disabled]="approvalIdentity"></div>
</div> </div>
</div> </div>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div routerLink="/approval-list">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
\ No newline at end of file
...@@ -91,10 +91,11 @@ ...@@ -91,10 +91,11 @@
.contentItem:last-child { .contentItem:last-child {
border-bottom: none; border-bottom: none;
} }
select.form-control[disabled] { // select.form-control[disabled] {
background-color: transparent; // background-color: transparent;
color: #999; // color: #999;
} // }
} }
.contentDetail.employ .contentItem{ .contentDetail.employ .contentItem{
padding: 10px 0; padding: 10px 0;
...@@ -102,4 +103,11 @@ ...@@ -102,4 +103,11 @@
margin: 0 8px 0 8px; margin: 0 8px 0 8px;
} }
} }
.page{
position: fixed;
bottom: 0;
left: 0;
height: 56px;
line-height: 56px;
}
} }
\ No newline at end of file
...@@ -21,6 +21,7 @@ export class EmployeeBasicInfoComponent implements OnInit { ...@@ -21,6 +21,7 @@ export class EmployeeBasicInfoComponent implements OnInit {
provinces:Array<any>; provinces:Array<any>;
minDate:any = new Date('1900-01-01'); minDate:any = new Date('1900-01-01');
maxDate:any = new Date(); maxDate:any = new Date();
approvalIdentity:any;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService) { } public myService:MyService) { }
...@@ -29,11 +30,12 @@ export class EmployeeBasicInfoComponent implements OnInit { ...@@ -29,11 +30,12 @@ export class EmployeeBasicInfoComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.editEmployBasicInfo.mobileNo = this.activatedRoute.snapshot.queryParams.mobileNo?this.activatedRoute.snapshot.queryParams.mobileNo:null; this.editEmployBasicInfo.mobileNo = this.activatedRoute.snapshot.queryParams.mobileNo?this.activatedRoute.snapshot.queryParams.mobileNo:null;
this.erpInitialize(); this.erpInitialize();
this.provCityQry(); this.provCityQry();
this.editEmployBasicInfo = new EmployBasicQuery(this.hiringBasicInfoId,null,this.editEmployBasicInfo.mobileNo,null,null,null,null,null,null,null,null,null,null,null,null) this.editEmployBasicInfo = new EmployBasicQuery(this.hiringBasicInfoId,null,this.editEmployBasicInfo.mobileNo,null,null,null,null,null,null,null,null,null,null,null,null)
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId);
} }
erpInitialize(){ erpInitialize(){
...@@ -204,7 +206,7 @@ export class EmployeeBasicInfoComponent implements OnInit { ...@@ -204,7 +206,7 @@ export class EmployeeBasicInfoComponent implements OnInit {
// 选择地址信息 // 选择地址信息
selectedArea(type) { selectedArea(type) {
// this.sendRemoveScrollContent.emit(1); // this.sendRemoveScrollContent.emit(1);
if (type === 1) { if (type === 1 && !this.approvalIdentity ) {
// 户籍地址 // 户籍地址
this.houseFlag = true; this.houseFlag = true;
} }
...@@ -255,4 +257,7 @@ export class EmployeeBasicInfoComponent implements OnInit { ...@@ -255,4 +257,7 @@ export class EmployeeBasicInfoComponent implements OnInit {
}) })
} }
viewNext(){
this.router.navigate(['/work_experience'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
} }
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
<div class="contentDetail employ"> <div class="contentDetail employ">
<div class="contentItem"> <div class="contentItem">
<span>最高学历:如本科、专科、硕士</span> <span>最高学历:如本科、专科、硕士</span>
<select class="form-control" name="" id="" [(ngModel)]="lastGraduateCode" (ngModelChange)="selectEducationLevel($event)"> <select class="form-control" name="" id="" [(ngModel)]="lastGraduateCode" (ngModelChange)="selectEducationLevel($event)"
[disabled]="approvalIdentity">
<option value=null>请选择</option> <option value=null>请选择</option>
<option [value]="educationLevel.id" *ngFor="let educationLevel of educationLevelList"> <option [value]="educationLevel.id" *ngFor="let educationLevel of educationLevelList">
{{educationLevel.name}} {{educationLevel.name}}
...@@ -16,7 +17,7 @@ ...@@ -16,7 +17,7 @@
</div> </div>
<div class="contentItem"> <div class="contentItem">
<span>毕业学校</span> <span>毕业学校</span>
<input class="form-control" [(ngModel)]="lastGraduateSchool"/> <input class="form-control" [(ngModel)]="lastGraduateSchool" [disabled]="approvalIdentity"/>
</div> </div>
<div class="contentItem" style="border:none;"> <div class="contentItem" style="border:none;">
<span>毕业证</span> <span>毕业证</span>
...@@ -27,14 +28,18 @@ ...@@ -27,14 +28,18 @@
<img src="assets/images/camera.png" alt="" /> <img src="assets/images/camera.png" alt="" />
<div style="margin-top: 10px;" (click)="selectPic()">点击添加毕业证照片</div> <div style="margin-top: 10px;" (click)="selectPic()">点击添加毕业证照片</div>
</div> </div>
<img src="{{certificationVxUrl}}" alt="毕业证照片" *ngIf="certificationVxUrl"> <img src="{{certificationVxUrl}}" alt="毕业证照片" (click)="selectPic()" *ngIf="certificationVxUrl">
<div class="tips"> <div class="tips">
<p>(jpg,png 文件大小不大于1mb)</p> <p>(jpg,png 文件大小不大于1mb)</p>
</div> </div>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast> <ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
\ No newline at end of file
...@@ -56,10 +56,10 @@ ...@@ -56,10 +56,10 @@
.contentItem:last-child { .contentItem:last-child {
border-bottom: none; border-bottom: none;
} }
select.form-control[disabled] { // select.form-control[disabled] {
background-color: transparent; // background-color: transparent;
color: #999; // color: #999;
} // }
} }
.contentDetail.employ .contentItem{ .contentDetail.employ .contentItem{
padding: 10px 0; padding: 10px 0;
......
...@@ -20,6 +20,7 @@ export class EmployeeEducationComponent implements OnInit { ...@@ -20,6 +20,7 @@ export class EmployeeEducationComponent implements OnInit {
toastInfo: any; toastInfo: any;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
approvalIdentity:any;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService,private changeDetectorRef: ChangeDetectorRef) { public myService:MyService,private changeDetectorRef: ChangeDetectorRef) {
...@@ -30,6 +31,7 @@ export class EmployeeEducationComponent implements OnInit { ...@@ -30,6 +31,7 @@ export class EmployeeEducationComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.educationLevelQuery(); this.educationLevelQuery();
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId)
} }
...@@ -90,6 +92,7 @@ export class EmployeeEducationComponent implements OnInit { ...@@ -90,6 +92,7 @@ export class EmployeeEducationComponent implements OnInit {
} }
selectPic(){ selectPic(){
if(!this.approvalIdentity){
if(this.lifeCommonService.isWeiXin()){ if(this.lifeCommonService.isWeiXin()){
// 5.1 拍照、本地选图 // 5.1 拍照、本地选图
const t = this; const t = this;
...@@ -125,6 +128,8 @@ export class EmployeeEducationComponent implements OnInit { ...@@ -125,6 +128,8 @@ export class EmployeeEducationComponent implements OnInit {
}else{ }else{
this.openPopInfo('请在微信端操作!') this.openPopInfo('请在微信端操作!')
} }
}
} }
...@@ -153,4 +158,12 @@ export class EmployeeEducationComponent implements OnInit { ...@@ -153,4 +158,12 @@ export class EmployeeEducationComponent implements OnInit {
} }
}) })
} }
viewNext(){
this.router.navigate(['/bank_card'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
} }
...@@ -37,9 +37,13 @@ ...@@ -37,9 +37,13 @@
</div> </div>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast> <ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
...@@ -40,9 +40,11 @@ ...@@ -40,9 +40,11 @@
margin-top: 10px; margin-top: 10px;
overflow: hidden; overflow: hidden;
.tips{ .tips{
width: 100%;
margin-top: 10px; margin-top: 10px;
color: #999; color: #999;
font-size: 10px; font-size: 10px;
text-align: center;
} }
.photo{ .photo{
text-align: center; text-align: center;
......
...@@ -21,6 +21,7 @@ export class EmployeeIdCardComponent implements OnInit { ...@@ -21,6 +21,7 @@ export class EmployeeIdCardComponent implements OnInit {
toastInfo: any; toastInfo: any;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
approvalIdentity:any;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService,private changeDetectorRef: ChangeDetectorRef) { public myService:MyService,private changeDetectorRef: ChangeDetectorRef) {
...@@ -31,6 +32,7 @@ export class EmployeeIdCardComponent implements OnInit { ...@@ -31,6 +32,7 @@ export class EmployeeIdCardComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId)
// setTimeout(() => { // setTimeout(() => {
// this.exampleWidth = this.elementView.nativeElement.offsetWidth; // this.exampleWidth = this.elementView.nativeElement.offsetWidth;
...@@ -69,6 +71,7 @@ export class EmployeeIdCardComponent implements OnInit { ...@@ -69,6 +71,7 @@ export class EmployeeIdCardComponent implements OnInit {
} }
selectPic(type){ selectPic(type){
if(!this.approvalIdentity){
if(this.lifeCommonService.isWeiXin()){ if(this.lifeCommonService.isWeiXin()){
// 5.1 拍照、本地选图 // 5.1 拍照、本地选图
const t = this; const t = this;
...@@ -113,6 +116,8 @@ export class EmployeeIdCardComponent implements OnInit { ...@@ -113,6 +116,8 @@ export class EmployeeIdCardComponent implements OnInit {
} }
} }
}
// 打开弹窗 // 打开弹窗
openPopInfo(message) { openPopInfo(message) {
this.isNeedAlert = true; this.isNeedAlert = true;
...@@ -142,4 +147,12 @@ export class EmployeeIdCardComponent implements OnInit { ...@@ -142,4 +147,12 @@ export class EmployeeIdCardComponent implements OnInit {
} }
}) })
} }
viewNext(){
this.router.navigate(['/employee_education'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
} }
...@@ -14,9 +14,13 @@ ...@@ -14,9 +14,13 @@
<p>(请勿使用生活照,大小小于1mb)</p> <p>(请勿使用生活照,大小小于1mb)</p>
</div> </div>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast> <ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
...@@ -16,6 +16,7 @@ export class PersonalPhotosComponent implements OnInit { ...@@ -16,6 +16,7 @@ export class PersonalPhotosComponent implements OnInit {
toastInfo: any; toastInfo: any;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
approvalIdentity:any;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService,private changeDetectorRef: ChangeDetectorRef) { } public myService:MyService,private changeDetectorRef: ChangeDetectorRef) { }
...@@ -24,10 +25,12 @@ export class PersonalPhotosComponent implements OnInit { ...@@ -24,10 +25,12 @@ export class PersonalPhotosComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId)
} }
selectPic(){ selectPic(){
if(!this.approvalIdentity){
if(this.lifeCommonService.isWeiXin()){ if(this.lifeCommonService.isWeiXin()){
// 5.1 拍照、本地选图 // 5.1 拍照、本地选图
const t = this; const t = this;
...@@ -65,6 +68,8 @@ export class PersonalPhotosComponent implements OnInit { ...@@ -65,6 +68,8 @@ export class PersonalPhotosComponent implements OnInit {
} }
} }
}
next(){ next(){
if(!this.vxUrl){ if(!this.vxUrl){
this.openPopInfo('您的个人照片不能为空,请在微信端上传!') this.openPopInfo('您的个人照片不能为空,请在微信端上传!')
...@@ -108,7 +113,6 @@ export class PersonalPhotosComponent implements OnInit { ...@@ -108,7 +113,6 @@ export class PersonalPhotosComponent implements OnInit {
queryWholeInfo(hiringBasicInfoId){ queryWholeInfo(hiringBasicInfoId){
this.myService.queryWholeInfo({hiringBasicInfoId:hiringBasicInfoId}).subscribe((res)=>{ this.myService.queryWholeInfo({hiringBasicInfoId:hiringBasicInfoId}).subscribe((res)=>{
if(res['success']){ if(res['success']){
console.log(res)
if(res['success']){ if(res['success']){
this.vxUrl = res['data']['hiringBasicInfo']['personerPictureOssPath'] this.vxUrl = res['data']['hiringBasicInfo']['personerPictureOssPath']
}else{ }else{
...@@ -117,4 +121,12 @@ export class PersonalPhotosComponent implements OnInit { ...@@ -117,4 +121,12 @@ export class PersonalPhotosComponent implements OnInit {
} }
}) })
} }
viewNext(){
this.router.navigate(['/employee_id_card'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
} }
...@@ -14,9 +14,13 @@ ...@@ -14,9 +14,13 @@
</ul> </ul>
<textarea placeholder="输入报聘" #autofocusFlag [(ngModel)]="everWork" *ngIf="everWorkFlag" class="form-control" cols="10" rows="5"></textarea> <textarea placeholder="输入报聘" #autofocusFlag [(ngModel)]="everWork" *ngIf="everWorkFlag" class="form-control" cols="10" rows="5"></textarea>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<div class="wrapper" *ngIf="type =='contract'"> <div class="wrapper" *ngIf="type =='contract'">
...@@ -33,18 +37,23 @@ ...@@ -33,18 +37,23 @@
</li> </li>
</ul> </ul>
</div> </div>
<footer class="fixed" (click)="next()" [ngClass]="{default:isAllAgree == false}"> <footer class="fixed" (click)="next()" [ngClass]="{default:isAllAgree == false}"
*ngIf="!approvalIdentity">
我已全部阅读且同意,下一步 我已全部阅读且同意,下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<div class="toastWrapper toast" *ngIf="isShow"> <div class="toastWrapper toast" *ngIf="isShow">
</div> </div>
<div id="toastContent" *ngIf="isShow"> <div id="toastContent" *ngIf="isShow" #contract (scroll)="onScroll($event)">
<div class="title"> <div class="title">
{{curTitle}} {{curTitle}}
</div> </div>
<div class="contract" [innerHtml]="curContract"></div> <div class="contract" [innerHtml]="curContract" ></div>
<div class="agree" (click)="agree(curContractId)">同意</div> <div class="agree" (click)="agree(curContractId)">同意</div>
<!--<div>{{curQues|json}}</div>--> <!--<div>{{curQues|json}}</div>-->
</div> </div>
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
z-index: 1; z-index: 1;
} }
#toastContent { #toastContent {
position: absolute; position: fixed;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 80%; height: 80%;
......
import { Component, OnInit,ViewChild,ElementRef } from '@angular/core'; import { Component, OnInit,ViewChild,ElementRef ,HostListener} from '@angular/core';
import { ActivatedRoute,Router } from "@angular/router"; import { ActivatedRoute,Router } from "@angular/router";
import { MyService } from '../../my.service'; import { MyService } from '../../my.service';
import { LifeCommonService } from "../../../common/life-common.service"; import { LifeCommonService } from "../../../common/life-common.service";
@Component({ @Component({
selector: 'ydlife-personal-statement', selector: 'ydlife-personal-statement',
templateUrl: './personal-statement.component.html', templateUrl: './personal-statement.component.html',
...@@ -9,6 +11,7 @@ import { LifeCommonService } from "../../../common/life-common.service"; ...@@ -9,6 +11,7 @@ import { LifeCommonService } from "../../../common/life-common.service";
}) })
export class PersonalStatementComponent implements OnInit { export class PersonalStatementComponent implements OnInit {
@ViewChild('autofocusFlag') elementView: ElementRef; @ViewChild('autofocusFlag') elementView: ElementRef;
@ViewChild('contract') toastContent:ElementRef;
//判断是个人声明还是合同确认 //判断是个人声明还是合同确认
type:any; type:any;
hiringBasicInfoId:any; hiringBasicInfoId:any;
...@@ -27,6 +30,7 @@ export class PersonalStatementComponent implements OnInit { ...@@ -27,6 +30,7 @@ export class PersonalStatementComponent implements OnInit {
curContractId:number; curContractId:number;
isAllAgree:boolean = false; isAllAgree:boolean = false;
contractTermsConfirmsListParm:Array<any>; contractTermsConfirmsListParm:Array<any>;
approvalIdentity:any;
constructor(private myService: MyService, constructor(private myService: MyService,
private activatedRoute: ActivatedRoute, private activatedRoute: ActivatedRoute,
public lifeCommonService: LifeCommonService, public lifeCommonService: LifeCommonService,
...@@ -37,12 +41,14 @@ export class PersonalStatementComponent implements OnInit { ...@@ -37,12 +41,14 @@ export class PersonalStatementComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
if(this.type=="personal_statement"){ if(this.type=="personal_statement"){
this.dropOptionsQuery(); this.dropOptionsQuery();
}else{ }else{
this.queryContractTerms(); this.queryContractTerms();
} }
this.queryWholeInfo(this.hiringBasicInfoId); this.queryWholeInfo(this.hiringBasicInfoId);
} }
ngOnChanges(){ ngOnChanges(){
...@@ -88,6 +94,7 @@ export class PersonalStatementComponent implements OnInit { ...@@ -88,6 +94,7 @@ export class PersonalStatementComponent implements OnInit {
//选择个人声明 //选择个人声明
selectStatements(personalStatements){ selectStatements(personalStatements){
if(!this.approvalIdentity){
if( personalStatements.status ==1){ if( personalStatements.status ==1){
personalStatements.status = 0; personalStatements.status = 0;
}else{ }else{
...@@ -104,10 +111,11 @@ export class PersonalStatementComponent implements OnInit { ...@@ -104,10 +111,11 @@ export class PersonalStatementComponent implements OnInit {
this.everWork = null; this.everWork = null;
this.everWorkFlag = false; this.everWorkFlag = false;
} }
} }
} }
}
savePersonalStatements(){ savePersonalStatements(){
this.dropOptionsInfoListParam = []; this.dropOptionsInfoListParam = [];
for(let i=0;i<this.dropOptionsInfoList.length;i++){ for(let i=0;i<this.dropOptionsInfoList.length;i++){
...@@ -160,6 +168,7 @@ export class PersonalStatementComponent implements OnInit { ...@@ -160,6 +168,7 @@ export class PersonalStatementComponent implements OnInit {
} }
readContract(contractItem){ readContract(contractItem){
if(!this.approvalIdentity){
if( contractItem.confirmStatus ==1){ if( contractItem.confirmStatus ==1){
contractItem.confirmStatus = 0; contractItem.confirmStatus = 0;
}else{ }else{
...@@ -173,6 +182,8 @@ export class PersonalStatementComponent implements OnInit { ...@@ -173,6 +182,8 @@ export class PersonalStatementComponent implements OnInit {
}); });
} }
}
//同意合同条款 //同意合同条款
agree() { agree() {
this.isShow = false; this.isShow = false;
...@@ -241,4 +252,22 @@ export class PersonalStatementComponent implements OnInit { ...@@ -241,4 +252,22 @@ export class PersonalStatementComponent implements OnInit {
} }
}) })
} }
onScroll(event){
console.log(event)
console.log(this.toastContent)
}
viewNext(){
if(this.type == 'personal_statement'){
this.router.navigate(['/contract'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
if(this.type == 'contract'){
this.router.navigate(['/signature'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
}
goBack(){
history.go(-1)
}
} }
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
</signature-pad> </signature-pad>
<img [src]="imgStr" alt="签名" *ngIf="isSignatureShow"> <img [src]="imgStr" alt="签名" *ngIf="isSignatureShow">
</div> </div>
<div class="signature_action"> <div class="signature_action" *ngIf="!approvalIdentity">
<img src="assets/images/clear.png" alt="清除" (click)="clearSignature();"/> <img src="assets/images/clear.png" alt="清除" (click)="clearSignature();"/>
<img src="assets/images/revoke.png" *ngIf="!isSignatureShow" alt="上一步" (click)="revokeSignature()"/> <img src="assets/images/revoke.png" *ngIf="!isSignatureShow" alt="上一步" (click)="revokeSignature()"/>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
我自愿签订经纪人合同书 我自愿签订经纪人合同书
</footer> </footer>
</div> </div>
......
...@@ -18,6 +18,7 @@ export class SignatureComponent implements OnInit { ...@@ -18,6 +18,7 @@ export class SignatureComponent implements OnInit {
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
isSignatureShow:boolean; isSignatureShow:boolean;
approvalIdentity:any;
@ViewChild(SignaturePad) signaturePad : SignaturePad; @ViewChild(SignaturePad) signaturePad : SignaturePad;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
...@@ -28,6 +29,7 @@ export class SignatureComponent implements OnInit { ...@@ -28,6 +29,7 @@ export class SignatureComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.signaturePadOptions = { this.signaturePadOptions = {
minWidth: 2, minWidth: 2,
maxWidth: 5, maxWidth: 5,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div><span class="line"></span>工作经历</div> <div><span class="line"></span>工作经历</div>
<span class="page_mark"> 2/8</span> <span class="page_mark"> 2/8</span>
</div> </div>
<div class="content"> <div class="content" *ngIf="!approvalIdentity">
<div class="contentDetail employ"> <div class="contentDetail employ">
<div class="contentItem"> <div class="contentItem">
<span>工作单位</span> <span>工作单位</span>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</div> </div>
</div> </div>
<div class="add_wrapper" > <div class="add_wrapper" *ngIf="!approvalIdentity">
<i class="iconfont icon-jiahao" (click)="addExperienceList()"></i> <i class="iconfont icon-jiahao" (click)="addExperienceList()"></i>
<span>确认并添加</span> <span>确认并添加</span>
</div> </div>
...@@ -69,9 +69,13 @@ ...@@ -69,9 +69,13 @@
</li> </li>
</ul> </ul>
</div> </div>
<footer class="fixed" (click)="next()"> <footer class="fixed" (click)="next()" *ngIf="!approvalIdentity">
保存并下一步 保存并下一步
</footer> </footer>
<div id="page" *ngIf="approvalIdentity">
<div (click)="goBack()">上一页</div>
<div (click)="viewNext()">下一页</div>
</div>
</div> </div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast> <ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>
<ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert> <ydlife-alert *ngIf="isNeedAlert" [dialogInfo]="dialogInfo" (popInfo)="getPopInfo()"></ydlife-alert>
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
background:#F8F8F8; background:#F8F8F8;
padding: 10px 13px; padding: 10px 13px;
padding-bottom: 65px; padding-bottom: 65px;
margin-top: 10px;
ul{ ul{
margin-bottom: 10px; margin-bottom: 10px;
li{ li{
......
...@@ -23,6 +23,7 @@ export class WorkExperienceComponent implements OnInit { ...@@ -23,6 +23,7 @@ export class WorkExperienceComponent implements OnInit {
toastInfo: any; toastInfo: any;
isNeedAlert: boolean; isNeedAlert: boolean;
dialogInfo: any; dialogInfo: any;
approvalIdentity:any;
constructor(private activatedRoute: ActivatedRoute, constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService, private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService) { public myService:MyService) {
...@@ -33,6 +34,7 @@ export class WorkExperienceComponent implements OnInit { ...@@ -33,6 +34,7 @@ export class WorkExperienceComponent implements OnInit {
const title = this.activatedRoute.snapshot.data[0]['title']; const title = this.activatedRoute.snapshot.data[0]['title'];
this.lifeCommonService.setTitle(title); this.lifeCommonService.setTitle(title);
this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null; this.hiringBasicInfoId = this.activatedRoute.snapshot.queryParams.hiringBasicInfoId?this.activatedRoute.snapshot.queryParams.hiringBasicInfoId:null;
this.approvalIdentity = this.activatedRoute.snapshot.queryParams.approvalIdentity?this.activatedRoute.snapshot.queryParams.approvalIdentity:null;
this.addExperience = new ExperienceQuery(null, null, null,null); this.addExperience = new ExperienceQuery(null, null, null,null);
this.queryWholeInfo(this.hiringBasicInfoId) this.queryWholeInfo(this.hiringBasicInfoId)
} }
...@@ -121,4 +123,12 @@ export class WorkExperienceComponent implements OnInit { ...@@ -121,4 +123,12 @@ export class WorkExperienceComponent implements OnInit {
} }
}) })
} }
viewNext(){
this.router.navigate(['/personal_photos'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId,approvalIdentity:this.approvalIdentity} });
}
goBack(){
history.go(-1)
}
} }
<div class="salesWrapper">
<ul class="tab">
<li *ngFor="let titleItem of titleList" (click)="selectTab(titleItem.id)"
[ngClass]="{selected:selectedId===titleItem.id}">
<div style="position: relative;">
<h3>{{titleItem.name}}
</h3>
</div>
</li>
</ul>
<div class="salesContent">
<div style="text-align: center;margin: 20px auto;font-size: 20px;" *ngIf="approvarList?.length==0">暂无数据</div>
<div class="salesItem" *ngFor="let approvarItem of approvarList" (click)="jumpToDetail(approvarItem)">
<div class="icon_bolck" ><span class="iconfont icon-ren4"></span></div>
<div class="line">
<div>姓名:{{approvarItem.name}}</div>
<span class="iconfont icon-ar-r" style="font-size: 10px;position: relative; right: -2px;"></span>
</div>
<div class="line">
<div> 手机号:{{approvarItem.mobileNo}}</div>
<div>{{approvarItem.practitionerLevel}}</div>
</div>
<div class="line">
<div>申请时间:{{approvarItem.applicationTime}}</div>
<!-- <div>{{recruitingItem.createdAt}}</div> -->
</div>
</div>
</div>
</div>
.salesWrapper{
width: 100%;
height: 100%;
overflow: auto;
background: #fff;
.tab {
display: flex;
list-style: none;
margin: 10px 0px;
padding-left: 1%;
li {
margin-right: 10px;
line-height: 30px;
height: 30px;
width: 25%;
text-align: center;
border: 1px #a9aabb solid;
border-radius: 20px;
h3 {
font-weight: normal;
font-size: 16px;
}
}
li.selected {
border: 1px #e10d0d solid;
}
}
.salesContent{
.salesItem{
border-bottom: 1px #dcdcdc solid;
padding: 10px;
padding-left: 45px;
position: relative;
.icon_bolck{
border: 1px #dcdcdc solid;
width: 35px;
height: 35px;
position: absolute;
left: 3px;
top: 20px;
line-height: 30px;
text-align: center;
border-radius: 50%;
.iconfont{
color: #ff3500;
font-size: 26px;
position: relative;
top: 1px;
}
}
.linkbusinessRadius{
position: absolute;
top: 35%;
left: 10px;
width: 25px;
height: 25px;
.circlebtn{
display: inline-block;
width: 25px;
height: 25px;
border: 1px #707070 solid;
border-radius: 50%;
}
}
.line{
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
flex: 1;
.price{
font-size: 16px;
color: #ff3500;
font-weight: bold;
}
}
}
.salesItem:last-child{
border-bottom: none;
}
}
}
\ No newline at end of file
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ApprovalListComponent } from './approval-list.component';
describe('ApprovalListComponent', () => {
let component: ApprovalListComponent;
let fixture: ComponentFixture<ApprovalListComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ApprovalListComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ApprovalListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
import { MyService } from '../my.service';
import {Router,ActivatedRoute} from "@angular/router";
@Component({
selector: 'ydlife-approval-list',
templateUrl: './approval-list.component.html',
styleUrls: ['./approval-list.component.scss']
})
export class ApprovalListComponent implements OnInit {
titleList:Array<any>;
selectedId:number = 0;
practitionerId:any;
approvarList:Array<any>;
constructor(private myService:MyService,private router:Router) { }
ngOnInit() {
this.practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId']
this.titleList = [
{ id: 0, name: '待审批' },
{ id: 1, name: '通过' },
{ id: 2, name: '拒绝' }
]
this.listQuery();
}
selectTab(id) {
this.selectedId = id;
}
listQuery(){
this.myService.listQuery({practitionerId:this.practitionerId}).subscribe((res)=>{
console.log(res)
if(res['success']){
this.approvarList = res['data']['hiringListInfoList'];
}
})
}
jumpToDetail(item){
this.router.navigate([`/employee_basic_info`],{queryParams:{hiringBasicInfoId:item.hiringBasicInfoId,approvalIdentity:item.approvalIdentity}})
}
}
...@@ -21,15 +21,14 @@ export class MemberDetailComponent implements OnInit { ...@@ -21,15 +21,14 @@ export class MemberDetailComponent implements OnInit {
} }
queryTeamMemberDetail(){ queryTeamMemberDetail(){
const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'] const practitionerId = JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'];
this.myService.queryTeamMemberDetail({practitionerId:practitionerId}).subscribe((res)=>{ this.myService.queryTeamMemberDetail({practitionerId:practitionerId}).subscribe((res)=>{
if(res['success']){ if(res['success']){
this.teamMemberList = res['data']['teamMemberDetail']; this.teamMemberList = res['data']['teamMemberDetail'];
console.log(this.teamMemberList) console.log(this.teamMemberList)
this.practitionerDeatil = this.teamMemberList.filter((item)=>{ this.practitionerDeatil = this.teamMemberList.filter((item)=>{
return item.practitionerId == this.practitionerId ; return item.practitionerId == this.practitionerId ;
})[0] })[0];
console.log(this.practitionerDeatil)
} }
}) })
} }
......
...@@ -97,7 +97,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit { ...@@ -97,7 +97,7 @@ export class MyCenterHomeComponent implements OnInit, AfterViewInit {
// { no: 16, subtitle: '团队增员', icon: 'recruiting', path: '', routerLink: '' }, // { no: 16, subtitle: '团队增员', icon: 'recruiting', path: '', routerLink: '' },
{ no: 16, subtitle: '团队增员', icon: 'recruiting', path: '', routerLink: 'recruiting' }, { no: 16, subtitle: '团队增员', icon: 'recruiting', path: '', routerLink: 'recruiting' },
{ no: 18, subtitle: '招募海报', icon: 'poster_r', path: '', routerLink: '' }, { no: 18, subtitle: '招募海报', icon: 'poster_r', path: '', routerLink: '' },
{ no: '', subtitle: '', icon: 'default', path: '', routerLink: '' } { no: 22, subtitle: '审批', icon: 'recruiting', path: '', routerLink: 'approval-list' }
], ],
// isShow: this.isShow // isShow: this.isShow
isShow: true isShow: true
......
...@@ -41,6 +41,7 @@ import { SignatureComponent } from './application-process/signature/signature.co ...@@ -41,6 +41,7 @@ import { SignatureComponent } from './application-process/signature/signature.co
import { EmployeeSubmitComponent } from './application-process/employee-submit/employee-submit.component'; import { EmployeeSubmitComponent } from './application-process/employee-submit/employee-submit.component';
import { BankCardComponent } from './application-process/bank-card/bank-card.component'; import { BankCardComponent } from './application-process/bank-card/bank-card.component';
import { MemberDetailComponent } from './member-detail/member-detail.component'; import { MemberDetailComponent } from './member-detail/member-detail.component';
import { ApprovalListComponent } from './approval-list/approval-list.component';
const myRoutes: Routes = [ const myRoutes: Routes = [
{ path: '', component: MyCenterHomeComponent, canActivate: [AuthGuard], data: [{ title: '银盾保险经纪 - 工作台' }] }, { path: '', component: MyCenterHomeComponent, canActivate: [AuthGuard], data: [{ title: '银盾保险经纪 - 工作台' }] },
...@@ -88,7 +89,8 @@ const myRoutes: Routes = [ ...@@ -88,7 +89,8 @@ const myRoutes: Routes = [
{ path: 'contract',component:PersonalStatementComponent,data: [{ type:'contract',title: '银盾经纪人报聘' }] }, { path: 'contract',component:PersonalStatementComponent,data: [{ type:'contract',title: '银盾经纪人报聘' }] },
{ path: 'signature',component:SignatureComponent,data: [{ title: '银盾经纪人报聘' }]}, { path: 'signature',component:SignatureComponent,data: [{ title: '银盾经纪人报聘' }]},
{ path: 'employee_submit',component:EmployeeSubmitComponent,data: [{ title: '已提交' }]}, { path: 'employee_submit',component:EmployeeSubmitComponent,data: [{ title: '已提交' }]},
{ path: 'member_detail/:practitionerId',component:MemberDetailComponent, canActivate: [AuthGuard]} { path: 'member_detail/:practitionerId',component:MemberDetailComponent, canActivate: [AuthGuard]},
{ path: 'approval-list',component:ApprovalListComponent, canActivate: [AuthGuard]}
]; ];
@NgModule({ @NgModule({
......
...@@ -51,9 +51,10 @@ import { EmployeeSubmitComponent } from './application-process/employee-submit/e ...@@ -51,9 +51,10 @@ import { EmployeeSubmitComponent } from './application-process/employee-submit/e
import { BankCardComponent } from './application-process/bank-card/bank-card.component'; import { BankCardComponent } from './application-process/bank-card/bank-card.component';
import { SignaturePadModule } from 'angular2-signaturepad'; import { SignaturePadModule } from 'angular2-signaturepad';
import { MemberDetailComponent } from './member-detail/member-detail.component'; import { MemberDetailComponent } from './member-detail/member-detail.component';
import { ApprovalListComponent } from './approval-list/approval-list.component';
@NgModule({ @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], 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],
imports: [ imports: [
CommonModule, CommonModule,
LifeCommonModule, LifeCommonModule,
......
...@@ -503,4 +503,11 @@ export class MyService { ...@@ -503,4 +503,11 @@ export class MyService {
return this.http return this.http
.post(url, JSON.stringify(param)); .post(url, JSON.stringify(param));
} }
//审批列表
listQuery(param){
const url = this.ydapi + '/practitionerHiring/listQuery';
return this.http
.post(url, JSON.stringify(param));
}
} }
...@@ -163,9 +163,12 @@ footer{ ...@@ -163,9 +163,12 @@ footer{
margin-top: 15px; margin-top: 15px;
} }
footer.fixed{ footer.fixed{
min-width: 320px;
max-width: 640px;
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
right: 0;
height: 56px; height: 56px;
line-height: 56px; line-height: 56px;
border-radius: 0; border-radius: 0;
...@@ -218,3 +221,23 @@ footer.fixed{ ...@@ -218,3 +221,23 @@ footer.fixed{
} }
} }
#page{
position: fixed;
bottom: 0;
left: 0;
height: 56px;
line-height: 56px;
display: flex;
width: 100%;
justify-content: space-evenly;
div{
width: 50%;
text-align: center;
background: #C81B1E;
color: #fff;
}
div:nth-child(1){
border-right: 1px #fff solid;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment