diff --git a/components/EntityEdit.vue b/components/EntityEdit.vue
index c6b6e03..0e99afc 100644
--- a/components/EntityEdit.vue
+++ b/components/EntityEdit.vue
@@ -134,9 +134,9 @@ const contentChanged = (content, datapoint) => {
- {{dataType.label}}
+
diff --git a/components/EntityShow.vue b/components/EntityShow.vue
index 2cae22e..a5fa542 100644
--- a/components/EntityShow.vue
+++ b/components/EntityShow.vue
@@ -16,7 +16,7 @@ const {type} = props
defineShortcuts({
'backspace': () => {
- router.push(`/standardEntity/${type}`)
+ router.back()
},
'arrowleft': () => {
if(openTab.value > 0){
@@ -136,6 +136,12 @@ const getAvailableQueryStringData = () => {
returnString += `&project=${props.item.id}`
}
+ if(props.item.plant) {
+ returnString += `&plant=${props.item.plant.id}`
+ } else if(type === "plants") {
+ returnString += `&plant=${props.item.id}`
+ }
+
return returnString
}
@@ -150,9 +156,9 @@ const getAvailableQueryStringData = () => {
- {{dataType.label}}
+
diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue
index 027a506..52c9816 100644
--- a/pages/createDocument/edit/[[id]].vue
+++ b/pages/createDocument/edit/[[id]].vue
@@ -233,6 +233,11 @@ const setupPage = async () => {
}
}
+
+ if(route.query.plant) {
+ itemInfo.value.plant = Number(route.query.plant)
+ }
+
if(route.query.contact) itemInfo.value.contact = Number(route.query.contact)
if(route.query.customer) {
itemInfo.value.customer = Number(route.query.customer)
@@ -1023,6 +1028,15 @@ const setRowData = (row) => {
+
+
+
+
+