feat: update app version and build details in ngsw-config.json
fix: add baseZIndex to p-toast component in app.component.ts feat: enhance pagination support in saleInvoices list component refactor: modify saleInvoices service to accept pagination query feat: update API routes for saleInvoices to support pagination fix: adjust layout for consumer accounts in partner module style: improve layout for consumer business activities in partner module fix: update license info display in dashboard component fix: ensure price info card displays default values for discount and tax refactor: clean up gold payload form component fix: adjust root component layout for mobile view refactor: unify consumer account list configuration across modules chore: remove deprecated partner consumer account list config chore: remove deprecated superAdmin consumer account list config feat: add new consumer account list configuration style: add summary list styling in customize.scss chore: switch API base URL for TIS environment
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
IColumn,
|
||||
PageDataListComponent,
|
||||
} from '@/shared/components/pageDataList/page-data-list.component';
|
||||
import { superAdminConsumerAccountListConfig } from '@/shared/constants/list-configs';
|
||||
import { consumerAccountListConfig } from '@/shared/constants/list-configs';
|
||||
import { Component, inject, Input } from '@angular/core';
|
||||
import { IConsumerAccountResponse } from '../../models';
|
||||
import { AdminConsumerAccountsService } from '../../services/accounts.service';
|
||||
@@ -18,7 +18,7 @@ import { ConsumerAccountFormComponent } from './form.component';
|
||||
export class ConsumerAccountListComponent extends AbstractList<IConsumerAccountResponse> {
|
||||
@Input({ required: true }) consumerId!: string;
|
||||
@Input() fullHeight?: boolean;
|
||||
@Input() header: IColumn[] = superAdminConsumerAccountListConfig.columns;
|
||||
@Input() header: IColumn[] = consumerAccountListConfig.columns;
|
||||
private readonly service = inject(AdminConsumerAccountsService);
|
||||
|
||||
override setColumns(): void {
|
||||
|
||||
+10
-1
@@ -1,12 +1,14 @@
|
||||
import ISummary from '@/core/models/summary';
|
||||
|
||||
export interface IBusinessActivityRawResponse {
|
||||
id: string;
|
||||
name: string;
|
||||
economic_code: string;
|
||||
fiscal_id: string;
|
||||
partner_token: string;
|
||||
guild: ISummary;
|
||||
id: string;
|
||||
created_at: string;
|
||||
license_info: LicenseInfo;
|
||||
}
|
||||
export interface IBusinessActivityResponse extends IBusinessActivityRawResponse {}
|
||||
|
||||
@@ -17,3 +19,10 @@ export interface IBusinessActivityRequest {
|
||||
partner_token: string;
|
||||
guild_id: string;
|
||||
}
|
||||
|
||||
interface LicenseInfo {
|
||||
id: string;
|
||||
starts_at: string;
|
||||
expires_at: string;
|
||||
accounts_limit: number;
|
||||
}
|
||||
|
||||
+3
@@ -3,7 +3,10 @@
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="listKeyValue">
|
||||
<app-key-value label="عنوان" [value]="businessActivity()?.name" />
|
||||
<app-key-value label="کد اقتصادی" [value]="businessActivity()?.economic_code" />
|
||||
<app-key-value label="صنف" [value]="businessActivity()?.guild?.name" />
|
||||
<app-key-value label="تاریخ انقضا مجوز" [value]="businessActivity()?.license_info?.expires_at" type="date" />
|
||||
<app-key-value label="تعداد کاربران مجاز" [value]="businessActivity()?.license_info?.accounts_limit" />
|
||||
</div>
|
||||
</div>
|
||||
</app-card-data>
|
||||
|
||||
@@ -4,21 +4,24 @@
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="listKeyValue">
|
||||
<app-key-value label="نام مشتری" [value]="consumer()?.name" />
|
||||
<app-key-value label="وضعیت" [value]="consumer()?.status?.translate" />
|
||||
<app-key-value label="نوع مشتری" [value]="consumer()?.type?.translate" />
|
||||
|
||||
@if (consumer()?.type?.value === "LEGAL") {
|
||||
<app-key-value label="شناسه ملی" [value]="consumer()?.legal?.registration_code" />
|
||||
} @else {
|
||||
<app-key-value label="شماره موبایل" [value]="consumer()?.individual?.mobile_number" />
|
||||
<app-key-value label="کد ملی" [value]="consumer()?.individual?.national_code" />
|
||||
}
|
||||
<app-key-value label="وضعیت" [value]="consumer()?.status?.value === 'ACTIVE'" type="active" />
|
||||
</div>
|
||||
</div>
|
||||
</app-card-data>
|
||||
|
||||
<superAdmin-consumer-account-list [consumerId]="consumerId()" />
|
||||
<superAdmin-consumer-businessActivities-list [consumerId]="consumerId()" />
|
||||
<div class="summaryList">
|
||||
<superAdmin-consumer-businessActivities-list [consumerId]="consumerId()" />
|
||||
</div>
|
||||
<div class="summaryList">
|
||||
<superAdmin-consumer-account-list [consumerId]="consumerId()" />
|
||||
</div>
|
||||
|
||||
<superAdmin-consumer-form
|
||||
[(visible)]="editMode"
|
||||
|
||||
Reference in New Issue
Block a user