emp info : ps
This commit is contained in:
parent
ffbe8413f4
commit
460ae97a86
@ -286,7 +286,7 @@ export class PdQuestionEmpInfoPage {
|
|||||||
checkWithExistYear(e) {
|
checkWithExistYear(e) {
|
||||||
|
|
||||||
let data1 = this.company_list.filter(c => c.company_name == e.split('-')[1])[0];
|
let data1 = this.company_list.filter(c => c.company_name == e.split('-')[1])[0];
|
||||||
// console.log(data1);
|
|
||||||
console.log('this.generalExistBusinessMonth',this.generalExistBusinessMonth);
|
console.log('this.generalExistBusinessMonth',this.generalExistBusinessMonth);
|
||||||
console.log('this.generalExistBusinessYear',this.generalExistBusinessYear);
|
console.log('this.generalExistBusinessYear',this.generalExistBusinessYear);
|
||||||
if(data1.business_month != null && data1.business_month != '' && data1.business_month != undefined){
|
if(data1.business_month != null && data1.business_month != '' && data1.business_month != undefined){
|
||||||
@ -297,8 +297,7 @@ export class PdQuestionEmpInfoPage {
|
|||||||
}
|
}
|
||||||
this.employmentForm.controls['how_long_year'].setValidators([Validators.max(this.generalExistBusinessYear)]);
|
this.employmentForm.controls['how_long_year'].setValidators([Validators.max(this.generalExistBusinessYear)]);
|
||||||
this.employmentForm.controls['how_long_year'].updateValueAndValidity();
|
this.employmentForm.controls['how_long_year'].updateValueAndValidity();
|
||||||
// console.log('this.generalExistBusinessMonth',this.generalExistBusinessMonth);
|
|
||||||
// console.log('this.generalExistBusinessYear',this.generalExistBusinessYear);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user