Fairoj : Issue Fixes
This commit is contained in:
parent
6481ca9ac8
commit
ee1262fcae
@ -13,12 +13,12 @@
|
|||||||
<mat-dialog-content>
|
<mat-dialog-content>
|
||||||
|
|
||||||
<mat-card formArrayName="docs_to_be_collected" *ngFor="let collecteddocs of pdCollectedDocs.controls; let i = index;">
|
<mat-card formArrayName="docs_to_be_collected" *ngFor="let collecteddocs of pdCollectedDocs.controls; let i = index;">
|
||||||
<mat-card-content [formGroupName]="i">
|
<mat-card-content [formGroupName]="i" *ngIf="collecteddocs.value.isactive != 0">
|
||||||
<mat-form-field style="width: 90%;">
|
<mat-form-field style="width: 90%;">
|
||||||
<input matInput placeholder="Documents to be collected" formControlName="doc_name">
|
<input matInput placeholder="Documents to be collected" formControlName="doc_name">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- <button mat-raised-button mat-icon-button color="primary" matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button> -->
|
<button mat-raised-button mat-icon-button color="primary" matTooltip="Delete" matTooltipPosition="above" (click)="removeRequirements(i)" type="button"><mat-icon>delete</mat-icon></button>
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|
||||||
</mat-card>
|
</mat-card>
|
||||||
|
|||||||
@ -65,10 +65,19 @@ export class PdCollectedDocsComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// removeRequirements(index: number) {
|
removeRequirements(index: number) {
|
||||||
// const requirement_control = <FormArray>this._EditPDRequirementForm.controls['additional_requirements'];
|
// const requirement_control = <FormArray>this._EditPDCollectedDocsForm.controls['docs_to_be_collected'];
|
||||||
// requirement_control.removeAt(index);
|
// requirement_control.removeAt(index);
|
||||||
// }
|
|
||||||
|
const requirement_control = <FormArray>this._EditPDCollectedDocsForm.controls['docs_to_be_collected'];
|
||||||
|
if(requirement_control.value[index].add_req_id != ''){
|
||||||
|
requirement_control.controls[index]['controls'].isactive.setValue(0)
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
requirement_control.removeAt(index);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
updatePDCollectedDocs(formValue: any) {
|
updatePDCollectedDocs(formValue: any) {
|
||||||
if(this._EditPDCollectedDocsForm.invalid) {
|
if(this._EditPDCollectedDocsForm.invalid) {
|
||||||
|
|||||||
@ -1390,7 +1390,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div fxLayout="row" class="tab_class">
|
<div fxLayout="row" class="tab_class">
|
||||||
<div fxFlex="100" align="center">
|
<div fxFlex="100" align="center">
|
||||||
<button type="button" mat-flat-button (click)="removeServiceState(sp,c,'2')"
|
<button type="button" mat-flat-button (click)="addServiceMoreState(sp,'2')"
|
||||||
matTooltip="Add More Country" matTooltipPosition="right"
|
matTooltip="Add More Country" matTooltipPosition="right"
|
||||||
color="primary">
|
color="primary">
|
||||||
<strong>Add More Country</strong>
|
<strong>Add More Country</strong>
|
||||||
|
|||||||
@ -134,19 +134,22 @@ export class RentalVerificationComponent implements OnInit {
|
|||||||
amt[inx] = annualRentAmt;
|
amt[inx] = annualRentAmt;
|
||||||
tempArray = [];
|
tempArray = [];
|
||||||
}
|
}
|
||||||
this._pd.getStateCityNamesAndPincode({ "state_id": RIV.state, "city_id": RIV.city, "pincode_id": RIV.pincode }).subscribe(data => {
|
this._pd.getStateCityNamesAndPincode({ "state_id": RIV.state, "city_id": RIV.city, "pincode_id": RIV.pincode }).subscribe(data_2 => {
|
||||||
if (data.dataStatus) {
|
if (data_2.dataStatus) {
|
||||||
let objs = {
|
let objs = {
|
||||||
'address': RIV.address_property,
|
'address': RIV.address_property,
|
||||||
'applicants_rent': amt[inx],
|
'applicants_rent': amt[inx],
|
||||||
'state': data.records.state_name,
|
'state': data_2.records.state_name,
|
||||||
'city': data.records.city_name,
|
'city': data_2.records.city_name,
|
||||||
'pincode': data.records.pincode,
|
'pincode': data_2.records.pincode,
|
||||||
'rental_count_id': RIV.rental_count_id,
|
'rental_count_id': RIV.rental_count_id,
|
||||||
'rental_existing_data': RIV
|
'rental_existing_data': RIV
|
||||||
}
|
}
|
||||||
this.existing_rental_list.push(objs);
|
this.existing_rental_list.push(objs);
|
||||||
|
this.existing_rental_list=this.existing_rental_list.sort((a,b)=>{
|
||||||
|
console.log(a,b)
|
||||||
|
return a.rental_count_id - b.rental_count_id
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user