ปรับแก้ไขอัตรกำลัง
This commit is contained in:
parent
e997e096dc
commit
5741c3a815
3 changed files with 10 additions and 6 deletions
|
|
@ -29,11 +29,14 @@ export const useOrganizational = defineStore("organizationalStore", () => {
|
|||
}
|
||||
|
||||
function fetchPosMaster(data: PosMaster[]) {
|
||||
console.log(data);
|
||||
|
||||
const newPosMaster = data.map((e: PosMaster) => ({
|
||||
...e,
|
||||
positionIsSelected: e.positionIsSelected ? "มีคนครอง" : "ไม่มีคนครอง",
|
||||
positionIsSelected: e.positionIsSelected ? "มี" : "ว่าง",
|
||||
posMasterNo:
|
||||
e.orgShortname +
|
||||
e.posMasterNoPrefix +
|
||||
e.posMasterNo +
|
||||
e.posMasterNoSuffix,
|
||||
positionName: e.positionName ? e.positionName : "-",
|
||||
posTypeName: e.posTypeName ? e.posTypeName : "-",
|
||||
posLevelName: e.posLevelName ? e.posLevelName : "-",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue