feat: update POS and account components to use new field names and improve form handling
This commit is contained in:
@@ -33,7 +33,7 @@ export class ConsumerPosListComponent extends AbstractList<IPosResponse> {
|
||||
override setColumns(): void {
|
||||
this.columns = [
|
||||
...this.header.filter((header) =>
|
||||
['name', 'status', 'pos_type'].includes(header.field as string),
|
||||
['name', 'account', 'pos_type', 'status'].includes(header.field as string),
|
||||
),
|
||||
{
|
||||
field: 'complex.business_activity',
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ import ISummary from '@/core/models/summary';
|
||||
export interface IPosRawResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
serial: string;
|
||||
serial_number: string;
|
||||
model?: string;
|
||||
status: string;
|
||||
pos_type: string;
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="grid grid-cols-3 gap-4 items-center">
|
||||
<app-key-value label="عنوان" [value]="pos()?.name" />
|
||||
<app-key-value label="شماره سریال" [value]="pos()?.serial" />
|
||||
<app-key-value label="نوع پایانه" [value]="pos()?.pos_type" />
|
||||
<app-key-value label="شماره سریال" [value]="pos()?.serial_number" />
|
||||
<app-key-value label="نوع دستگاه" [value]="pos()?.device?.name" />
|
||||
<app-key-value label="مدل دستگاه" [value]="pos()?.model" />
|
||||
<app-key-value label="ارایهدهنده" [value]="pos()?.provider?.name" />
|
||||
|
||||
Reference in New Issue
Block a user