ประเมินเชี่ยวชาญ
This commit is contained in:
parent
27fb61604f
commit
c45d3f8e6e
4 changed files with 135 additions and 22 deletions
|
|
@ -13,7 +13,7 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
const storeRegistry = useRegistryInFormationStore();
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const { messageError, showLoader, hideLoader, findPosMasterNo } = mixin;
|
||||
const { messageError, showLoader, hideLoader, findPosMasterNo,findOrgName } = mixin;
|
||||
// ref() คือการประกาศ state เหมือน vuex
|
||||
const formData = reactive<ProfileData>({
|
||||
profileId: "",
|
||||
|
|
@ -28,6 +28,9 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
salary: null,
|
||||
birthDate: '',
|
||||
posNo: "",
|
||||
org: "",
|
||||
dateStart: "",
|
||||
dateRetireLaw: "",
|
||||
});
|
||||
const count = ref<number>(0);
|
||||
const loader = ref<boolean>(false);
|
||||
|
|
@ -110,7 +113,10 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
formData.posTypeName = data.posTypeName;
|
||||
formData.posExecutiveName = data.posExecutiveName;
|
||||
formData.posLevelName = data.posLevelName;
|
||||
formData.dateStart = data.dateStart;
|
||||
formData.dateRetireLaw = data.dateRetireLaw;
|
||||
formData.posNo = findPosMasterNo(data);
|
||||
formData.org = findOrgName(data);
|
||||
storeRegistry.profileId = data.profileId;
|
||||
storeRegistry.citizenId = data.citizenId;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue