loan dtl form
This commit is contained in:
parent
8cb9eaf845
commit
25b38878df
@ -254,12 +254,11 @@
|
|||||||
formControlName="address"
|
formControlName="address"
|
||||||
required autocomplete="off">
|
required autocomplete="off">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width:46%;">
|
<mat-form-field style="width:46%;">
|
||||||
<mat-select placeholder="State" formControlName="state"
|
<mat-select placeholder="State" formControlName="state" (selectionChange)="getCityAndPincodeDetails($event.value)">
|
||||||
(selectionChange)="getCityAndPincodeDetails($event.value)">
|
|
||||||
<mat-option>Select</mat-option>
|
<mat-option>Select</mat-option>
|
||||||
<mat-option *ngFor="let SL of m_stateLists" [value]="SL.state_id">{{SL.name}}</mat-option>
|
<mat-option *ngFor="let SL of m_stateList"
|
||||||
|
[value]="SL.state_id">{{SL.name}}</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
|
|||||||
@ -70,9 +70,9 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
m_statusofCunstruction = [];
|
m_statusofCunstruction = [];
|
||||||
m_btLenderList = [];
|
m_btLenderList = [];
|
||||||
m_endUseOFTopUpList = [];
|
m_endUseOFTopUpList = [];
|
||||||
m_stateLists= [];
|
m_stateList:any= [];
|
||||||
m_cityList= [];
|
m_cityList:any= [];
|
||||||
m_pincodeList= [];
|
m_pincodeList:any= [];
|
||||||
// existCompanyList: any =[];
|
// existCompanyList: any =[];
|
||||||
CompanyApplicantGroupList: any = [];
|
CompanyApplicantGroupList: any = [];
|
||||||
CompanyApplicantGroupList2: any = [];
|
CompanyApplicantGroupList2: any = [];
|
||||||
@ -122,12 +122,12 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
this.initloanDetailsForm();
|
this.initloanDetailsForm();
|
||||||
this.getM_EndUseofLoad();
|
this.getM_EndUseofLoad();
|
||||||
this.getM_EndUseForLoan(this.pdid,this.pd_all_details.pdmaster_details.fk_subproduct_id);
|
this.getM_EndUseForLoan(this.pdid,this.pd_all_details.pdmaster_details.fk_subproduct_id);
|
||||||
|
this.getM_State();
|
||||||
this.getM_sourceofamount();
|
this.getM_sourceofamount();
|
||||||
this.getM_MortageTypeProperty();
|
this.getM_MortageTypeProperty();
|
||||||
this.getM_StatusofCunstruction();
|
this.getM_StatusofCunstruction();
|
||||||
this.getM_BTLenderList();
|
this.getM_BTLenderList();
|
||||||
this.getM_EndUseofTopUpList();
|
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.
|
// 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 = {};
|
let param: any = {};
|
||||||
@ -421,8 +421,15 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
getM_State() {
|
getM_State() {
|
||||||
this._pd.getAllMasterDatas('STATE').subscribe(
|
this._pd.getAllMasterDatas('STATE').subscribe(
|
||||||
data => {
|
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 */
|
/** Loan Form Elements */
|
||||||
|
|||||||
@ -70,8 +70,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
private listPDComponent: ListPdComponent, private _pd: PdTrigerService,) {
|
private listPDComponent: ListPdComponent, private _pd: PdTrigerService,) {
|
||||||
this.startPD = this.route.snapshot.params['pdid'];
|
this.startPD = this.route.snapshot.params['pdid'];
|
||||||
this.randomString = this.route.snapshot.params['rdmstr'];
|
this.randomString = this.route.snapshot.params['rdmstr'];
|
||||||
console.log(this.route.snapshot.params['pdid'],this.route.snapshot.params['rdmstr']);
|
// console.log(this.route.snapshot.params['pdid'],this.route.snapshot.params['rdmstr']);
|
||||||
console.log('this.randomString',this.randomString);
|
|
||||||
this.notifier = notifier;
|
this.notifier = notifier;
|
||||||
this.currentPDStatus = false;
|
this.currentPDStatus = false;
|
||||||
}
|
}
|
||||||
@ -106,10 +105,10 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
// load templates details
|
// load templates details
|
||||||
loadTemplates(startID:string,type:number,randomString:string){
|
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(
|
this._pd.loadPDTemplates(startID,randomString).subscribe(
|
||||||
data => {
|
data => {
|
||||||
console.log("after reponse = ", data);
|
// console.log("after reponse = ", data);
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.pdMasterList=data.records.pdmaster_details;
|
this.pdMasterList=data.records.pdmaster_details;
|
||||||
// this.categoryList=data.records.question_answers;
|
// this.categoryList=data.records.question_answers;
|
||||||
|
|||||||
@ -99,7 +99,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
|||||||
this.route.params.subscribe(params => {
|
this.route.params.subscribe(params => {
|
||||||
this.viewID = params['pdid'];
|
this.viewID = params['pdid'];
|
||||||
this.masterRandomString = params['rdmstr'];
|
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.viewID = this.route.snapshot.params['pdid'];
|
||||||
// this.masterRandomString = this.route.snapshot.params['rdmstr'];
|
// this.masterRandomString = this.route.snapshot.params['rdmstr'];
|
||||||
@ -108,7 +108,7 @@ export class ViewPdComponent implements OnInit, OnDestroy {
|
|||||||
pd_QC_Rating: Number;
|
pd_QC_Rating: Number;
|
||||||
|
|
||||||
viewPdDetails(editID: string,masterRandomString : string) {
|
viewPdDetails(editID: string,masterRandomString : string) {
|
||||||
console.log('inside Function',masterRandomString);
|
// console.log('inside Function',masterRandomString);
|
||||||
this.pdMasterData = [];
|
this.pdMasterData = [];
|
||||||
this._pd.editPdDetails(editID,masterRandomString).subscribe(
|
this._pd.editPdDetails(editID,masterRandomString).subscribe(
|
||||||
data => {
|
data => {
|
||||||
|
|||||||
@ -129,6 +129,7 @@ export class QcPdReportComponent implements OnInit {
|
|||||||
reGeneratePFReport() {
|
reGeneratePFReport() {
|
||||||
let data = {
|
let data = {
|
||||||
"pd_id": this.startPD,
|
"pd_id": this.startPD,
|
||||||
|
"random_string":atob(this.route.snapshot.params['string'])
|
||||||
// "regenerate": "1"
|
// "regenerate": "1"
|
||||||
};
|
};
|
||||||
this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => {
|
this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => {
|
||||||
@ -148,6 +149,7 @@ export class QcPdReportComponent implements OnInit {
|
|||||||
generateNewPDReport() {
|
generateNewPDReport() {
|
||||||
let data = {
|
let data = {
|
||||||
"pd_id": this.startPD,
|
"pd_id": this.startPD,
|
||||||
|
"random_string":atob(this.route.snapshot.params['string'])
|
||||||
};
|
};
|
||||||
this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => {
|
this.pdTrigerService.getPDReportFinalDocument(data).subscribe(data => {
|
||||||
if (data.dataStatus) {
|
if (data.dataStatus) {
|
||||||
|
|||||||
@ -3,7 +3,7 @@ export const environment = {
|
|||||||
|
|
||||||
environmentName: 'Testing Environment',//Test Environment.
|
environmentName: 'Testing Environment',//Test Environment.
|
||||||
|
|
||||||
apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/',
|
apiEndpoint: 'https://demo.pdgenie.com/sparqtest/api/',
|
||||||
|
|
||||||
authorization: 'sparqvenba2018',
|
authorization: 'sparqvenba2018',
|
||||||
login_string: "cognito-idp.ap-south-1.amazonaws.com/ap-south-1_qQ85yQZJO",
|
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.
|
environmentName: 'Development Environment',//Localhost Environment.
|
||||||
|
|
||||||
apiEndpoint: 'https://ssa.sineedge.com/sparqapi/api/',
|
apiEndpoint: 'https://ssa.sineedge.com/sparqtest/api/',
|
||||||
|
|
||||||
authorization: 'sparqvenba2018',
|
authorization: 'sparqvenba2018',
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user