Merge branch 'devCorrected' into 'beta'
Fix for Copying See merge request fedeo/software!45
This commit is contained in:
@@ -134,11 +134,11 @@ export const useEntities = (
|
||||
const selectSingle = async (
|
||||
idToEq: string | number,
|
||||
select: string = "*",
|
||||
withInformation: boolean = false
|
||||
withInformation: boolean = true
|
||||
) => {
|
||||
if (!idToEq) return null
|
||||
|
||||
const res = await useNuxtApp().$api(withInformation ? `/api/resource/${relation}/${idToEq}` : `/api/resource/${relation}/${idToEq}`, {
|
||||
const res = await useNuxtApp().$api(withInformation ? `/api/resource/${relation}/${idToEq}` : `/api/resource/${relation}/${idToEq}/true`, {
|
||||
method: "GET",
|
||||
params: { select }
|
||||
})
|
||||
|
||||
@@ -109,7 +109,7 @@ const setupPage = async () => {
|
||||
if (route.params) {
|
||||
if (route.params.id) {
|
||||
console.log(route.params)
|
||||
itemInfo.value = await useEntities("createddocuments").selectSingle(route.params.id)
|
||||
itemInfo.value = await useEntities("createddocuments").selectSingle(route.params.id,'',false)
|
||||
await setContactPersonData()
|
||||
checkCompatibilityWithInputPrice()
|
||||
}
|
||||
@@ -1597,7 +1597,6 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
||||
<UTabs class="p-5" :items="tabItems" @change="onChangeTab" v-if="loaded" v-model="selectedTab">
|
||||
<template #item="{item}">
|
||||
<div v-if="item.label === 'Editor'">
|
||||
|
||||
<UAlert
|
||||
class="my-5"
|
||||
title="Vorhandene Probleme und Informationen:"
|
||||
@@ -1809,7 +1808,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
||||
>
|
||||
<template #description>
|
||||
Kundennr: {{ customers.find(i => i.id === itemInfo.customer).customerNumber }}<br>
|
||||
Typ: {{ customers.find(i => i.id === itemInfo.customer).is_company ? 'Firma' : 'Privat' }}<br>
|
||||
Typ: {{ customers.find(i => i.id === itemInfo.customer).isCompany ? 'Firma' : 'Privat' }}<br>
|
||||
Notizen: <span class="truncate">{{ customers.find(i => i.id === itemInfo.customer).notes }}</span>
|
||||
</template>
|
||||
|
||||
@@ -1818,7 +1817,7 @@ const setRowData = async (row, service = {sellingPriceComposed: {}}, product = {
|
||||
</UFormGroup>
|
||||
<UFormGroup
|
||||
label="Ansprechpartner:"
|
||||
v-if="itemInfo.customer ? customers.find(i => i.id === itemInfo.customer).is_company : false "
|
||||
v-if="itemInfo.customer ? customers.find(i => i.id === itemInfo.customer).isCompany : false "
|
||||
>
|
||||
<InputGroup>
|
||||
<USelectMenu
|
||||
|
||||
Reference in New Issue
Block a user