update pos consumer
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user