Some Changes
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
<div
|
||||
class="previewDoc"
|
||||
>
|
||||
<embed
|
||||
<!-- <embed
|
||||
:src="fileurl + '#toolbar=0&navpanes=0&scrollbar=0&statusbar=0&messages=0&scrollbar=0'"
|
||||
width="40vw"
|
||||
height="50vh"
|
||||
>
|
||||
>-->
|
||||
</div>
|
||||
<div
|
||||
class="inputData"
|
||||
@@ -98,7 +98,9 @@
|
||||
<UInput disabled/>
|
||||
</UFormGroup>
|
||||
</div>-->
|
||||
{{vendorInvoiceData}}
|
||||
{{vendorInvoiceData}}<br>
|
||||
{{currentVendorInvoice}}<br>
|
||||
{{getDocumentById(78)}}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -108,7 +110,7 @@ const supabase = useSupabaseClient()
|
||||
const route = useRoute()
|
||||
|
||||
const {vendors} = storeToRefs(useDataStore())
|
||||
|
||||
const {getVendorInvoiceById, getDocumentById} = useDataStore()
|
||||
|
||||
|
||||
const invoice = ref({
|
||||
@@ -126,12 +128,13 @@ const labelDueDate = computed(() => invoice.value.dueDate.toLocaleDateString('de
|
||||
|
||||
|
||||
|
||||
//const currentVendorInvoice = (await supabase.from('vendorInvoices').select().eq('id', route.params.id)).data
|
||||
const document = (await supabase.from('documents').select().eq("id",18)).data[0]
|
||||
const currentVendorInvoice = ref(getVendorInvoiceById(Number(route.params.id)))
|
||||
console.log(currentVendorInvoice)
|
||||
const currentDocument = getDocumentById(Number(currentVendorInvoice.document))
|
||||
console.log(currentDocument)
|
||||
//console.log(document)
|
||||
|
||||
console.log(document)
|
||||
|
||||
let fileurl = (await supabase.storage.from('documents').createSignedUrl(document.path,60*60)).data.signedUrl
|
||||
//let fileurl = (await supabase.storage.from('documents').createSignedUrl(document.path,60*60)).data.signedUrl
|
||||
|
||||
|
||||
let vendorInvoiceData = ref({
|
||||
|
||||
Reference in New Issue
Block a user