feat : finalisation et correctif couleur de affichage reception finie
This commit is contained in:
@@ -13,15 +13,14 @@
|
||||
:placeholder="0"
|
||||
:min="0"
|
||||
:max="10"
|
||||
wrapperClass="w-44"
|
||||
wrapperClass="w-44 flex-col"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<UiNumberInput
|
||||
label="Autres"
|
||||
v-model="otherQuantity"
|
||||
:disabled="!auth.isAdmin"
|
||||
wrapperClass="w-44"
|
||||
wrapperClass="w-44 flex-col"
|
||||
/>
|
||||
</div>
|
||||
</form>
|
||||
@@ -113,7 +112,7 @@ watch(
|
||||
|
||||
const existingOther = reception.bovineDetail
|
||||
const parsedOther =
|
||||
typeof existingOther === 'string' && existingOther.trim() !== ''
|
||||
typeof existingOther === 'string' && existingOther.trim() !== ''
|
||||
? Number(existingOther)
|
||||
: 0
|
||||
otherQuantity.value = Number.isFinite(parsedOther) ? parsedOther : 0
|
||||
|
||||
Reference in New Issue
Block a user