creating purchase order page

This commit is contained in:
2025-11-20 16:55:42 +01:00
parent 193bed2b1d
commit a240f42684
14 changed files with 490 additions and 3 deletions

View File

@@ -0,0 +1,75 @@
<nz-table #basicTable [nzData]="purchaseOrders" class="mr-7">
<thead>
<tr class="text-center">
<th>Numéro</th>
<th>Conditions de vente</th>
<th>Fournisseur</th>
<th>Produits</th>
<th>Action</th>
</tr>
</thead>
<tbody class="text-center">
@for (data of basicTable.data; track data) {
<tr>
<td></td>
<td></td>
<td></td>
<td>
<app-modal-button type="link" name="Voir les produits">
<div style="max-height: 400px; overflow-y: auto;">
<nz-table [nzData]="data.productOrder">
<thead>
<tr class="text-center">
<th>Nom</th>
<th>Prix</th>
<th>Quantité</th>
<th>Action</th>
</tr>
</thead>
<tbody class="text-center">
@for (product of data.productOrder; track product) {
<tr>
<td>{{product.product.name}}</td>
<td>{{product.price}}€</td>
<td>{{product.quantity}}</td>
<td>
<div style="justify-content: center; display: flex">
<app-modal-nav nameIcon="edit" name="Modification des conditions de vente" class="cursor-pointer">
<app-product-form></app-product-form>
</app-modal-nav>
<nz-divider nzType="vertical"></nz-divider>
<div>
<nz-icon nzType="delete" nzTheme="outline" (click)="delete()" class="cursor-pointer text-red-700"/>
</div>
</div>
</td>
</tr>
}
</tbody>
</nz-table>
</div>
</app-modal-button>
</td>
<td>
<div style="justify-content: center; display: flex">
<app-modal-nav nameIcon="edit" name="Modification des conditions de vente" class="cursor-pointer">
<app-purchase-order-form></app-purchase-order-form>
</app-modal-nav>
<nz-divider nzType="vertical"></nz-divider>
<div>
<nz-icon nzType="delete" nzTheme="outline" (click)="delete()" class="cursor-pointer text-red-700"/>
</div>
<nz-divider nzType="vertical"></nz-divider>
<div>
<nz-icon nzType="export" nzTheme="outline" (click)="export()" class="cursor-pointer text-green-700"/>
</div>
<nz-divider nzType="vertical"></nz-divider>
<div>
<nz-icon nzType="interaction" nzTheme="outline" (click)="transfert()" class="cursor-pointer text-blue-700"/>
</div>
</div>
</td>
</tr>
}
</tbody>
</nz-table>