@@ -41,8 +41,8 @@ const cities = ref();
@@ -53,20 +53,20 @@ const cities = ref();
@@ -77,33 +77,33 @@ const cities = ref();
-
+
-
+
diff --git a/src/pages/Customer/CustomerPayments.vue b/src/pages/Customer/Payments/CustomerPayments.vue
similarity index 99%
rename from src/pages/Customer/CustomerPayments.vue
rename to src/pages/Customer/Payments/CustomerPayments.vue
index 24e5efa39..b4a907665 100644
--- a/src/pages/Customer/CustomerPayments.vue
+++ b/src/pages/Customer/Payments/CustomerPayments.vue
@@ -7,7 +7,7 @@ import { useStateStore } from 'stores/useStateStore';
import { useArrayData } from 'composables/useArrayData';
import VnPaginate from 'components/ui/VnPaginate.vue';
import VnConfirm from 'components/ui/VnConfirm.vue';
-import CustomerDescriptorProxy from './Card/CustomerDescriptorProxy.vue';
+import CustomerDescriptorProxy from '../Card/CustomerDescriptorProxy.vue';
import { toDate, toCurrency } from 'filters/index';
import CustomerPaymentsFilter from './CustomerPaymentsFilter.vue';
diff --git a/src/pages/Customer/CustomerPaymentsFilter.vue b/src/pages/Customer/Payments/CustomerPaymentsFilter.vue
similarity index 100%
rename from src/pages/Customer/CustomerPaymentsFilter.vue
rename to src/pages/Customer/Payments/CustomerPaymentsFilter.vue
diff --git a/src/pages/Entry/EntryCreate.vue b/src/pages/Entry/EntryCreate.vue
index 30b54cb38..37cfea1ad 100644
--- a/src/pages/Entry/EntryCreate.vue
+++ b/src/pages/Entry/EntryCreate.vue
@@ -60,13 +60,14 @@ const companiesOptions = ref([]);
@@ -83,7 +84,7 @@ const companiesOptions = ref([]);
@@ -111,7 +113,7 @@ const companiesOptions = ref([]);
@@ -129,7 +132,7 @@ const companiesOptions = ref([]);
es:
- Supplier *: Proveedor *
- Travel *: Envío *
- Company *: Empresa *
-
+ Supplier: Proveedor
+ Travel: Envío
+ Company: Empresa
+
diff --git a/src/pages/InvoiceOut/InvoiceOutGlobal.vue b/src/pages/InvoiceOut/InvoiceOutGlobal.vue
index 7284ca04e..7e2b43a76 100644
--- a/src/pages/InvoiceOut/InvoiceOutGlobal.vue
+++ b/src/pages/InvoiceOut/InvoiceOutGlobal.vue
@@ -49,30 +49,28 @@ const tableColumnComponents = {
},
};
-const columns = computed(() => {
- return [
- { label: 'Id', field: 'clientId', name: 'clientId', align: 'left' },
- {
- label: t('invoiceOut.globalInvoices.table.client'),
- field: 'clientName',
- name: 'clientName',
- align: 'left',
- },
- {
- label: t('invoiceOut.globalInvoices.table.addressId'),
- field: 'id',
- name: 'id',
- align: 'left',
- },
- {
- label: t('invoiceOut.globalInvoices.table.streetAddress'),
- field: 'nickname',
- name: 'nickname',
- align: 'left',
- },
- { label: 'Error', field: 'message', name: 'message', align: 'left' },
- ];
-});
+const columns = computed(() => [
+ { label: 'Id', field: 'clientId', name: 'clientId', align: 'left' },
+ {
+ label: t('invoiceOut.globalInvoices.table.client'),
+ field: 'clientName',
+ name: 'clientName',
+ align: 'left',
+ },
+ {
+ label: t('invoiceOut.globalInvoices.table.addressId'),
+ field: 'id',
+ name: 'id',
+ align: 'left',
+ },
+ {
+ label: t('invoiceOut.globalInvoices.table.streetAddress'),
+ field: 'nickname',
+ name: 'nickname',
+ align: 'left',
+ },
+ { label: 'Error', field: 'message', name: 'message', align: 'left' },
+]);
const rows = computed(() => {
if (!errors && !errors.length > 0) return [];
@@ -175,7 +173,7 @@ onUnmounted(() => {
.col-content {
border-radius: 4px;
- padding: 6px 6px 6px 6px;
+ padding: 6px;
}
diff --git a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue
index 3595a650d..15010c66d 100644
--- a/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue
+++ b/src/pages/InvoiceOut/InvoiceOutNegativeBases.vue
@@ -255,7 +255,7 @@ const selectWorkerId = (id) => {
diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue
index 46de63abd..0859e14a6 100644
--- a/src/pages/Order/Card/OrderCatalogFilter.vue
+++ b/src/pages/Order/Card/OrderCatalogFilter.vue
@@ -21,16 +21,27 @@ const selectedCategoryFk = ref(null);
const typeList = ref(null);
const selectedTypeFk = ref(null);
-const selectCategory = (params, category) => {
+const resetCategory = () => {
+ selectedCategoryFk.value = null;
+ typeList.value = null;
+};
+
+const clearFilter = (key) => {
+ if (key === 'categoryFk') {
+ resetCategory();
+ }
+};
+
+const selectCategory = (params, category, search) => {
if (params.categoryFk === category?.id) {
- selectedCategoryFk.value = null;
+ resetCategory();
params.categoryFk = null;
- typeList.value = null;
} else {
selectedCategoryFk.value = category?.id;
params.categoryFk = category?.id;
loadTypes(category?.id);
}
+ search();
};
const loadTypes = async (categoryFk) => {
@@ -65,32 +76,35 @@ function exprBuilder(param, value) {
case 'categoryFk':
case 'typeFk':
return { [param]: value };
+ case 'search':
+ return { 'i.name': { like: `%${value}%` } };
}
}
+
+const setCategoryList = (data) => {
+ categoryList.value = (data || [])
+ .filter((category) => category.display)
+ .map((category) => ({
+ ...category,
+ icon: `vn:${(category.icon || '').split('-')[1]}`,
+ }));
+};
+
+const getCategoryClass = (category, params) => {
+ if (category.id === params?.categoryFk) {
+ return 'active';
+ }
+};
- {
- categoryList = (data || [])
- .filter((category) => category.display)
- .map((category) => ({
- ...category,
- icon: `vn:${(category.icon || '').split('-')[1]}`,
- }));
- }
- "
- />
+
@@ -104,21 +118,18 @@ function exprBuilder(param, value) {
{{ formatFn(tag.value) }}
-