loan dtl form
This commit is contained in:
parent
8cb9eaf845
commit
25b38878df
@ -254,13 +254,12 @@
|
||||
formControlName="address"
|
||||
required autocomplete="off">
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width:46%;">
|
||||
<mat-select placeholder="State" formControlName="state"
|
||||
(selectionChange)="getCityAndPincodeDetails($event.value)">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option *ngFor="let SL of m_stateLists" [value]="SL.state_id">{{SL.name}}</mat-option>
|
||||
</mat-select>
|
||||
<mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)">
|
||||
<mat-option>Select</mat-option>
|
||||
<mat-option *ngFor="let SL of m_stateList"
|
||||
[value]="SL.state_id">{{SL.name}}</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width:46%;">
|
||||
|
||||
@ -70,9 +70,9 @@ export class LoanDetailsComponent implements OnInit {
|
||||
m_statusofCunstruction = [];
|
||||
m_btLenderList = [];
|
||||
m_endUseOFTopUpList = [];
|
||||
m_stateLists= [];
|
||||
m_cityList= [];
|
||||
m_pincodeList= [];
|
||||
m_stateList:any= [];
|
||||
m_cityList:any= [];
|
||||
m_pincodeList:any= [];
|
||||
// existCompanyList: any =[];
|
||||
CompanyApplicantGroupList: any = [];
|
||||
CompanyApplicantGroupList2: any = [];
|
||||
@ -122,12 +122,12 @@ export class LoanDetailsComponent implements OnInit {
|
||||
this.initloanDetailsForm();
|
||||
this.getM_EndUseofLoad();
|
||||
this.getM_EndUseForLoan(this.pdid,this.pd_all_details.pdmaster_details.fk_subproduct_id);
|
||||
this.getM_State();
|
||||
this.getM_sourceofamount();
|
||||
this.getM_MortageTypeProperty();
|
||||
this.getM_StatusofCunstruction();
|
||||
this.getM_BTLenderList();
|
||||
this.getM_EndUseofTopUpList();
|
||||
this.getM_State();
|
||||
|
||||
// note : Details of Property being Mortgaged section, In Name of the owner drop down list currently show all names (Applicants & In Person Met) need to change show Applicant names only.
|
||||
let param: any = {};
|
||||
@ -421,8 +421,15 @@ export class LoanDetailsComponent implements OnInit {
|
||||
getM_State() {
|
||||
this._pd.getAllMasterDatas('STATE').subscribe(
|
||||
data => {
|
||||
this.m_stateLists = data.records.filter(data => data.is_active == 1);
|
||||
});
|
||||
if (data.status == 200 && data.dataStatus == true) {
|
||||
this.m_stateList = data.records;
|
||||
}
|
||||
else{
|
||||
this.notifier.notify('warning', 'STATE Master Api Did not call ! Status - '+ data.status +' datastatus - '+ data.dataStatus);
|
||||
}
|
||||
},error => {
|
||||
this.notifier.notify('error', 'In State Master.! \t\"' + (error.error_type == 2 ? error.error_status + ' ( ' + error.error_text + ' ) ' : ' ( ' + error.error_text + ' ) ') +'\" Error Occur.!');
|
||||
})
|
||||
}
|
||||
|
||||
/** Loan Form Elements */
|
||||
|
||||
@ -70,8 +70,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
||||
private listPDComponent: ListPdComponent, private _pd: PdTrigerService,) {
|
||||
this.startPD = this.route.snapshot.params['pdid'];
|
||||
this.randomString = this.route.snapshot.params['rdmstr'];
|
||||
console.log(this.route.snapshot.params['pdid'],this.route.snapshot.params['rdmstr']);
|
||||
console.log('this.randomString',this.randomString);
|
||||
// console.log(this.route.snapshot.params['pdid'],this.route.snapshot.params['rdmstr']);
|
||||
this.notifier = notifier;
|
||||
this.currentPDStatus = false;
|
||||
}
|
||||
@ -106,10 +105,10 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
||||
|
||||
// load templates details
|
||||
loadTemplates(startID:string,type:number,randomString:string){
|
||||
console.log('start pd component inside - loadTemplates params are,',startID,type,randomString);
|
||||
// console.log('start pd component inside - loadTemplates params are,',startID,type,randomString);
|
||||
this._pd.loadPDTemplates(startID,randomString).subscribe(
|
||||
data => {
|
||||
console.log("after reponse = ", data);
|
||||
// console.log("after reponse = ", data);
|
||||
if (data.status == 200) {
|
||||
this.pdMasterList=data.records.pdmaster_details;
|
||||
// this.categoryList=data.records.question_answers;
|
||||
|
||||
@ -99,7 +99,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
this.route.params.subscribe(params => {
|
||||
this.viewID = params['pdid'];
|
||||
this.masterRandomString = params['rdmstr'];
|
||||
console.log('View PD COmponet Random String',this.viewID,this.masterRandomString);
|
||||
// console.log('View PD COmponet Random String',this.viewID,this.masterRandomString);
|
||||
});
|
||||
// this.viewID = this.route.snapshot.params['pdid'];
|
||||
// this.masterRandomString = this.route.snapshot.params['rdmstr'];
|
||||
@ -108,7 +108,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
||||
pd_QC_Rating: Number;
|
||||
|
||||
viewPdDetails(editID: string,masterRandomString : string) {
|
||||
console.log('inside Function',masterRandomString);
|
||||
// console.log('inside Function',masterRandomString);
|
||||
this.pdMasterData = [];
|
||||
this._pd.editPdDetails(editID,masterRandomString).subscribe(
|
||||
data => {
|
||||
|
||||
@ -129,6 +129,7 @@ export class QcPdReportComponent implements OnInit {
|
||||
reGeneratePFReport() {
|
||||
let data = {
|
||||
"pd_id": this.startPD,
|
||||
"random_string":atob(this.route.snapshot.params['string'])
|
||||
// "regenerate": "1"
|
||||
};
|
||||
this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => {
|
||||
@ -148,6 +149,7 @@ export class QcPdReportComponent implements OnInit {
|
||||
generateNewPDReport() {
|
||||
let data = {
|
||||
"pd_id": this.startPD,
|
||||
"random_string":atob(this.route.snapshot.params['string'])
|
||||
};
|
||||
this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => {
|
||||
if (data.dataStatus) {
|
||||
|
||||
@ -3,7 +3,7 @@ export const environment = {
|
||||
|
||||
environmentName: 'Testing Environment',//Test Environment.
|
||||
|
||||
apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/',
|
||||
apiEndpoint: 'https://demo.pdgenie.com/sparqtest/api/',
|
||||
|
||||
authorization: 'sparqvenba2018',
|
||||
login_string: "cognito-idp.ap-south-1.amazonaws.com/ap-south-1_qQ85yQZJO",
|
||||
|
||||
@ -8,7 +8,7 @@ export const environment = {
|
||||
|
||||
environmentName: 'Development Environment',//Localhost Environment.
|
||||
|
||||
apiEndpoint: 'https://ssa.sineedge.com/sparqapi/api/',
|
||||
apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/',
|
||||
|
||||
authorization: 'sparqvenba2018',
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user