vendorlist based on state,remarks form,business asset form
This commit is contained in:
parent
ec2cee083f
commit
fb263ea20f
@ -231,7 +231,7 @@
|
|||||||
<mat-error *ngIf="addresses.controls.fk_state.hasError('required')">State Required.</mat-error>
|
<mat-error *ngIf="addresses.controls.fk_state.hasError('required')">State Required.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field fxFlex="32%">
|
<mat-form-field fxFlex="32%">
|
||||||
<mat-select placeholder="City" formControlName="fk_city" (selectionChange)="getvendor($event.value)">
|
<mat-select placeholder="City" formControlName="fk_city">
|
||||||
<mat-option>
|
<mat-option>
|
||||||
<ngx-mat-select-search formControlName="citySearch" (keyup)="searchFun(addresses,i,'city')"
|
<ngx-mat-select-search formControlName="citySearch" (keyup)="searchFun(addresses,i,'city')"
|
||||||
[placeholderLabel]="'Search City...'"
|
[placeholderLabel]="'Search City...'"
|
||||||
|
|||||||
@ -406,6 +406,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
|
|||||||
|
|
||||||
//get city list details based on state id
|
//get city list details based on state id
|
||||||
getCityList(stateID: string,index) {
|
getCityList(stateID: string,index) {
|
||||||
|
this.getvendor(stateID)
|
||||||
this._pd.getStateWiseCities(stateID).subscribe(data => {
|
this._pd.getStateWiseCities(stateID).subscribe(data => {
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
this.cityList[index] = data.records.cities;
|
this.cityList[index] = data.records.cities;
|
||||||
@ -1245,8 +1246,8 @@ searchFun(control:any,i:number,option){
|
|||||||
onChangeSelectedAddress(value) {
|
onChangeSelectedAddress(value) {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
|
|
||||||
let city_id=value.city;
|
let state=value.state;
|
||||||
this.getvendor(city_id)
|
this.getvendor(state)
|
||||||
if(value) {
|
if(value) {
|
||||||
let control_address = this._PDtriggerForm.get('addresses')['controls'][0] as FormArray
|
let control_address = this._PDtriggerForm.get('addresses')['controls'][0] as FormArray
|
||||||
console.log(control_address);
|
console.log(control_address);
|
||||||
@ -1275,5 +1276,5 @@ searchFun(control:any,i:number,option){
|
|||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -159,7 +159,7 @@
|
|||||||
<i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode_id == 1 ? details.other_pincode : details.pincode }} </span>
|
<i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode_id == 1 ? details.other_pincode : details.pincode }} </span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="16.66" fxFlex.lg="16.66" fxFlex.xl="16.66" class="center no-pad cell" style="justify-content:flex-end">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="16.66" fxFlex.lg="16.66" fxFlex.xl="16.66" class="center no-pad cell" style="justify-content:flex-end">
|
||||||
<span *ngIf="details.pd_status!='QC_COMPLETED'"> {{details.pd_status}} </span>
|
<span *ngIf="details.pd_status!='QC_COMPLETED'"> {{details.pd_status=="ALLOCATED_TO_FIA" ? 'Allocated to vendor' :details.pd_status}} </span>
|
||||||
<br>
|
<br>
|
||||||
<span style="color:blue;font-size: small;">{{details.vendor_status}}</span>
|
<span style="color:blue;font-size: small;">{{details.vendor_status}}</span>
|
||||||
<span *ngIf="details.pd_status=='QC_COMPLETED'"> QC COMPLETED</span>
|
<span *ngIf="details.pd_status=='QC_COMPLETED'"> QC COMPLETED</span>
|
||||||
|
|||||||
@ -151,7 +151,7 @@
|
|||||||
<i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode_id == 1 ? details.other_pincode : details.pincode }} </span>
|
<i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode_id == 1 ? details.other_pincode : details.pincode }} </span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="16.66" fxFlex.lg="16.66" fxFlex.xl="16.66" class="center no-pad cell" style="justify-content:flex-end">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="16.66" fxFlex.lg="16.66" fxFlex.xl="16.66" class="center no-pad cell" style="justify-content:flex-end">
|
||||||
<span *ngIf="details.pd_status!='QC_COMPLETED'"> {{details.pd_status}}</span>
|
<span *ngIf="details.pd_status!='QC_COMPLETED'"> {{details.pd_status=="ALLOCATED_TO_FIA" ? 'Allocated to vendor' :details.pd_status}}</span>
|
||||||
<br>
|
<br>
|
||||||
<span style="color:blue;font-size: small;">{{details.vendor_status}}</span>
|
<span style="color:blue;font-size: small;">{{details.vendor_status}}</span>
|
||||||
<span *ngIf="details.pd_status=='QC_COMPLETED'"> QC COMPLETED</span>
|
<span *ngIf="details.pd_status=='QC_COMPLETED'"> QC COMPLETED</span>
|
||||||
|
|||||||
@ -233,7 +233,7 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width: 32%">
|
<mat-form-field style="width: 32%">
|
||||||
<mat-select placeholder="City" formControlName="fk_city" (selectionChange)="getvendor($event.value)">
|
<mat-select placeholder="City" formControlName="fk_city">
|
||||||
<mat-option>
|
<mat-option>
|
||||||
<ngx-mat-select-search formControlName="citySearch" (keyup)="searchFun(addresses,i,'city')"
|
<ngx-mat-select-search formControlName="citySearch" (keyup)="searchFun(addresses,i,'city')"
|
||||||
[placeholderLabel]="'Search City...'"
|
[placeholderLabel]="'Search City...'"
|
||||||
|
|||||||
@ -415,7 +415,7 @@ export class EditPdMasterComponent implements OnInit {
|
|||||||
other_pincode:val.other_pincode,
|
other_pincode:val.other_pincode,
|
||||||
isactive:1,
|
isactive:1,
|
||||||
}
|
}
|
||||||
this.getvendor(val.fk_city);
|
this.getvendor(val.fk_state);
|
||||||
this.getCityList(val.fk_state,index);
|
this.getCityList(val.fk_state,index);
|
||||||
this.getPincode(val.pincode_id,index);
|
this.getPincode(val.pincode_id,index);
|
||||||
this.addressesDeactivited[this.addressesList.length] = true;
|
this.addressesDeactivited[this.addressesList.length] = true;
|
||||||
@ -495,8 +495,8 @@ 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){
|
||||||
|
this.getvendor(stateID)
|
||||||
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
this._pd.getStateWiseCities(stateID).subscribe(data=>{
|
||||||
if (data.status == 200) {
|
if (data.status == 200) {
|
||||||
|
|
||||||
this.cityList[i] = data.records.cities;
|
this.cityList[i] = data.records.cities;
|
||||||
|
|||||||
@ -150,7 +150,7 @@
|
|||||||
<i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode_id == 1 ? details.other_pincode : details.pincode }} </span>
|
<i class="fa-1x fa fa-map-marker"> </i> {{details.city_name}}-{{details.pincode_id == 1 ? details.other_pincode : details.pincode }} </span>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="16.66" fxFlex.lg="16.66" fxFlex.xl="16.66" class="center no-pad cell" style="justify-content:flex-end">
|
<div fxFlex.xs="30" fxFlex.sm="30" fxFlex.md="16.66" fxFlex.lg="16.66" fxFlex.xl="16.66" class="center no-pad cell" style="justify-content:flex-end">
|
||||||
<span *ngIf="details.pd_status!='QC_COMPLETED'"> {{details.pd_status}}</span>
|
<span *ngIf="details.pd_status!='QC_COMPLETED'"> {{details.pd_status=="ALLOCATED_TO_FIA" ? 'Allocated to vendor' :details.pd_status}}</span>
|
||||||
<br>
|
<br>
|
||||||
<span style="color:blue;font-size: small;">{{details.vendor_status}}</span>
|
<span style="color:blue;font-size: small;">{{details.vendor_status}}</span>
|
||||||
<span *ngIf="details.pd_status=='QC_COMPLETED'"> QC COMPLETED</span>
|
<span *ngIf="details.pd_status=='QC_COMPLETED'"> QC COMPLETED</span>
|
||||||
|
|||||||
@ -105,7 +105,7 @@ export class PdAllocationComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
getSmcVendorPdOfficerList1(){
|
getSmcVendorPdOfficerList1(){
|
||||||
|
|
||||||
this._pd.getvendorlist(this.data.city_id).subscribe(
|
this._pd.getvendorlist(this.data.state_id).subscribe(
|
||||||
list => {
|
list => {
|
||||||
console.log('list');
|
console.log('list');
|
||||||
console.log(list);
|
console.log(list);
|
||||||
|
|||||||
@ -68,10 +68,10 @@ export class PdStatusChangeDialogueComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
getSmcVendorPdOfficerList1(){
|
getSmcVendorPdOfficerList1(){
|
||||||
|
|
||||||
this.pd.getvendorlist(this.data.city_id).subscribe(
|
this.pd.getvendorlist(this.data.state_id).subscribe(
|
||||||
list => {
|
list => {
|
||||||
console.log('list');
|
console.log('list');
|
||||||
console.log(list);
|
console.log(list);
|
||||||
if(list['status'] == '200') {
|
if(list['status'] == '200') {
|
||||||
this.vendorOfficerList= list['records']
|
this.vendorOfficerList= list['records']
|
||||||
|
|
||||||
|
|||||||
@ -161,7 +161,7 @@ else
|
|||||||
let params = {"fk_entity_id":this.pd_all_details.pdmaster_details.fk_lender_id,"fk_product_id":this.pd_all_details.pdmaster_details.fk_product_id,"pd_form_id":this.pd_all_details.form_id,"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id}
|
let params = {"fk_entity_id":this.pd_all_details.pdmaster_details.fk_lender_id,"fk_product_id":this.pd_all_details.pdmaster_details.fk_product_id,"pd_form_id":this.pd_all_details.form_id,"fk_pd_id":this.pd_all_details.pdmaster_details.pd_id}
|
||||||
this.pdTriggerService.loadCreditPDTemplate(params).subscribe(result=>{
|
this.pdTriggerService.loadCreditPDTemplate(params).subscribe(result=>{
|
||||||
if(!environment.production){
|
if(!environment.production){
|
||||||
//result.dataStatus = false
|
result.dataStatus = false
|
||||||
}
|
}
|
||||||
if(result.dataStatus) {
|
if(result.dataStatus) {
|
||||||
let question_template: any = result.records
|
let question_template: any = result.records
|
||||||
|
|||||||
@ -929,7 +929,7 @@ export class PdTrigerService {
|
|||||||
}
|
}
|
||||||
//FOR TRIGGER PD PAGE MASTER FOR PRODUCT,CUS SEG,PD TYPE
|
//FOR TRIGGER PD PAGE MASTER FOR PRODUCT,CUS SEG,PD TYPE
|
||||||
getvendorlist(value){
|
getvendorlist(value){
|
||||||
return this._http.get<any[]>(this.apiUrl+'getSMCVendorList?city_id='+value)
|
return this._http.get<any[]>(this.apiUrl+'getSMCVendorList?state_id='+value)
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
)
|
)
|
||||||
|
|||||||
@ -154,7 +154,7 @@
|
|||||||
"question":[{
|
"question":[{
|
||||||
"question":"Reasons for marking PD status as Positive/negative/ refer to credit",
|
"question":"Reasons for marking PD status as Positive/negative/ refer to credit",
|
||||||
"question_key":"reason",
|
"question_key":"reason",
|
||||||
"type":"1",
|
"type":"7",
|
||||||
"field_width":"100",
|
"field_width":"100",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
"onchange_properties":null,
|
"onchange_properties":null,
|
||||||
@ -196,7 +196,7 @@
|
|||||||
"isactive":"1",
|
"isactive":"1",
|
||||||
"validator":"Validators.required",
|
"validator":"Validators.required",
|
||||||
"message":"Field Required",
|
"message":"Field Required",
|
||||||
"value":null
|
"value":null
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
"place_holder":"",
|
"place_holder":"",
|
||||||
"field_type":"num",
|
"field_type":"num",
|
||||||
"type":"1",
|
"type":"1",
|
||||||
"field_width":"45",
|
"field_width":"45",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
"onchange_properties":null,
|
"onchange_properties":null,
|
||||||
"is_repeatable":null,
|
"is_repeatable":null,
|
||||||
@ -328,7 +328,7 @@
|
|||||||
"question":"Is there any other business asset available?",
|
"question":"Is there any other business asset available?",
|
||||||
"question_key":"asset_info_available",
|
"question_key":"asset_info_available",
|
||||||
"type":"2",
|
"type":"2",
|
||||||
"field_width":"45",
|
"field_width":"100",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
"onchange_properties":[{
|
"onchange_properties":[{
|
||||||
"purpose":"FORM_CTRL",
|
"purpose":"FORM_CTRL",
|
||||||
|
|||||||
@ -152,9 +152,9 @@
|
|||||||
"questions":[
|
"questions":[
|
||||||
{
|
{
|
||||||
"question":[{
|
"question":[{
|
||||||
"question":"Reasons for marking PD status as Positive/negative/ refer to credit",
|
"question":"Reasons for marking PD status as Positive/negative/ refer to credit",
|
||||||
"question_key":"reason",
|
"question_key":"reason",
|
||||||
"type":"1",
|
"type":"7",
|
||||||
"field_width":"100",
|
"field_width":"100",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
"onchange_properties":null,
|
"onchange_properties":null,
|
||||||
|
|||||||
@ -2,10 +2,25 @@
|
|||||||
"section_id":"8",
|
"section_id":"8",
|
||||||
"section_name":"Business Assets",
|
"section_name":"Business Assets",
|
||||||
"onsubmit":null,
|
"onsubmit":null,
|
||||||
|
|
||||||
"questions":[
|
"questions":[
|
||||||
|
{
|
||||||
|
"question":"Address",
|
||||||
|
"question_key":"initiated_address",
|
||||||
|
"type":"7",
|
||||||
|
"field_width":"100",
|
||||||
|
"answers":null,
|
||||||
|
"api_properties":null,
|
||||||
|
"onchange_properties":null,
|
||||||
|
"is_repeatable":null,
|
||||||
|
"validations":[
|
||||||
|
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"question":" Is this the business address?",
|
"question":" Is this the business address?",
|
||||||
"question_key":"is_business_address",
|
"question_key":"is_business_address",
|
||||||
"type":"2",
|
"type":"2",
|
||||||
"field_width":"100",
|
"field_width":"100",
|
||||||
"answers":[{
|
"answers":[{
|
||||||
@ -28,30 +43,7 @@
|
|||||||
"is_business_address"
|
"is_business_address"
|
||||||
],
|
],
|
||||||
"questions":[
|
"questions":[
|
||||||
{
|
|
||||||
"question":"No of Years",
|
|
||||||
"sub_title":"How Long has business been operated from visited premises? (Eg. If operating for 5 years and 4 months enter 5 in Years field and 4 in months field",
|
|
||||||
"question_key":"business_years",
|
|
||||||
"place_holder":"",
|
|
||||||
"field_type":"num",
|
|
||||||
"type":"1",
|
|
||||||
"field_width":"100",
|
|
||||||
"api_properties":null,
|
|
||||||
"onchange_properties":null,
|
|
||||||
"is_repeatable":null,
|
|
||||||
"is_subfield":"1",
|
|
||||||
"parent_question_key":"is_business_address",
|
|
||||||
"answers":null,
|
|
||||||
"validations":[
|
|
||||||
{
|
|
||||||
"name":"required",
|
|
||||||
"isactive":"1",
|
|
||||||
"validator":"Validators.required",
|
|
||||||
"message":"Field required",
|
|
||||||
"value":null
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"question":"No of Months",
|
"question":"No of Months",
|
||||||
"question_key":"business_months",
|
"question_key":"business_months",
|
||||||
@ -68,12 +60,36 @@
|
|||||||
"validations":[
|
"validations":[
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"question":"No of Years",
|
||||||
|
"sub_title":"How Long has business been operated from visited premises? (Eg. If operating for 5 years and 4 months enter 5 in Years field and 4 in months field",
|
||||||
|
"question_key":"business_years",
|
||||||
|
"place_holder":"",
|
||||||
|
"field_type":"num",
|
||||||
|
"type":"1",
|
||||||
|
"field_width":"100",
|
||||||
|
"api_properties":null,
|
||||||
|
"onchange_properties":null,
|
||||||
|
"is_repeatable":null,
|
||||||
|
"is_subfield":"1",
|
||||||
|
"parent_question_key":"is_business_address",
|
||||||
|
"answers":null,
|
||||||
|
"validations":[
|
||||||
|
{
|
||||||
|
"name":"required",
|
||||||
|
"isactive":"1",
|
||||||
|
"validator":"Validators.required",
|
||||||
|
"message":"Field required",
|
||||||
|
"value":null
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"question":"Was any business activities seen during visit?",
|
"question":"Was any business activities seen during visit?",
|
||||||
"question_key":"business_is_pd_visited",
|
"question_key":"business_is_pd_visited",
|
||||||
"place_holder":"",
|
"place_holder":"",
|
||||||
"type":"2",
|
"type":"2",
|
||||||
"field_width":"45",
|
"field_width":"100",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
"onchange_properties":[
|
"onchange_properties":[
|
||||||
{
|
{
|
||||||
@ -354,7 +370,7 @@
|
|||||||
"question":"Is there any other business asset available?",
|
"question":"Is there any other business asset available?",
|
||||||
"question_key":"asset_info_available",
|
"question_key":"asset_info_available",
|
||||||
"type":"2",
|
"type":"2",
|
||||||
"field_width":"45",
|
"field_width":"100",
|
||||||
"api_properties":null,
|
"api_properties":null,
|
||||||
"onchange_properties":[{
|
"onchange_properties":[{
|
||||||
"purpose":"FORM_CTRL",
|
"purpose":"FORM_CTRL",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user