consolelog remove : ps

This commit is contained in:
venbatechnologies@gmail.com 2019-02-28 16:15:05 +05:30
parent 7ee8150429
commit 4022528604
6 changed files with 20 additions and 35 deletions

View File

@ -87,7 +87,6 @@ export class EditPdApplicantComponent implements OnInit {
} }
createItem(listData): FormGroup { createItem(listData): FormGroup {
// console.log('listData',listData);
if(listData){ if(listData){
let stdcode; let stdcode;
let landline; let landline;
@ -181,8 +180,7 @@ export class EditPdApplicantComponent implements OnInit {
"isactive":1 "isactive":1
}]; }];
formValue.coApplicantItems.forEach((itemElement, itemIndex) => { formValue.coApplicantItems.forEach((itemElement, itemIndex) => {
// console.log(itemElement.coapplicant_stdcode);
// console.log(itemElement.coapplicant_landline);
let concat_landline let concat_landline
if(itemElement.coapplicant_stdcode != null && itemElement.coapplicant_landline != null){ if(itemElement.coapplicant_stdcode != null && itemElement.coapplicant_landline != null){
if(itemElement.coapplicant_stdcode == '' && itemElement.coapplicant_landline == ''){ if(itemElement.coapplicant_stdcode == '' && itemElement.coapplicant_landline == ''){

View File

@ -49,11 +49,9 @@ export class EditPdMasterComponent implements OnInit {
constructor(private _fb: FormBuilder, constructor(private _fb: FormBuilder,
private _pd: PdTrigerService, notifier: NotifierService,private dialogRef: MatDialogRef<EditPdMasterComponent>, private _pd: PdTrigerService, notifier: NotifierService,private dialogRef: MatDialogRef<EditPdMasterComponent>,
@Inject(MAT_DIALOG_DATA) public data: any) { @Inject(MAT_DIALOG_DATA) public data: any) {
console.log(data);
this.notifier=notifier this.notifier=notifier
this.currentPDStatus = data.records.pd_status; this.currentPDStatus = data.records.pd_status;
this.pdid = data.records.pd_id; 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); } 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); }, error => this.errorMessage = <any> error);
} }
selectedLender(lender){ selectedLender(lender){
// console.log(JSON.stringify(lender));
// alert(JSON.stringify(lender['branches '])); // alert(JSON.stringify(lender['branches ']));
this.lenderBranchList = lender['branches']; this.lenderBranchList = lender['branches'];
// console.log(this.lenderBranchList);
this._EditPDtriggerForm.controls.pd_branch_id.setValue(null); this._EditPDtriggerForm.controls.pd_branch_id.setValue(null);
} }
@ -147,8 +143,6 @@ export class EditPdMasterComponent implements OnInit {
} }
loadFormData() { loadFormData() {
// console.log('this.data.record',this.data.records);
// console.log('this.reocrds',this.data.records.pincode_id);
let stdcode; let stdcode;
let landline; let landline;
if(this.data.records.pd_contact_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) // 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
// : this.data.records.pincode; // : this.data.records.pincode;
@ -196,9 +190,9 @@ export class EditPdMasterComponent implements OnInit {
if (data.status == 200) { if (data.status == 200) {
this.addressesList = data.records; this.addressesList = data.records;
if (this.addressesList.length > 0) { if (this.addressesList.length > 0) {
console.log(this.addressesList);
this.addressesList.forEach((val,index)=>{ this.addressesList.forEach((val,index)=>{
console.log('val',val);
let obj = { let obj = {
pd_address_id:val.pd_address_id, pd_address_id:val.pd_address_id,
addressline: val.addressline.toUpperCase(), addressline: val.addressline.toUpperCase(),
@ -238,10 +232,10 @@ export class EditPdMasterComponent implements OnInit {
// } // }
//get city list details based on state id //get city list details based on state id
getCityList(stateID:string,i){ getCityList(stateID:string,i){
// console.log('getCityList',stateID);
this._pd.getStateWiseCities(stateID).subscribe(data=>{ this._pd.getStateWiseCities(stateID).subscribe(data=>{
if (data.status == 200) { if (data.status == 200) {
// console.log(data);
this.cityList[i] = data.records.cities; this.cityList[i] = data.records.cities;
this.pincodeList[i] = data.records.pincode; this.pincodeList[i] = data.records.pincode;
} }
@ -292,7 +286,7 @@ export class EditPdMasterComponent implements OnInit {
} }
//trigger pd //trigger pd
triggerPD(formValue: any, status:any){ triggerPD(formValue: any, status:any){
// console.log('triggerPD',formValue);
// this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]); // this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]);
// this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity(); // this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity();
@ -371,7 +365,7 @@ export class EditPdMasterComponent implements OnInit {
submitPdDetails(formValue: any, status:any) { 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 == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
let updateStatus = this.currentPDStatus; let updateStatus = this.currentPDStatus;
// console.log(this._EditPDtriggerForm.value);
if(status != 1){ if(status != 1){
if(this._EditPDtriggerForm.invalid) { if(this._EditPDtriggerForm.invalid) {
this.validateAllFormFields(this._EditPDtriggerForm); this.validateAllFormFields(this._EditPDtriggerForm);
@ -422,9 +416,6 @@ export class EditPdMasterComponent implements OnInit {
"remarks": my_array.remarks, "remarks": my_array.remarks,
} }
console.log('my_array.addresses',my_array.addresses);
// return;
this._pd.updatePDAddress(my_array.addresses).subscribe(result => { this._pd.updatePDAddress(my_array.addresses).subscribe(result => {
if (result.status == 200) { if (result.status == 200) {
this.notifier.notify('success', 'Address Updated.'); 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.!'); this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!');
}); });
console.log(lenderMasterArray);
this._pd.editPdMasterDetails(lenderMasterArray, updateStatus).subscribe(result => { this._pd.editPdMasterDetails(lenderMasterArray, updateStatus).subscribe(result => {
if (result.status == 200) { if (result.status == 200) {
this.notifier.notify('success', 'PD Details Updated.'); this.notifier.notify('success', 'PD Details Updated.');

View File

@ -189,9 +189,9 @@ export class BusinessAssetsInfoComponent implements OnInit {
this.pdTrigerService.getPDFormDetailsWithCompanyID(this.pdid, '22', this.company_id).subscribe( this.pdTrigerService.getPDFormDetailsWithCompanyID(this.pdid, '22', this.company_id).subscribe(
data => { data => {
if (data) { if (data) {
console.log('data.records',data);
if (data.dataStatus) { if (data.dataStatus) {
console.log('data.records',data.records);
this.formLoadData(data.records); this.formLoadData(data.records);
} else { } else {
this.formLoadData(null); this.formLoadData(null);
@ -222,7 +222,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
business_assets_form_remark: [value.business_assets_form_remark || null] business_assets_form_remark: [value.business_assets_form_remark || null]
}); });
if (value.business_address_availability == 'yes') { if (value.business_address_availability == 'yes') {
console.log(value.business_assets_for_address);
this.addBusinessAssetsForAddress(value.business_assets_for_address); this.addBusinessAssetsForAddress(value.business_assets_for_address);
} }
else { else {
@ -419,7 +419,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
addBusinessAssetsForAddress(data) { addBusinessAssetsForAddress(data) {
console.log(data);
var result = Object.keys(data).map(function (key) { var result = Object.keys(data).map(function (key) {
return data[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.RentAmtInwordsForAddress[index] = this.pdTrigerService.convertNumberToWords(datas.business_monthly_rented_amt);
this.appxMarketAmtInwordsForAddress[index] = this.pdTrigerService.convertNumberToWords(datas.business_approximate_market_value); this.appxMarketAmtInwordsForAddress[index] = this.pdTrigerService.convertNumberToWords(datas.business_approximate_market_value);
let Avaliablity = 1; let Avaliablity = 1;
// console.log(datas.business_name_of_the_owner);
if(datas.business_name_of_the_owner.length > 0){ if(datas.business_name_of_the_owner.length > 0){
datas.business_name_of_the_owner.forEach(option => { datas.business_name_of_the_owner.forEach(option => {
if(option.id == 0 && option.group_id == 2){ if(option.id == 0 && option.group_id == 2){
@ -690,7 +690,6 @@ export class BusinessAssetsInfoComponent implements OnInit {
} }
setRequiredValidation(value, item, flag) { setRequiredValidation(value, item, flag) {
console.log('controls',item);
if (flag == 1) { if (flag == 1) {
if (value == 'yes') { if (value == 'yes') {

View File

@ -136,12 +136,12 @@ export class CurrentLoanComponent implements OnInit {
const control = <FormArray>this.currentLoanForm.controls['loan_details']; const control = <FormArray>this.currentLoanForm.controls['loan_details'];
if (value.status == 200) { if (value.status == 200) {
console.log('value.records',value.records);
this.currentLoanForm.controls['existing_loan'].setValue(value.records.existing_loan); this.currentLoanForm.controls['existing_loan'].setValue(value.records.existing_loan);
this.currentLoanForm.controls['currentloan_remarks'].setValue(value.records.currentloan_remarks); this.currentLoanForm.controls['currentloan_remarks'].setValue(value.records.currentloan_remarks);
if (value.records.existing_loan == 'Yes') { if (value.records.existing_loan == 'Yes') {
console.log('value.records.loan_details',);
let loandetails = value.records.loan_details let loandetails = value.records.loan_details
var result = Object.keys(loandetails).map(function (key) { var result = Object.keys(loandetails).map(function (key) {

View File

@ -212,9 +212,9 @@ export class FinalRemarksComponent implements OnInit {
// if(this._finalRemarkForm.controls.pd_officers_recommendation.value == 4){ // if(this._finalRemarkForm.controls.pd_officers_recommendation.value == 4){
// } // }
console.log('e',e);
if(e==1){ 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'].setValidators([Validators.required]);
this._finalRemarkForm.controls['others_pd_officers_recommendation'].updateValueAndValidity(); 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(''); this._finalRemarkForm.controls['enter_reason_for_refer_to_credit'].setValue('');
} }
if(e==2){ if(e==2){
console.log('all Validation clear ',e);
this._finalRemarkForm.controls['others_pd_officers_recommendation'].clearValidators(); this._finalRemarkForm.controls['others_pd_officers_recommendation'].clearValidators();
this._finalRemarkForm.controls['others_pd_officers_recommendation'].updateValueAndValidity(); this._finalRemarkForm.controls['others_pd_officers_recommendation'].updateValueAndValidity();
this._finalRemarkForm.controls['others_pd_officers_recommendation'].setValue(''); this._finalRemarkForm.controls['others_pd_officers_recommendation'].setValue('');
@ -242,7 +242,7 @@ export class FinalRemarksComponent implements OnInit {
} }
if(e==3){ 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'].setValidators([Validators.required]);
this._finalRemarkForm.controls['enter_reason_for_negative'].updateValueAndValidity(); this._finalRemarkForm.controls['enter_reason_for_negative'].updateValueAndValidity();
@ -256,7 +256,7 @@ export class FinalRemarksComponent implements OnInit {
} }
if(e==4){ 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'].setValidators([Validators.required]);
this._finalRemarkForm.controls['enter_reason_for_refer_to_credit'].updateValueAndValidity(); this._finalRemarkForm.controls['enter_reason_for_refer_to_credit'].updateValueAndValidity();

View File

@ -242,8 +242,6 @@ export class NeighbourHoodComponent implements OnInit {
const neighbourhoodControl : FormGroup = this._neighbourhoodForm.controls['neighbourhood_list'] as FormGroup; const neighbourhoodControl : FormGroup = this._neighbourhoodForm.controls['neighbourhood_list'] as FormGroup;
if(formData.check_type==0){ if(formData.check_type==0){
console.log('neighbourhoodControl',neighbourhoodControl);
// neighbourhoodControl.contdols['neighbourhood_name'].setValidators([Validators.required]); // neighbourhoodControl.contdols['neighbourhood_name'].setValidators([Validators.required]);
// neighbourhoodControl.controls['neighbourhood_name'].updateValueAndValidity(); // neighbourhoodControl.controls['neighbourhood_name'].updateValueAndValidity();