diff --git a/src/components/common/VnInput.vue b/src/components/common/VnInput.vue
index 9d5849b68..8358cd6e6 100644
--- a/src/components/common/VnInput.vue
+++ b/src/components/common/VnInput.vue
@@ -37,14 +37,6 @@ const styleAttrs = computed(() => {
: {};
});
-const onEnterPress = () => {
- emit('keyup.enter');
-};
-
-const handleValue = (val = null) => {
- value.value = val;
-};
-
const focus = () => {
vnInputRef.value.focus();
};
@@ -73,7 +65,7 @@ const inputRules = [
v-bind="{ ...$attrs, ...styleAttrs }"
:type="$attrs.type"
:class="{ required: $attrs.required }"
- @keyup.enter="onEnterPress()"
+ @keyup.enter="emit('keyup.enter')"
:clearable="false"
:rules="inputRules"
:lazy-rules="true"
@@ -82,14 +74,14 @@ const inputRules = [
-
-
-
+
+
+
diff --git a/src/components/common/VnSelect.vue b/src/components/common/VnSelect.vue
index e8083dec2..493f094ce 100644
--- a/src/components/common/VnSelect.vue
+++ b/src/components/common/VnSelect.vue
@@ -22,6 +22,10 @@ const $props = defineProps({
type: String,
default: '',
},
+ optionFilter: {
+ type: String,
+ default: null,
+ },
url: {
type: String,
default: '',
@@ -59,7 +63,7 @@ const $props = defineProps({
const { t } = useI18n();
const requiredFieldRule = (val) => val ?? t('globals.fieldRequired');
-const { optionLabel, optionValue, options, modelValue } = toRefs($props);
+const { optionLabel, optionValue, optionFilter, options, modelValue } = toRefs($props);
const myOptions = ref([]);
const myOptionsOriginal = ref([]);
const vnSelectRef = ref();
@@ -109,9 +113,9 @@ async function fetchFilter(val) {
const { fields, sortBy, limit } = $props;
let key = optionLabel.value;
- if (new RegExp(/\d/g).test(val)) key = optionValue.value;
+ if (new RegExp(/\d/g).test(val)) key = optionFilter.value ?? optionValue.value;
- const where = { [key]: { like: `%${val}%` } };
+ const where = { ...{ [key]: { like: `%${val}%` } }, ...$props.where };
return dataRef.value.fetch({ fields, where, order: sortBy, limit });
}
diff --git a/src/components/ui/QCalendarMonthWrapper.vue b/src/components/ui/QCalendarMonthWrapper.vue
index 24255ea1a..3ecea89c2 100644
--- a/src/components/ui/QCalendarMonthWrapper.vue
+++ b/src/components/ui/QCalendarMonthWrapper.vue
@@ -108,7 +108,7 @@ const containerClasses = computed(() => {
font-size: 13px;
&:hover {
- background-color: var(--vn-accent-color);
+ background-color: var(--vn-label-color);
cursor: pointer;
}
}
diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js
index 326ddff5d..e2465f5ba 100644
--- a/src/composables/useArrayData.js
+++ b/src/composables/useArrayData.js
@@ -130,7 +130,8 @@ export function useArrayData(key, userOptions) {
store.filter = {};
if (params) store.userParams = Object.assign({}, params);
- await fetch({ append: false });
+ const response = await fetch({ append: false });
+ return response;
}
async function addFilter({ filter, params }) {
diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml
index 7d680c681..0e6edeab2 100644
--- a/src/i18n/locale/en.yml
+++ b/src/i18n/locale/en.yml
@@ -830,6 +830,7 @@ worker:
calendar: Calendar
timeControl: Time control
locker: Locker
+
list:
name: Name
email: Email
@@ -861,6 +862,15 @@ worker:
role: Role
sipExtension: Extension
locker: Locker
+ fiDueDate: Fecha de caducidad del DNI
+ sex: Sexo
+ seniority: Antigüedad
+ fi: DNI/NIE/NIF
+ birth: Cumpleaños
+ isFreelance: Autónomo
+ isSsDiscounted: Bonificación SS
+ hasMachineryAuthorized: Autorizado para llevar maquinaria
+ isDisable: Trabajador desactivado
notificationsManager:
activeNotifications: Active notifications
availableNotifications: Available notifications
diff --git a/src/pages/Department/Card/DepartmentDescriptor.vue b/src/pages/Department/Card/DepartmentDescriptor.vue
index e60a8c91b..70c578fc2 100644
--- a/src/pages/Department/Card/DepartmentDescriptor.vue
+++ b/src/pages/Department/Card/DepartmentDescriptor.vue
@@ -3,7 +3,7 @@ import { computed, ref } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n';
import { useQuasar } from 'quasar';
-
+import { useVnConfirm } from 'composables/useVnConfirm';
import VnLv from 'src/components/ui/VnLv.vue';
import CardDescriptor from 'src/components/ui/CardDescriptor.vue';
import useCardDescription from 'src/composables/useCardDescription';
@@ -43,30 +43,17 @@ const setData = (entity) => {
data.value = useCardDescription(entity.name, entity.id);
};
-const removeDepartment = () => {
- quasar
- .dialog({
- title: 'Are you sure you want to delete it?',
- message: 'Delete department',
- ok: {
- push: true,
- color: 'primary',
- },
- cancel: true,
- })
- .onOk(async () => {
- try {
- await axios.post(
- `/Departments/${entityId.value}/removeChild`,
- entityId.value
- );
- router.push({ name: 'WorkerDepartment' });
- notify('department.departmentRemoved', 'positive');
- } catch (err) {
- console.error('Error removing department');
- }
- });
+const removeDepartment = async () => {
+ try {
+ await axios.post(`/Departments/${entityId.value}/removeChild`, entityId.value);
+ router.push({ name: 'WorkerDepartment' });
+ notify('department.departmentRemoved', 'positive');
+ } catch (err) {
+ console.error('Error removing department');
+ }
};
+
+const { openConfirmationModal } = useVnConfirm();
{
"
>
-
+
{{ t('Delete') }}
diff --git a/src/pages/Ticket/Card/TicketSummary.vue b/src/pages/Ticket/Card/TicketSummary.vue
index af501240b..f55669619 100644
--- a/src/pages/Ticket/Card/TicketSummary.vue
+++ b/src/pages/Ticket/Card/TicketSummary.vue
@@ -13,6 +13,7 @@ import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
import { getUrl } from 'src/composables/getUrl';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import VnTitle from 'src/components/common/VnTitle.vue';
+import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
const route = useRoute();
const router = useRouter();
@@ -262,9 +263,12 @@ async function changeState(value) {
:url="ticketUrl + 'sale'"
:text="t('ticket.summary.saleLines')"
/>
-
+
+
+ {{ value }}
+
-
+