fix(command): handle dialog notification for Bangkok officers

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-04-08 10:54:08 +07:00
parent e11d9b18dc
commit 7da397a1fe

View file

@ -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(