แก้ไข เงินเดือนทะเบียน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-14 09:27:01 +07:00
parent 9aed7b5b9c
commit 8783a54691
4 changed files with 40 additions and 40 deletions

View file

@ -617,9 +617,9 @@ const {
const route = useRoute();
const id = ref<string>("");
const date = ref<Date>(new Date());
const amount = ref<number | null>(null);
const positionSalaryAmount = ref<number | null>(null);
const mouthSalaryAmount = ref<number | null>(null);
const amount = ref<number | undefined>(0);
const positionSalaryAmount = ref<number | undefined>(0);
const mouthSalaryAmount = ref<number | undefined>(0);
const search = ref<string>("");
const refCommandNo = ref<any>();
const expanded = ref<string[]>([]);
@ -1717,9 +1717,9 @@ const templateDetail = async () => {
* กดบนทกใน dialog
*/
const clickSave = async () => {
if (amount.value === 0) {
amount.value = null;
}
// if (amount.value === 0) {
// amount.value = null;
// }
myForm.value.validate().then(async (result: boolean) => {
if (result) {
if (modalEdit.value) {
@ -1919,9 +1919,9 @@ const addData = () => {
modal.value = true;
edit.value = true;
date.value = new Date();
amount.value = 0;
positionSalaryAmount.value = null;
mouthSalaryAmount.value = null;
amount.value = undefined;
positionSalaryAmount.value = undefined;
mouthSalaryAmount.value = undefined;
posNoId.value = "";
posNoEmployee.value = "";