- Ticket #{{ entity.id }} - {{ entity.client.name }} ({{
- entity.client.id
+ Ticket #{{ entity.id }} - {{ entity.client?.name }} ({{
+ entity.client?.id
}}) -
{{ entity.nickname }}
diff --git a/src/pages/Ticket/locale/es.yml b/src/pages/Ticket/locale/es.yml
new file mode 100644
index 000000000..5348b29b9
--- /dev/null
+++ b/src/pages/Ticket/locale/es.yml
@@ -0,0 +1,2 @@
+Search ticket: Buscar ticket
+You can search by ticket id or alias: Puedes buscar por id o alias del ticket
diff --git a/src/pages/Travel/Card/TravelCard.vue b/src/pages/Travel/Card/TravelCard.vue
index e6c7b7e28..1d591f064 100644
--- a/src/pages/Travel/Card/TravelCard.vue
+++ b/src/pages/Travel/Card/TravelCard.vue
@@ -1,55 +1,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
diff --git a/src/pages/Wagon/Card/WagonCard.vue b/src/pages/Wagon/Card/WagonCard.vue
index 5ac18fb47..ed6c83778 100644
--- a/src/pages/Wagon/Card/WagonCard.vue
+++ b/src/pages/Wagon/Card/WagonCard.vue
@@ -1,32 +1,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-es:
- Search customer: Buscar cliente
- You can search by customer id or name: Puedes buscar por id o nombre del cliente
-
diff --git a/src/pages/Worker/Card/WorkerCard.vue b/src/pages/Worker/Card/WorkerCard.vue
index 0d62dcfc1..e0047bf9e 100644
--- a/src/pages/Worker/Card/WorkerCard.vue
+++ b/src/pages/Worker/Card/WorkerCard.vue
@@ -1,44 +1,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-es:
- Search worker: Buscar trabajador
- You can search by worker id or name: Puedes buscar por id o nombre del trabajador
-
diff --git a/src/pages/Worker/Card/WorkerDescriptor.vue b/src/pages/Worker/Card/WorkerDescriptor.vue
index 6f876b8fa..6f05fcdfb 100644
--- a/src/pages/Worker/Card/WorkerDescriptor.vue
+++ b/src/pages/Worker/Card/WorkerDescriptor.vue
@@ -31,7 +31,9 @@ const entityId = computed(() => {
});
const worker = ref();
-const filter = { where: { id: entityId } };
+const filter = computed(() => {
+ return { where: { id: entityId.value } };
+});
const sip = ref(null);
diff --git a/src/pages/Worker/Card/WorkerSummary.vue b/src/pages/Worker/Card/WorkerSummary.vue
index 43c493565..3a79d12bb 100644
--- a/src/pages/Worker/Card/WorkerSummary.vue
+++ b/src/pages/Worker/Card/WorkerSummary.vue
@@ -10,7 +10,7 @@ import CardSummary from 'components/ui/CardSummary.vue';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import VnTitle from 'src/components/common/VnTitle.vue';
-const { params } = useRoute();
+const route = useRoute();
const { t } = useI18n();
const $props = defineProps({
@@ -20,18 +20,25 @@ const $props = defineProps({
},
});
-const entityId = computed(() => $props.id || params.id);
+const entityId = computed(() => $props.id || route.params.id);
const workerUrl = ref();
onMounted(async () => {
workerUrl.value = (await getUrl('')) + `worker/${entityId.value}/`;
});
-const filter = { where: { id: entityId.value } };
+const filter = computed(() => {
+ return { where: { id: entityId.value } };
+});
-
+
{{ entity.id }} - {{ entity.firstName }} {{ entity.lastName }}
@@ -41,7 +48,7 @@ const filter = { where: { id: entityId.value } };
:url="workerUrl + `basic-data`"
:text="t('worker.summary.basicData')"
/>
-
+
import('src/pages/Item/ItemList.vue'),
},
+ {
+ path: 'fixed-price',
+ name: 'ItemFixedPrice',
+ meta: {
+ title: 'fixedPrice',
+ icon: 'vn:fixedPrice',
+ },
+ component: () => import('src/pages/Item/ItemFixedPrice.vue'),
+ },
{
path: 'create',
name: 'ItemCreate',
meta: {
- title: 'create',
+ title: 'itemCreate',
},
component: () => import('src/pages/Item/ItemCreate.vue'),
},