Merge branch 'develop' into devTee

This commit is contained in:
setthawutttty 2025-07-24 13:58:31 +07:00
commit dff40749f8

View file

@ -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";
});
</script>