แสดงคนครอง
This commit is contained in:
parent
0b0ef1d1ff
commit
72eb0c0643
3 changed files with 10 additions and 2 deletions
|
|
@ -48,7 +48,13 @@ export const useOrganizational = defineStore("organizationalStore", () => {
|
|||
function fetchPosMaster(data: PosMaster[]) {
|
||||
const newPosMaster = data.map((e: PosMaster) => ({
|
||||
...e,
|
||||
positionIsSelected: e.positionIsSelected ? "มี" : "ว่าง",
|
||||
positionIsSelected:
|
||||
typeOrganizational.value === "draft" && e.fullNameNextHolder !== null
|
||||
? e.fullNameNextHolder
|
||||
: typeOrganizational.value !== "draft" &&
|
||||
e.fullNameCurrentHolder !== null
|
||||
? e.fullNameCurrentHolder
|
||||
: "ว่าง",
|
||||
posMasterNo:
|
||||
e.orgShortname +
|
||||
e.posMasterNoPrefix +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue