issues fixes ps

This commit is contained in:
saravanakumarkandasami 2019-05-30 17:34:03 +05:30
parent 86152b9c6a
commit d5770c616f
5 changed files with 37 additions and 20 deletions

View File

@ -41,7 +41,7 @@ pdDetailLender:any = [];
this.pdDetailLender = res;
if(this.pdDetailLender.dataStatus == true)
{
console.log("Pd",this.pdDetailLender)
// console.log("Pd",this.pdDetailLender)
this.pdFullDetails = this.pdDetailLender.records.pd_master_details[0];
this.addresses=this.pdDetailLender.records.pd_address
this.qccompleted = this.pdFullDetails.pd_status.replace("_"," ");

View File

@ -118,10 +118,28 @@
<!-- <ion-icon item-start="" class="lettericon" [style.background]="bgColorPast[i]">{{progess.applicat_details[0].applicant_name | slice : 0 :1 | uppercase}}</ion-icon> -->
<p item-start class="lettericon" style="font-size: 90%; font-weight: bold" [style.background]="bgColorPast[i]">{{progess.pd_id}}</p>
<ion-row>
<ion-col col-5 *ngIf="progess.applicat_details.length !='0' && progess.applicat_details[0].applicant_type == 1">
<!-- <ion-col col-5 *ngIf="progess.applicat_details.length !='0' && progess.applicat_details[0].applicant_type == 1">
<h1>{{progess.applicat_details[0].applicant_name | titlecase}}</h1>
<!--<p>28 Sep 2018 10:00 AM</p>-->
</ion-col>
!--<p>28 Sep 2018 10:00 AM</p>--
</ion-col> -->
<!-- With Applicant Details -->
<ion-col col-5 *ngIf="progess.is_child == '0'">
<span *ngIf="progess.applicat_details && progess.applicat_details.length !=0">
<span *ngIf="progess.applicat_details && progess.applicat_details.length !=0 && progess.applicat_details[0].applicant_type == 1">
<h1>{{progess.applicat_details[0].applicant_name | titlecase}}</h1>
</span>
</span>
</ion-col>
<!-- Without Applicant details for Add On PD -->
<ion-col col-5 *ngIf="progess.is_child == '1'">
<ion-col>
<h1>Add On for {{progess.parent_pd_id}}</h1>
</ion-col>
</ion-col>
<ion-col text-right>
<div style="font-size: 13px;">
<h6>{{progess.pd_date_of_initiation}}</h6>

View File

@ -68,8 +68,8 @@ export class PdListPage {
this.userDetails = res;
if(this.userDetails.dataStatus == true){
this.userDetails = this.userDetails.records[0];
this.pdofficer.getpddetails(this.userDetails.fk_entity_id).subscribe(res=>
// console.log('this.userDetails.records[0]',this.userDetails.records[0]);
this.pdofficer.getpddetails(this.userDetails.fk_entity_id,this.userDetails.userid).subscribe(res=>
{
this.pdlistdetails = res;
if(this.pdlistdetails.dataStatus == true)
@ -77,7 +77,6 @@ export class PdListPage {
this.pdlistaccess = true;
this.pdinprogress = this.pdlistdetails.records.filter(past=>past.pd_status !="QC_COMPLETED");
this.searchinprogress = this.pdinprogress;
console.log(this.pdinprogress);
this.pdlistdetails = this.pdlistdetails.records.filter(past=>past.pd_status =="QC_COMPLETED");
this.searchpast = this.pdlistdetails;
this.random_bg_color();
@ -103,7 +102,7 @@ export class PdListPage {
// if the value is an empty string don't filter the items
if(this.pdlist == "inpro"){
console.log('if');
// console.log('if');
if (q.trim() == '') {
return ;
}else{
@ -117,8 +116,8 @@ export class PdListPage {
}else
{
if (q.trim() == '') {
console.log(q.trim());
console.log(this.pdlistdetails);
// console.log(q.trim());
// console.log(this.pdlistdetails);
return ;
}else{
this.pdlistdetails = this.searchpast.filter((v) => {
@ -160,11 +159,11 @@ export class PdListPage {
}
doRefresh(refresher) {
this.bgColor = [];
console.log('Begin async operation', refresher);
// console.log('Begin async operation', refresher);
this.shared.refresh();
this.getlenderpddetails();
setTimeout(() => {
console.log('Async operation has ended');
// console.log('Async operation has ended');
refresher.complete();
}, 2000);
}

View File

@ -17,14 +17,14 @@ export class ConstantsProvider {
apiurl()
{
let testapiurl = 'http://ssa.sineedge.com/sparqtest/api/';
let devapiurl = 'http://ssa.sineedge.com/sparqapi/api/';
let localapiurl = 'http://192.168.0.9/sparqapi/api/';
return devapiurl;
let testapiurl = 'https://ssa.sineedge.com/sparqtest/api/';
let devapiurl = 'https://ssa.sineedge.com/sparqapi/api/';
let localapiurl = 'https://192.168.0.9/sparqapi/api/';
return testapiurl;
}
//For Searching Fields
searchValue(exist_data,value,option){
console.log("option",option)
// console.log("option",option)
let returnDataVal:any
if(!exist_data){
return

View File

@ -48,10 +48,10 @@ export class PdtriggerProvider {
/**Get list of PD Trigger */
getpddetails(userid)
getpddetails(lendersentityid,lendersuserid)
{
//console.log(userid);
return this.http.get(this.apiurl+'listLessPDDetails/get?lenderid='+userid);
return this.http.get(this.apiurl+'listLessPDDetails/get?lenderid='+lendersuserid);
// return this.http.get(this.apiurl+'listLessPDDetails/get?lenderid='+lendersentityid+'/?userid='+lendersuserid);
}
getfullpddetails(pdid)
{