-import { useStateStore } from 'stores/useStateStore';
+import { useI18n } from 'vue-i18n';
import LeftMenu from 'src/components/LeftMenu.vue';
+import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
+import { useStateStore } from 'stores/useStateStore';
+
+const { t } = useI18n();
const stateStore = useStateStore();
+
+
+
+
+
@@ -15,3 +28,9 @@ const stateStore = useStateStore();
+
+
+es:
+ Search entries: Buscar entradas
+ You can search by entry reference: Puedes buscar por referencia de la entrada
+
diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue
index b9f4f002e2..18824503f2 100644
--- a/src/pages/Travel/ExtraCommunity.vue
+++ b/src/pages/Travel/ExtraCommunity.vue
@@ -9,6 +9,7 @@ import TravelDescriptorProxy from 'src/pages/Travel/Card/TravelDescriptorProxy.v
import VnSearchbar from 'src/components/ui/VnSearchbar.vue';
import ExtraCommunityFilter from './ExtraCommunityFilter.vue';
import VnInput from 'src/components/common/VnInput.vue';
+import EntryDescriptorProxy from '../Entry/Card/EntryDescriptorProxy.vue';
import { useStateStore } from 'stores/useStateStore';
import { toCurrency } from 'src/filters';
@@ -231,7 +232,7 @@ const navigateToTravelId = (id) => {
};
const stopEventPropagation = (event, col) => {
- if (!['ref', 'id', 'supplier'].includes(col.name)) return;
+ if (!['ref', 'id', 'cargoSupplierNickname'].includes(col.name)) return;
event.preventDefault();
event.stopPropagation();
};
@@ -359,10 +360,9 @@ onMounted(async () => {
:props="props"
class="secondary-row"
>
- {{ entry.id }}
-
-
+
+ {{ entry.id }}
+
{{
diff --git a/src/router/modules/customer.js b/src/router/modules/customer.js
index a0dc2df237..fa57682afa 100644
--- a/src/router/modules/customer.js
+++ b/src/router/modules/customer.js
@@ -177,36 +177,80 @@ export default {
),
},
{
- path: 'edit',
- name: 'CustomerConsigneeEdit',
- meta: {
- title: 'consignee-edit',
- },
- component: () =>
- import(
- 'src/pages/Customer/components/CustomerConsigneeEdit.vue'
- ),
+ path: ':consigneeId',
+ name: 'CustomerConsigneeEditCard',
+ redirect: { name: 'CustomerConsigneeEdit' },
+ children: [
+ {
+ path: 'edit',
+ name: 'CustomerConsigneeEdit',
+ meta: {
+ title: 'consignee-edit',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerConsigneeEdit.vue'
+ ),
+ },
+ ],
},
],
},
{
path: 'notes',
- name: 'CustomerNotes',
- meta: {
- title: 'notes',
- icon: 'vn:notes',
- },
- component: () => import('src/pages/Customer/Card/CustomerNotes.vue'),
+ name: 'NotesCard',
+ redirect: { name: 'CustomerNotes' },
+ children: [
+ {
+ path: '',
+ name: 'CustomerNotes',
+ meta: {
+ title: 'notes',
+ icon: 'vn:notes',
+ },
+ component: () =>
+ import('src/pages/Customer/Card/CustomerNotes.vue'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerNoteCreate',
+ meta: {
+ title: 'note-create',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerNoteCreate.vue'
+ ),
+ },
+ ],
},
{
path: 'credits',
- name: 'CustomerCredits',
- meta: {
- title: 'credits',
- icon: 'vn:credit',
- },
- component: () =>
- import('src/pages/Customer/Card/CustomerCredits.vue'),
+ name: 'CreditsCard',
+ redirect: { name: 'CustomerCredits' },
+ children: [
+ {
+ path: '',
+ name: 'CustomerCredits',
+ meta: {
+ title: 'credits',
+ icon: 'vn:credit',
+ },
+ component: () =>
+ import('src/pages/Customer/Card/CustomerCredits.vue'),
+ },
+ {
+ path: 'create',
+ name: 'CustomerCreditCreate',
+ meta: {
+ title: 'credit-create',
+ },
+ component: () =>
+ import(
+ 'src/pages/Customer/components/CustomerCreditCreate.vue'
+ ),
+ },
+ ],
},
{
path: 'greuges',