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