ss:order list
This commit is contained in:
parent
4d5ae99c73
commit
d8885b9624
@ -163,8 +163,8 @@
|
||||
<div >
|
||||
<nb-select placeholder="Select Product" [(ngModel)]="fieldGroup.id" style="width: 100% !important;margin-right: 1rem;" >
|
||||
<!-- <nb-option value="">Select Drivers</nb-option> -->
|
||||
|
||||
<nb-option *ngFor="let user of product; index as i; first as isFirst " [value]="user.id
|
||||
<!-- (click)="onProductSelect(user.id,user.productName)" -->
|
||||
<nb-option *ngFor="let user of product; index as i; first as isFirst " [value]="user.id
|
||||
">{{user.productName }}({{user.skuId }} )</nb-option>
|
||||
|
||||
|
||||
|
||||
@ -57,6 +57,8 @@ fieldTitle:any =' New Order'
|
||||
selectCustomerData :any =[];selectStatus:any =[];CancelReason:any =[];selectDriver:any =[];drivers:any =[];
|
||||
invoice = new Invoice();
|
||||
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) {
|
||||
|
||||
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(){
|
||||
let data = { 'id' : this.delArr}
|
||||
this._api.delOrder(data).subscribe(res => { console.log( "success");
|
||||
})
|
||||
|
||||
console.log(this.selectCustomer,this.inputFieldGroups, this.product)
|
||||
|
||||
@ -834,7 +847,8 @@ addInputFieldGroup() {
|
||||
}
|
||||
|
||||
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.childButtonEvent.emit( this.inputFieldGroups);
|
||||
}
|
||||
|
||||
@ -9,8 +9,8 @@
|
||||
// The list of which env maps to which file can be found in `.angular-cli.json`.
|
||||
|
||||
export const environment = {
|
||||
apiEndpoint:'https://dev.venbait.in/vnms/api/',
|
||||
// apiEndpoint:'http://localhost:8081/api/',
|
||||
// apiEndpoint:'https://dev.venbait.in/vnms/api/',
|
||||
apiEndpoint:'http://localhost:8081/api/',
|
||||
mailUrl:'',
|
||||
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