เลือกหน่วยงานที่รับบรรจุ
This commit is contained in:
parent
998e654eb4
commit
a8a4b1ee60
8 changed files with 933 additions and 7 deletions
29
src/modules/05_placement/stores/storeSelect.ts
Normal file
29
src/modules/05_placement/stores/storeSelect.ts
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
/** importType*/
|
||||
import type { PositionMaim } from "@/modules/05_placement/interface/response/SelectOrg";
|
||||
import type { DataPositionNo } from "@/modules/05_placement/interface/index/SelectOrg";
|
||||
export const useSelectOrgStore = defineStore("selectorg", () => {
|
||||
function fetchPosNo(data: PositionMaim[]) {
|
||||
const listPosNo: DataPositionNo[] = data.map((e: PositionMaim) => ({
|
||||
id: e.id,
|
||||
isPosition: e.isPosition,
|
||||
posMasterNo:
|
||||
e.orgShortname +
|
||||
e.posMasterNoPrefix +
|
||||
e.posMasterNo +
|
||||
e.posMasterNoSuffix,
|
||||
positionName: e.positionName,
|
||||
posTypeName: e.posTypeName,
|
||||
posLevelName: e.posLevelName,
|
||||
positionIsSelected: e.positionIsSelected ? e.fullNameCurrentHolder : "-",
|
||||
isSit: e.isSit,
|
||||
positions: e.positions,
|
||||
}));
|
||||
|
||||
return listPosNo;
|
||||
}
|
||||
return {
|
||||
fetchPosNo,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue