fixed errors of price view in supplier page
This commit is contained in:
@@ -26,21 +26,21 @@
|
||||
<td>{{ supplier.deliveryDelay }} jours</td>
|
||||
<td>
|
||||
<app-modal-button type="link" [name]="'Voir les produits'">
|
||||
<nz-table [nzData]="supplier.products" [nzFrontPagination]="false">
|
||||
<nz-table [nzData]="suppliers()"
|
||||
[nzFrontPagination]="false">
|
||||
<thead>
|
||||
<tr style="text-align: center">
|
||||
<th>Produits</th>
|
||||
<th>Nom</th>
|
||||
<th>Produit</th>
|
||||
<th>Référence</th>
|
||||
<th>Prix</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody style="text-align: center">
|
||||
@for (product of supplier.products; track product.id) {
|
||||
@for (product of supplier.prices; track product.id) {
|
||||
<tr>
|
||||
<td>{{ product.name }}</td>
|
||||
<td>{{ product.references }}</td>
|
||||
<td>Price ???</td>
|
||||
<td>{{ product.productName }}</td>
|
||||
<td>{{ product.productReferences }}</td>
|
||||
<td>{{ product.sellingPrice }}€</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
||||
@@ -5,7 +5,7 @@ import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||
import {NzTableComponent} from "ng-zorro-antd/table";
|
||||
import {ModalButton} from "../modal-button/modal-button";
|
||||
import {SupplierForm} from "../supplier-form/supplier-form";
|
||||
import {GetSupplierDto, SuppliersService} from "../../services/api";
|
||||
import {GetPriceDto, GetSupplierDto, SuppliersService} from "../../services/api";
|
||||
import {NzNotificationService} from "ng-zorro-antd/notification";
|
||||
import {firstValueFrom} from "rxjs";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ export interface GetPriceDto {
|
||||
supplierEmail?: string | null;
|
||||
supplierPhone?: string | null;
|
||||
supplierAddress?: string | null;
|
||||
supplierZipCode?: number;
|
||||
supplierZipCode?: string | null;
|
||||
supplierCity?: string | null;
|
||||
supplierDeliveryDelay?: number;
|
||||
productId?: number;
|
||||
@@ -25,7 +25,7 @@ export interface GetPriceDto {
|
||||
productName?: string | null;
|
||||
productDuration?: number;
|
||||
productCaliber?: number;
|
||||
productApprovalNumber?: number;
|
||||
productApprovalNumber?: string | null;
|
||||
productWeight?: number;
|
||||
productNec?: number;
|
||||
productImage?: string | null;
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
import { GetPriceDto } from './get-price-dto';
|
||||
import { GetProductDto } from './get-product-dto';
|
||||
|
||||
|
||||
@@ -20,5 +21,6 @@ export interface GetSupplierDto {
|
||||
city?: string | null;
|
||||
deliveryDelay?: number;
|
||||
products?: Array<GetProductDto> | null;
|
||||
prices?: Array<GetPriceDto> | null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user