fixed errors
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<form nz-form nzLayout="horizontal" [formGroup]="QuotationForm" (ngSubmit)="submitForm()">
|
||||
<form nz-form nzLayout="horizontal" [formGroup]="QuotationForm">
|
||||
<nz-form-item nz-flex>
|
||||
<nz-form-label nzSpan="9">
|
||||
Message du devis
|
||||
@@ -18,15 +18,5 @@
|
||||
<input nz-input placeholder="Conditions de vente" formControlName="quotationConditionsSale">
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
|
||||
<nz-form-item nz-flex>
|
||||
<nz-form-label nzSpan="9" nzRequired>
|
||||
Fournisseur
|
||||
</nz-form-label>
|
||||
|
||||
<nz-form-control nzSpan="12">
|
||||
<input nz-input placeholder="Fournisseur" formControlName="quotationProvider">
|
||||
</nz-form-control>
|
||||
</nz-form-item>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -26,15 +26,4 @@ export class QuotationForm {
|
||||
quotationMessage: new FormControl<string>(null),
|
||||
quotationConditionsSale: new FormControl<string>(null),
|
||||
})
|
||||
|
||||
submitForm() {
|
||||
// Pour annuler si le formulaire est invalide
|
||||
if (this.QuotationForm.invalid) return;
|
||||
|
||||
// Pour obtenir la valeur du formulaire
|
||||
console.log(this.QuotationForm.getRawValue())
|
||||
|
||||
// Pour vider le formulaire
|
||||
this.QuotationForm.reset()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<nz-table
|
||||
[nzData]="products()"
|
||||
[nzFrontPagination]="false"
|
||||
[nzLoading]="productsLoading()"
|
||||
(nzCurrentPageDataChange)="onCurrentPageDataChange($event)"
|
||||
>
|
||||
<thead>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
<div class="flex mt-2">
|
||||
<app-modal-button type="primary" name="Créer un devis">
|
||||
<app-quotation-form></app-quotation-form>
|
||||
</app-modal-button>
|
||||
|
||||
<div class="ml-95 w-150">
|
||||
<app-search></app-search>
|
||||
</div>
|
||||
|
||||
@@ -1,17 +1,11 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {Search} from "../../components/search/search";
|
||||
import {DelivereryNoteTable} from "../../components/deliverery-note-table/deliverery-note-table";
|
||||
import {ModalButton} from "../../components/modal-button/modal-button";
|
||||
import {DelivereryNoteForm} from "../../components/deliverery-note-form/deliverery-note-form";
|
||||
import {QuotationForm} from "../../components/quotation-form/quotation-form";
|
||||
import {QuotationTable} from "../../components/quotation-table/quotation-table";
|
||||
|
||||
@Component({
|
||||
selector: 'app-quotation',
|
||||
imports: [
|
||||
ModalButton,
|
||||
Search,
|
||||
QuotationForm,
|
||||
QuotationTable
|
||||
],
|
||||
templateUrl: './quotation.html',
|
||||
|
||||
Reference in New Issue
Block a user