no message
This commit is contained in:
parent
5a1c1fffae
commit
c467d12d2e
4 changed files with 14 additions and 8 deletions
|
|
@ -217,11 +217,11 @@ const findlist = async (id: string) => {
|
||||||
};
|
};
|
||||||
const fectDataByid = async (id: string) => {
|
const fectDataByid = async (id: string) => {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
employeeClass.value = "";
|
||||||
await http
|
await http
|
||||||
.get(config.API.noteByid(id))
|
.get(config.API.noteByid(id))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
let data = res.data.result;
|
let data = res.data.result;
|
||||||
employeeClass.value = "";
|
|
||||||
cardid.value = data.citizenId;
|
cardid.value = data.citizenId;
|
||||||
fullName.value = data.fullName;
|
fullName.value = data.fullName;
|
||||||
position.value = data.position;
|
position.value = data.position;
|
||||||
|
|
@ -348,7 +348,9 @@ const searchcardid = () => {
|
||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12 col-sm-4">
|
<div class="col-xs-12 col-sm-4">
|
||||||
<q-input
|
<q-input
|
||||||
:disable="disbleStatus || status == 'DONE' || status == 'PENDING'"
|
:disable="
|
||||||
|
disbleStatus || status == 'DONE' || status == 'PENDING'
|
||||||
|
"
|
||||||
hide-bottom-space
|
hide-bottom-space
|
||||||
outlined
|
outlined
|
||||||
class="inputgreen"
|
class="inputgreen"
|
||||||
|
|
|
||||||
|
|
@ -39,9 +39,12 @@ const closeModal = () => {
|
||||||
props.close();
|
props.close();
|
||||||
};
|
};
|
||||||
const clickSave = () => {
|
const clickSave = () => {
|
||||||
|
console.log(props.insigniadata);
|
||||||
|
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
if (props.actionType === "insignia") {
|
if (props.actionType === "insignia") {
|
||||||
props.save(
|
props.save(
|
||||||
|
props.insigniadata.id,
|
||||||
props.insigniadata.insigniaId,
|
props.insigniadata.insigniaId,
|
||||||
amount.value,
|
amount.value,
|
||||||
props.insigniadata.year
|
props.insigniadata.year
|
||||||
|
|
|
||||||
|
|
@ -166,9 +166,6 @@ watch(tab, () => {
|
||||||
fecthlistInsignia();
|
fecthlistInsignia();
|
||||||
});
|
});
|
||||||
|
|
||||||
// const selectorInsignia = () => {
|
|
||||||
// fecthlistInsignia();
|
|
||||||
// };
|
|
||||||
const selectorRound = (round: string) => {
|
const selectorRound = (round: string) => {
|
||||||
selectRound.value = round;
|
selectRound.value = round;
|
||||||
const yearFilter = selectRoundOption.value.find((x: any) => x.id == round);
|
const yearFilter = selectRoundOption.value.find((x: any) => x.id == round);
|
||||||
|
|
@ -234,7 +231,12 @@ const save = async (insigniaId: string, total: string) => {
|
||||||
close();
|
close();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const saveEdit = async (insigniaId: string, total: Number, year: Number) => {
|
const saveEdit = async (
|
||||||
|
id: string,
|
||||||
|
insigniaId: string,
|
||||||
|
total: Number,
|
||||||
|
year: Number
|
||||||
|
) => {
|
||||||
showLoader();
|
showLoader();
|
||||||
let body = {
|
let body = {
|
||||||
insignia: insigniaId,
|
insignia: insigniaId,
|
||||||
|
|
@ -242,7 +244,7 @@ const saveEdit = async (insigniaId: string, total: Number, year: Number) => {
|
||||||
total: Number(total),
|
total: Number(total),
|
||||||
};
|
};
|
||||||
await http
|
await http
|
||||||
.put(config.API.insigniaManageById(insigniaId), body)
|
.put(config.API.insigniaManageById(id), body)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
success($q, "แก้ไขข้อมูลสำเร็จ");
|
success($q, "แก้ไขข้อมูลสำเร็จ");
|
||||||
await fecthlistInsignia();
|
await fecthlistInsignia();
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
|
||||||
}))
|
}))
|
||||||
rows.value = list
|
rows.value = list
|
||||||
listInsignia.value = list
|
listInsignia.value = list
|
||||||
|
|
||||||
}
|
}
|
||||||
const selectInsignia = () => {
|
const selectInsignia = () => {
|
||||||
console.log(insignia.value);
|
console.log(insignia.value);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue