diff --git a/src/components/CreateDepartmentChild.vue b/src/components/CreateDepartmentChild.vue new file mode 100644 index 000000000..8f5b4b874 --- /dev/null +++ b/src/components/CreateDepartmentChild.vue @@ -0,0 +1,100 @@ + + + + + + + +es: + Name: Nombre + New department: Nuevo departamento + diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 62993ef24..e683ce735 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -58,7 +58,7 @@ const $props = defineProps({ mapper: { type: Function, default: null, - } + }, }); const emit = defineEmits(['onFetch', 'onDataSaved']); @@ -129,7 +129,7 @@ async function save() { isLoading.value = true; try { - const body = $props.mapper ? $props.mapper(formData.value) : formData.value + const body = $props.mapper ? $props.mapper(formData.value) : formData.value; if ($props.urlCreate) { await axios.post($props.urlCreate, body); notify('globals.dataCreated', 'positive'); @@ -179,11 +179,14 @@ watch(formUrl, async () => { }); - + + + +en: + summary: Summary + total: Total + boxes: Boxes + item: Item + subName: Subname + quantity: Quantity + volume: m³ per quantity +es: + summary: Resumen + total: Total + boxes: Cajas + item: Artículo + subName: Subname + quantity: Cantidad + volume: m³ por cantidad + diff --git a/src/pages/Supplier/Card/SupplierAccounts.vue b/src/pages/Supplier/Card/SupplierAccounts.vue new file mode 100644 index 000000000..2b7059ea3 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierAccounts.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierAddresses.vue b/src/pages/Supplier/Card/SupplierAddresses.vue new file mode 100644 index 000000000..dd82abe78 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierAddresses.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierAgencyTerm.vue b/src/pages/Supplier/Card/SupplierAgencyTerm.vue new file mode 100644 index 000000000..2a0c341cf --- /dev/null +++ b/src/pages/Supplier/Card/SupplierAgencyTerm.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierBasicData.vue b/src/pages/Supplier/Card/SupplierBasicData.vue new file mode 100644 index 000000000..582da48f3 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierBasicData.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierBillingData.vue b/src/pages/Supplier/Card/SupplierBillingData.vue new file mode 100644 index 000000000..849737fa7 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierBillingData.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierCard.vue b/src/pages/Supplier/Card/SupplierCard.vue index cf94c9e8d..04115cc3d 100644 --- a/src/pages/Supplier/Card/SupplierCard.vue +++ b/src/pages/Supplier/Card/SupplierCard.vue @@ -2,6 +2,8 @@ import { useI18n } from 'vue-i18n'; import { useStateStore } from 'stores/useStateStore'; import VnSearchbar from 'src/components/ui/VnSearchbar.vue'; +import LeftMenu from 'components/LeftMenu.vue'; +import SupplierDescriptor from './SupplierDescriptor.vue'; const stateStore = useStateStore(); const { t } = useI18n(); @@ -18,7 +20,9 @@ const { t } = useI18n(); - + + + diff --git a/src/pages/Supplier/Card/SupplierConsumption.vue b/src/pages/Supplier/Card/SupplierConsumption.vue new file mode 100644 index 000000000..df1dead17 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierConsumption.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierContacts.vue b/src/pages/Supplier/Card/SupplierContacts.vue new file mode 100644 index 000000000..ca58d4ab7 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierContacts.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierFiscalData.vue b/src/pages/Supplier/Card/SupplierFiscalData.vue new file mode 100644 index 000000000..dd018ac60 --- /dev/null +++ b/src/pages/Supplier/Card/SupplierFiscalData.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/Card/SupplierLog.vue b/src/pages/Supplier/Card/SupplierLog.vue new file mode 100644 index 000000000..2733e958d --- /dev/null +++ b/src/pages/Supplier/Card/SupplierLog.vue @@ -0,0 +1 @@ + diff --git a/src/pages/Supplier/SupplierCreate.vue b/src/pages/Supplier/SupplierCreate.vue index 3317225d5..d6cfaeb42 100644 --- a/src/pages/Supplier/SupplierCreate.vue +++ b/src/pages/Supplier/SupplierCreate.vue @@ -51,13 +51,3 @@ const newSupplierForm = reactive({ - - diff --git a/src/pages/Travel/Card/TravelSummary.vue b/src/pages/Travel/Card/TravelSummary.vue index ad4659b11..c8a62ec00 100644 --- a/src/pages/Travel/Card/TravelSummary.vue +++ b/src/pages/Travel/Card/TravelSummary.vue @@ -2,15 +2,17 @@ import { onMounted, ref, computed, onUpdated } from 'vue'; import { useRoute, useRouter } from 'vue-router'; import { useI18n } from 'vue-i18n'; + +import { QCheckbox, QIcon } from 'quasar'; import CardSummary from 'components/ui/CardSummary.vue'; import VnLv from 'src/components/ui/VnLv.vue'; -import { getUrl } from 'src/composables/getUrl'; -import { toDate } from 'src/filters'; -import travelService from 'src/services/travel.service'; -import { QCheckbox, QIcon } from 'quasar'; -import { toCurrency } from 'filters/index'; import VnRow from 'components/ui/VnRow.vue'; +import travelService from 'src/services/travel.service'; +import { toDate, toCurrency } from 'src/filters'; +import { getUrl } from 'src/composables/getUrl'; +import axios from 'axios'; + onUpdated(() => summaryRef.value.fetch()); const route = useRoute(); @@ -40,9 +42,17 @@ const cloneTravel = () => { redirectToCreateView(stringifiedTravelData); }; +const cloneTravelWithEntries = () => { + try { + axios.post(`Travels/${$props.id}/cloneWithEntries`); + } catch (err) { + console.err('Error cloning travel with entries'); + } +}; + const headerMenuOptions = [ { name: t('travel.summary.cloneShipping'), action: cloneTravel }, - { name: t('travel.summary.CloneTravelAndEntries'), action: null }, + { name: t('travel.summary.CloneTravelAndEntries'), action: cloneTravelWithEntries }, { name: t('travel.summary.AddEntry'), action: null }, ]; diff --git a/src/pages/Travel/ExtraCommunity.vue b/src/pages/Travel/ExtraCommunity.vue index 245cbc9de..f3cf557c6 100644 --- a/src/pages/Travel/ExtraCommunity.vue +++ b/src/pages/Travel/ExtraCommunity.vue @@ -395,7 +395,7 @@ onMounted(async () => {