Commit b186fd8c authored by RenanMontenegro3's avatar RenanMontenegro3

fix: alteração nas casas decimais"

parent 5a0a75e8
...@@ -34,25 +34,25 @@ ...@@ -34,25 +34,25 @@
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>LOA (m)</mat-label> <mat-label>LOA (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" formControlName="loa"> <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }" formControlName="loa">
<mat-error *ngIf="empForm.get('loa')?.invalid">{{ getErrorMessage('loa') }}</mat-error> <mat-error *ngIf="empForm.get('loa')?.invalid">{{ getErrorMessage('loa') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field small" appearance="outline"> <mat-form-field class="field small" appearance="outline">
<mat-label>Boca (m)</mat-label> <mat-label>Boca (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" formControlName="boca"> <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }" formControlName="boca">
<mat-error *ngIf="empForm.get('boca')?.invalid">{{ getErrorMessage('boca') }}</mat-error> <mat-error *ngIf="empForm.get('boca')?.invalid">{{ getErrorMessage('boca') }}</mat-error>
</mat-form-field> </mat-form-field>
</div> </div>
<div class="row"> <div class="row">
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Calado de Entrada</mat-label> <mat-label>Calado de Entrada</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="calado_entrada"> formControlName="calado_entrada">
<mat-error *ngIf="empForm.get('calado_entrada')?.invalid">{{ getErrorMessage('calado_entrada') }}</mat-error> <mat-error *ngIf="empForm.get('calado_entrada')?.invalid">{{ getErrorMessage('calado_entrada') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Calado de Saída</mat-label> <mat-label>Calado de Saída</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="calado_saida"> formControlName="calado_saida">
<mat-error *ngIf="empForm.get('calado_saida')?.invalid">{{ getErrorMessage('calado_saida') }}</mat-error> <mat-error *ngIf="empForm.get('calado_saida')?.invalid">{{ getErrorMessage('calado_saida') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -60,12 +60,13 @@ ...@@ -60,12 +60,13 @@
<div class="row"> <div class="row">
<mat-form-field class="field large" appearance="outline"> <mat-form-field class="field large" appearance="outline">
<mat-label>DWT (Atual)</mat-label> <mat-label>DWT (Atual)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" formControlName="dwt"> <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3
}" formControlName="dwt">
<mat-error *ngIf="empForm.get('dwt')?.invalid">{{ getErrorMessage('dwt') }}</mat-error> <mat-error *ngIf="empForm.get('dwt')?.invalid">{{ getErrorMessage('dwt') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Pontal (m)</mat-label> <mat-label>Pontal (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="pontal"> formControlName="pontal">
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{ getErrorMessage('pontal') }}</mat-error> <mat-error *ngIf="empForm.get('pontal')?.invalid">{{ getErrorMessage('pontal') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -85,7 +86,7 @@ ...@@ -85,7 +86,7 @@
<!-- Campo Mfold Quilha (m) só aparece se for Granel Líquido --> <!-- Campo Mfold Quilha (m) só aparece se for Granel Líquido -->
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Mfold Quilha (m)</mat-label> <mat-label>Mfold Quilha (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="mfold_quilha"> formControlName="mfold_quilha">
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ getErrorMessage('mfold_quilha') }}</mat-error> <mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ getErrorMessage('mfold_quilha') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -112,7 +113,7 @@ ...@@ -112,7 +113,7 @@
<div class="row"> <div class="row">
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Ponte Mfold (m)</mat-label> <mat-label>Ponte Mfold (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="ponte_mfold"> formControlName="ponte_mfold">
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error> <mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error>
</mat-form-field> </mat-form-field>
......
...@@ -34,12 +34,12 @@ ...@@ -34,12 +34,12 @@
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>LOA (m)</mat-label> <mat-label>LOA (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" formControlName="loa"> <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }" formControlName="loa">
<mat-error *ngIf="empForm.get('loa')?.invalid">{{ getErrorMessage('loa') }}</mat-error> <mat-error *ngIf="empForm.get('loa')?.invalid">{{ getErrorMessage('loa') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field small" appearance="outline"> <mat-form-field class="field small" appearance="outline">
<mat-label>Boca (m)</mat-label> <mat-label>Boca (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="boca"> formControlName="boca">
<mat-error *ngIf="empForm.get('boca')?.invalid">{{ getErrorMessage('boca') }}</mat-error> <mat-error *ngIf="empForm.get('boca')?.invalid">{{ getErrorMessage('boca') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
<div class="row"> <div class="row">
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Calado de Entrada</mat-label> <mat-label>Calado de Entrada</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="calado_entrada"> formControlName="calado_entrada">
<mat-error *ngIf="empForm.get('calado_entrada')?.invalid">{{ getErrorMessage('calado_entrada') }}</mat-error> <mat-error *ngIf="empForm.get('calado_entrada')?.invalid">{{ getErrorMessage('calado_entrada') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Calado de Saída</mat-label> <mat-label>Calado de Saída</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="calado_saida"> formControlName="calado_saida">
<mat-error *ngIf="empForm.get('calado_saida')?.invalid">{{ getErrorMessage('calado_saida') }}</mat-error> <mat-error *ngIf="empForm.get('calado_saida')?.invalid">{{ getErrorMessage('calado_saida') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -61,18 +61,18 @@ ...@@ -61,18 +61,18 @@
<div class="row"> <div class="row">
<mat-form-field class="field large" appearance="outline"> <mat-form-field class="field large" appearance="outline">
<mat-label>DWT (Atual)</mat-label> <mat-label>DWT (Atual)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" formControlName="dwt"> <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }" formControlName="dwt">
<mat-error *ngIf="empForm.get('dwt')?.invalid">{{ getErrorMessage('dwt') }}</mat-error> <mat-error *ngIf="empForm.get('dwt')?.invalid">{{ getErrorMessage('dwt') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Pontal (m)</mat-label> <mat-label>Pontal (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="pontal"> formControlName="pontal">
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{ getErrorMessage('pontal') }}</mat-error> <mat-error *ngIf="empForm.get('pontal')?.invalid">{{ getErrorMessage('pontal') }}</mat-error>
</mat-form-field> </mat-form-field>
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Ponte Mfold (m)</mat-label> <mat-label>Ponte Mfold (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="ponte_mfold"> formControlName="ponte_mfold">
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error> <mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<div class="row"> <div class="row">
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Mfold Quilha (m)</mat-label> <mat-label>Mfold Quilha (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="mfold_quilha"> formControlName="mfold_quilha">
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ getErrorMessage('mfold_quilha') }}</mat-error> <mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ getErrorMessage('mfold_quilha') }}</mat-error>
</mat-form-field> </mat-form-field>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>LOA</mat-label> <mat-label>LOA</mat-label>
<input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="loa" <input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="loa"
[currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" /> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}" />
<mat-error *ngIf="empForm.get('loa')?.invalid">{{ <mat-error *ngIf="empForm.get('loa')?.invalid">{{
getErrorMessage("loa") getErrorMessage("loa")
}}</mat-error> }}</mat-error>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<mat-form-field class="field small" appearance="outline"> <mat-form-field class="field small" appearance="outline">
<mat-label>Boca</mat-label> <mat-label>Boca</mat-label>
<input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="boca" <input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="boca"
[currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" /> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}" />
<mat-error *ngIf="empForm.get('boca')?.invalid">{{ <mat-error *ngIf="empForm.get('boca')?.invalid">{{
getErrorMessage("boca") getErrorMessage("boca")
}}</mat-error> }}</mat-error>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<div class="row"> <div class="row">
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Calado Máximo</mat-label> <mat-label>Calado Máximo</mat-label>
<input matInput type="text" formControlName="calado_max" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }"> <input matInput type="text" formControlName="calado_max" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }">
<mat-error *ngIf="empForm.get('calado_max')?.invalid"> <mat-error *ngIf="empForm.get('calado_max')?.invalid">
{{ getErrorMessage('calado_max') }} {{ getErrorMessage('calado_max') }}
</mat-error> </mat-error>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<mat-form-field class="field large" appearance="outline"> <mat-form-field class="field large" appearance="outline">
<mat-label>DWT</mat-label> <mat-label>DWT</mat-label>
<input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="dwt" <input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="dwt"
[currencyMask]="{ prefix: 'Tons ', thousands: '.', decimal: ',' }" /> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }" />
<mat-error *ngIf="empForm.get('dwt')?.invalid">{{ <mat-error *ngIf="empForm.get('dwt')?.invalid">{{
getErrorMessage("dwt") getErrorMessage("dwt")
}}</mat-error> }}</mat-error>
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Pontal</mat-label> <mat-label>Pontal</mat-label>
<input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="pontal" <input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="pontal"
[currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" /> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}" />
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{ <mat-error *ngIf="empForm.get('pontal')?.invalid">{{
getErrorMessage("pontal") getErrorMessage("pontal")
}}</mat-error> }}</mat-error>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Ponte Mfold</mat-label> <mat-label>Ponte Mfold</mat-label>
<input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="ponte_mfold" <input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="ponte_mfold"
[currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" /> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}" />
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ <mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{
getErrorMessage("ponte_mfold") getErrorMessage("ponte_mfold")
}}</mat-error> }}</mat-error>
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
<div class="row"> <div class="row">
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Ponte Mfold (m)</mat-label> <mat-label>Ponte Mfold (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="ponte_mfold"> formControlName="ponte_mfold">
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error> <mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error>
</mat-form-field> </mat-form-field>
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Mfold Quilha</mat-label> <mat-label>Mfold Quilha</mat-label>
<input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="mfold_quilha" <input matInput type="text" (keydown)="preventNegative($event)" min="0" formControlName="mfold_quilha"
[currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" /> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }" />
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ <mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{
getErrorMessage("mfold_quilha") getErrorMessage("mfold_quilha")
}}</mat-error> }}</mat-error>
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>LOA (m)</mat-label> <mat-label>LOA (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" <input matInput type="text"[currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}"
formControlName="loa" /> formControlName="loa" />
<mat-error *ngIf="empForm.get('loa')?.invalid">{{ <mat-error *ngIf="empForm.get('loa')?.invalid">{{
getErrorMessage("loa") getErrorMessage("loa")
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field class="field small" appearance="outline"> <mat-form-field class="field small" appearance="outline">
<mat-label>Boca (m)</mat-label> <mat-label>Boca (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" <input matInput type="text"[currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}"
formControlName="boca" /> formControlName="boca" />
<mat-error *ngIf="empForm.get('boca')?.invalid">{{ <mat-error *ngIf="empForm.get('boca')?.invalid">{{
getErrorMessage("boca") getErrorMessage("boca")
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<div class="row"> <div class="row">
<mat-form-field class="field large" appearance="outline"> <mat-form-field class="field large" appearance="outline">
<mat-label>DWT</mat-label> <mat-label>DWT</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }" <input matInput type="text" [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }"
formControlName="dwt" /> formControlName="dwt" />
<mat-error *ngIf="empForm.get('dwt')?.invalid">{{ <mat-error *ngIf="empForm.get('dwt')?.invalid">{{
getErrorMessage("dwt") getErrorMessage("dwt")
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Pontal (m)</mat-label> <mat-label>Pontal (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" <input matInput type="text"[currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}"
formControlName="pontal" /> formControlName="pontal" />
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{ <mat-error *ngIf="empForm.get('pontal')?.invalid">{{
getErrorMessage("pontal") getErrorMessage("pontal")
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</mat-form-field> </mat-form-field>
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Ponte Mfold (m)</mat-label> <mat-label>Ponte Mfold (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" <input matInput type="text"[currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}"
formControlName="ponte_mfold" /> formControlName="ponte_mfold" />
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ <mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{
getErrorMessage("ponte_mfold") getErrorMessage("ponte_mfold")
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<div class="row"> <div class="row">
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'"> <mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Mfold Quilha (m)</mat-label> <mat-label>Mfold Quilha (m)</mat-label>
<input matInput type="text" [currencyMask]="{ prefix: ' ', thousands: '.', decimal: ',' }" <input matInput type="text"[currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3}"
formControlName="mfold_quilha" /> formControlName="mfold_quilha" />
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ <mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{
getErrorMessage("mfold_quilha") getErrorMessage("mfold_quilha")
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
<mat-form-field class="field medium" appearance="outline"> <mat-form-field class="field medium" appearance="outline">
<mat-label>Calado Máximo</mat-label> <mat-label>Calado Máximo</mat-label>
<input matInput type="text" formControlName="calado_max" <input matInput type="text" formControlName="calado_max"
[currencyMask]="{ prefix: '', thousands: '.', decimal: ',' }"> [currencyMask]="{ prefix: '',thousands: '.', decimal: ',' ,precision: 3 }">
<mat-error *ngIf="empForm.get('calado_max')?.invalid"> <mat-error *ngIf="empForm.get('calado_max')?.invalid">
{{ getErrorMessage('calado_max') }} {{ getErrorMessage('calado_max') }}
</mat-error> </mat-error>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment