update pos consumer

This commit is contained in:
2026-03-29 18:07:10 +03:30
parent 1e2f94261e
commit c10623bc3f
86 changed files with 2935 additions and 385 deletions
@@ -1 +1,8 @@
<span>صفحه‌ی pos</span>
<div class="flex gap-4 grow overflow-hidden h-full">
<div class="grow h-full overflow-auto">
<pos-goods />
</div>
<div class="shrink-0 h-full">
<pos-order-section />
</div>
</div>
@@ -1,21 +1,13 @@
// import { CatalogRoleTagComponent } from '@/shared/catalog/roles';
import { PosStore } from '@/domains/pos/pos.store';
import { LayoutService } from '@/layout/service/layout.service';
import { Component, computed, inject } from '@angular/core';
import { Component } from '@angular/core';
import { PosGoodsComponent } from '../components/goods.component';
import { PosOrderSectionComponent } from '../components/order/order-section.component';
@Component({
selector: 'pos-landing',
templateUrl: './root.component.html',
host: { class: 'grow overflow-hidden' },
imports: [PosGoodsComponent, PosOrderSectionComponent],
})
export class PosLandingComponent {
private readonly store = inject(PosStore);
private readonly layoutService = inject(LayoutService);
private readonly posInfo = computed(() => this.store.entity());
ngOnInit() {
this.layoutService.setPanelInfo({
title: `فروشگاه ${this.posInfo()?.complex.name} - ${this.posInfo()?.name}`,
});
}
}
export class PosLandingComponent {}