เลื่อนเงืนเดือน

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-27 17:16:17 +07:00
parent 62b5651911
commit 1e25bfc4b6
6 changed files with 185 additions and 166 deletions

View file

@ -87,20 +87,20 @@ const columns = ref<QTableProps["columns"]>([
},
{
name: "postionTypeName",
name: "positionType",
align: "left",
label: "ตำแหน่งประเภท",
sortable: true,
field: "postionTypeName",
field: "positionType",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "positionLevelName",
name: "positionLevel",
align: "left",
label: "ระดับ",
sortable: true,
field: "positionLevelName",
field: "positionLevel",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
@ -130,8 +130,8 @@ const visibleColumns = ref<string[]>([
"positionSalaryAmount",
"mouthSalaryAmount",
"posNo",
"postionTypeName",
"positionLevelName",
"positionType",
"positionLevel",
"templateDoc",
"refCommandNo",
]);
@ -247,7 +247,9 @@ function fetchType() {
}
async function updateSelectType(val: string, status: boolean = false) {
const listLevel = await dataLevel.value.find((e: any) => e.id === val);
const listLevel = await dataLevel.value.find(
(e: any) => e.posTypeName === val
);
if (listLevel) {
posLevelOptionMain.value = listLevel.posLevels.map((e: any) => ({
id: e.id,
@ -630,7 +632,15 @@ onMounted(() => {
</div>
<div class="col-xs-6 col-sm-6 col-md-4">
<q-select
<q-input
outlined
dense
lazy-rules
v-model="formDataSalary.positionLine"
hide-bottom-space
:label="`${'สายงาน'}`"
/>
<!-- <q-select
outlined
dense
lazy-rules
@ -648,7 +658,7 @@ onMounted(() => {
@filter="(inputValue: any,
doneFn: Function) => filterSelector(inputValue, doneFn, 'positionLine'
)"
/>
/> -->
</div>
<div class="col-xs-6 col-sm-6 col-md-4">
@ -687,7 +697,7 @@ onMounted(() => {
map-options
option-label="name"
:options="posTypeOptions"
option-value="id"
option-value="name"
hide-bottom-space
use-input
input-debounce="0"
@ -713,7 +723,7 @@ onMounted(() => {
map-options
option-label="name"
:options="posLevelOption"
option-value="id"
option-value="name"
hide-bottom-space
use-input
input-debounce="0"