1
0
forked from test/crm

fix: show call note directly

This commit is contained in:
Shariq Ansari 2025-01-19 23:10:16 +05:30
parent 840bb6b76d
commit 2388dffbe0

View File

@ -92,7 +92,7 @@
/> />
</template> </template>
</Dialog> </Dialog>
<NoteModal v-model="showNoteModal" :note="callNoteDoc" /> <NoteModal v-model="showNoteModal" :note="callLog.value?.data?._notes?.[0]" />
</template> </template>
<script setup> <script setup>
@ -121,7 +121,6 @@ const props = defineProps({
const show = defineModel() const show = defineModel()
const showNoteModal = ref(false) const showNoteModal = ref(false)
const router = useRouter() const router = useRouter()
const callNoteDoc = ref(null)
const callLog = ref({}) const callLog = ref({})
const detailFields = computed(() => { const detailFields = computed(() => {
@ -190,7 +189,7 @@ const detailFields = computed(() => {
{ {
icon: NoteIcon, icon: NoteIcon,
name: 'note', name: 'note',
value: callNoteDoc.value, value: callLog.value.data._notes?.[0] ?? null,
}, },
] ]
@ -222,9 +221,6 @@ watch(show, (val) => {
} }
return doc return doc
}, },
onSuccess: (doc) => {
callNoteDoc.value = doc._notes?.[0] ?? null
},
}) })
} }
}) })