Commit dc7da653 by sunchao

Merge branch 'master' into dev

parents 99afed68 8e16a47e
......@@ -15,7 +15,8 @@ export class EmployBasicQuery {
public cityName?:string,
public residentAddress?:string,
public wechatId?:number,
public email?:string
public email?:string,
public politicalOutlook?:string
) {
}
......
......@@ -40,7 +40,6 @@
出生日期
</ListItem>
</List>
<div class="contentItem">
<span>性别</span>
<select class="form-control" [(ngModel)]="editEmployBasicInfo.gender"
......@@ -49,7 +48,15 @@
<option value='1'></option>
<option value="2"></option>
</select>
</div>
<div class="contentItem">
<span>政治面貌</span>
<select class="form-control" [(ngModel)]="editEmployBasicInfo.politicalOutlook"
[disabled]="approveStatus!=null && approveStatus!='-1'">
<option [value]="listItem.codeName" *ngFor="let listItem of list">
{{listItem.codeName}}
</option>
</select>
</div>
<div class="contentItem">
<span>户籍</span>
......
......@@ -23,6 +23,7 @@ export class EmployeeBasicInfoComponent implements OnInit {
maxDate:any = new Date();
//通过0,拒绝-1,已填完-2
approveStatus:any;
list:Array<any>;
constructor(private activatedRoute: ActivatedRoute,
private router: Router,public lifeCommonService:LifeCommonService,
public myService:MyService) { }
......@@ -36,6 +37,7 @@ export class EmployeeBasicInfoComponent implements OnInit {
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.queryWholeInfo(this.hiringBasicInfoId);
this.queryMdCode();
}
erpInitialize(){
......@@ -165,6 +167,10 @@ export class EmployeeBasicInfoComponent implements OnInit {
this.openPopInfo('请选择您的户籍!')
return;
}
if(!this.editEmployBasicInfo.politicalOutlook){
this.openPopInfo('请选择您的政治面貌!')
return;
}
if(!this.editEmployBasicInfo.residentAddress){
this.openPopInfo('请输入您的居住地址!')
return;
......@@ -266,5 +272,11 @@ export class EmployeeBasicInfoComponent implements OnInit {
this.router.navigate(['/work_experience'],{ queryParams: { hiringBasicInfoId:this.hiringBasicInfoId} });
}
queryMdCode(){
this.myService.queryMdCode({codeType: "PoliticalOutlook"}).subscribe((res)=>{
console.log(res)
this.list = res['data']['list'];
})
}
}
......@@ -954,4 +954,12 @@ export class MyService {
const url = this.ydapi + "/practitioner/queryCanSee";
return this.http.post(url,JSON.stringify(params))
}
//政治面貌
queryMdCode(param){
const url = this.API + "/metadata/queryMdCode";
return this.http.post(url, JSON.stringify(param)).pipe(res => {
return res;
});
}
}
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