API ประเมืน
This commit is contained in:
parent
0e5d15dc7c
commit
257b4a1424
16 changed files with 700 additions and 186 deletions
|
|
@ -35,13 +35,22 @@ const mixin = useCounterMixin();
|
|||
const $q = useQuasar();
|
||||
|
||||
const { dialogConfirm, showLoader, hideLoader, messageError } = mixin;
|
||||
const { fetchCheckStatus, saveEvaluation, nextPrapare, nextCheckDoc } =
|
||||
evaluationFunctions;
|
||||
const {
|
||||
fetchCheckStatus,
|
||||
saveEvaluation,
|
||||
nextPrapare,
|
||||
nextCheckDoc,
|
||||
nextCheckDoc2,
|
||||
nextPrepareDoc2,
|
||||
} = evaluationFunctions;
|
||||
|
||||
const props = defineProps({
|
||||
title: {
|
||||
type: String,
|
||||
},
|
||||
step: {
|
||||
type: Number,
|
||||
},
|
||||
});
|
||||
|
||||
const externalLink =
|
||||
|
|
@ -164,6 +173,8 @@ async function saveStep2() {
|
|||
}
|
||||
|
||||
function updateformCommand(val: any, ref: any) {
|
||||
console.log(ref);
|
||||
|
||||
formCommand.commanderFullname = val.commanderFullname;
|
||||
formCommand.commanderPosition = val.commanderPosition;
|
||||
formCommand.commanderAboveFullname = val.commanderAboveFullname;
|
||||
|
|
@ -193,7 +204,7 @@ async function validateStep2() {
|
|||
}
|
||||
}
|
||||
if (hasError.every((result) => result === true)) {
|
||||
saveStep2();
|
||||
store.step === 2 ? saveStep2() : saveStep6();
|
||||
} else {
|
||||
console.log("ไม่ผ่าน");
|
||||
}
|
||||
|
|
@ -204,9 +215,8 @@ async function saveStep3() {
|
|||
nextCheckDoc("approve");
|
||||
}
|
||||
async function updateFilePDF(url: any) {
|
||||
console.log(url);
|
||||
|
||||
pdfSrc.value = url;
|
||||
console.log(url);
|
||||
}
|
||||
|
||||
async function saveStep4() {
|
||||
|
|
@ -216,10 +226,11 @@ async function saveStep5() {
|
|||
console.log("Save 5");
|
||||
}
|
||||
async function saveStep6() {
|
||||
console.log("Save 6");
|
||||
nextCheckDoc2(formCommand);
|
||||
}
|
||||
async function saveStep7() {
|
||||
console.log("Save 7");
|
||||
console.log("777777");
|
||||
nextPrepareDoc2();
|
||||
}
|
||||
async function saveStep8() {
|
||||
console.log("Save 8");
|
||||
|
|
@ -336,14 +347,18 @@ onMounted(async () => {
|
|||
:evaluateId="store.evaluateId"
|
||||
/>
|
||||
<Step4 v-if="store.step === 4" />
|
||||
<Step5 v-if="store.step === 5" />
|
||||
<Step5 v-if="store.step === 5" :evaluateId="store.evaluateId" />
|
||||
<Step6
|
||||
v-if="store.step === 6"
|
||||
@update:form="updateformCommand"
|
||||
:evaluateId="store.evaluateId"
|
||||
/>
|
||||
<Step7 v-if="store.step === 7" />
|
||||
<Step8 v-if="store.step === 8" />
|
||||
<Step7
|
||||
v-if="store.step === 7"
|
||||
@update:file="updateFilePDF"
|
||||
:evaluateId="store.evaluateId"
|
||||
/>
|
||||
<Step8 v-if="store.step === 8" :evaluateId="store.evaluateId" />
|
||||
<Step9 v-if="store.step === 9" />
|
||||
</q-card-section>
|
||||
</q-card>
|
||||
|
|
@ -359,7 +374,10 @@ onMounted(async () => {
|
|||
@update:formDeital="updateFormDetail"
|
||||
/>
|
||||
<ViewStep3 v-if="store.step === 3 && pdfSrc" :pdfSrc="pdfSrc" />
|
||||
<ViewStep7 v-if="store.step === 7" /> </q-card-section
|
||||
<ViewStep7
|
||||
v-if="store.step === 7 && pdfSrc"
|
||||
:pdfSrc="pdfSrc"
|
||||
/> </q-card-section
|
||||
></q-card>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue