diff --git a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue index b433b459c..31a93624a 100644 --- a/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue +++ b/src/modules/11_discipline/components/2_InvestigateFacts/Form.vue @@ -309,9 +309,10 @@ watch(props.data, async () => { formData.investigationStatusResult = props.data.investigationStatusResult; formData.investigationCauseText = props.data.investigationCauseText; formData.result = props.data.result; - - investigateFactStore.rowsAdd = props.data.persons - rows.value = props.data.directors + formData.disciplineInvestigateDocs = props.data.disciplineInvestigateDocs; + + investigateFactStore.rowsAdd = props.data.persons; + rows.value = props.data.directors; } }); @@ -332,6 +333,7 @@ function uploadFileRelevant() { }) .finally(async () => { hideLoader(); + formData.evidenceFiles = null; }); } @@ -352,6 +354,7 @@ function uploadFile() { }) .finally(async () => { hideLoader(); + formData.documentFile = null; }); } @@ -586,6 +589,7 @@ onMounted(async () => { outlined hide-bottom-space dense + lazy-rules ref="investigationDetailRef" :rules="[(val) => !!val || `${'กรุณาเลือกลักษณะการสืบสวน'}`]" v-model="formData.investigationDetail" @@ -1105,11 +1109,6 @@ onMounted(async () => { dense v-model="formData.evidenceFiles" label="เอกสารที่เกี่ยวข้องกับการสืบสวน" - lazy-rules - :rules="[ - (val) => - !!val || 'กรุณาเลือกไฟล์เอกสารที่เกี่ยวข้องกับการสืบสวน', - ]" hide-bottom-space >