created quotation page
This commit is contained in:
@@ -17,7 +17,6 @@
|
|||||||
<td>{{data.quotationConditionsSale}}</td>
|
<td>{{data.quotationConditionsSale}}</td>
|
||||||
<td>{{data.Supplier}}</td>
|
<td>{{data.Supplier}}</td>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<app-modal-button type="link" name="Voir les produits">
|
<app-modal-button type="link" name="Voir les produits">
|
||||||
<div style="max-height: 400px; overflow-y: auto;">
|
<div style="max-height: 400px; overflow-y: auto;">
|
||||||
@@ -27,14 +26,27 @@
|
|||||||
<th>Réference</th>
|
<th>Réference</th>
|
||||||
<th>Nom</th>
|
<th>Nom</th>
|
||||||
<th>Quantité</th>
|
<th>Quantité</th>
|
||||||
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-center">
|
<tbody class="text-center">
|
||||||
<tr>
|
|
||||||
<td>{{data.quotationProductReference}}</td>
|
<tr>
|
||||||
<td>{{data.quotationProductName}}</td>
|
<td>{{data.quotationProductReference}}</td>
|
||||||
<td>{{data.quotationProductQuantity}}</td>
|
<td>{{data.quotationProductName}}</td>
|
||||||
</tr>
|
<td>{{data.quotationProductQuantity}}</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>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</nz-table>
|
</nz-table>
|
||||||
|
|||||||
@@ -5,11 +5,17 @@ import {ModalNav} from "../modal-nav/modal-nav";
|
|||||||
import {NzDividerComponent} from "ng-zorro-antd/divider";
|
import {NzDividerComponent} from "ng-zorro-antd/divider";
|
||||||
import {NzIconDirective} from "ng-zorro-antd/icon";
|
import {NzIconDirective} from "ng-zorro-antd/icon";
|
||||||
import {QuotationForm} from "../quotation-form/quotation-form";
|
import {QuotationForm} from "../quotation-form/quotation-form";
|
||||||
|
import {ProductTable} from "../product-table/product-table";
|
||||||
|
|
||||||
interface QuotationInfo {
|
interface QuotationInfo {
|
||||||
quotationId: number;
|
quotationId: number;
|
||||||
quotationMessage?: string;
|
quotationMessage?: string;
|
||||||
quotationConditionsSale?: string;
|
quotationConditionsSale?: string;
|
||||||
|
quotationProduct: [
|
||||||
|
{ quotationProductReference: string; },
|
||||||
|
{ quotationProductName: string; },
|
||||||
|
{ quotationProductQuantity?: number; },
|
||||||
|
],
|
||||||
quotationProductReference: string;
|
quotationProductReference: string;
|
||||||
quotationProductName: string;
|
quotationProductName: string;
|
||||||
quotationProductQuantity?: number;
|
quotationProductQuantity?: number;
|
||||||
@@ -36,28 +42,43 @@ export class QuotationTable {
|
|||||||
quotationId: 101,
|
quotationId: 101,
|
||||||
quotationMessage: 'Livraison urgente demandée',
|
quotationMessage: 'Livraison urgente demandée',
|
||||||
quotationConditionsSale: 'Paiement à 30 jours',
|
quotationConditionsSale: 'Paiement à 30 jours',
|
||||||
|
quotationProduct: [
|
||||||
|
{ quotationProductReference: 'DLV-1000' },
|
||||||
|
{ quotationProductName: 'Produit1'},
|
||||||
|
{ quotationProductQuantity: 5 },
|
||||||
|
],
|
||||||
quotationProductReference: 'DLV-1000',
|
quotationProductReference: 'DLV-1000',
|
||||||
quotationProductName: 'Produit1',
|
quotationProductName: 'Produit1',
|
||||||
quotationProductQuantity: 5,
|
quotationProductQuantity: 5,
|
||||||
Supplier: 'fireworkssupplier&Co'
|
Supplier: 'Fireworkssupplier&Co'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
quotationId: 102,
|
quotationId: 102,
|
||||||
quotationMessage: 'Livraison standard',
|
quotationMessage: 'Livraison standard',
|
||||||
quotationConditionsSale: 'Payé d\'avance',
|
quotationConditionsSale: 'Payé d\'avance',
|
||||||
|
quotationProduct: [
|
||||||
|
{ quotationProductReference: 'DLV-1001' },
|
||||||
|
{ quotationProductName: 'Produit2'},
|
||||||
|
{ quotationProductQuantity: 6 },
|
||||||
|
],
|
||||||
quotationProductReference: 'DLV-1001',
|
quotationProductReference: 'DLV-1001',
|
||||||
quotationProductName: 'Produit2',
|
quotationProductName: 'Produit2',
|
||||||
quotationProductQuantity: 6,
|
quotationProductQuantity: 6,
|
||||||
Supplier: 'fireworkssupplier&Co'
|
Supplier: 'Fireworkssupplier&Co'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
quotationId: 103,
|
quotationId: 103,
|
||||||
quotationMessage: 'Livraison rapide',
|
quotationMessage: 'Livraison rapide',
|
||||||
quotationConditionsSale: 'Paiement à 15 jours',
|
quotationConditionsSale: 'Paiement à 15 jours',
|
||||||
|
quotationProduct: [
|
||||||
|
{ quotationProductReference: 'DLV-1003' },
|
||||||
|
{ quotationProductName: 'Produit3'},
|
||||||
|
{ quotationProductQuantity: 7 },
|
||||||
|
],
|
||||||
quotationProductReference: 'DLV-1002',
|
quotationProductReference: 'DLV-1002',
|
||||||
quotationProductName: 'Produit3',
|
quotationProductName: 'Produit3',
|
||||||
quotationProductQuantity: 7,
|
quotationProductQuantity: 7,
|
||||||
Supplier: 'fireworkssupplier&Co'
|
Supplier: 'Fireworkssupplier&Co'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<app-search></app-search>
|
<app-search></app-search>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
voir prix dans les produits + suppr id devis dans form et dans bon de livraison form
|
||||||
<div class="mt-1">
|
<div class="mt-1">
|
||||||
<app-quotation-table></app-quotation-table>
|
<app-quotation-table></app-quotation-table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user