Fairoj : Issue Fixes
This commit is contained in:
parent
6481ca9ac8
commit
ee1262fcae
@ -13,12 +13,12 @@
|
||||
<mat-dialog-content>
|
||||
|
||||
<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%;">
|
||||
<input matInput placeholder="Documents to be collected" formControlName="doc_name">
|
||||
</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>
|
||||
|
||||
@ -65,10 +65,19 @@ export class PdCollectedDocsComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
// removeRequirements(index: number) {
|
||||
// const requirement_control = <FormArray>this._EditPDRequirementForm.controls['additional_requirements'];
|
||||
// requirement_control.removeAt(index);
|
||||
// }
|
||||
removeRequirements(index: number) {
|
||||
// const requirement_control = <FormArray>this._EditPDCollectedDocsForm.controls['docs_to_be_collected'];
|
||||
// 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) {
|
||||
if(this._EditPDCollectedDocsForm.invalid) {
|
||||
|
||||
@ -1390,7 +1390,7 @@
|
||||
</div>
|
||||
<div fxLayout="row" class="tab_class">
|
||||
<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"
|
||||
color="primary">
|
||||
<strong>Add More Country</strong>
|
||||
|
||||
@ -134,19 +134,22 @@ export class RentalVerificationComponent implements OnInit {
|
||||
amt[inx] = annualRentAmt;
|
||||
tempArray = [];
|
||||
}
|
||||
this._pd.getStateCityNamesAndPincode({ "state_id": RIV.state, "city_id": RIV.city, "pincode_id": RIV.pincode }).subscribe(data => {
|
||||
if (data.dataStatus) {
|
||||
this._pd.getStateCityNamesAndPincode({ "state_id": RIV.state, "city_id": RIV.city, "pincode_id": RIV.pincode }).subscribe(data_2 => {
|
||||
if (data_2.dataStatus) {
|
||||
let objs = {
|
||||
'address': RIV.address_property,
|
||||
'applicants_rent': amt[inx],
|
||||
'state': data.records.state_name,
|
||||
'city': data.records.city_name,
|
||||
'pincode': data.records.pincode,
|
||||
'state': data_2.records.state_name,
|
||||
'city': data_2.records.city_name,
|
||||
'pincode': data_2.records.pincode,
|
||||
'rental_count_id': RIV.rental_count_id,
|
||||
'rental_existing_data': RIV
|
||||
}
|
||||
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