Merge branch 'master' into Hotfix-RedirectOrderToTicketSale
gitea/salix-front/pipeline/pr-master This commit looks good Details

This commit is contained in:
Jon Elias 2025-01-20 07:06:14 +00:00
commit ed0e4fadf8
5 changed files with 18 additions and 13 deletions

View File

@ -107,6 +107,7 @@ const manageDate = (date) => {
:rules="mixinRules"
:clearable="false"
@click="isPopupOpen = !isPopupOpen"
@keydown="isPopupOpen = false"
hide-bottom-space
>
<template #append>

View File

@ -81,6 +81,7 @@ function dateToTime(newDate) {
style="min-width: 100px"
:rules="mixinRules"
@click="isPopupOpen = !isPopupOpen"
@keydown="isPopupOpen = false"
type="time"
hide-bottom-space
>

View File

@ -84,6 +84,7 @@ const columns = computed(() => [
component: 'number',
autofocus: true,
required: true,
positive: false,
},
format: ({ amount }) => toCurrency(amount),
create: true,

View File

@ -166,6 +166,7 @@ async function handleSave() {
v-model="row.ticketServiceTypeFk"
:options="ticketServiceOptions"
option-label="name"
:roles-allowed-to-create="['administrative']"
option-value="id"
hide-selected
>

View File

@ -283,21 +283,22 @@ const fetchWeekData = async () => {
year: selectedDateYear.value,
week: selectedWeekNumber.value,
};
const mail = (
await axiosNoError.get(`Workers/${route.params.id}/mail`, {
params: { filter: { where } },
})
).data[0];
try {
const [{ data: mailData }, { data: countData }] = await Promise.all([
axiosNoError.get(`Workers/${route.params.id}/mail`, {
params: { filter: { where } },
}),
axiosNoError.get('WorkerTimeControlMails/count', { params: { where } }),
]);
if (!mail) state.value = null;
else {
state.value = mail.state;
reason.value = mail.reason;
const mail = mailData[0];
state.value = mail?.state;
reason.value = mail?.reason;
canResend.value = !!countData.count;
} catch {
state.value = null;
}
canResend.value = !!(
await axiosNoError.get('WorkerTimeControlMails/count', { params: { where } })
).data.count;
};
const setHours = (data) => {