fixing bug

This commit is contained in:
Warunee Tamkoo 2024-06-29 01:07:22 +07:00
parent d2e87e2f8b
commit 2b596355eb
2 changed files with 22 additions and 23 deletions

View file

@ -64,8 +64,7 @@ async function onCilckNextStep() {
const functionCreateDoc: (() => Promise<void>) | null =
store.step === 1
? await saveStep1
:
store.step === 3
: store.step === 3
? await saveStep3
: store.step === 7
? await saveStep7
@ -231,7 +230,7 @@ async function updateCheckSpec(data: FormSpec) {
*/
function updateFormDetail(data: any) {
formDetail.value = data;
console.log("🚀 ~ updateFormDetail ~ data:", data)
console.log("🚀 ~ updateFormDetail ~ data:", data);
}
/** function เช็คการการคุณสมบัติ*/
function checkSelectForm() {
@ -250,7 +249,7 @@ function checkSelectForm() {
}
/** function บันทักตรวจสอบคุณสมบัติ*/
async function saveStep1() {
const salaries = formDetail.value.trainings.map((e: any) => ({
const salaries = formDetail.value.salaries.map((e: any) => ({
amount: e.amount,
date: e.date,
mouthSalaryAmount: e.mouthSalaryAmount ? e.mouthSalaryAmount : 0,