changes:ps

This commit is contained in:
venbatechnologies@gmail.com 2019-03-05 10:56:30 +05:30
parent 7915f22598
commit 440886a9ea
6 changed files with 21 additions and 21 deletions

View File

@ -136,7 +136,7 @@
<div formArrayName="addresses" *ngFor="let addresses of pdAddresses.controls; let i = index; let last = last"> <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-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-title>Address Details #{{i+1}} <span *ngIf="!addressesDeactivited[i]" style="color: red;" align="end"><i> Deactivited </i></span> </mat-card-title>
</mat-card-header> </mat-card-header>

View File

@ -216,7 +216,7 @@ export class AddressComponent implements OnInit {
data => { data => {
if (data.status == 200) { if (data.status == 200) {
this.addressesList = data.records.filter(item => item.isactive == 1); 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) { if (this.addressesList.length > 0) {
this.addressesList.forEach((val,index)=>{ this.addressesList.forEach((val,index)=>{

View File

@ -872,11 +872,11 @@ export class AssetsInfoComponent implements OnInit {
} }
setRequiredValidation(value,ParInx,ChdInx,flag) { 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; let ParCtrls = <FormArray>this._assetsQuesFrom.controls.assets_details;
console.log('ParCtrls',ParCtrls); // console.log('ParCtrls',ParCtrls);
let ChdCtrls:any = <FormArray>ParCtrls.controls[ParInx]; let ChdCtrls:any = <FormArray>ParCtrls.controls[ParInx];
console.log('ChdCtrls',ChdCtrls); // console.log('ChdCtrls',ChdCtrls);
if(flag == 1){ if(flag == 1){
value==1 value==1

View File

@ -189,7 +189,7 @@ export class ClientInfoComponent implements OnInit {
data => { data => {
if (data.dataStatus) { if (data.dataStatus) {
let dataForm = data.records; let dataForm = data.records;
console.log(dataForm); // console.log(dataForm);
if (dataForm !== undefined) { if (dataForm !== undefined) {
this._supplierQuesFrom = this._formBuilder.group({ this._supplierQuesFrom = this._formBuilder.group({
pdid: [this.pdid], pdid: [this.pdid],

View File

@ -59,7 +59,7 @@
<mat-form-field style="width:45%" *ngIf="details.get('source').value == 5"> <mat-form-field style="width:45%" *ngIf="details.get('source').value == 5">
<input matInput autocomplete="off" placeholder="Address" <input matInput autocomplete="off" placeholder="Address"
formControlName="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>
<mat-form-field style="width:45%"> <mat-form-field style="width:45%">

View File

@ -138,16 +138,16 @@ export class StockComponent implements OnInit {
} }
public initstockForms(record){ 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) { let api = Object.keys(record.from_business).map(function (key) {
return record.from_business[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); 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[0].hasOwnProperty("products")',type2[0].hasOwnProperty("products"));
console.log('type2',type2); // console.log('type2',type2);
console.log('type2 0 index',type2[0]); // console.log('type2 0 index',type2[0]);
console.log('type2 product',type2[0].product); // console.log('type2 product',type2[0].product);
// console.log('type2 length',type2[0].product.length); // console.log('type2 length',type2[0].product.length);
let type2length = type2[0].hasOwnProperty("products") ? type2[0].products.length : 0; 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 type4 = record.from_business.filter(data => data.type_of_activity_id == 4);
let type4length = type4[0].hasOwnProperty("products") ? type4[0].products.length : 0; let type4length = type4[0].hasOwnProperty("products") ? type4[0].products.length : 0;
console.log(type2); // console.log(type2);
console.log(type2length); // console.log(type2length);
console.log(type3); // console.log(type3);
console.log(type3length); // console.log(type3length);
console.log(type4); // console.log(type4);
console.log(type4length); // console.log(type4length);
let rm_api = record.from_supplier; 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 arrlength = arr[0].hasOwnProperty("products") ? arr[0].products.length : 0;
let rm_arr = record.from_supplier; let rm_arr = record.from_supplier;
console.log('manu arr',arr); // console.log('manu arr',arr);
console.log('rm_arr',rm_arr); // console.log('rm_arr',rm_arr);
// let rm_arr = 0; // let rm_arr = 0;
if(arrlength > 0){ if(arrlength > 0){
this.manufacturingForm = true; this.manufacturingForm = true;