ins เครื่องราชฯ เพิ่มหน้ากรองลูกจ้างประจำก่อนประมวลผล
This commit is contained in:
parent
e881c63f9f
commit
df659c61b3
1 changed files with 8 additions and 1 deletions
|
|
@ -84,6 +84,9 @@ async function fetchData() {
|
||||||
datelast.value = data.period_amount;
|
datelast.value = data.period_amount;
|
||||||
dateStart.value = new Date(data.period_start);
|
dateStart.value = new Date(data.period_start);
|
||||||
dateEnd.value = new Date(data.period_end);
|
dateEnd.value = new Date(data.period_end);
|
||||||
|
selected.value = rows.value.filter((e: ResponsePosition) =>
|
||||||
|
data.empPosId.includes(e.id)
|
||||||
|
);
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -144,7 +147,9 @@ function onSubmit() {
|
||||||
formData.append("endDate", dateToISO(dateEnd.value));
|
formData.append("endDate", dateToISO(dateEnd.value));
|
||||||
}
|
}
|
||||||
formData.append("file", files.value);
|
formData.append("file", files.value);
|
||||||
formData.append("empPosId", JSON.stringify(newEmpPosId));
|
newEmpPosId.forEach((id) => {
|
||||||
|
formData.append("empPosId", id);
|
||||||
|
});
|
||||||
const url =
|
const url =
|
||||||
actionType.value !== "edit"
|
actionType.value !== "edit"
|
||||||
? config.API.listRoundInsignia()
|
? config.API.listRoundInsignia()
|
||||||
|
|
@ -586,6 +591,7 @@ watch(
|
||||||
>
|
>
|
||||||
<template v-slot:header-selection="scope">
|
<template v-slot:header-selection="scope">
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
|
:disable="readonly"
|
||||||
keep-color
|
keep-color
|
||||||
color="primary"
|
color="primary"
|
||||||
dense
|
dense
|
||||||
|
|
@ -597,6 +603,7 @@ watch(
|
||||||
<q-tr :props="props">
|
<q-tr :props="props">
|
||||||
<q-td auto-width>
|
<q-td auto-width>
|
||||||
<q-checkbox
|
<q-checkbox
|
||||||
|
:disable="readonly"
|
||||||
keep-color
|
keep-color
|
||||||
color="primary"
|
color="primary"
|
||||||
dense
|
dense
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue