API อัตรากำลังลูกจ้างประจำฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-15 13:54:55 +07:00
parent 5debc893e6
commit 2b3388c189
7 changed files with 77 additions and 519 deletions

View file

@ -67,13 +67,9 @@ export const usePositionEmp = defineStore("positionEmpStore", () => {
function fetchPosMaster(data: PosMaster[]) {
const newPosMaster = data.map((e: PosMaster) => ({
...e,
positionIsSelected:
typeOrganizational.value === "draft" && e.fullNameNextHolder !== null
? e.fullNameNextHolder
: typeOrganizational.value !== "draft" &&
e.fullNameCurrentHolder !== null
? e.fullNameCurrentHolder
: "ว่าง",
positionIsSelected: e.fullNameCurrentHolder
? e.fullNameCurrentHolder
: "ว่าง",
posMasterNo:
e.orgShortname +
e.posMasterNoPrefix +