fix แก้ไข field ด้านทางการบริหาร

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-18 15:15:41 +07:00
parent 0417290d5d
commit 5fb8c24263

View file

@ -581,6 +581,9 @@ async function onSave(val: any, id: string, close?: () => void) {
if (isCol("positionExecutive")) {
body.positionExecutive = val;
}
if (isCol("positionExecutiveField")) {
body.positionExecutiveField = val;
}
if (isCol("amount")) {
body.amount = toNumber(formData.amount);
body.amountSpecial = toNumber(formData.amountSpecial);
@ -722,8 +725,6 @@ async function fetchType() {
* @param val id ประเภทตำแหน
*/
async function updateSelectType(val: string) {
console.log(val);
const listLevel = val
? dataLevel.value.find((e: DataPosType) => e.posTypeName === val)
: null;
@ -1347,6 +1348,7 @@ onMounted(async () => {
v-else-if="
col.name === 'positionName' ||
col.name === 'positionExecutive' ||
col.name === 'positionExecutiveField' ||
col.name === 'remark'
"
outlined