diff --git a/src/components/App/ConceptSection.vue b/src/components/App/ConceptSection.vue index 51b07b0..9ccb000 100644 --- a/src/components/App/ConceptSection.vue +++ b/src/components/App/ConceptSection.vue @@ -24,6 +24,7 @@ const form = useForm({ unit_cost_uma: "", unit_cost_peso: "", charge_type: null, + concept_type: null, }); const resetForm = () => { @@ -41,6 +42,7 @@ const resetForm = () => { form.unit_cost_uma = ""; form.unit_cost_peso = ""; form.charge_type = null; + form.concept_type = null; }; const isFormOpen = ref(false); @@ -54,10 +56,15 @@ const chargeTypeId = computed(() => { }); const chargeTypesOptions = ref([ - { id: "uma_range", name: "Rango en UMA" }, - { id: "peso_range", name: "Rango en Peso" }, - { id: "uma_fixed", name: "UMA unitario" }, - { id: "peso_fixed", name: "Peso unitario" }, + { id: "uma_range", name: "Rango por UMA" }, + { id: "peso_range", name: "Rango en pesos (MXN$)" }, + { id: "uma_fixed", name: "Tabulador en UMA" }, + { id: "peso_fixed", name: "Tabulador en pesos (MXN$)" }, +]); + +const conceptTypesOptions = ref([ + { id: "membership", name: "Membresía" }, + { id: "fine", name: "Multa" } ]); const showUmaFields = computed(() => { @@ -108,6 +115,10 @@ const handleSubmit = () => { : Number(form.direction_id), unit_id: typeof form.unit_id === "object" ? form.unit_id.id : Number(form.unit_id), + concept_type: + typeof form.concept_type === "object" + ? form.concept_type.id + : String(form.concept_type), short_name: form.short_name, name: form.name, legal_instrument: form.legal_instrument, @@ -174,6 +185,14 @@ const handleSubmit = () => {