Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m14s

* develop:
  fix popup เลือกผู้บังคับบัญชา
This commit is contained in:
Warunee Tamkoo 2026-02-25 16:53:23 +07:00
commit c30b3714fa
3 changed files with 29 additions and 26 deletions

View file

@ -37,15 +37,6 @@ const rejectName = computed(() =>
const selected = ref<DataCommander[]>([]); const selected = ref<DataCommander[]>([]);
const rows = ref<DataCommander[]>([]); const rows = ref<DataCommander[]>([]);
const columns = ref<QTableProps["columns"]>([ const columns = ref<QTableProps["columns"]>([
{
name: "posNo",
align: "left",
label: "เลขที่ตำแหน่ง",
sortable: true,
field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{ {
name: "fullName", name: "fullName",
align: "left", align: "left",
@ -59,11 +50,20 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px", style: "font-size: 14px",
}, },
{ {
name: "posExecutiveName", name: "posNo",
align: "left", align: "left",
label: "ตำแหน่งทางการบริหาร", label: "เลขที่ตำแหน่ง",
sortable: true, sortable: true,
field: "posExecutiveName", field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "positionSign",
align: "left",
label: "ตำแหน่งใต้ลายเซ็น",
sortable: true,
field: "positionSign",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
style: "font-size: 14px", style: "font-size: 14px",
}, },

View file

@ -43,15 +43,6 @@ const search = ref<string>("");
const isLoading = ref<boolean>(false); const isLoading = ref<boolean>(false);
const rows = ref<DataCommander[]>([]); const rows = ref<DataCommander[]>([]);
const columns = ref<QTableProps["columns"]>([ const columns = ref<QTableProps["columns"]>([
{
name: "posNo",
align: "left",
label: "เลขที่ตำแหน่ง",
sortable: true,
field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{ {
name: "firstName", name: "firstName",
align: "left", align: "left",
@ -65,11 +56,20 @@ const columns = ref<QTableProps["columns"]>([
style: "font-size: 14px", style: "font-size: 14px",
}, },
{ {
name: "posExecutiveNameOrg", name: "posNo",
align: "left", align: "left",
label: "ตำแหน่งทางการบริหาร", label: "เลขที่ตำแหน่ง",
sortable: true, sortable: true,
field: "posExecutiveNameOrg", field: "posNo",
headerStyle: "font-size: 14px",
style: "font-size: 14px",
},
{
name: "positionSign",
align: "left",
label: "ตำแหน่งใต้ลายเซ็น",
sortable: true,
field: "positionSign",
format(val) { format(val) {
return removeDuplicateWords(val || ""); return removeDuplicateWords(val || "");
}, },
@ -149,7 +149,7 @@ function onSubmit() {
: ""; : "";
dataStore.commanderPosition = removeDuplicateWords( dataStore.commanderPosition = removeDuplicateWords(
selected.value[0].posExecutiveNameOrg || "" selected.value[0].positionSign || "",
); );
} }
@ -402,7 +402,9 @@ function getSearch() {
:key="col.name" :key="col.name"
:props="props" :props="props"
> >
<span class="text-weight-medium">{{ getColumnLabel(col, isAct) }}</span> <span class="text-weight-medium">{{
getColumnLabel(col, isAct)
}}</span>
</q-th> </q-th>
</q-tr> </q-tr>
</template> </template>

View file

@ -29,6 +29,7 @@ interface DataCommander {
posType: string; posType: string;
position: string; position: string;
prefix: string; prefix: string;
positionSign?: string;
} }
export type { DataCommander }; export type { DataCommander };