consolelog remove : ps
This commit is contained in:
parent
7ee8150429
commit
4022528604
@ -87,7 +87,6 @@ export class EditPdApplicantComponent implements OnInit {
|
||||
|
||||
}
|
||||
createItem(listData): FormGroup {
|
||||
// console.log('listData',listData);
|
||||
if(listData){
|
||||
let stdcode;
|
||||
let landline;
|
||||
@ -181,8 +180,7 @@ export class EditPdApplicantComponent implements OnInit {
|
||||
"isactive":1
|
||||
}];
|
||||
formValue.coApplicantItems.forEach((itemElement, itemIndex) => {
|
||||
// console.log(itemElement.coapplicant_stdcode);
|
||||
// console.log(itemElement.coapplicant_landline);
|
||||
|
||||
let concat_landline
|
||||
if(itemElement.coapplicant_stdcode != null && itemElement.coapplicant_landline != null){
|
||||
if(itemElement.coapplicant_stdcode == '' && itemElement.coapplicant_landline == ''){
|
||||
|
||||
@ -49,11 +49,9 @@ export class EditPdMasterComponent implements OnInit {
|
||||
constructor(private _fb: FormBuilder,
|
||||
private _pd: PdTrigerService, notifier: NotifierService,private dialogRef: MatDialogRef<EditPdMasterComponent>,
|
||||
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||
console.log(data);
|
||||
this.notifier=notifier
|
||||
this.currentPDStatus = data.records.pd_status;
|
||||
this.pdid = data.records.pd_id;
|
||||
console.log(this.pdid);
|
||||
if(this.data.records.loan_amount){ this.loanAmtInWords = this._pd.convertNumberToWords(this.data.records.loan_amount); }
|
||||
}
|
||||
|
||||
@ -83,10 +81,8 @@ export class EditPdMasterComponent implements OnInit {
|
||||
}, error => this.errorMessage = <any> error);
|
||||
}
|
||||
selectedLender(lender){
|
||||
// console.log(JSON.stringify(lender));
|
||||
// alert(JSON.stringify(lender['branches ']));
|
||||
this.lenderBranchList = lender['branches'];
|
||||
// console.log(this.lenderBranchList);
|
||||
this._EditPDtriggerForm.controls.pd_branch_id.setValue(null);
|
||||
|
||||
}
|
||||
@ -147,8 +143,6 @@ export class EditPdMasterComponent implements OnInit {
|
||||
}
|
||||
|
||||
loadFormData() {
|
||||
// console.log('this.data.record',this.data.records);
|
||||
// console.log('this.reocrds',this.data.records.pincode_id);
|
||||
let stdcode;
|
||||
let landline;
|
||||
if(this.data.records.pd_contact_landline){
|
||||
@ -163,7 +157,7 @@ export class EditPdMasterComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
console.log(this.addressesList);
|
||||
|
||||
// let getpincodeid = this.data.records.pincode != '' ? this.data.records.pincode != null ? (this.pincodeList.filter(data => data.pincode == this.data.records.pincode).pincode_id)
|
||||
// : this.data.records.pincode
|
||||
// : this.data.records.pincode;
|
||||
@ -196,9 +190,9 @@ export class EditPdMasterComponent implements OnInit {
|
||||
if (data.status == 200) {
|
||||
this.addressesList = data.records;
|
||||
if (this.addressesList.length > 0) {
|
||||
console.log(this.addressesList);
|
||||
|
||||
this.addressesList.forEach((val,index)=>{
|
||||
console.log('val',val);
|
||||
|
||||
let obj = {
|
||||
pd_address_id:val.pd_address_id,
|
||||
addressline: val.addressline.toUpperCase(),
|
||||
@ -238,10 +232,10 @@ export class EditPdMasterComponent implements OnInit {
|
||||
// }
|
||||
//get city list details based on state id
|
||||
getCityList(stateID:string,i){
|
||||
// console.log('getCityList',stateID);
|
||||
|
||||
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
||||
if (data.status == 200) {
|
||||
// console.log(data);
|
||||
|
||||
this.cityList[i] = data.records.cities;
|
||||
this.pincodeList[i] = data.records.pincode;
|
||||
}
|
||||
@ -292,7 +286,7 @@ export class EditPdMasterComponent implements OnInit {
|
||||
}
|
||||
//trigger pd
|
||||
triggerPD(formValue: any, status:any){
|
||||
// console.log('triggerPD',formValue);
|
||||
|
||||
// this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]);
|
||||
// this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity();
|
||||
|
||||
@ -371,7 +365,7 @@ export class EditPdMasterComponent implements OnInit {
|
||||
submitPdDetails(formValue: any, status:any) {
|
||||
// let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
|
||||
let updateStatus = this.currentPDStatus;
|
||||
// console.log(this._EditPDtriggerForm.value);
|
||||
|
||||
if(status != 1){
|
||||
if(this._EditPDtriggerForm.invalid) {
|
||||
this.validateAllFormFields(this._EditPDtriggerForm);
|
||||
@ -422,9 +416,6 @@ export class EditPdMasterComponent implements OnInit {
|
||||
"remarks": my_array.remarks,
|
||||
}
|
||||
|
||||
console.log('my_array.addresses',my_array.addresses);
|
||||
// return;
|
||||
|
||||
this._pd.updatePDAddress(my_array.addresses).subscribe(result => {
|
||||
if (result.status == 200) {
|
||||
this.notifier.notify('success', 'Address Updated.');
|
||||
@ -436,7 +427,6 @@ export class EditPdMasterComponent implements OnInit {
|
||||
this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!');
|
||||
});
|
||||
|
||||
console.log(lenderMasterArray);
|
||||
this._pd.editPdMasterDetails(lenderMasterArray, updateStatus).subscribe(result => {
|
||||
if (result.status == 200) {
|
||||
this.notifier.notify('success', 'PD Details Updated.');
|
||||
|
||||
@ -189,9 +189,9 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
this.pdTrigerService.getPDFormDetailsWithCompanyID(this.pdid, '22', this.company_id).subscribe(
|
||||
data => {
|
||||
if (data) {
|
||||
console.log('data.records',data);
|
||||
|
||||
if (data.dataStatus) {
|
||||
console.log('data.records',data.records);
|
||||
|
||||
this.formLoadData(data.records);
|
||||
} else {
|
||||
this.formLoadData(null);
|
||||
@ -222,7 +222,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
business_assets_form_remark: [value.business_assets_form_remark || null]
|
||||
});
|
||||
if (value.business_address_availability == 'yes') {
|
||||
console.log(value.business_assets_for_address);
|
||||
|
||||
this.addBusinessAssetsForAddress(value.business_assets_for_address);
|
||||
}
|
||||
else {
|
||||
@ -419,7 +419,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
|
||||
|
||||
addBusinessAssetsForAddress(data) {
|
||||
console.log(data);
|
||||
|
||||
var result = Object.keys(data).map(function (key) {
|
||||
return data[key];
|
||||
});
|
||||
@ -428,7 +428,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
this.RentAmtInwordsForAddress[index] = this.pdTrigerService.convertNumberToWords(datas.business_monthly_rented_amt);
|
||||
this.appxMarketAmtInwordsForAddress[index] = this.pdTrigerService.convertNumberToWords(datas.business_approximate_market_value);
|
||||
let Avaliablity = 1;
|
||||
// console.log(datas.business_name_of_the_owner);
|
||||
|
||||
if(datas.business_name_of_the_owner.length > 0){
|
||||
datas.business_name_of_the_owner.forEach(option => {
|
||||
if(option.id == 0 && option.group_id == 2){
|
||||
@ -690,7 +690,6 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
||||
}
|
||||
|
||||
setRequiredValidation(value, item, flag) {
|
||||
console.log('controls',item);
|
||||
|
||||
if (flag == 1) {
|
||||
if (value == 'yes') {
|
||||
|
||||
@ -136,12 +136,12 @@ export class CurrentLoanComponent implements OnInit {
|
||||
|
||||
const control = <FormArray>this.currentLoanForm.controls['loan_details'];
|
||||
if (value.status == 200) {
|
||||
console.log('value.records',value.records);
|
||||
|
||||
this.currentLoanForm.controls['existing_loan'].setValue(value.records.existing_loan);
|
||||
this.currentLoanForm.controls['currentloan_remarks'].setValue(value.records.currentloan_remarks);
|
||||
|
||||
if (value.records.existing_loan == 'Yes') {
|
||||
console.log('value.records.loan_details',);
|
||||
|
||||
let loandetails = value.records.loan_details
|
||||
|
||||
var result = Object.keys(loandetails).map(function (key) {
|
||||
|
||||
@ -212,9 +212,9 @@ export class FinalRemarksComponent implements OnInit {
|
||||
// if(this._finalRemarkForm.controls.pd_officers_recommendation.value == 4){
|
||||
|
||||
// }
|
||||
console.log('e',e);
|
||||
|
||||
if(e==1){
|
||||
console.log('other only',e);
|
||||
|
||||
this._finalRemarkForm.controls['others_pd_officers_recommendation'].setValidators([Validators.required]);
|
||||
this._finalRemarkForm.controls['others_pd_officers_recommendation'].updateValueAndValidity();
|
||||
|
||||
@ -227,7 +227,7 @@ export class FinalRemarksComponent implements OnInit {
|
||||
this._finalRemarkForm.controls['enter_reason_for_refer_to_credit'].setValue('');
|
||||
}
|
||||
if(e==2){
|
||||
console.log('all Validation clear ',e);
|
||||
|
||||
this._finalRemarkForm.controls['others_pd_officers_recommendation'].clearValidators();
|
||||
this._finalRemarkForm.controls['others_pd_officers_recommendation'].updateValueAndValidity();
|
||||
this._finalRemarkForm.controls['others_pd_officers_recommendation'].setValue('');
|
||||
@ -242,7 +242,7 @@ export class FinalRemarksComponent implements OnInit {
|
||||
|
||||
}
|
||||
if(e==3){
|
||||
console.log('negative only',e);
|
||||
|
||||
this._finalRemarkForm.controls['enter_reason_for_negative'].setValidators([Validators.required]);
|
||||
this._finalRemarkForm.controls['enter_reason_for_negative'].updateValueAndValidity();
|
||||
|
||||
@ -256,7 +256,7 @@ export class FinalRemarksComponent implements OnInit {
|
||||
|
||||
}
|
||||
if(e==4){
|
||||
console.log('credit only',e);
|
||||
|
||||
this._finalRemarkForm.controls['enter_reason_for_refer_to_credit'].setValidators([Validators.required]);
|
||||
this._finalRemarkForm.controls['enter_reason_for_refer_to_credit'].updateValueAndValidity();
|
||||
|
||||
|
||||
@ -242,8 +242,6 @@ export class NeighbourHoodComponent implements OnInit {
|
||||
const neighbourhoodControl : FormGroup = this._neighbourhoodForm.controls['neighbourhood_list'] as FormGroup;
|
||||
|
||||
if(formData.check_type==0){
|
||||
console.log('neighbourhoodControl',neighbourhoodControl);
|
||||
|
||||
// neighbourhoodControl.contdols['neighbourhood_name'].setValidators([Validators.required]);
|
||||
// neighbourhoodControl.controls['neighbourhood_name'].updateValueAndValidity();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user