diff --git a/src/modules/18_command/views/detail.vue b/src/modules/18_command/views/detail.vue index 66991373c..c559429ae 100644 --- a/src/modules/18_command/views/detail.vue +++ b/src/modules/18_command/views/detail.vue @@ -97,8 +97,11 @@ async function fetchDataCommandList() { * กำหนดค่า `store.readonly` เมื่อ route.name เป็น "commandViewDetailPage" จะอ่านข้อมูลได้อย่างเดียว */ onMounted(async () => { - store.readonly = route.name === "commandViewDetailPage"; await fetchDataCommandList(); + store.readonly = + route.name === "commandViewDetailPage" || + formCommandList.status === "REPORTED" || + formCommandList.status === "WAITING"; });