fix bug รายละเอียดคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-21 16:39:25 +07:00
parent 26123c1184
commit 3f20979e66
2 changed files with 8 additions and 6 deletions

View file

@ -46,7 +46,6 @@ async function fetchData() {
isDraft.value = data.isDraft;
isSign.value = data.isSign;
isAttachment.value = data.isAttachment;
store.readonly = step.value > 2;
})
.catch((err) => {
messageError($q, err);

View file

@ -3,7 +3,7 @@ import { onMounted, ref } from "vue";
import { useQuasar } from "quasar";
import axios from "axios";
import { useRoute } from "vue-router";
import { useRoute, useRouter } from "vue-router";
import { useCounterMixin } from "@/stores/mixin";
import { useCommandDetail } from "@/modules/18_command/store/DetailStore";
import http from "@/plugins/http";
@ -15,6 +15,7 @@ import PerviewPDF from "@/modules/18_command/components/Step/PerviewPDF.vue";
const $q = useQuasar();
const route = useRoute();
const router = useRouter();
const store = useCommandDetail();
const {
showLoader,
@ -61,8 +62,9 @@ function onConfirmDraft() {
sign: isDraft.value,
})
.then(async () => {
fetchData?.();
isCheckDraft.value = true;
router.push(`/command/view/${commandId.value}`);
// fetchData?.();
// isCheckDraft.value = true;
})
.catch((err) => {
messageError($q, err);
@ -235,8 +237,9 @@ function onConfirmOrder() {
sign: isAuthority.value,
})
.then(async () => {
fetchData?.();
isCheckAuthority.value = true;
router.push(`/command/view/${commandId.value}`);
// fetchData?.();
// isCheckAuthority.value = true;
})
.catch((err) => {
messageError($q, err);