diff --git a/src/modules/13_salary/components/04_salaryLists/DialogFormEditSalary.vue b/src/modules/13_salary/components/04_salaryLists/DialogFormEditSalary.vue index e6a8a7c5e..21eab1944 100644 --- a/src/modules/13_salary/components/04_salaryLists/DialogFormEditSalary.vue +++ b/src/modules/13_salary/components/04_salaryLists/DialogFormEditSalary.vue @@ -7,6 +7,7 @@ import config from "@/app.config"; /** importComponents*/ import Header from "@/components/DialogHeader.vue"; +import CurruncyInput from "@/components/CurruncyInput.vue"; /** use*/ const $q = useQuasar(); @@ -15,7 +16,7 @@ const { dialogConfirm, success, messageError, showLoader, hideLoader } = mixin; /** props*/ const modal = defineModel("modal", { required: true }); -const amount = defineModel("amount", { required: true }); +const amount = defineModel("amount", { required: true }); const profileId = defineModel("profileId", { required: true }); const props = defineProps({ fetchData: { @@ -28,7 +29,7 @@ const props = defineProps({ */ function close() { modal.value = false; - amount.value = null; + amount.value = undefined; } /** @@ -36,7 +37,7 @@ function close() { */ function onSubmit() { dialogConfirm($q, async () => { - if (amount.value !== null) { + if (amount.value !== undefined) { showLoader(); const amountString: string = amount.value.toString(); const body = { @@ -73,7 +74,7 @@ function onSubmit() {
- --> +
diff --git a/src/modules/13_salary/components/05_salaryListsEmployee/DialogFormEditSalary.vue b/src/modules/13_salary/components/05_salaryListsEmployee/DialogFormEditSalary.vue index e8d23501f..2393d6f92 100644 --- a/src/modules/13_salary/components/05_salaryListsEmployee/DialogFormEditSalary.vue +++ b/src/modules/13_salary/components/05_salaryListsEmployee/DialogFormEditSalary.vue @@ -7,6 +7,7 @@ import config from "@/app.config"; /** importComponents*/ import Header from "@/components/DialogHeader.vue"; +import CurruncyInput from "@/components/CurruncyInput.vue"; /** use*/ const $q = useQuasar(); @@ -15,7 +16,7 @@ const { dialogConfirm, success, messageError, showLoader, hideLoader } = mixin; /** props*/ const modal = defineModel("modal", { required: true }); -const amount = defineModel("amount", { required: true }); +const amount = defineModel("amount", { required: true }); const profileId = defineModel("profileId", { required: true }); const props = defineProps({ fetchData: { @@ -26,7 +27,7 @@ const props = defineProps({ /** function ปิด Popup */ function close() { modal.value = false; - amount.value = null; + amount.value = undefined; } /** @@ -34,7 +35,7 @@ function close() { */ function onSubmit() { dialogConfirm($q, async () => { - if (amount.value !== null) { + if (amount.value !== undefined) { showLoader(); const amountString: string = amount.value.toString(); const body = { @@ -71,7 +72,7 @@ function onSubmit() {
- --> +