fix ==> ระบบออกคำสั่ง >> คำสั่ง อนุญาตให้ลูกจ้างลาออกจากราชการ (กรณีออกคำสั่งเสร็จสิ้น)

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-07-24 10:25:19 +07:00
parent 14da947953
commit 5633776da2

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>