changes:ps
This commit is contained in:
parent
7915f22598
commit
440886a9ea
@ -136,7 +136,7 @@
|
||||
|
||||
|
||||
<div formArrayName="addresses" *ngFor="let addresses of pdAddresses.controls; let i = index; let last = last">
|
||||
<mat-card [formGroupName]="i">{{addressesDeactivited[i]}}
|
||||
<mat-card [formGroupName]="i">
|
||||
<mat-card-header>
|
||||
<mat-card-title>Address Details #{{i+1}} <span *ngIf="!addressesDeactivited[i]" style="color: red;" align="end"><i> Deactivited </i></span> </mat-card-title>
|
||||
</mat-card-header>
|
||||
|
||||
@ -216,7 +216,7 @@ export class AddressComponent implements OnInit {
|
||||
data => {
|
||||
if (data.status == 200) {
|
||||
this.addressesList = data.records.filter(item => item.isactive == 1);
|
||||
console.log('this.addressesList',this.addressesList);
|
||||
// console.log('this.addressesList',this.addressesList);
|
||||
|
||||
if (this.addressesList.length > 0) {
|
||||
this.addressesList.forEach((val,index)=>{
|
||||
|
||||
@ -872,11 +872,11 @@ export class AssetsInfoComponent implements OnInit {
|
||||
|
||||
}
|
||||
setRequiredValidation(value,ParInx,ChdInx,flag) {
|
||||
console.log('value',value,'ParInx',ParInx,'ChdInx',ChdInx,'flag',flag);
|
||||
// console.log('value',value,'ParInx',ParInx,'ChdInx',ChdInx,'flag',flag);
|
||||
let ParCtrls = <FormArray>this._assetsQuesFrom.controls.assets_details;
|
||||
console.log('ParCtrls',ParCtrls);
|
||||
// console.log('ParCtrls',ParCtrls);
|
||||
let ChdCtrls:any = <FormArray>ParCtrls.controls[ParInx];
|
||||
console.log('ChdCtrls',ChdCtrls);
|
||||
// console.log('ChdCtrls',ChdCtrls);
|
||||
if(flag == 1){
|
||||
value==1
|
||||
|
||||
|
||||
@ -189,7 +189,7 @@ export class ClientInfoComponent implements OnInit {
|
||||
data => {
|
||||
if (data.dataStatus) {
|
||||
let dataForm = data.records;
|
||||
console.log(dataForm);
|
||||
// console.log(dataForm);
|
||||
if (dataForm !== undefined) {
|
||||
this._supplierQuesFrom = this._formBuilder.group({
|
||||
pdid: [this.pdid],
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
<mat-form-field style="width:45%" *ngIf="details.get('source').value == 5">
|
||||
<input matInput autocomplete="off" placeholder="Address"
|
||||
formControlName="address">
|
||||
<mat-hint align="end"><i (click)="Toview()">Click Here To view Rental Info Form</i></mat-hint>
|
||||
<!-- <mat-hint align="end"><i (click)="Toview()">Click Here To view Rental Info Form</i></mat-hint> -->
|
||||
</mat-form-field>
|
||||
|
||||
<mat-form-field style="width:45%">
|
||||
|
||||
@ -138,16 +138,16 @@ export class StockComponent implements OnInit {
|
||||
}
|
||||
|
||||
public initstockForms(record){
|
||||
console.log('record.from_business',record.from_business);
|
||||
// console.log('record.from_business',record.from_business);
|
||||
let api = Object.keys(record.from_business).map(function (key) {
|
||||
return record.from_business[key];
|
||||
});
|
||||
console.log(api);
|
||||
// console.log(api);
|
||||
let type2 = record.from_business.filter(data => data.type_of_activity_id == 2);
|
||||
console.log('type2[0].hasOwnProperty("products")',type2[0].hasOwnProperty("products"));
|
||||
console.log('type2',type2);
|
||||
console.log('type2 0 index',type2[0]);
|
||||
console.log('type2 product',type2[0].product);
|
||||
// console.log('type2[0].hasOwnProperty("products")',type2[0].hasOwnProperty("products"));
|
||||
// console.log('type2',type2);
|
||||
// console.log('type2 0 index',type2[0]);
|
||||
// console.log('type2 product',type2[0].product);
|
||||
// console.log('type2 length',type2[0].product.length);
|
||||
|
||||
let type2length = type2[0].hasOwnProperty("products") ? type2[0].products.length : 0;
|
||||
@ -156,12 +156,12 @@ export class StockComponent implements OnInit {
|
||||
let type4 = record.from_business.filter(data => data.type_of_activity_id == 4);
|
||||
let type4length = type4[0].hasOwnProperty("products") ? type4[0].products.length : 0;
|
||||
|
||||
console.log(type2);
|
||||
console.log(type2length);
|
||||
console.log(type3);
|
||||
console.log(type3length);
|
||||
console.log(type4);
|
||||
console.log(type4length);
|
||||
// console.log(type2);
|
||||
// console.log(type2length);
|
||||
// console.log(type3);
|
||||
// console.log(type3length);
|
||||
// console.log(type4);
|
||||
// console.log(type4length);
|
||||
|
||||
let rm_api = record.from_supplier;
|
||||
|
||||
@ -336,8 +336,8 @@ export class StockComponent implements OnInit {
|
||||
let arrlength = arr[0].hasOwnProperty("products") ? arr[0].products.length : 0;
|
||||
let rm_arr = record.from_supplier;
|
||||
|
||||
console.log('manu arr',arr);
|
||||
console.log('rm_arr',rm_arr);
|
||||
// console.log('manu arr',arr);
|
||||
// console.log('rm_arr',rm_arr);
|
||||
// let rm_arr = 0;
|
||||
if(arrlength > 0){
|
||||
this.manufacturingForm = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user