แก้ประเมิน
This commit is contained in:
parent
cbee41e212
commit
2cec815100
4 changed files with 22 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ interface ProfileData {
|
|||
posLevelName: string;
|
||||
posNo: string;
|
||||
profileId: string;
|
||||
citizenId?: string;
|
||||
salary?: number|null;
|
||||
birthDate?: string;
|
||||
}
|
||||
|
||||
interface InformationData {
|
||||
|
|
|
|||
|
|
@ -790,6 +790,7 @@ onMounted(async () => {
|
|||
/>
|
||||
<q-btn
|
||||
v-if="
|
||||
downloadFileRef &&
|
||||
store.step >= store.currentStep &&
|
||||
store.step == 6 &&
|
||||
store.statusUpload
|
||||
|
|
|
|||
|
|
@ -6,11 +6,13 @@ import { useQuasar } from "quasar";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDataStore } from "@/stores/data";
|
||||
|
||||
import type { FormCommandSe } from "@/modules/06_evaluate/interface/evalute";
|
||||
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
const dataPerson = useDataStore();
|
||||
const mixin = useCounterMixin();
|
||||
const { dialogConfirm, messageError, showLoader, hideLoader } = mixin;
|
||||
|
||||
|
|
@ -28,9 +30,19 @@ const formData = reactive<FormCommandSe>({
|
|||
*/
|
||||
function onSubmit() {
|
||||
dialogConfirm($q, () => {
|
||||
const body = {
|
||||
...formData,
|
||||
citizenId: dataPerson.formData.citizenId,
|
||||
prefix: dataPerson.formData.prefix,
|
||||
fullName: `${dataPerson.formData.prefix}${dataPerson.formData.firstName} ${dataPerson.formData.lastName}`,
|
||||
position: dataPerson.formData.position,
|
||||
salary: dataPerson.formData.salary?.toString(),
|
||||
posNo: dataPerson.formData.posNo,
|
||||
birthDate: dataPerson.formData.birthDate,
|
||||
};
|
||||
showLoader();
|
||||
http
|
||||
.post(config.API.evaluationExpertise, formData)
|
||||
.post(config.API.evaluationExpertise, body)
|
||||
.then((res) => {
|
||||
router.push(`/evaluate/detail/expertise/${res.data.result.id}`);
|
||||
})
|
||||
|
|
@ -89,7 +101,6 @@ onMounted(() => {
|
|||
<div>ประเมินเชี่ยวชาญ</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xs-12 col-sm-12 col-md-11 row q-col-gutter-md">
|
||||
<div class="col-12">
|
||||
<q-card bordered>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
posExecutiveName: "",
|
||||
posTypeName: "",
|
||||
posLevelName: "",
|
||||
salary: null,
|
||||
birthDate: '',
|
||||
posNo: "",
|
||||
});
|
||||
const count = ref<number>(0);
|
||||
|
|
@ -102,6 +104,9 @@ export const useDataStore = defineStore("dataMain", () => {
|
|||
formData.firstName = data.firstName;
|
||||
formData.lastName = data.lastName;
|
||||
formData.position = data.position;
|
||||
formData.salary = data.salary;
|
||||
formData.citizenId = data.citizenId;
|
||||
formData.birthDate = data.birthDate;
|
||||
formData.posTypeName = data.posTypeName;
|
||||
formData.posExecutiveName = data.posExecutiveName;
|
||||
formData.posLevelName = data.posLevelName;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue