ss:order list
This commit is contained in:
parent
4d5ae99c73
commit
d8885b9624
@ -163,8 +163,8 @@
|
|||||||
<div >
|
<div >
|
||||||
<nb-select placeholder="Select Product" [(ngModel)]="fieldGroup.id" style="width: 100% !important;margin-right: 1rem;" >
|
<nb-select placeholder="Select Product" [(ngModel)]="fieldGroup.id" style="width: 100% !important;margin-right: 1rem;" >
|
||||||
<!-- <nb-option value="">Select Drivers</nb-option> -->
|
<!-- <nb-option value="">Select Drivers</nb-option> -->
|
||||||
|
<!-- (click)="onProductSelect(user.id,user.productName)" -->
|
||||||
<nb-option *ngFor="let user of product; index as i; first as isFirst " [value]="user.id
|
<nb-option *ngFor="let user of product; index as i; first as isFirst " [value]="user.id
|
||||||
">{{user.productName }}({{user.skuId }} )</nb-option>
|
">{{user.productName }}({{user.skuId }} )</nb-option>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -57,6 +57,8 @@ fieldTitle:any =' New Order'
|
|||||||
selectCustomerData :any =[];selectStatus:any =[];CancelReason:any =[];selectDriver:any =[];drivers:any =[];
|
selectCustomerData :any =[];selectStatus:any =[];CancelReason:any =[];selectDriver:any =[];drivers:any =[];
|
||||||
invoice = new Invoice();
|
invoice = new Invoice();
|
||||||
hiddenBtn= false;
|
hiddenBtn= false;
|
||||||
|
delArr:any=[]
|
||||||
|
selectedProductId: number | null = null;
|
||||||
constructor(private dialogService: NbDialogService,private route :ActivatedRoute,private router: Router,public _api:PageapiService,private toastrService: NbToastrService,private service: SmartTableData ,private windowService: NbWindowService) {
|
constructor(private dialogService: NbDialogService,private route :ActivatedRoute,private router: Router,public _api:PageapiService,private toastrService: NbToastrService,private service: SmartTableData ,private windowService: NbWindowService) {
|
||||||
|
|
||||||
this._api.orderDetails_observable$.subscribe((res) => {
|
this._api.orderDetails_observable$.subscribe((res) => {
|
||||||
@ -313,8 +315,19 @@ console.log(product)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onProductSelect(event: any,prod:any) {
|
||||||
|
if(prod != 'Mixed Gas')
|
||||||
|
{
|
||||||
|
this.selectedProductId = event;
|
||||||
|
this.product = this.product.filter((item) => item.id !== event);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
saveNew(){
|
saveNew(){
|
||||||
|
let data = { 'id' : this.delArr}
|
||||||
|
this._api.delOrder(data).subscribe(res => { console.log( "success");
|
||||||
|
})
|
||||||
|
|
||||||
console.log(this.selectCustomer,this.inputFieldGroups, this.product)
|
console.log(this.selectCustomer,this.inputFieldGroups, this.product)
|
||||||
|
|
||||||
@ -834,7 +847,8 @@ addInputFieldGroup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
removeInputFieldGroup(index: number) {
|
removeInputFieldGroup(index: number) {
|
||||||
console.log( this.inputFieldGroups)
|
console.log( this.inputFieldGroups[index].primaryId)
|
||||||
|
this.delArr.push(this.inputFieldGroups[index].primaryId)
|
||||||
this.inputFieldGroups.splice(index, 1); // Remove the input field group at the specified index
|
this.inputFieldGroups.splice(index, 1); // Remove the input field group at the specified index
|
||||||
//this.childButtonEvent.emit( this.inputFieldGroups);
|
//this.childButtonEvent.emit( this.inputFieldGroups);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
||||||
|
|
||||||
export const environment = {
|
export const environment = {
|
||||||
apiEndpoint:'https://dev.venbait.in/vnms/api/',
|
// apiEndpoint:'https://dev.venbait.in/vnms/api/',
|
||||||
// apiEndpoint:'http://localhost:8081/api/',
|
apiEndpoint:'http://localhost:8081/api/',
|
||||||
mailUrl:'',
|
mailUrl:'',
|
||||||
production: false,
|
production: false,
|
||||||
};
|
};
|
||||||
|
|||||||
BIN
vnms_admin_fe_2_9.zip
Normal file
BIN
vnms_admin_fe_2_9.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user