add getall and delete function from quotation page
This commit is contained in:
@@ -1,22 +1,23 @@
|
||||
<nz-table #basicTable [nzData]="quotations" class="mr-7">
|
||||
<nz-table class="mr-7"
|
||||
[nzData]="quotations()"
|
||||
[nzLoading]="quotationsLoading()"
|
||||
[nzFrontPagination]="false"
|
||||
>
|
||||
<thead>
|
||||
<tr class="text-center">
|
||||
<th>Numéro de Devis</th>
|
||||
<th>Message</th>
|
||||
<th>Conditions de vente</th>
|
||||
<th>Fournisseur</th>
|
||||
<th>Produit</th>
|
||||
<th>Action</th>
|
||||
</tr>
|
||||
</thead >
|
||||
<tbody class="text-center">
|
||||
@for (data of basicTable.data; track data) {
|
||||
@for (quotation of quotations(); track quotation.id) {
|
||||
<tr>
|
||||
<td>{{data.quotationId}}</td>
|
||||
<td>{{data.quotationMessage}}</td>
|
||||
<td>{{data.quotationConditionsSale}}</td>
|
||||
<td>{{data.Supplier}}</td>
|
||||
|
||||
<td>{{quotation.id}}</td>
|
||||
<td>{{quotation.message}}</td>
|
||||
<td>{{quotation.conditionsSale}}</td>
|
||||
<td>
|
||||
<app-modal-button type="link" name="Voir les produits">
|
||||
<div style="max-height: 400px; overflow-y: auto;">
|
||||
@@ -31,25 +32,19 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="text-center">
|
||||
|
||||
@for (product of quotation.getQuotationProductDto; track product.productId) {
|
||||
<tr>
|
||||
<td>{{data.quotationProductReference}}</td>
|
||||
<td>{{data.quotationProductName}}</td>
|
||||
<td>XX.XX€</td>
|
||||
<td>{{data.quotationProductQuantity}}</td>
|
||||
<td>{{ product.productReferences }}</td>
|
||||
<td>{{ product.productName }}</td>
|
||||
<td>Price ???</td>
|
||||
<td>Quantité ???</td>
|
||||
<td>
|
||||
<div style="justify-content: center; display: flex">
|
||||
<app-modal-nav nameIcon="edit" name="Modification du produit" 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" class="cursor-pointer text-red-700"/>
|
||||
</div>
|
||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700"/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
}
|
||||
</tbody>
|
||||
</nz-table>
|
||||
</div>
|
||||
@@ -57,12 +52,16 @@
|
||||
</td>
|
||||
<td>
|
||||
<div style="justify-content: center; display: flex">
|
||||
<div>
|
||||
<nz-icon nzType="plus-circle" nzTheme="outline" class="cursor-pointer text-green-700" />
|
||||
</div>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<app-modal-nav nameIcon="edit" name="Modification du devis" class="cursor-pointer">
|
||||
<app-quotation-form></app-quotation-form>
|
||||
</app-modal-nav>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<div>
|
||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700"/>
|
||||
<nz-icon nzType="delete" nzTheme="outline" class="cursor-pointer text-red-700" (click)="delete(quotation.id)"/>
|
||||
</div>
|
||||
<nz-divider nzType="vertical"></nz-divider>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user