removed some unnecessary data
This commit is contained in:
@@ -1,16 +1,6 @@
|
|||||||
<form nz-form nzLayout="horizontal" [formGroup]="QuotationForm" (ngSubmit)="submitForm()">
|
<form nz-form nzLayout="horizontal" [formGroup]="QuotationForm" (ngSubmit)="submitForm()">
|
||||||
<nz-form-item nz-flex>
|
<nz-form-item nz-flex>
|
||||||
<nz-form-label nzSpan="9" nzRequired>
|
<nz-form-label nzSpan="9" nzRequired>
|
||||||
Quantité
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12" nzErrorTip="Ce champ est requis">
|
|
||||||
<input nz-input type="number" placeholder="Quantité" formControlName="quantity">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
ID Devis
|
ID Devis
|
||||||
</nz-form-label>
|
</nz-form-label>
|
||||||
|
|
||||||
@@ -30,7 +20,7 @@
|
|||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
<nz-form-item nz-flex>
|
||||||
<nz-form-label nzSpan="9">
|
<nz-form-label nzSpan="9" nzRequired>
|
||||||
Conditions de vente
|
Conditions de vente
|
||||||
</nz-form-label>
|
</nz-form-label>
|
||||||
|
|
||||||
@@ -40,112 +30,12 @@
|
|||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
<nz-form-item nz-flex>
|
||||||
<nz-form-label nzSpan="9">
|
<nz-form-label nzSpan="9" nzRequired>
|
||||||
ID Produit
|
Fournisseur
|
||||||
</nz-form-label>
|
</nz-form-label>
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
<nz-form-control nzSpan="12">
|
||||||
<input nz-input type="number" placeholder="ID Produit" formControlName="productId">
|
<input nz-input placeholder="Fournisseur" formControlName="quotationProvider">
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Référence produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="Référence produit" formControlName="productReferences">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Nom du produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input placeholder="Nom du produit" formControlName="productName">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Durée produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="Durée produit" formControlName="productDuration">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Calibre produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="Calibre produit" formControlName="productCaliber">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Numéro d'approbation
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="Numéro d'approbation" formControlName="productApprovalNumber">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Poids produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="Poids produit" formControlName="productWeight">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
NEC Produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="NEC Produit" formControlName="productNec">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Image produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input placeholder="Image produit" formControlName="productImage">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Lien produit
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input placeholder="Lien produit" formControlName="productLink">
|
|
||||||
</nz-form-control>
|
|
||||||
</nz-form-item>
|
|
||||||
|
|
||||||
<nz-form-item nz-flex>
|
|
||||||
<nz-form-label nzSpan="9">
|
|
||||||
Quantité minimale
|
|
||||||
</nz-form-label>
|
|
||||||
|
|
||||||
<nz-form-control nzSpan="12">
|
|
||||||
<input nz-input type="number" placeholder="Quantité minimale" formControlName="productMinimalQuantity">
|
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</nz-form-item>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -16,29 +16,16 @@ import {NzDatePickerComponent} from "ng-zorro-antd/date-picker";
|
|||||||
NzColDirective,
|
NzColDirective,
|
||||||
NzFlexDirective,
|
NzFlexDirective,
|
||||||
NzFormDirective,
|
NzFormDirective,
|
||||||
ReactiveFormsModule,
|
ReactiveFormsModule
|
||||||
NzDatePickerComponent
|
|
||||||
],
|
],
|
||||||
templateUrl: './quotation-form.html',
|
templateUrl: './quotation-form.html',
|
||||||
styleUrl: './quotation-form.css',
|
styleUrl: './quotation-form.css',
|
||||||
})
|
})
|
||||||
export class QuotationForm {
|
export class QuotationForm {
|
||||||
QuotationForm: FormGroup = new FormGroup({
|
QuotationForm: FormGroup = new FormGroup({
|
||||||
quantity: new FormControl<number>(null, [Validators.required]),
|
|
||||||
quotationId: new FormControl<number>(null),
|
quotationId: new FormControl<number>(null),
|
||||||
quotationMessage: new FormControl<string>(null),
|
quotationMessage: new FormControl<string>(null),
|
||||||
quotationConditionsSale: new FormControl<string>(null),
|
quotationConditionsSale: new FormControl<string>(null),
|
||||||
productId: new FormControl<number>(null),
|
|
||||||
productReferences: new FormControl<number>(null),
|
|
||||||
productName: new FormControl<string>(null),
|
|
||||||
productDuration: new FormControl<number>(null),
|
|
||||||
productCaliber: new FormControl<number>(null),
|
|
||||||
productApprovalNumber: new FormControl<number>(null),
|
|
||||||
productWeight: new FormControl<number>(null),
|
|
||||||
productNec: new FormControl<number>(null),
|
|
||||||
productImage: new FormControl<string>(null),
|
|
||||||
productLink: new FormControl<string>(null),
|
|
||||||
productMinimalQuantity: new FormControl<number>(null)
|
|
||||||
})
|
})
|
||||||
|
|
||||||
submitForm() {
|
submitForm() {
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
<nz-table #basicTable [nzData]="quotations" class="mr-7">
|
<nz-table #basicTable [nzData]="quotations" class="mr-7">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-center">
|
<tr class="text-center">
|
||||||
<th>ID Devis</th>
|
<th>Numéro de Devis</th>
|
||||||
<th>Nom du produit</th>
|
|
||||||
<th>Quantité</th>
|
|
||||||
<th>Message</th>
|
<th>Message</th>
|
||||||
<th>Conditions de vente</th>
|
<th>Conditions de vente</th>
|
||||||
<th>Détails produit</th>
|
<th>Fournisseur</th>
|
||||||
|
<th>Produit</th>
|
||||||
<th>Action</th>
|
<th>Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead >
|
</thead >
|
||||||
@@ -14,27 +13,31 @@
|
|||||||
@for (data of basicTable.data; track data) {
|
@for (data of basicTable.data; track data) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{data.quotationId}}</td>
|
<td>{{data.quotationId}}</td>
|
||||||
<td>{{data.productName}}</td>
|
|
||||||
<td>{{data.quantity}}</td>
|
|
||||||
<td>{{data.quotationMessage}}</td>
|
<td>{{data.quotationMessage}}</td>
|
||||||
<td>{{data.quotationConditionsSale}}</td>
|
<td>{{data.quotationConditionsSale}}</td>
|
||||||
|
<td>{{data.Supplier}}</td>
|
||||||
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<app-modal-button type="link" name="Voir détails">
|
<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;">
|
||||||
<table style="width: 100%; text-align: left;">
|
<nz-table>
|
||||||
<tbody>
|
<thead>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">ID Produit:</th><td style="padding: 8px;">{{data.productId}}</td></tr>
|
<tr class="text-center">
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Référence:</th><td style="padding: 8px;">{{data.productReferences}}</td></tr>
|
<th>Réference</th>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Durée:</th><td style="padding: 8px;">{{data.productDuration}}</td></tr>
|
<th>Nom</th>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Calibre:</th><td style="padding: 8px;">{{data.productCaliber}}</td></tr>
|
<th>Quantité</th>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Numéro d'approbation:</th><td style="padding: 8px;">{{data.productApprovalNumber}}</td></tr>
|
</tr>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Poids:</th><td style="padding: 8px;">{{data.productWeight}}</td></tr>
|
</thead>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">NEC:</th><td style="padding: 8px;">{{data.productNec}}</td></tr>
|
<tbody class="text-center">
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Quantité min:</th><td style="padding: 8px;">{{data.productMinimalQuantity}}</td></tr>
|
<tr>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Image:</th><td style="padding: 8px;">{{data.productImage}}</td></tr>
|
<td>{{data.quotationProductReference}}</td>
|
||||||
<tr><th style="padding: 8px; font-weight: 600;">Lien:</th><td style="padding: 8px;">{{data.productLink}}</td></tr>
|
<td>{{data.quotationProductName}}</td>
|
||||||
|
<td>{{data.quotationProductQuantity}}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</nz-table>
|
||||||
</div>
|
</div>
|
||||||
</app-modal-button>
|
</app-modal-button>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@@ -7,21 +7,13 @@ import {NzIconDirective} from "ng-zorro-antd/icon";
|
|||||||
import {QuotationForm} from "../quotation-form/quotation-form";
|
import {QuotationForm} from "../quotation-form/quotation-form";
|
||||||
|
|
||||||
interface QuotationInfo {
|
interface QuotationInfo {
|
||||||
quantity: number;
|
|
||||||
quotationId: number;
|
quotationId: number;
|
||||||
quotationMessage?: string;
|
quotationMessage?: string;
|
||||||
quotationConditionsSale?: string;
|
quotationConditionsSale?: string;
|
||||||
productId: number;
|
quotationProductReference: string;
|
||||||
productReferences: number;
|
quotationProductName: string;
|
||||||
productName?: string;
|
quotationProductQuantity?: number;
|
||||||
productDuration: number;
|
Supplier?: string;
|
||||||
productCaliber: number;
|
|
||||||
productApprovalNumber: number;
|
|
||||||
productWeight: number;
|
|
||||||
productNec: number;
|
|
||||||
productImage?: string;
|
|
||||||
productLink?: string;
|
|
||||||
productMinimalQuantity: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -41,55 +33,31 @@ interface QuotationInfo {
|
|||||||
export class QuotationTable {
|
export class QuotationTable {
|
||||||
quotations: QuotationInfo[] = [
|
quotations: QuotationInfo[] = [
|
||||||
{
|
{
|
||||||
quantity: 10,
|
|
||||||
quotationId: 101,
|
quotationId: 101,
|
||||||
quotationMessage: 'Livraison urgente demandée',
|
quotationMessage: 'Livraison urgente demandée',
|
||||||
quotationConditionsSale: 'Paiement à 30 jours',
|
quotationConditionsSale: 'Paiement à 30 jours',
|
||||||
productId: 5001,
|
quotationProductReference: 'DLV-1000',
|
||||||
productReferences: 123456,
|
quotationProductName: 'Produit1',
|
||||||
productName: 'Feu d\'artifice A',
|
quotationProductQuantity: 5,
|
||||||
productDuration: 45.5,
|
Supplier: 'fireworkssupplier&Co'
|
||||||
productCaliber: 30,
|
|
||||||
productApprovalNumber: 998877,
|
|
||||||
productWeight: 1.5,
|
|
||||||
productNec: 0.5,
|
|
||||||
productImage: 'url_to_image_a',
|
|
||||||
productLink: 'http://example.com/product/a',
|
|
||||||
productMinimalQuantity: 5
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
quantity: 20,
|
|
||||||
quotationId: 102,
|
quotationId: 102,
|
||||||
quotationMessage: 'Livraison standard',
|
quotationMessage: 'Livraison standard',
|
||||||
quotationConditionsSale: 'Payé d\'avance',
|
quotationConditionsSale: 'Payé d\'avance',
|
||||||
productId: 5002,
|
quotationProductReference: 'DLV-1001',
|
||||||
productReferences: 654321,
|
quotationProductName: 'Produit2',
|
||||||
productName: 'Feu d\'artifice B',
|
quotationProductQuantity: 6,
|
||||||
productDuration: 60.0,
|
Supplier: 'fireworkssupplier&Co'
|
||||||
productCaliber: 50,
|
|
||||||
productApprovalNumber: 112233,
|
|
||||||
productWeight: 2.0,
|
|
||||||
productNec: 0.8,
|
|
||||||
productImage: 'url_to_image_b',
|
|
||||||
productLink: 'http://example.com/product/b',
|
|
||||||
productMinimalQuantity: 10
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
quantity: 5,
|
|
||||||
quotationId: 103,
|
quotationId: 103,
|
||||||
quotationMessage: null,
|
quotationMessage: 'Livraison rapide',
|
||||||
quotationConditionsSale: 'Paiement à 15 jours',
|
quotationConditionsSale: 'Paiement à 15 jours',
|
||||||
productId: 5003,
|
quotationProductReference: 'DLV-1002',
|
||||||
productReferences: 789012,
|
quotationProductName: 'Produit3',
|
||||||
productName: 'Feu d\'artifice C',
|
quotationProductQuantity: 7,
|
||||||
productDuration: 30.0,
|
Supplier: 'fireworkssupplier&Co'
|
||||||
productCaliber: 25,
|
|
||||||
productApprovalNumber: 445566,
|
|
||||||
productWeight: 1.0,
|
|
||||||
productNec: 0.3,
|
|
||||||
productImage: null,
|
|
||||||
productLink: null,
|
|
||||||
productMinimalQuantity: 1
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,9 +9,7 @@ import {QuotationTable} from "../../components/quotation-table/quotation-table";
|
|||||||
@Component({
|
@Component({
|
||||||
selector: 'app-quotation',
|
selector: 'app-quotation',
|
||||||
imports: [
|
imports: [
|
||||||
DelivereryNoteTable,
|
|
||||||
ModalButton,
|
ModalButton,
|
||||||
DelivereryNoteForm,
|
|
||||||
Search,
|
Search,
|
||||||
QuotationForm,
|
QuotationForm,
|
||||||
QuotationTable
|
QuotationTable
|
||||||
|
|||||||
Reference in New Issue
Block a user