diff --git a/src/components/FetchData.vue b/src/components/FetchData.vue
index f0d908972..b8e7c2ac3 100644
--- a/src/components/FetchData.vue
+++ b/src/components/FetchData.vue
@@ -27,6 +27,10 @@ const $props = defineProps({
type: String,
default: '',
},
+ params: {
+ type: Object,
+ default: null,
+ }
});
const emit = defineEmits(['onFetch']);
@@ -46,7 +50,7 @@ async function fetch() {
if ($props.limit) filter.limit = $props.limit;
const { data } = await axios.get($props.url, {
- params: { filter: JSON.stringify(filter) },
+ params: { filter: JSON.stringify(filter), ...$props.params },
});
emit('onFetch', data);
diff --git a/src/pages/Order/Card/OrderFilter.vue b/src/pages/Order/Card/OrderFilter.vue
index 60f087b98..0d12f31da 100644
--- a/src/pages/Order/Card/OrderFilter.vue
+++ b/src/pages/Order/Card/OrderFilter.vue
@@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n';
import FetchData from 'components/FetchData.vue';
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
import VnSelectFilter from 'components/common/VnSelectFilter.vue';
+import VnInputDate from "components/common/VnInputDate.vue";
const { t } = useI18n();
const props = defineProps({
@@ -13,10 +14,6 @@ const props = defineProps({
},
});
-const workers = ref();
-const states = ref();
-
-// New
const agencyFilter = { fields: ['id', 'name'] };
const agencyList = ref(null);
const salesPersonFilter = {
@@ -24,12 +21,12 @@ const salesPersonFilter = {
};
const salesPersonList = ref(null);
const sourceFilter = { fields: ['value'] };
-const sourceList = ref(null)
+const sourceList = ref(null);
(salesPersonList = data)"
+ :params="{ departmentCodes: ['VT'] }"
auto-load
/>
{{ formatFn(tag.value) }}
-
+
@@ -74,139 +72,119 @@ const sourceList = ref(null)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ opt.name }}
+
+ {{ opt.nickname }},{{ opt.code }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -215,31 +193,48 @@ const sourceList = ref(null)
en:
params:
- search: Contains
- clientFk: Customer
- clientName: Customer
- salesPersonFk: Salesperson
- attenderFk: Attender
- claimResponsibleFk: Responsible
- claimStateFk: State
- created: Created
+ search: Includes
+ clientFk: Client
+ agencyModeFk: Agency
+ salesPersonFk: Sales Person
+ from: From
+ to: To
+ orderFk: Order
+ sourceApp: Application
+ myTeam: My Team
+ isConfirmed: Is Confirmed
+ showEmpty: Show Empty
+ customerId: Customer ID
+ agency: Agency
+ salesPerson: Sales Person
+ fromLanded: From Landed
+ toLanded: To Landed
+ orderId: Order ID
+ application: Application
+ myTeam: My Team
+ isConfirmed: Order Confirmed
+ showEmpty: Show Empty
es:
params:
- search: Contiene
+ search: Búsqueda
clientFk: Cliente
- clientName: Cliente
+ agencyModeFk: Agencia
salesPersonFk: Comercial
- attenderFk: Asistente
- claimResponsibleFk: Responsable
- claimStateFk: Estado
- created: Creada
- Customer ID: ID cliente
- Client Name: Nombre del cliente
- Salesperson: Comercial
- Attender: Asistente
- Responsible: Responsable
- State: Estado
- Item: Artículo
- Created: Creada
- More options: Más opciones
+ from: Desde
+ to: Hasta
+ orderFk: Cesta
+ sourceApp: Aplicación
+ myTeam: Mi Equipo
+ isConfirmed: Confirmado
+ showEmpty: Mostrar vacías
+ customerId: ID Cliente
+ agency: Agencia
+ salesPerson: Comercial
+ fromLanded: Desde F. entrega
+ toLanded: Hasta F. entrega
+ orderId: ID Cesta
+ application: Aplicación
+ myTeam: Mi Equipo
+ isConfirmed: Confirmado
+ showEmpty: Mostrar vacías
diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue
index f7ff4b9e8..28f0c3f1d 100644
--- a/src/pages/Order/OrderList.vue
+++ b/src/pages/Order/OrderList.vue
@@ -1,6 +1,6 @@