FIX:Registro de concepto
This commit is contained in:
parent
7a2b5f8400
commit
1fc3e76027
@ -225,7 +225,6 @@ const handleSubmit = () => {
|
||||
:id="$t('concept.legal')"
|
||||
type="text"
|
||||
:onError="form.errors.legal_instrument"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
v-model="form.article"
|
||||
@ -233,7 +232,6 @@ const handleSubmit = () => {
|
||||
:id="$t('concept.article')"
|
||||
type="text"
|
||||
:onError="form.errors.article"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<Textarea
|
||||
@ -260,66 +258,50 @@ const handleSubmit = () => {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Rango: solo monto mínimo y monto máximo (UMA o pesos) -->
|
||||
<div
|
||||
v-if="showUmaFields && isRangeType"
|
||||
class="mb-5 grid grid-cols-3 gap-4 py-2"
|
||||
v-if="isRangeType"
|
||||
class="mb-5 grid grid-cols-2 gap-4 py-2"
|
||||
>
|
||||
<Selectable
|
||||
v-model="form.unit_id"
|
||||
label="name"
|
||||
value="id"
|
||||
:title="$t('concept.sizeUnit')"
|
||||
:options="units"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
v-if="showUmaFields"
|
||||
v-model="form.min_amount_uma"
|
||||
:id="$t('concept.minimumAmountUma')"
|
||||
type="number"
|
||||
step="0.01"
|
||||
:onError="form.errors.min_amount_uma"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
v-if="showUmaFields"
|
||||
v-model="form.max_amount_uma"
|
||||
:id="$t('concept.maximumAmountUma')"
|
||||
type="number"
|
||||
step="0.01"
|
||||
:onError="form.errors.max_amount_uma"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
v-if="showPesoFields && isRangeType"
|
||||
class="mb-5 grid grid-cols-3 gap-4 py-2"
|
||||
>
|
||||
<Selectable
|
||||
v-model="form.unit_id"
|
||||
label="name"
|
||||
value="id"
|
||||
:title="$t('concept.sizeUnit')"
|
||||
:options="units"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
v-if="showPesoFields"
|
||||
v-model="form.min_amount_peso"
|
||||
:id="$t('concept.minimumAmountPeso')"
|
||||
type="number"
|
||||
step="0.01"
|
||||
:onError="form.errors.min_amount_peso"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
v-if="showPesoFields"
|
||||
v-model="form.max_amount_peso"
|
||||
:id="$t('concept.maximumAmountPeso')"
|
||||
type="number"
|
||||
step="0.01"
|
||||
:onError="form.errors.max_amount_peso"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
<div v-if="isFixedType">
|
||||
<hr class="my-4 border-gray-300" />
|
||||
<h4 class="text-lg font-semibold mb-4 text-gray-700">
|
||||
{{ $t("concept.tabulator") }}
|
||||
</h4>
|
||||
<div class="mb-5 grid grid-cols-3 gap-4 py-2">
|
||||
<!-- Tabulador: unidad de medida y costo por unidad (UMA o pesos) -->
|
||||
<div v-if="isFixedType" class="mb-5 grid grid-cols-2 gap-4 py-2">
|
||||
<Selectable
|
||||
v-model="form.unit_id"
|
||||
label="name"
|
||||
@ -335,6 +317,7 @@ const handleSubmit = () => {
|
||||
type="number"
|
||||
step="0.01"
|
||||
:onError="form.errors.unit_cost_uma"
|
||||
required
|
||||
/>
|
||||
<Input
|
||||
v-if="showPesoFields"
|
||||
@ -343,9 +326,9 @@ const handleSubmit = () => {
|
||||
type="number"
|
||||
step="0.01"
|
||||
:onError="form.errors.unit_cost_peso"
|
||||
required
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-center mt-4">
|
||||
<button
|
||||
type="submit"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user