เเก้ไขส่งข้อมูล ช้ำ
This commit is contained in:
parent
bb1a67bddc
commit
a6f76328db
1 changed files with 3 additions and 0 deletions
|
|
@ -1201,7 +1201,9 @@ const clickSave = async () => {
|
||||||
// * บันทึกเพิ่มข้อมูล
|
// * บันทึกเพิ่มข้อมูล
|
||||||
// */
|
// */
|
||||||
const saveData = async () => {
|
const saveData = async () => {
|
||||||
|
formData.leaveYear = (await Number(inputDateLaeaveYear.value)) - 543;
|
||||||
const sum = Number(numLeave.value) + Number(numUsedLeave.value);
|
const sum = Number(numLeave.value) + Number(numUsedLeave.value);
|
||||||
|
console.log(formData.leaveYear);
|
||||||
|
|
||||||
if (profileId.value) {
|
if (profileId.value) {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
@ -1216,6 +1218,7 @@ const saveData = async () => {
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
|
|
||||||
modalAdd.value = false;
|
modalAdd.value = false;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue