แก้ทะเบียนประวัติ ตำแหน่ง/เงินเดือน

This commit is contained in:
Warunee Tamkoo 2024-11-29 15:20:16 +07:00
parent d9bb320b16
commit 38120c26ad
2 changed files with 7 additions and 5 deletions

View file

@ -264,7 +264,10 @@ async function updateSelectType(val: string, status: boolean = false) {
if (listLevel) {
posLevelOptionMain.value = listLevel.posLevels.map((e: any) => ({
id: e.id,
name: e.posLevelName.toString(),
name:
empType.value === ""
? e.posLevelName
: `${listLevel.posTypeShortName} ${e.posLevelName}`,
}));
formDataSalary.positionLevel = !status ? "" : formDataSalary.positionLevel;
@ -453,7 +456,7 @@ function onSubmit() {
success($q, "บันทึกข้อมูลสำเร็จ");
} catch (e) {
messageError($q, e);
hideLoader()
hideLoader();
} finally {
}
});
@ -662,7 +665,6 @@ onMounted(() => {
map-options
:options="columns"
option-value="name"
style="min-width: 140px"
/>
</div>
@ -768,7 +770,7 @@ onMounted(() => {
<q-form greedy @submit.prevent @validation-success="onSubmit">
<DialogHeader
:tittle="
isStatusEdit ? 'แก้ไขตำแหน่งเงินเดือน' : 'เพิ่มตำแหน่งเงินเดือน'
isStatusEdit ? 'แก้ไขตำแหน่ง/เงินเดือน' : 'เพิ่มตำแหน่ง/เงินเดือน'
"
:close="onClickCloseDialog"
/>
@ -1020,7 +1022,6 @@ onMounted(() => {
dense
outlined
v-model="formDataSalary.salaryPos"
:rules="[(val:string) => !!val || `${'กรุณากรอกเงินประจำตำแหน่ง'}`]"
label="เงินประจำตำแหน่ง"
mask="###,###,###,###"
reverse-fill-mask

View file

@ -30,6 +30,7 @@ interface ResType {
posTypeName: string;
posTypeRank: number;
posLevels: PosLevel[];
posTypeShortName?: string;
}
interface PosLevel {