feat: implement new shopping cart sales component with responsive Kendo UI grid for item display and management.
This commit is contained in:
@@ -65,6 +65,7 @@ import { OrderDiscount } from '../store/models/order-discount.model';
|
||||
import { SaleState } from '../store/models/sale-state.model';
|
||||
import { ShoppingItem } from '../store/models/shopping-item';
|
||||
import { Shopping } from '../store/models/shopping.model';
|
||||
import { THIS_EXPR } from '@angular/compiler/src/output/output_ast';
|
||||
|
||||
export interface JsonModel {
|
||||
shippingDate: string;
|
||||
@@ -700,6 +701,7 @@ export class CartSalesComponent
|
||||
}
|
||||
|
||||
async showConfirmation() {
|
||||
this.isLoadingPreOrder = true;
|
||||
const dialog: DialogRef = this.dialogService.open({
|
||||
title: 'Por favor, confirme',
|
||||
content: 'Deseja gravar como orçamento ?',
|
||||
@@ -715,6 +717,7 @@ export class CartSalesComponent
|
||||
dialog.result.subscribe((result) => {
|
||||
if (result instanceof DialogCloseResult) {
|
||||
console.log('close');
|
||||
this.isLoadingPreOrder = false;
|
||||
} else {
|
||||
const resultConfirmation = JSON.stringify(result);
|
||||
console.log('action1', resultConfirmation);
|
||||
@@ -722,6 +725,7 @@ export class CartSalesComponent
|
||||
console.log('criando orçamento');
|
||||
this.createPreOrder();
|
||||
}
|
||||
this.isLoadingPreOrder = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user