Commit b186fd8c authored by RenanMontenegro3's avatar RenanMontenegro3

fix: alteração nas casas decimais"

parent 5a0a75e8
......@@ -34,25 +34,25 @@
</mat-form-field>
<mat-form-field class="field medium" appearance="outline">
<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-form-field>
<mat-form-field class="field small" appearance="outline">
<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-form-field>
</div>
<div class="row">
<mat-form-field class="field medium" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('calado_entrada')?.invalid">{{ getErrorMessage('calado_entrada') }}</mat-error>
</mat-form-field>
<mat-form-field class="field medium" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('calado_saida')?.invalid">{{ getErrorMessage('calado_saida') }}</mat-error>
</mat-form-field>
......@@ -60,12 +60,13 @@
<div class="row">
<mat-form-field class="field large" appearance="outline">
<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-form-field>
<mat-form-field class="field medium" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{ getErrorMessage('pontal') }}</mat-error>
</mat-form-field>
......@@ -85,7 +86,7 @@
<!-- 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-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">
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ getErrorMessage('mfold_quilha') }}</mat-error>
</mat-form-field>
......@@ -112,7 +113,7 @@
<div class="row">
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<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">
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error>
</mat-form-field>
......
......@@ -34,12 +34,12 @@
</mat-form-field>
<mat-form-field class="field medium" appearance="outline">
<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-form-field>
<mat-form-field class="field small" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('boca')?.invalid">{{ getErrorMessage('boca') }}</mat-error>
</mat-form-field>
......@@ -47,13 +47,13 @@
<div class="row">
<mat-form-field class="field medium" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('calado_entrada')?.invalid">{{ getErrorMessage('calado_entrada') }}</mat-error>
</mat-form-field>
<mat-form-field class="field medium" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('calado_saida')?.invalid">{{ getErrorMessage('calado_saida') }}</mat-error>
</mat-form-field>
......@@ -61,18 +61,18 @@
<div class="row">
<mat-form-field class="field large" appearance="outline">
<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-form-field>
<mat-form-field class="field medium" appearance="outline">
<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">
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{ getErrorMessage('pontal') }}</mat-error>
</mat-form-field>
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<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">
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error>
</mat-form-field>
......@@ -80,7 +80,7 @@
<div class="row">
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<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">
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{ getErrorMessage('mfold_quilha') }}</mat-error>
</mat-form-field>
......
......@@ -31,7 +31,7 @@
<mat-form-field class="field medium" appearance="outline">
<mat-label>LOA</mat-label>
<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">{{
getErrorMessage("loa")
}}</mat-error>
......@@ -39,7 +39,7 @@
<mat-form-field class="field small" appearance="outline">
<mat-label>Boca</mat-label>
<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">{{
getErrorMessage("boca")
}}</mat-error>
......@@ -48,7 +48,7 @@
<div class="row">
<mat-form-field class="field medium" appearance="outline">
<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">
{{ getErrorMessage('calado_max') }}
</mat-error>
......@@ -58,7 +58,7 @@
<mat-form-field class="field large" appearance="outline">
<mat-label>DWT</mat-label>
<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">{{
getErrorMessage("dwt")
}}</mat-error>
......@@ -66,7 +66,7 @@
<mat-form-field class="field medium" appearance="outline">
<mat-label>Pontal</mat-label>
<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">{{
getErrorMessage("pontal")
}}</mat-error>
......@@ -74,7 +74,7 @@
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Ponte Mfold</mat-label>
<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">{{
getErrorMessage("ponte_mfold")
}}</mat-error>
......@@ -83,7 +83,7 @@
<div class="row">
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<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">
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{ getErrorMessage('ponte_mfold') }}</mat-error>
</mat-form-field>
......@@ -92,7 +92,7 @@
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<mat-label>Mfold Quilha</mat-label>
<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">{{
getErrorMessage("mfold_quilha")
}}</mat-error>
......
......@@ -31,7 +31,7 @@
</mat-form-field>
<mat-form-field class="field medium" appearance="outline">
<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" />
<mat-error *ngIf="empForm.get('loa')?.invalid">{{
getErrorMessage("loa")
......@@ -39,7 +39,7 @@
</mat-form-field>
<mat-form-field class="field small" appearance="outline">
<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" />
<mat-error *ngIf="empForm.get('boca')?.invalid">{{
getErrorMessage("boca")
......@@ -50,7 +50,7 @@
<div class="row">
<mat-form-field class="field large" appearance="outline">
<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" />
<mat-error *ngIf="empForm.get('dwt')?.invalid">{{
getErrorMessage("dwt")
......@@ -58,7 +58,7 @@
</mat-form-field>
<mat-form-field class="field medium" appearance="outline">
<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" />
<mat-error *ngIf="empForm.get('pontal')?.invalid">{{
getErrorMessage("pontal")
......@@ -66,7 +66,7 @@
</mat-form-field>
<mat-form-field class="field small" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<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" />
<mat-error *ngIf="empForm.get('ponte_mfold')?.invalid">{{
getErrorMessage("ponte_mfold")
......@@ -77,7 +77,7 @@
<div class="row">
<mat-form-field class="field large" appearance="outline" *ngIf="selectedCategoriaNome === 'Granel Líquido'">
<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" />
<mat-error *ngIf="empForm.get('mfold_quilha')?.invalid">{{
getErrorMessage("mfold_quilha")
......@@ -87,7 +87,7 @@
<mat-form-field class="field medium" appearance="outline">
<mat-label>Calado Máximo</mat-label>
<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">
{{ getErrorMessage('calado_max') }}
</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