fix onHIde fix Salary

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-05 11:36:31 +07:00
parent e6c1fac877
commit 01e1da066f
2 changed files with 1 additions and 24 deletions

View file

@ -539,26 +539,6 @@ function onShow(data: DataPosition, colName: string) {
formData.commandYear = data.commandYear;
}
/** ฟังก์ชันกำหนดค่า FormData ทำงานเมื่อ popup editปิด*/
function onHide() {
formData.positionLevel = "";
formData.positionCee = "";
formData.amount = 0;
formData.amountSpecial = 0;
formData.orgRoot = "";
formData.orgChild1 = "";
formData.orgChild2 = "";
formData.orgChild3 = "";
formData.orgChild4 = "";
formData.posNoAbb = "";
formData.posNo = "";
formData.commandCode = "";
formData.posNumCodeSit = "";
formData.posNumCodeSitAbb = "";
formData.commandNo = "";
formData.commandYear = null;
}
/**
* งกนบนทกขอมลการแกไข
* @param val
@ -939,7 +919,6 @@ onMounted(async () => {
label-set="บันทึก"
label-cancel="ยกเลิก"
@before-show="onShow(props.row, col.name)"
@hide="onHide"
:persistent="col.name === 'commandNo'"
>
<div class="q-mb-xs">
@ -1201,7 +1180,6 @@ onMounted(async () => {
label-set="บันทึก"
label-cancel="ยกเลิก"
@before-show="onShow(props.row, col.name)"
@hide="onHide"
>
<div class="q-mb-xs">
{{ `แก้ไข${col.label}` }}
@ -1298,7 +1276,6 @@ onMounted(async () => {
label-cancel="ยกเลิก"
@save="onSave"
@before-show="onShow(props.row, col.name)"
@hide="onHide"
>
<div class="q-mb-xs">
{{ `แก้ไข${col.label}` }}