diff --git a/src/pages/InvoiceIn/Card/InvoiceInCard.vue b/src/pages/InvoiceIn/Card/InvoiceInCard.vue
index b16183e52..05bb1d7d3 100644
--- a/src/pages/InvoiceIn/Card/InvoiceInCard.vue
+++ b/src/pages/InvoiceIn/Card/InvoiceInCard.vue
@@ -1,58 +1,12 @@
+
-
-
-
-
-
+ />
diff --git a/src/pages/InvoiceIn/InvoiceInList.vue b/src/pages/InvoiceIn/InvoiceInList.vue
index 43b9f2c11..282342504 100644
--- a/src/pages/InvoiceIn/InvoiceInList.vue
+++ b/src/pages/InvoiceIn/InvoiceInList.vue
@@ -8,17 +8,17 @@ import InvoiceInFilter from './InvoiceInFilter.vue';
import InvoiceInSummary from './Card/InvoiceInSummary.vue';
import { useSummaryDialog } from 'src/composables/useSummaryDialog';
import SupplierDescriptorProxy from 'src/pages/Supplier/Card/SupplierDescriptorProxy.vue';
-import RightMenu from 'src/components/common/RightMenu.vue';
-import InvoiceInSearchbar from 'src/pages/InvoiceIn/InvoiceInSearchbar.vue';
import VnTable from 'src/components/VnTable/VnTable.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue';
import FetchData from 'src/components/FetchData.vue';
+import VnSection from 'src/components/common/VnSection.vue';
const user = useState().getUser();
const { viewSummary } = useSummaryDialog();
const { t } = useI18n();
+const dataKey='InvoiceInList';
const tableRef = ref();
const companies = ref([]);
@@ -130,71 +130,84 @@ const cols = computed(() => [
},
]);
+
- (companies = data)" auto-load />
-
-
-
+ (companies = data)"
+ auto-load
+ />
+
+
-
-
-
-
- {{ row.supplierName }}
-
-
-
-
-
+
-
-
-
- {{ scope.opt?.nickname }}
- #{{ scope.opt?.id }}
-
-
+
+
+ {{ row.supplierName }}
+
+
-
-
-
-
+
+
+
+
+
+ {{ scope.opt?.nickname }}
+ #{{ scope.opt?.id }}
+
+
+
+
+
+
+
+
+
-
+
diff --git a/src/pages/InvoiceIn/locale/en.yml b/src/pages/InvoiceIn/locale/en.yml
index ef7e31ac3..6adac2c26 100644
--- a/src/pages/InvoiceIn/locale/en.yml
+++ b/src/pages/InvoiceIn/locale/en.yml
@@ -1,4 +1,6 @@
InvoiceIn:
+ search: Search invoice
+ searchInfo: Search incoming invoices by ID or supplier fiscal name
serial: Serial
isBooked: Is booked
list:
diff --git a/src/pages/InvoiceIn/locale/es.yml b/src/pages/InvoiceIn/locale/es.yml
index ed5943489..eec85f48c 100644
--- a/src/pages/InvoiceIn/locale/es.yml
+++ b/src/pages/InvoiceIn/locale/es.yml
@@ -1,4 +1,6 @@
InvoiceIn:
+ search: Buscar factura recibida
+ searchInfo: Buscar facturas recibidas por ID o nombre fiscal del proveedor
serial: Serie
isBooked: Contabilizada
list:
diff --git a/src/router/modules/invoiceIn.js b/src/router/modules/invoiceIn.js
index 788b27d37..fe70a1056 100644
--- a/src/router/modules/invoiceIn.js
+++ b/src/router/modules/invoiceIn.js
@@ -1,18 +1,12 @@
import { RouterView } from 'vue-router';
-import { setRectificative } from 'src/pages/InvoiceIn/composables/setRectificative';
-export default {
- path: '/invoice-in',
- name: 'InvoiceIn',
+
+const invoiceInCard = {
+ name: 'InvoiceInCard',
+ path: ':id',
+ component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
+ redirect: { name: 'InvoiceInSummary' },
meta: {
- title: 'invoiceIns',
- icon: 'vn:invoice-in',
- moduleName: 'InvoiceIn',
- },
- component: RouterView,
- redirect: { name: 'InvoiceInMain' },
- menus: {
- main: ['InvoiceInList', 'InvoiceInSerial'],
- card: [
+ menu: [
'InvoiceInBasicData',
'InvoiceInVat',
'InvoiceInDueDay',
@@ -23,29 +17,109 @@ export default {
},
children: [
{
- path: '',
+ path: 'summary',
+ name: 'InvoiceInSummary',
+ meta: {
+ title: 'summary',
+ icon: 'view_list',
+ },
+ component: () => import('src/pages/InvoiceIn/Card/InvoiceInSummary.vue'),
+ },
+ {
+ name: 'InvoiceInBasicData',
+ path: 'basic-data',
+ meta: {
+ title: 'basicData',
+ icon: 'vn:settings',
+ },
+ component: () =>
+ import('src/pages/InvoiceIn/Card/InvoiceInBasicData.vue'),
+ },
+ {
+ name: 'InvoiceInVat',
+ path: 'vat',
+ meta: {
+ title: 'vat',
+ icon: 'vn:tax',
+ },
+ component: () => import('src/pages/InvoiceIn/Card/InvoiceInVat.vue'),
+ },
+ {
+ name: 'InvoiceInDueDay',
+ path: 'due-day',
+ meta: {
+ title: 'dueDay',
+ icon: 'vn:calendar',
+ },
+ component: () =>
+ import('src/pages/InvoiceIn/Card/InvoiceInDueDay.vue'),
+ },
+ {
+ name: 'InvoiceInIntrastat',
+ path: 'intrastat',
+ meta: {
+ title: 'intrastat',
+ icon: 'vn:lines',
+ },
+ component: () =>
+ import('src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue'),
+ },
+ {
+ name: 'InvoiceInCorrective',
+ path: 'corrective',
+ meta: {
+ title: 'corrective',
+ icon: 'attachment',
+ },
+ component: () =>
+ import('src/pages/InvoiceIn/Card/InvoiceInCorrective.vue'),
+ },
+ {
+ name: 'InvoiceInLog',
+ path: 'log',
+ meta: {
+ title: 'log',
+ icon: 'history',
+ },
+ component: () => import('src/pages/InvoiceIn/Card/InvoiceInLog.vue'),
+ },
+ ],
+};
+
+export default {
+ name: 'InvoiceIn',
+ path: '/invoice-in',
+ meta: {
+ title: 'invoiceIns',
+ icon: 'vn:invoice-in',
+ moduleName: 'InvoiceIn',
+ menu: ['InvoiceInList', 'InvoiceInSerial'],
+ },
+ component: RouterView,
+ redirect: { name: 'InvoiceInMain' },
+ children: [
+ {
name: 'InvoiceInMain',
+ path: '',
component: () => import('src/components/common/VnModule.vue'),
- redirect: { name: 'InvoiceInList' },
+ redirect: { name: 'InvoiceInIndexMain' },
children: [
{
- path: 'list',
- name: 'InvoiceInList',
- meta: {
- title: 'list',
- icon: 'view_list',
- },
+ path: '',
+ name: 'InvoiceInIndexMain',
+ redirect: { name: 'InvoiceInList' },
component: () => import('src/pages/InvoiceIn/InvoiceInList.vue'),
- },
- {
- path: 'serial',
- name: 'InvoiceInSerial',
- meta: {
- title: 'serial',
- icon: 'view_list',
- },
- component: () =>
- import('src/pages/InvoiceIn/Serial/InvoiceInSerial.vue'),
+ children: [
+ {
+ name: 'InvoiceInList',
+ path: 'list',
+ meta: {
+ title: 'list',
+ icon: 'view_list',
+ },
+ },
+ invoiceInCard,
+ ],
},
{
path: 'create',
@@ -56,87 +130,16 @@ export default {
},
component: () => import('src/pages/InvoiceIn/InvoiceInCreate.vue'),
},
- ],
- },
- {
- name: 'InvoiceInCard',
- path: ':id',
- component: () => import('src/pages/InvoiceIn/Card/InvoiceInCard.vue'),
- redirect: { name: 'InvoiceInSummary' },
- beforeEnter: async (to, from, next) => {
- await setRectificative(to);
- next();
- },
- children: [
{
- name: 'InvoiceInSummary',
- path: 'summary',
+ path: 'serial',
+ name: 'InvoiceInSerial',
meta: {
- title: 'summary',
+ title: 'serial',
icon: 'view_list',
},
- component: () =>
- import('src/pages/InvoiceIn/Card/InvoiceInSummary.vue'),
- },
- {
- name: 'InvoiceInBasicData',
- path: 'basic-data',
- meta: {
- title: 'basicData',
- icon: 'vn:settings',
- },
- component: () =>
- import('src/pages/InvoiceIn/Card/InvoiceInBasicData.vue'),
- },
- {
- name: 'InvoiceInVat',
- path: 'vat',
- meta: {
- title: 'vat',
- icon: 'vn:tax',
- },
- component: () => import('src/pages/InvoiceIn/Card/InvoiceInVat.vue'),
- },
- {
- name: 'InvoiceInDueDay',
- path: 'due-day',
- meta: {
- title: 'dueDay',
- icon: 'vn:calendar',
- },
- component: () =>
- import('src/pages/InvoiceIn/Card/InvoiceInDueDay.vue'),
- },
- {
- name: 'InvoiceInIntrastat',
- path: 'intrastat',
- meta: {
- title: 'intrastat',
- icon: 'vn:lines',
- },
- component: () =>
- import('src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue'),
- },
- {
- name: 'InvoiceInLog',
- path: 'log',
- meta: {
- title: 'log',
- icon: 'history',
- },
- component: () => import('src/pages/InvoiceIn/Card/InvoiceInLog.vue'),
- },
- {
- name: 'InvoiceInCorrective',
- path: 'corrective',
- meta: {
- title: 'corrective',
- icon: 'attachment',
- },
- component: () =>
- import('src/pages/InvoiceIn/Card/InvoiceInCorrective.vue'),
+ component: () => import('src/pages/InvoiceIn/Serial/InvoiceInSerial.vue'),
},
],
},
],
-};
+};
\ No newline at end of file