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-item nz-flex>
|
||||||
<nz-form-label nzSpan="9">
|
<nz-form-label nzSpan="9">
|
||||||
Message du devis
|
Message du devis
|
||||||
@@ -18,15 +18,5 @@
|
|||||||
<input nz-input placeholder="Conditions de vente" formControlName="quotationConditionsSale">
|
<input nz-input placeholder="Conditions de vente" formControlName="quotationConditionsSale">
|
||||||
</nz-form-control>
|
</nz-form-control>
|
||||||
</nz-form-item>
|
</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>
|
</form>
|
||||||
|
|
||||||
|
|||||||
@@ -26,15 +26,4 @@ export class QuotationForm {
|
|||||||
quotationMessage: new FormControl<string>(null),
|
quotationMessage: new FormControl<string>(null),
|
||||||
quotationConditionsSale: 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
|
<nz-table
|
||||||
[nzData]="products()"
|
[nzData]="products()"
|
||||||
[nzFrontPagination]="false"
|
[nzFrontPagination]="false"
|
||||||
|
[nzLoading]="productsLoading()"
|
||||||
(nzCurrentPageDataChange)="onCurrentPageDataChange($event)"
|
(nzCurrentPageDataChange)="onCurrentPageDataChange($event)"
|
||||||
>
|
>
|
||||||
<thead>
|
<thead>
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
<div class="flex mt-2">
|
<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">
|
<div class="ml-95 w-150">
|
||||||
<app-search></app-search>
|
<app-search></app-search>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,17 +1,11 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import {Search} from "../../components/search/search";
|
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";
|
import {QuotationTable} from "../../components/quotation-table/quotation-table";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-quotation',
|
selector: 'app-quotation',
|
||||||
imports: [
|
imports: [
|
||||||
ModalButton,
|
|
||||||
Search,
|
Search,
|
||||||
QuotationForm,
|
|
||||||
QuotationTable
|
QuotationTable
|
||||||
],
|
],
|
||||||
templateUrl: './quotation.html',
|
templateUrl: './quotation.html',
|
||||||
|
|||||||
Reference in New Issue
Block a user