This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-26 11:09:12 +07:00
parent 68a9efee60
commit ef064f4a18
4 changed files with 68 additions and 294 deletions

View file

@ -167,7 +167,7 @@ async function fetchCheckStep(id: string) {
store.step = step;
})
.catch((err) => {
// messageError($q, err);
messageError($q, err);
})
.finally(() => {
showLoadStatus.value = true;
@ -232,6 +232,7 @@ function updateFormDetail(data: any) {
formDetail.value = data;
console.log("🚀 ~ updateFormDetail ~ data:", data);
}
/** function เช็คการการคุณสมบัติ*/
function checkSelectForm() {
const isTrue = Object.keys(formSpec).find((key) => formSpec[key] === true);
@ -247,6 +248,7 @@ function checkSelectForm() {
)
: dialogMessageNotify($q, "กรุณาเลือกคุณสมบัติ");
}
/** function บันทักตรวจสอบคุณสมบัติ*/
async function saveStep1() {
const salaries = formDetail.value.salaries.map((e: any) => ({