forked from verdnatura/salix-front
refactor: refs #7717 delete useless function and import
This commit is contained in:
parent
3222a7a42c
commit
f3d7590edf
|
@ -64,16 +64,6 @@ const fetchOrderDetails = (order) => {
|
||||||
fetchAgencyList(order?.landed, order?.addressFk);
|
fetchAgencyList(order?.landed, order?.addressFk);
|
||||||
};
|
};
|
||||||
|
|
||||||
const orderMapper = (order) => {
|
|
||||||
const mappedOrder = {
|
|
||||||
addressId: order.addressFk,
|
|
||||||
landed: new Date(order.landed).toISOString(),
|
|
||||||
};
|
|
||||||
if (order.agencyModeFk !== null && order.agencyModeFk !== undefined) {
|
|
||||||
mappedOrder.agencyModeId = order.agencyModeFk;
|
|
||||||
}
|
|
||||||
return mappedOrder;
|
|
||||||
};
|
|
||||||
const orderFilter = {
|
const orderFilter = {
|
||||||
include: [
|
include: [
|
||||||
{ relation: 'agencyMode', scope: { fields: ['name'] } },
|
{ relation: 'agencyMode', scope: { fields: ['name'] } },
|
||||||
|
|
|
@ -7,7 +7,6 @@ import FetchData from 'components/FetchData.vue';
|
||||||
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
|
import VnFilterPanel from 'src/components/ui/VnFilterPanel.vue';
|
||||||
import VnSelect from 'components/common/VnSelect.vue';
|
import VnSelect from 'components/common/VnSelect.vue';
|
||||||
import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue';
|
import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue';
|
||||||
import { useValidator } from 'src/composables/useValidator';
|
|
||||||
import VnInput from 'src/components/common/VnInput.vue';
|
import VnInput from 'src/components/common/VnInput.vue';
|
||||||
import getParamWhere from 'src/filters/getParamWhere';
|
import getParamWhere from 'src/filters/getParamWhere';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue