This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-10-28 09:54:06 +07:00
parent 627696ea65
commit 018e430289
5 changed files with 31 additions and 42 deletions

View file

@ -8,8 +8,8 @@ import { useCommandDetail } from "@/modules/18_command/store/DetailStore";
import http from "@/plugins/http";
import config from "@/app.config";
import LiveView from "@/modules/18_command/components/Step/View0_Live.vue";
import DigitalView from "@/modules/18_command/components/Step/View0_Digital.vue";
import LiveView from "@/modules/18_command/components/Step/View0_Live.vue"; //
import DigitalView from "@/modules/18_command/components/Step/View0_Digital.vue"; //Digital Signature
const $q = useQuasar();
const route = useRoute();
@ -19,7 +19,7 @@ const { showLoader, hideLoader, messageError, dialogConfirm } =
useCounterMixin();
const commandId = ref<string>(route.params.id.toString()); //ID
const step = ref<number>(1);
const step = ref<number>(1); //
const isStatus = ref<string>(""); //
const signaturetype = ref<string>(""); //
const isSignature = ref<boolean | null>(null);
@ -28,6 +28,7 @@ const isDraft = ref<boolean>(false); //ทำแบบร่าง
const isSign = ref<boolean>(false); //
const isAttachment = ref<boolean>(false); //
/** ฟังก์ชันเรียกข้อมูลสถานะคำสั่ง*/
async function fetchData() {
showLoader();
await http
@ -55,6 +56,7 @@ async function fetchData() {
});
}
/** ฟังก์ชันยืนยันวิธีลงนาม*/
function onConfirmSignature() {
dialogConfirm(
$q,