diff --git a/src/modules/18_command/components/Step/1_Detail.vue b/src/modules/18_command/components/Step/1_Detail.vue index cb3b532b8..ff3f564a6 100644 --- a/src/modules/18_command/components/Step/1_Detail.vue +++ b/src/modules/18_command/components/Step/1_Detail.vue @@ -25,6 +25,7 @@ const { dialogConfirm, convertDateToAPI, dialogRemove, + dialogMessageNotify, } = useCounterMixin(); /** @@ -130,6 +131,15 @@ async function fetchCheckIdofficer() { * และกำหนด isChangeData เป็น false */ async function onSubmit() { + //ถ้าเป็น สกจ. ต้องเลือกประเภทคำสั่งด้วย + if ( + isIdofficer.value && + formData.isBangkok !== "BANGKOK" && + formData.isBangkok !== "OFFICE" + ) { + dialogMessageNotify($q, "กรุณาเลือกคำสั่ง"); + return; + } dialogConfirm($q, async () => { showLoader(); await http @@ -156,7 +166,7 @@ async function onSubmit() { }); } -/** ฟังกชันดึงข้อมูลรายชื่อเจ้าหน้าที่ดำเนินการ */ +/** ฟังก์ชันดึงข้อมูลรายชื่อเจ้าหน้าที่ดำเนินการ */ async function fetchDataOperatorList() { try { const res = await http.get(