บรรจุ ทดลองงาน
This commit is contained in:
parent
a8fdca1138
commit
4cfcc2d018
21 changed files with 113 additions and 199 deletions
|
|
@ -25,6 +25,7 @@ const {
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI
|
||||||
} = useCounterMixin();
|
} = useCounterMixin();
|
||||||
|
|
||||||
const paramsId = route.params.id; //id รายการที่เลือก
|
const paramsId = route.params.id; //id รายการที่เลือก
|
||||||
|
|
@ -90,7 +91,7 @@ function putAppointment() {
|
||||||
positionNumberOld: posNo.value,
|
positionNumberOld: posNo.value,
|
||||||
amountOld: salary.value.toString().replace(/,/g, ""),
|
amountOld: salary.value.toString().replace(/,/g, ""),
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
positionDate: date.value,
|
positionDate: convertDateToAPI(date.value),
|
||||||
};
|
};
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ const {
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
findOrgName,
|
findOrgName,
|
||||||
|
convertDateToAPI
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const dataId = route.params.id as string;
|
const dataId = route.params.id as string;
|
||||||
|
|
@ -83,8 +84,8 @@ function onSubmit() {
|
||||||
const body = {
|
const body = {
|
||||||
organizationPositionOld: organizationPositionOld.value,
|
organizationPositionOld: organizationPositionOld.value,
|
||||||
organization: organization.value,
|
organization: organization.value,
|
||||||
dateStart: dateStart.value,
|
dateStart: convertDateToAPI(dateStart.value),
|
||||||
dateEnd: dateEnd.value,
|
dateEnd: convertDateToAPI(dateEnd.value),
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
};
|
};
|
||||||
await http
|
await http
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ const {
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
findOrgName,
|
findOrgName,
|
||||||
success,
|
success,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const paramsId = route.params.id;
|
const paramsId = route.params.id;
|
||||||
|
|
@ -98,8 +99,8 @@ function onSubmit() {
|
||||||
positionLevelOld: positionLevelOld.value,
|
positionLevelOld: positionLevelOld.value,
|
||||||
positionNumberOld: posNo.value,
|
positionNumberOld: posNo.value,
|
||||||
amountOld: salary.value.toString().replace(/,/g, ""),
|
amountOld: salary.value.toString().replace(/,/g, ""),
|
||||||
positionDate: date.value,
|
positionDate: convertDateToAPI(date.value),
|
||||||
militaryDate: militaryDate.value,
|
militaryDate: convertDateToAPI(militaryDate.value),
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
};
|
};
|
||||||
await http
|
await http
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { watch, reactive, type PropType, ref } from "vue";
|
import { watch, reactive, type PropType, ref } from "vue";
|
||||||
import { useQuasar } from "quasar";
|
import { useQuasar } from "quasar";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
|
||||||
import http from "@/plugins/http";
|
import http from "@/plugins/http";
|
||||||
import config from "@/app.config";
|
import config from "@/app.config";
|
||||||
|
|
@ -20,8 +20,6 @@ import type {
|
||||||
Family,
|
Family,
|
||||||
AddressData,
|
AddressData,
|
||||||
AddressOps,
|
AddressOps,
|
||||||
Address,
|
|
||||||
optionData,
|
|
||||||
} from "@/modules/05_placement/interface/index/Main";
|
} from "@/modules/05_placement/interface/index/Main";
|
||||||
|
|
||||||
import Header from "@/components/DialogHeader.vue";
|
import Header from "@/components/DialogHeader.vue";
|
||||||
|
|
@ -34,10 +32,9 @@ const idCard = defineModel<string>("idCard", { required: true });
|
||||||
|
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
|
||||||
const mixin = useCounterMixin();
|
const mixin = useCounterMixin();
|
||||||
const profileStore = useProfileDataStore();
|
const profileStore = useProfileDataStore();
|
||||||
const { changeRetireText, changeBirth } = profileStore;
|
const { changeBirth } = profileStore;
|
||||||
const {
|
const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
|
|
@ -45,6 +42,7 @@ const {
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
modalError,
|
modalError,
|
||||||
success,
|
success,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
const store = useLinkageStore();
|
const store = useLinkageStore();
|
||||||
|
|
||||||
|
|
@ -116,80 +114,26 @@ function closeDialog() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onSubmit() {
|
function onSubmit() {
|
||||||
const body = {
|
|
||||||
citizenId: formInformations.idCard,
|
|
||||||
prefix: formInformations.prefixId,
|
|
||||||
firstName: formInformations.firstname,
|
|
||||||
lastName: formInformations.lastname,
|
|
||||||
gender: formInformations.genderId,
|
|
||||||
nationality: formInformations.nationality,
|
|
||||||
race: formInformations.race,
|
|
||||||
religion: formInformations.religionId,
|
|
||||||
birthDate: formInformations.dateOfBirth,
|
|
||||||
bloodGroup: formInformations.bloodGroupId,
|
|
||||||
relationship: formInformations.relationshipId,
|
|
||||||
telephoneNumber: formInformations.telephone,
|
|
||||||
|
|
||||||
registrationSame: addressData.value.registSame == "1",
|
|
||||||
registrationAddress: addressData.value.registAddress,
|
|
||||||
registrationSubDistrictId: registAddress.subDistrictId,
|
|
||||||
registrationDistrictId: registAddress.districtId,
|
|
||||||
registrationProvinceId: registAddress.provinceId,
|
|
||||||
registrationZipCode: registAddress.zipCode,
|
|
||||||
currentAddress:
|
|
||||||
addressData.value.registSame == "1"
|
|
||||||
? addressData.value.registAddress
|
|
||||||
: addressData.value.currentAddress,
|
|
||||||
currentSubDistrictId:
|
|
||||||
addressData.value.registSame == "1"
|
|
||||||
? registAddress.subDistrictId
|
|
||||||
: currentAddress.subDistrictId,
|
|
||||||
currentDistrictId:
|
|
||||||
addressData.value.registSame == "1"
|
|
||||||
? registAddress.districtId
|
|
||||||
: currentAddress.districtId,
|
|
||||||
currentProvinceId:
|
|
||||||
addressData.value.registSame == "1"
|
|
||||||
? registAddress.provinceId
|
|
||||||
: currentAddress.provinceId,
|
|
||||||
currentZipCode:
|
|
||||||
addressData.value.registSame == "1"
|
|
||||||
? registAddress.zipCode
|
|
||||||
: currentAddress.zipCode,
|
|
||||||
|
|
||||||
couple: familyData.value.couple == "1",
|
|
||||||
couplePrefix: familyData.value.marryPrefixId,
|
|
||||||
coupleFirstName: familyData.value.marryFirstName,
|
|
||||||
coupleLastName: familyData.value.marryLastName,
|
|
||||||
coupleLastNameOld: "",
|
|
||||||
coupleCareer: familyData.value.marryOccupation,
|
|
||||||
|
|
||||||
fatherPrefix: familyData.value.fatherPrefixId,
|
|
||||||
fatherFirstName: familyData.value.fatherFirstName,
|
|
||||||
fatherLastName: familyData.value.fatherLastName,
|
|
||||||
fatherCareer: familyData.value.fatherOccupation,
|
|
||||||
|
|
||||||
motherPrefix: familyData.value.motherPrefixId,
|
|
||||||
motherFirstName: familyData.value.motherFirstName,
|
|
||||||
motherLastName: familyData.value.motherLastName,
|
|
||||||
motherCareer: familyData.value.motherOccupation,
|
|
||||||
};
|
|
||||||
|
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
if (age.value == false) {
|
if (age.value == false) {
|
||||||
modalError($q, "พบข้อผิดพลาด", "วันเกิดไม่ถูกต้อง");
|
modalError($q, "พบข้อผิดพลาด", "วันเกิดไม่ถูกต้อง");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
showLoader();
|
try {
|
||||||
await upDateInfomation();
|
showLoader();
|
||||||
await upDateAddress();
|
await upDateInfomation();
|
||||||
await upDateFamily();
|
await upDateAddress();
|
||||||
|
await upDateFamily();
|
||||||
|
|
||||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
closeDialog();
|
closeDialog();
|
||||||
await props.getAll?.();
|
await props.getAll?.();
|
||||||
await changeBirth(formInformations.dateOfBirth ?? new Date());
|
await changeBirth(formInformations.dateOfBirth ?? new Date());
|
||||||
hideLoader();
|
} catch (err) {
|
||||||
|
messageError($q, err);
|
||||||
|
} finally {
|
||||||
|
hideLoader();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -222,49 +166,12 @@ async function amiRequest() {
|
||||||
|
|
||||||
familyData.value.fatherFirstName = data.value.fatherName;
|
familyData.value.fatherFirstName = data.value.fatherName;
|
||||||
familyData.value.motherFirstName = data.value.motherName;
|
familyData.value.motherFirstName = data.value.motherName;
|
||||||
|
|
||||||
// data.value = {
|
|
||||||
// titleCode: 3,
|
|
||||||
// titleDesc: "นาย",
|
|
||||||
// titleName: "นาย",
|
|
||||||
// titleSex: 1,
|
|
||||||
// firstName: "สุพลชัย",
|
|
||||||
// middleName: "",
|
|
||||||
// lastName: "พูลสวัสดิ์",
|
|
||||||
// genderCode: 1,
|
|
||||||
// genderDesc: "ชาย",
|
|
||||||
// dateOfBirth: 25211228,
|
|
||||||
// nationalityCode: 99,
|
|
||||||
// nationalityDesc: "ไทย",
|
|
||||||
// ownerStatusDesc: "เจ้าบ้าน",
|
|
||||||
// statusOfPersonCode: 0,
|
|
||||||
// statusOfPersonDesc: "บุคคลนี้มีภูมิลำเนาอยู่ในบ้านนี้",
|
|
||||||
// dateOfMoveIn: 25580728,
|
|
||||||
// age: 45,
|
|
||||||
|
|
||||||
// fatherPersonalID: 3102100621479,
|
|
||||||
// fatherName: "บุญเชิด",
|
|
||||||
// fatherNationalityCode: 99,
|
|
||||||
// fatherNationalityDesc: "ไทย",
|
|
||||||
|
|
||||||
// motherPersonalID: 3102100621487,
|
|
||||||
// motherName: "พยอม",
|
|
||||||
// motherNationalityCode: 99,
|
|
||||||
// motherNationalityDesc: "ไทย",
|
|
||||||
|
|
||||||
// fullnameAndRank: "นายสุพลชัย พูลสวัสดิ์",
|
|
||||||
// englishTitleDesc: "MR.",
|
|
||||||
// englishFirstName: "SUPHONCHAI",
|
|
||||||
// englishMiddleName: "",
|
|
||||||
// englishLastName: "PHOONSAWAT",
|
|
||||||
// };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* อัพเดตข้อมูลส่วนตัว
|
* อัพเดตข้อมูลส่วนตัว
|
||||||
*/
|
*/
|
||||||
async function upDateInfomation() {
|
async function upDateInfomation() {
|
||||||
showLoader();
|
|
||||||
const body: any = {
|
const body: any = {
|
||||||
citizenId: formInformations.idCard,
|
citizenId: formInformations.idCard,
|
||||||
prefix: formInformations.prefixId,
|
prefix: formInformations.prefixId,
|
||||||
|
|
@ -274,24 +181,18 @@ async function upDateInfomation() {
|
||||||
nationality: formInformations.nationality,
|
nationality: formInformations.nationality,
|
||||||
race: formInformations.race,
|
race: formInformations.race,
|
||||||
religion: formInformations.religionId,
|
religion: formInformations.religionId,
|
||||||
birthDate: formInformations.dateOfBirth,
|
birthDate: convertDateToAPI(formInformations.dateOfBirth),
|
||||||
bloodGroup: formInformations.bloodGroupId,
|
bloodGroup: formInformations.bloodGroupId,
|
||||||
relationship: formInformations.relationshipId,
|
relationship: formInformations.relationshipId,
|
||||||
telephoneNumber: formInformations.telephone,
|
telephoneNumber: formInformations.telephone,
|
||||||
};
|
};
|
||||||
showLoader();
|
|
||||||
await http
|
await http
|
||||||
.put(
|
.put(
|
||||||
config.API.placementInformationId(route.params.personalId.toString()),
|
config.API.placementInformationId(route.params.personalId.toString()),
|
||||||
body
|
body
|
||||||
)
|
)
|
||||||
.then(async () => {})
|
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
hideLoader();
|
|
||||||
})
|
|
||||||
.finally(() => {
|
|
||||||
hideLoader();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -332,12 +233,10 @@ async function upDateAddress() {
|
||||||
config.API.placementAddressId(route.params.personalId.toString()),
|
config.API.placementAddressId(route.params.personalId.toString()),
|
||||||
body
|
body
|
||||||
)
|
)
|
||||||
.then(async () => {})
|
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
hideLoader();
|
});
|
||||||
})
|
|
||||||
.finally(() => {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** อัพเดตข้อมูลครอบครัว */
|
/** อัพเดตข้อมูลครอบครัว */
|
||||||
|
|
@ -360,12 +259,9 @@ async function upDateFamily() {
|
||||||
};
|
};
|
||||||
await http
|
await http
|
||||||
.put(config.API.placementFamilyId(route.params.personalId.toString()), body)
|
.put(config.API.placementFamilyId(route.params.personalId.toString()), body)
|
||||||
.then(async () => {})
|
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
hideLoader();
|
});
|
||||||
})
|
|
||||||
.finally(() => {});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** เช็คค่า modal เมื่อเป็น true ใช้งาน ฟังชั่น */
|
/** เช็คค่า modal เมื่อเป็น true ใช้งาน ฟังชั่น */
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const id = ref<string>("");
|
const id = ref<string>("");
|
||||||
|
|
@ -263,7 +264,7 @@ const clickNext = async () => {
|
||||||
/**
|
/**
|
||||||
* กดดูข้อมูลต่อไป
|
* กดดูข้อมูลต่อไป
|
||||||
*/
|
*/
|
||||||
const getData = () => {
|
async function getData() {
|
||||||
const row = rows.value[rowIndex.value];
|
const row = rows.value[rowIndex.value];
|
||||||
certificateNo.value = row.certificateNo;
|
certificateNo.value = row.certificateNo;
|
||||||
issuer.value = row.issuer;
|
issuer.value = row.issuer;
|
||||||
|
|
@ -271,12 +272,12 @@ const getData = () => {
|
||||||
expireDate.value = row.expireDate;
|
expireDate.value = row.expireDate;
|
||||||
certificateType.value = row.certificateType;
|
certificateType.value = row.certificateType;
|
||||||
id.value = row.id;
|
id.value = row.id;
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* เช็คปุ่มดูข้อมูล ย้อน กับ ต่อไป ว่าต้องแสดงไหม
|
* เช็คปุ่มดูข้อมูล ย้อน กับ ต่อไป ว่าต้องแสดงไหม
|
||||||
*/
|
*/
|
||||||
const checkRowPage = () => {
|
async function checkRowPage() {
|
||||||
editRow.value = false;
|
editRow.value = false;
|
||||||
next.value = true;
|
next.value = true;
|
||||||
previous.value = true;
|
previous.value = true;
|
||||||
|
|
@ -286,7 +287,7 @@ const checkRowPage = () => {
|
||||||
if (rowIndex.value - 1 < 0) {
|
if (rowIndex.value - 1 < 0) {
|
||||||
previous.value = false;
|
previous.value = false;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* กดปุ่มแก้ไขใน dialog
|
* กดปุ่มแก้ไขใน dialog
|
||||||
|
|
@ -302,7 +303,7 @@ const clickEdit = () => {
|
||||||
*/
|
*/
|
||||||
const clickAdd = async () => {
|
const clickAdd = async () => {
|
||||||
editRow.value = false;
|
editRow.value = false;
|
||||||
await addData();
|
addData();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -310,9 +311,9 @@ const clickAdd = async () => {
|
||||||
*/
|
*/
|
||||||
const clickSave = async () => {
|
const clickSave = async () => {
|
||||||
if (modalEdit.value) {
|
if (modalEdit.value) {
|
||||||
await dialogConfirm($q, () => editData());
|
dialogConfirm($q, () => editData());
|
||||||
} else {
|
} else {
|
||||||
await dialogConfirm($q, () => saveData());
|
dialogConfirm($q, () => saveData());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -326,8 +327,8 @@ const saveData = async () => {
|
||||||
id: id.value,
|
id: id.value,
|
||||||
certificateNo: certificateNo.value,
|
certificateNo: certificateNo.value,
|
||||||
issuer: issuer.value,
|
issuer: issuer.value,
|
||||||
issueDate: new Date(issueDate.value),
|
issueDate: convertDateToAPI(new Date(issueDate.value)),
|
||||||
expireDate: new Date(expireDate.value),
|
expireDate: convertDateToAPI(new Date(expireDate.value)),
|
||||||
certificateType: certificateType.value,
|
certificateType: certificateType.value,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|
@ -353,8 +354,8 @@ const editData = async () => {
|
||||||
id: id.value,
|
id: id.value,
|
||||||
certificateNo: certificateNo.value,
|
certificateNo: certificateNo.value,
|
||||||
issuer: issuer.value,
|
issuer: issuer.value,
|
||||||
issueDate: new Date(issueDate.value),
|
issueDate: convertDateToAPI(new Date(issueDate.value)),
|
||||||
expireDate: new Date(expireDate.value),
|
expireDate: convertDateToAPI(new Date(expireDate.value)),
|
||||||
certificateType: certificateType.value,
|
certificateType: certificateType.value,
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ const {
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dialogRemove,
|
dialogRemove,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -444,15 +445,15 @@ const saveData = async () => {
|
||||||
durationYear: Number(durationYear.value),
|
durationYear: Number(durationYear.value),
|
||||||
other: other.value,
|
other: other.value,
|
||||||
fundName: fundName.value,
|
fundName: fundName.value,
|
||||||
finishDate: dateToISO(finishDate.value),
|
finishDate: convertDateToAPI(finishDate.value),
|
||||||
startDate:
|
startDate:
|
||||||
isDate.value == "true"
|
isDate.value == "true"
|
||||||
? new Date(startDate2.value)
|
? convertDateToAPI(new Date(startDate2.value))
|
||||||
: new Date(`${startDate.value}-01-01`),
|
: convertDateToAPI(new Date(`${startDate.value}-01-01`)),
|
||||||
endDate:
|
endDate:
|
||||||
isDate.value == "true"
|
isDate.value == "true"
|
||||||
? new Date(endDate2.value)
|
? convertDateToAPI(new Date(endDate2.value))
|
||||||
: new Date(`${endDate.value}-01-01`),
|
: convertDateToAPI(new Date(`${endDate.value}-01-01`)),
|
||||||
isDate: isDate.value == "true",
|
isDate: isDate.value == "true",
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|
@ -492,12 +493,12 @@ const editData = async () => {
|
||||||
finishDate: new Date(finishDate.value),
|
finishDate: new Date(finishDate.value),
|
||||||
startDate:
|
startDate:
|
||||||
isDate.value == "true"
|
isDate.value == "true"
|
||||||
? new Date(startDate2.value)
|
? convertDateToAPI(new Date(startDate2.value))
|
||||||
: new Date(`${startDate.value}-01-01`),
|
: convertDateToAPI(new Date(`${startDate.value}-01-01`)),
|
||||||
endDate:
|
endDate:
|
||||||
isDate.value == "true"
|
isDate.value == "true"
|
||||||
? new Date(endDate2.value)
|
? convertDateToAPI(new Date(endDate2.value))
|
||||||
: new Date(`${endDate.value}-01-01`),
|
: convertDateToAPI(new Date(`${endDate.value}-01-01`)),
|
||||||
isDate: isDate.value == "true",
|
isDate: isDate.value == "true",
|
||||||
})
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
|
|
@ -208,7 +209,7 @@ const editData = async () => {
|
||||||
nationality: informaData.value.nationality,
|
nationality: informaData.value.nationality,
|
||||||
race: informaData.value.race,
|
race: informaData.value.race,
|
||||||
religion: informaData.value.religionId,
|
religion: informaData.value.religionId,
|
||||||
birthDate: informaData.value.dateOfBirth,
|
birthDate: convertDateToAPI(informaData.value.dateOfBirth),
|
||||||
bloodGroup: informaData.value.bloodGroupId,
|
bloodGroup: informaData.value.bloodGroupId,
|
||||||
relationship: informaData.value.relationshipId,
|
relationship: informaData.value.relationshipId,
|
||||||
telephoneNumber: informaData.value.telephone,
|
telephoneNumber: informaData.value.telephone,
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ const {
|
||||||
messageError,
|
messageError,
|
||||||
dialogMessageNotify,
|
dialogMessageNotify,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
} = useCounterMixin();
|
} = useCounterMixin();
|
||||||
|
|
||||||
/**props*/
|
/**props*/
|
||||||
|
|
@ -233,7 +234,7 @@ async function onClickSubmit() {
|
||||||
posTypeName: selectedPos.value[0].posTypeName, //ชื่อตำแหน่ง
|
posTypeName: selectedPos.value[0].posTypeName, //ชื่อตำแหน่ง
|
||||||
posLevelId: selectedPos.value[0].posLevelId, //ชื่อตำแหน่ง
|
posLevelId: selectedPos.value[0].posLevelId, //ชื่อตำแหน่ง
|
||||||
posLevelName: selectedPos.value[0].posLevelName, //ชื่อตำแหน่ง
|
posLevelName: selectedPos.value[0].posLevelName, //ชื่อตำแหน่ง
|
||||||
reportingDate: datePos.value,
|
reportingDate: convertDateToAPI(datePos.value),
|
||||||
posmasterId: dataPosMaster.id,
|
posmasterId: dataPosMaster.id,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ const {
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
date2Thai,
|
date2Thai,
|
||||||
onSearchDataTable,
|
onSearchDataTable,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
/** รับค่ามาจากหน้าหลัก */
|
/** รับค่ามาจากหน้าหลัก */
|
||||||
|
|
@ -732,7 +733,9 @@ function onSubmitDate() {
|
||||||
dialogConfirm($q, () => {
|
dialogConfirm($q, () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
.put(config.API.clearDate(rowId.value), { date: reportingDate.value })
|
.put(config.API.clearDate(rowId.value), {
|
||||||
|
date: convertDateToAPI(reportingDate.value),
|
||||||
|
})
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await Promise.all([getTable(), props.statCard()]);
|
await Promise.all([getTable(), props.statCard()]);
|
||||||
await success($q, "บันทึกข้อมูลสำเร็จ");
|
await success($q, "บันทึกข้อมูลสำเร็จ");
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dateToISO,
|
convertDateToAPI,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
|
|
@ -454,7 +454,7 @@ function saveData() {
|
||||||
lastname: informaData.value.lastname,
|
lastname: informaData.value.lastname,
|
||||||
dateOfBirth:
|
dateOfBirth:
|
||||||
informaData.value.birthDate !== null
|
informaData.value.birthDate !== null
|
||||||
? dateToISO(informaData.value.birthDate)
|
? convertDateToAPI(informaData.value.birthDate)
|
||||||
: null,
|
: null,
|
||||||
gender: informaData.value.genderId,
|
gender: informaData.value.genderId,
|
||||||
nationality: informaData.value.nationality,
|
nationality: informaData.value.nationality,
|
||||||
|
|
|
||||||
|
|
@ -28,6 +28,7 @@ const {
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
findOrgName,
|
findOrgName,
|
||||||
} = useCounterMixin();
|
} = useCounterMixin();
|
||||||
|
|
||||||
|
|
@ -95,7 +96,7 @@ function onSubmit() {
|
||||||
amountOld: salary.value,
|
amountOld: salary.value,
|
||||||
organization: organization.value,
|
organization: organization.value,
|
||||||
date: date.value,
|
date: date.value,
|
||||||
dateRepatriation: dateRepatriation.value,
|
dateRepatriation: convertDateToAPI(dateRepatriation.value),
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
};
|
};
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ const {
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const myForm = ref<QForm | null>(null);
|
const myForm = ref<QForm | null>(null);
|
||||||
|
|
@ -252,7 +253,7 @@ function onSubmit() {
|
||||||
organization: organization.value,
|
organization: organization.value,
|
||||||
reason: reason.value,
|
reason: reason.value,
|
||||||
organizationPositionOld: organizationPositionOld.value,
|
organizationPositionOld: organizationPositionOld.value,
|
||||||
date: date.value,
|
date: convertDateToAPI(date.value),
|
||||||
positionTypeOld: positionTypeOld.value,
|
positionTypeOld: positionTypeOld.value,
|
||||||
positionLevelOld: positionLevelOld.value,
|
positionLevelOld: positionLevelOld.value,
|
||||||
positionNumberOld: posNo.value,
|
positionNumberOld: posNo.value,
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dateToISO,
|
convertDateToAPI,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
|
|
@ -228,8 +228,8 @@ function savaForm() {
|
||||||
function save() {
|
function save() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
knowledge_level: knowledge_level.value,
|
knowledge_level: knowledge_level.value,
|
||||||
skill_level: skill_level.value,
|
skill_level: skill_level.value,
|
||||||
competency_level: competency_level.value,
|
competency_level: competency_level.value,
|
||||||
|
|
@ -256,7 +256,7 @@ function save() {
|
||||||
self_learning: Number(self_learning.value),
|
self_learning: Number(self_learning.value),
|
||||||
training_seminar: Number(training_seminar.value),
|
training_seminar: Number(training_seminar.value),
|
||||||
other_training: Number(other_training.value),
|
other_training: Number(other_training.value),
|
||||||
commander_dated: dateToISO(dateAutherise.value),
|
commander_dated: convertDateToAPI(dateAutherise.value),
|
||||||
};
|
};
|
||||||
|
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
|
|
@ -266,12 +266,12 @@ function save() {
|
||||||
config.API.editFormEvaluateCommader(assignId.value, evaluate_id.value),
|
config.API.editFormEvaluateCommader(assignId.value, evaluate_id.value),
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
.then((res: any) => {
|
.then(() => {
|
||||||
status.value = false;
|
status.value = false;
|
||||||
success($q, "บันทึกสำเร็จ");
|
success($q, "บันทึกสำเร็จ");
|
||||||
hideLoader();
|
hideLoader();
|
||||||
})
|
})
|
||||||
.catch((e: any) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
|
|
@ -304,7 +304,9 @@ onMounted(async () => {
|
||||||
<div v-if="!status">
|
<div v-if="!status">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="
|
v-if="
|
||||||
!checkRoutePermisson && probationStore.dataPermissions?.tab4.isEdit && !isCheckFile
|
!checkRoutePermisson &&
|
||||||
|
probationStore.dataPermissions?.tab4.isEdit &&
|
||||||
|
!isCheckFile
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
success,
|
success,
|
||||||
dateToISO,
|
convertDateToAPI,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
dialogMessageNotify,
|
dialogMessageNotify,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
@ -197,8 +197,8 @@ async function fecthAssign(id: string) {
|
||||||
function putformData() {
|
function putformData() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
knowledge_level: knowledge_level.value,
|
knowledge_level: knowledge_level.value,
|
||||||
skill_level: skill_level.value,
|
skill_level: skill_level.value,
|
||||||
competency_level: competency_level.value,
|
competency_level: competency_level.value,
|
||||||
|
|
@ -225,7 +225,7 @@ function putformData() {
|
||||||
self_learning: Number(self_learning.value),
|
self_learning: Number(self_learning.value),
|
||||||
training_seminar: Number(training_seminar.value),
|
training_seminar: Number(training_seminar.value),
|
||||||
other_training: Number(other_training.value),
|
other_training: Number(other_training.value),
|
||||||
commander_dated: dateToISO(dateAutherise.value),
|
commander_dated: convertDateToAPI(dateAutherise.value),
|
||||||
};
|
};
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ const {
|
||||||
messageError,
|
messageError,
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dateToISO,
|
convertDateToAPI,
|
||||||
success,
|
success,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
@ -364,8 +364,8 @@ function savaForm() {
|
||||||
function putformData() {
|
function putformData() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
knowledge_level: learn_level.value,
|
knowledge_level: learn_level.value,
|
||||||
apply_level: apply_level.value,
|
apply_level: apply_level.value,
|
||||||
success_level: success_level.value,
|
success_level: success_level.value,
|
||||||
|
|
@ -401,11 +401,11 @@ function putformData() {
|
||||||
behavior_result: Number(behavior_result.value),
|
behavior_result: Number(behavior_result.value),
|
||||||
sum_score: (Number(score1Per60.value) + Number(score2.value)) / 2,
|
sum_score: (Number(score1Per60.value) + Number(score2.value)) / 2,
|
||||||
sum_percent: percent_sum.value,
|
sum_percent: percent_sum.value,
|
||||||
chairman_dated: dateToISO(dateAutherise.value),
|
chairman_dated: convertDateToAPI(dateAutherise.value),
|
||||||
develop_result: Number(develop_result.value),
|
develop_result: Number(develop_result.value),
|
||||||
evaluate_result: Number(evaluate_result.value),
|
evaluate_result: Number(evaluate_result.value),
|
||||||
director1_dated: dateToISO(director1_dated.value),
|
director1_dated: convertDateToAPI(director1_dated.value),
|
||||||
director2_dated: dateToISO(director2_dated.value),
|
director2_dated: convertDateToAPI(director2_dated.value),
|
||||||
};
|
};
|
||||||
|
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const {
|
||||||
messageError,
|
messageError,
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dateToISO,
|
convertDateToAPI,
|
||||||
success,
|
success,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
dialogMessageNotify,
|
dialogMessageNotify,
|
||||||
|
|
@ -336,8 +336,8 @@ async function savaForm() {
|
||||||
const putformData = () => {
|
const putformData = () => {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
knowledge_level: learn_level.value,
|
knowledge_level: learn_level.value,
|
||||||
apply_level: apply_level.value,
|
apply_level: apply_level.value,
|
||||||
success_level: success_level.value,
|
success_level: success_level.value,
|
||||||
|
|
@ -374,10 +374,10 @@ const putformData = () => {
|
||||||
sum_score: (Number(score1Per60.value) + Number(score2.value)) / 2,
|
sum_score: (Number(score1Per60.value) + Number(score2.value)) / 2,
|
||||||
sum_percent: percent_sum.value,
|
sum_percent: percent_sum.value,
|
||||||
develop_result: Number(develop_result.value),
|
develop_result: Number(develop_result.value),
|
||||||
chairman_dated: dateToISO(dateAutherise.value),
|
chairman_dated: convertDateToAPI(dateAutherise.value),
|
||||||
evaluate_result: Number(evaluate_result.value),
|
evaluate_result: Number(evaluate_result.value),
|
||||||
director1_dated: dateToISO(director1_dated.value),
|
director1_dated: convertDateToAPI(director1_dated.value),
|
||||||
director2_dated: dateToISO(director2_dated.value),
|
director2_dated: convertDateToAPI(director2_dated.value),
|
||||||
};
|
};
|
||||||
dialogConfirm($q, async () => {
|
dialogConfirm($q, async () => {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI,
|
||||||
dialogMessageNotify,
|
dialogMessageNotify,
|
||||||
} = mixin;
|
} = mixin;
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -187,8 +188,8 @@ async function savaForm() {
|
||||||
*/
|
*/
|
||||||
async function postData(action: string) {
|
async function postData(action: string) {
|
||||||
const data = {
|
const data = {
|
||||||
start_date: date_start.value,
|
start_date: convertDateToAPI(date_start.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: date_finish.value ? convertDateToAPI(date_finish.value) : null,
|
||||||
develop_complete: props.tab === "save1" ? 0 : develop.value,
|
develop_complete: props.tab === "save1" ? 0 : develop.value,
|
||||||
pass_result: result.value,
|
pass_result: result.value,
|
||||||
reson: reson.value,
|
reson: reson.value,
|
||||||
|
|
@ -201,7 +202,7 @@ async function postData(action: string) {
|
||||||
authority_pos: authority_pos.value,
|
authority_pos: authority_pos.value,
|
||||||
authority_type: authority_type.value,
|
authority_type: authority_type.value,
|
||||||
authority_level: authority_level.value,
|
authority_level: authority_level.value,
|
||||||
authority_dated: authority_dated.value,
|
authority_dated: convertDateToAPI(authority_dated.value),
|
||||||
};
|
};
|
||||||
if (action === "post") {
|
if (action === "post") {
|
||||||
showLoader();
|
showLoader();
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ const {
|
||||||
date2Thai,
|
date2Thai,
|
||||||
success,
|
success,
|
||||||
notifyError,
|
notifyError,
|
||||||
dateToISO,
|
convertDateToAPI,
|
||||||
messageError,
|
messageError,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
showLoader,
|
showLoader,
|
||||||
|
|
@ -278,8 +278,8 @@ function savaForm() {
|
||||||
function putformData() {
|
function putformData() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||||
evaluate_ouptut: evaluate_ouptut.value,
|
evaluate_ouptut: evaluate_ouptut.value,
|
||||||
knowledge_level: knowledge_level.value,
|
knowledge_level: knowledge_level.value,
|
||||||
|
|
@ -309,7 +309,7 @@ function putformData() {
|
||||||
self_learning: Number(self_learning.value),
|
self_learning: Number(self_learning.value),
|
||||||
training_seminar: Number(training_seminar.value),
|
training_seminar: Number(training_seminar.value),
|
||||||
other_training: Number(other_training.value),
|
other_training: Number(other_training.value),
|
||||||
assessor_dated: dateToISO(dateAutherise.value),
|
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||||
};
|
};
|
||||||
|
|
||||||
dialogConfirm($q, () =>
|
dialogConfirm($q, () =>
|
||||||
|
|
@ -380,7 +380,9 @@ onMounted(async () => {
|
||||||
<div v-if="!status">
|
<div v-if="!status">
|
||||||
<q-btn
|
<q-btn
|
||||||
v-if="
|
v-if="
|
||||||
!checkRoutePermisson && probationStore.dataPermissions?.tab2.isEdit && !isCheckFile
|
!checkRoutePermisson &&
|
||||||
|
probationStore.dataPermissions?.tab2.isEdit &&
|
||||||
|
!isCheckFile
|
||||||
"
|
"
|
||||||
dense
|
dense
|
||||||
flat
|
flat
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,7 @@ const mixin = useCounterMixin();
|
||||||
const {
|
const {
|
||||||
date2Thai,
|
date2Thai,
|
||||||
success,
|
success,
|
||||||
notifyError,
|
convertDateToAPI,
|
||||||
dateToISO,
|
|
||||||
messageError,
|
messageError,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
dialogMessageNotify,
|
dialogMessageNotify,
|
||||||
|
|
@ -252,8 +251,8 @@ function savaForm() {
|
||||||
function putformData() {
|
function putformData() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||||
evaluate_ouptut: evaluate_ouptut.value,
|
evaluate_ouptut: evaluate_ouptut.value,
|
||||||
knowledge_level: knowledge_level.value,
|
knowledge_level: knowledge_level.value,
|
||||||
|
|
@ -284,7 +283,7 @@ function putformData() {
|
||||||
self_learning: Number(self_learning.value),
|
self_learning: Number(self_learning.value),
|
||||||
training_seminar: Number(training_seminar.value),
|
training_seminar: Number(training_seminar.value),
|
||||||
other_training: Number(other_training.value),
|
other_training: Number(other_training.value),
|
||||||
assessor_dated: dateToISO(dateAutherise.value),
|
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||||
};
|
};
|
||||||
dialogConfirm($q, async () => await saveformdata(data));
|
dialogConfirm($q, async () => await saveformdata(data));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ const {
|
||||||
messageError,
|
messageError,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
dialogMessageNotify,
|
dialogMessageNotify,
|
||||||
|
convertDateToAPI
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const assignId = ref<string>(route.params.form.toString());
|
const assignId = ref<string>(route.params.form.toString());
|
||||||
|
|
@ -257,8 +258,8 @@ async function fecthFormdata(id: string) {
|
||||||
function putformData() {
|
function putformData() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||||
evaluate_ouptut: evaluate_ouptut.value,
|
evaluate_ouptut: evaluate_ouptut.value,
|
||||||
knowledge_level: knowledge_level.value,
|
knowledge_level: knowledge_level.value,
|
||||||
|
|
@ -289,7 +290,7 @@ function putformData() {
|
||||||
self_learning: Number(self_learning.value),
|
self_learning: Number(self_learning.value),
|
||||||
training_seminar: Number(training_seminar.value),
|
training_seminar: Number(training_seminar.value),
|
||||||
other_training: Number(other_training.value),
|
other_training: Number(other_training.value),
|
||||||
assessor_dated: dateToISO(dateAutherise.value),
|
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||||
};
|
};
|
||||||
dialogConfirm($q, async () => await saveformdata(data));
|
dialogConfirm($q, async () => await saveformdata(data));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ const {
|
||||||
showLoader,
|
showLoader,
|
||||||
hideLoader,
|
hideLoader,
|
||||||
dialogConfirm,
|
dialogConfirm,
|
||||||
|
convertDateToAPI
|
||||||
} = mixin;
|
} = mixin;
|
||||||
|
|
||||||
const assignId = ref<string>(route.params.form.toString());
|
const assignId = ref<string>(route.params.form.toString());
|
||||||
|
|
@ -288,8 +289,8 @@ function savaForm() {
|
||||||
function putformData() {
|
function putformData() {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: convertDateToAPI(start_date.value),
|
||||||
date_finish: date_finish.value,
|
date_finish: convertDateToAPI(date_finish.value),
|
||||||
evaluate_expenct_level: evaluate_expenct_level.value,
|
evaluate_expenct_level: evaluate_expenct_level.value,
|
||||||
evaluate_ouptut: evaluate_ouptut.value,
|
evaluate_ouptut: evaluate_ouptut.value,
|
||||||
knowledge_level: knowledge_level.value,
|
knowledge_level: knowledge_level.value,
|
||||||
|
|
@ -319,7 +320,7 @@ function putformData() {
|
||||||
self_learning: Number(self_learning.value),
|
self_learning: Number(self_learning.value),
|
||||||
training_seminar: Number(training_seminar.value),
|
training_seminar: Number(training_seminar.value),
|
||||||
other_training: Number(other_training.value),
|
other_training: Number(other_training.value),
|
||||||
assessor_dated: dateToISO(dateAutherise.value),
|
assessor_dated: convertDateToAPI(dateAutherise.value),
|
||||||
};
|
};
|
||||||
|
|
||||||
dialogConfirm($q, () =>
|
dialogConfirm($q, () =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue