fix: encounter update form

This commit is contained in:
riefive
2025-12-04 12:36:53 +07:00
parent 434f8471ce
commit e6b74a4949
2 changed files with 24 additions and 23 deletions
+22 -20
View File
@@ -574,14 +574,15 @@ defineExpose({
<span class="mt-1 text-sm text-gray-500">
{{ noteFile }}
</span>
<a
v-if="sepFileReview"
class="text-bluered-500 mt-1 text-sm"
href="#"
@click="openFile(sepFileReview.filePath)"
>
{{ sepFileReview?.fileName }}
</a>
<p v-if="sepFileReview">
<a
class="mt-1 text-sm text-blue-500 capitalize"
href="#"
@click="openFile(sepFileReview.filePath)"
>
{{ sepFileReview?.fileName }}
</a>
</p>
</DE.Cell>
<DE.Cell>
@@ -598,14 +599,15 @@ defineExpose({
<span class="mt-1 text-sm text-gray-500">
{{ noteFile }}
</span>
<a
v-if="sippFileReview"
class="text-bluered-500 mt-1 text-sm"
href="#"
@click="openFile(sippFileReview.filePath)"
>
{{ sippFileReview?.fileName }}
</a>
<p v-if="sippFileReview">
<a
class="mt-1 text-sm text-blue-500 capitalize"
href="#"
@click="openFile(sippFileReview.filePath)"
>
{{ sippFileReview?.fileName }}
</a>
</p>
</DE.Cell>
</DE.Block>
</template>
@@ -623,13 +625,13 @@ defineExpose({
>
<DE.Cell>
<Label height="compact">Dengan Rujukan / Surat Kontrol</Label>
<Field>
<DE.Field>
<Input
id="sepReference"
v-model="sepReference"
:disabled="true"
/>
</Field>
</DE.Field>
</DE.Cell>
<DE.Cell>
@@ -667,13 +669,13 @@ defineExpose({
>
<DE.Cell :col-span="2">
<Label height="compact">Diagnosis</Label>
<Field>
<DE.Field>
<Input
id="diagnosis"
v-model="diagnosis"
:disabled="true"
/>
</Field>
</DE.Field>
</DE.Cell>
<DE.Cell>
+2 -3
View File
@@ -474,15 +474,14 @@ export function useEncounterEntry(props: {
let sepFileReview = {}
let sippFileReview = {}
for (const doc of encounter.encounterDocuments) {
if (doc.type === 'vclaim-sep') {
if (doc.type_code === 'vclaim-sep') {
sepFileReview = { id: doc.id, fileName: doc.fileName, filePath: doc.filePath, type: doc.type_code }
} else if (doc.type === 'vclaim-sipp') {
} else if (doc.type_code === 'vclaim-sipp') {
sippFileReview = { id: doc.id, fileName: doc.fileName, filePath: doc.filePath, type: doc.type_code }
}
}
formData.sepFileReview = sepFileReview
formData.sippFileReview = sippFileReview
console.log(sepFileReview)
}
formObjects.value = { ...formData }