22 lines
565 B
Vue
22 lines
565 B
Vue
<script setup>
|
|
import PdfViewer from "../../../../../Views/Components/PdfViewer.vue";
|
|
import DistanceAllowance from "./DistanceAllowance.vue";
|
|
|
|
const props = defineProps({
|
|
data: {
|
|
type: Object,
|
|
required: true
|
|
}
|
|
})
|
|
|
|
console.log(props.data)
|
|
const emit = defineEmits(["accept", "deny", "fix"])
|
|
</script>
|
|
|
|
<template>
|
|
<span id="invoice_details_body">
|
|
<PdfViewer :url="'/api/v1/invoice/showReceipt/' + props.data.id" v-if="props.data.documentFilename !== null" />
|
|
<DistanceAllowance v-else :invoice="props.data" />
|
|
</span>
|
|
</template>
|