forked from verdnatura/salix-front
Merge branch 'dev' into 7671_dense_itemFixedPrices
This commit is contained in:
commit
b24c7b0352
|
@ -372,15 +372,15 @@ const showReasonForm = () => {
|
||||||
const updateWorkerTimeControlMail = async (state, reason) => {
|
const updateWorkerTimeControlMail = async (state, reason) => {
|
||||||
try {
|
try {
|
||||||
const params = {
|
const params = {
|
||||||
workerId: Number(route.params.id),
|
|
||||||
year: selectedDate.value.getFullYear(),
|
year: selectedDate.value.getFullYear(),
|
||||||
week: selectedWeekNumber.value,
|
week: selectedWeekNumber.value,
|
||||||
state,
|
state,
|
||||||
};
|
};
|
||||||
|
const workerId = Number(route.params.id);
|
||||||
|
|
||||||
if (reason) params.reason = reason;
|
if (reason) params.reason = reason;
|
||||||
|
|
||||||
await axios.post('WorkerTimeControls/updateWorkerTimeControlMail', params);
|
await axios.post(`WorkerTimeControls/${workerId}/updateMailState`, params);
|
||||||
await getMailStates(selectedDate.value);
|
await getMailStates(selectedDate.value);
|
||||||
await fetchWeekData();
|
await fetchWeekData();
|
||||||
notify(t('globals.dataSaved'), 'positive');
|
notify(t('globals.dataSaved'), 'positive');
|
||||||
|
|
Loading…
Reference in New Issue