diff --git a/src/modules/06_evaluate/components/Tab1.vue b/src/modules/06_evaluate/components/Tab1.vue index 83a1c03..8e5efa0 100644 --- a/src/modules/06_evaluate/components/Tab1.vue +++ b/src/modules/06_evaluate/components/Tab1.vue @@ -124,7 +124,6 @@ async function onCilckNextStep() { $q, () => { functionCreateDoc?.(); - // store.step++; }, "ยืนยันการดำเนินการ", "ต้องการยืนยันการดำเนินการต่อใช่หรือไม่?" @@ -173,8 +172,6 @@ async function saveStep2() { } function updateformCommand(val: any, ref: any) { - console.log(ref); - formCommand.commanderFullname = val.commanderFullname; formCommand.commanderPosition = val.commanderPosition; formCommand.commanderAboveFullname = val.commanderAboveFullname; @@ -216,7 +213,6 @@ async function saveStep3() { } async function updateFilePDF(url: any) { pdfSrc.value = url; - console.log(url); } async function saveStep4() { @@ -229,7 +225,6 @@ async function saveStep6() { nextCheckDoc2(formCommand); } async function saveStep7() { - console.log("777777"); nextPrepareDoc2(); } async function saveStep8() { diff --git a/src/modules/06_evaluate/stores/evaluationFunction.ts b/src/modules/06_evaluate/stores/evaluationFunction.ts index afa42e8..4cdd8df 100644 --- a/src/modules/06_evaluate/stores/evaluationFunction.ts +++ b/src/modules/06_evaluate/stores/evaluationFunction.ts @@ -119,8 +119,8 @@ async function saveEvaluation(formSpec: any, detail: any) { posNo: detail.posNo, birthDate: detail.birthDate, govAge: detail.govAge, - type: "", - step: "", + type: store.tabMenu === "1" ? "EXPERT" : "SPECIAL_EXPERT", + step: "PREPARE_DOC_V1", isEducationalQft: formSpec.isEducationalQft, isGovermantServiceHtr: formSpec.isGovermantServiceHtr, isOperatingExp: formSpec.isOperatingExp, @@ -163,22 +163,7 @@ async function nextPrapare(type: string, body: any) { }) .finally(() => { hideLoader(); - fetchCheckStep(store?.evaluateId); - }); -} - -async function peviousPrapare(type: string) { - showLoader(); - await http - .put(config.API.evaluationPreparedoc(store.evaluateId, type)) - .then((res) => { - console.log(res); - }) - .catch((err) => { - messageError($q, err); - }) - .finally(() => { - hideLoader(); + fetchCheckStatus(); }); } @@ -232,7 +217,6 @@ export default { fetchCheckStatus, saveEvaluation, nextPrapare, - peviousPrapare, nextCheckDoc, nextCheckDoc2, nextPrepareDoc2,