-
+
+
+
[
diff --git a/src/pages/Monitor/MonitorOrders.vue b/src/pages/Monitor/MonitorOrders.vue
index eb455a239..52d442d0a 100644
--- a/src/pages/Monitor/MonitorOrders.vue
+++ b/src/pages/Monitor/MonitorOrders.vue
@@ -132,7 +132,6 @@ const openTab = (id) =>
:table="{
'row-key': 'id',
selection: 'multiple',
- 'hide-bottom': true,
}"
default-mode="table"
:row-click="({ id }) => openTab(id)"
diff --git a/src/pages/Monitor/Ticket/MonitorTickets.vue b/src/pages/Monitor/Ticket/MonitorTickets.vue
index 258b5022f..16d5abffb 100644
--- a/src/pages/Monitor/Ticket/MonitorTickets.vue
+++ b/src/pages/Monitor/Ticket/MonitorTickets.vue
@@ -54,7 +54,6 @@ const columns = computed(() => [
label: t('salesTicketsTable.problems'),
name: 'totalProblems',
align: 'left',
-
columnFilter: false,
attrs: {
dense: true,
@@ -65,7 +64,6 @@ const columns = computed(() => [
name: 'id',
field: 'id',
align: 'left',
-
columnFilter: {
component: 'number',
name: 'id',
@@ -108,9 +106,7 @@ const columns = computed(() => [
{
label: t('salesTicketsTable.date'),
name: 'shippedDate',
- style: { 'max-width': '100px' },
align: 'left',
-
columnFilter: {
component: 'date',
name: 'shippedDate',
@@ -164,7 +160,6 @@ const columns = computed(() => [
label: t('salesTicketsTable.state'),
name: 'state',
align: 'left',
- style: { 'max-width': '100px' },
columnFilter: {
component: 'select',
name: 'stateFk',
@@ -193,7 +188,6 @@ const columns = computed(() => [
label: t('salesTicketsTable.zone'),
name: 'zoneFk',
align: 'left',
-
columnFilter: {
component: 'select',
name: 'zoneFk',
@@ -210,8 +204,6 @@ const columns = computed(() => [
name: 'totalWithVat',
field: 'totalWithVat',
align: 'left',
- style: { 'max-width': '75px' },
-
columnFilter: {
component: 'number',
name: 'totalWithVat',
@@ -370,7 +362,7 @@ const openTab = (id) =>
-
+
>
{{ $t('salesTicketsTable.tooLittle') }}
-
+
-
-
- {{ row.id }}
-
-
-
+
+ {{ row.id }}
+
+
-
- {{ row.nickname }}
+
+
-
+
-
+
-
+
-
-
- {{ formatShippedDate(row.shippedDate) }}
-
-
+
+ {{ formatShippedDate(row.shippedDate) }}
+
-
-
-
+
-
+
{{ row.refFk }}
@@ -477,32 +463,33 @@ const openTab = (id) =>
>
{{ row.state }}
-
+
-
-
- {{ $t('salesTicketsTable.isFragile') }}
-
-
+
+ {{ $t('salesTicketsTable.isFragile') }}
+
-
+
{{ row.zoneName }}
-
+
-
-
- {{ toCurrency(row.totalWithVat) }}
-
-
+
+ {{ toCurrency(row.totalWithVat) }}
+
+
diff --git a/src/pages/Supplier/Card/SupplierAccounts.vue b/src/pages/Supplier/Card/SupplierAccounts.vue
index b0e8b06e8..1513a76db 100644
--- a/src/pages/Supplier/Card/SupplierAccounts.vue
+++ b/src/pages/Supplier/Card/SupplierAccounts.vue
@@ -102,9 +102,7 @@ const setWireTransfer = async () => {
- {{
- t('components.iban_tooltip')
- }}
+ {{ t('components.iban_tooltip') }}
@@ -115,6 +113,7 @@ const setWireTransfer = async () => {
option-label="bic"
option-value="id"
hide-selected
+ :roles-allowed-to-create="['financial']"
>
import { onMounted, ref, computed } from 'vue';
-import { useRoute, useRouter } from 'vue-router';
+import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n';
import axios from 'axios';
import { dashIfEmpty, toDate, toCurrency } from 'src/filters';
@@ -11,13 +11,15 @@ import InvoiceOutDescriptorProxy from 'pages/InvoiceOut/Card/InvoiceOutDescripto
import VnLv from 'src/components/ui/VnLv.vue';
import VnLinkPhone from 'src/components/ui/VnLinkPhone.vue';
import { getUrl } from 'src/composables/getUrl';
+import useNotify from 'src/composables/useNotify.js';
+import { useArrayData } from 'composables/useArrayData';
import VnUserLink from 'src/components/ui/VnUserLink.vue';
import VnTitle from 'src/components/common/VnTitle.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
+import VnSelect from 'src/components/common/VnSelect.vue';
const route = useRoute();
-const router = useRouter();
-
+const { notify } = useNotify();
const { t } = useI18n();
const $props = defineProps({
@@ -36,6 +38,8 @@ const salesLines = ref(null);
const editableStates = ref([]);
const ticketUrl = ref();
const grafanaUrl = 'https://grafana.verdnatura.es';
+const stateBtnDropdownRef = ref();
+const descriptorData = useArrayData('ticketData');
onMounted(async () => {
ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/';
@@ -68,15 +72,19 @@ function isEditable() {
}
async function changeState(value) {
- if (!ticket.value.id) return;
-
- const formData = {
- ticketFk: ticket.value.id,
- code: value,
- };
-
- await axios.post(`Tickets/state`, formData);
- router.go(route.fullPath);
+ try {
+ stateBtnDropdownRef.value.hide();
+ const formData = {
+ ticketFk: entityId.value,
+ code: value,
+ };
+ await axios.post(`Tickets/state`, formData);
+ notify('globals.dataSaved', 'positive');
+ summaryRef.value?.fetch();
+ descriptorData.fetch({});
+ } catch (err) {
+ console.error('Error changing ticket state', err);
+ }
}
@@ -102,33 +110,21 @@ async function changeState(value) {
-
-
-
-
- {{ item.name }}
-
-
-
-
+
diff --git a/src/pages/Zone/Card/ZoneBasicData.vue b/src/pages/Zone/Card/ZoneBasicData.vue
index 512d07636..535f2393d 100644
--- a/src/pages/Zone/Card/ZoneBasicData.vue
+++ b/src/pages/Zone/Card/ZoneBasicData.vue
@@ -64,6 +64,15 @@ const agencyOptions = ref([]);
type="number"
min="0"
/>
+
+
@@ -128,4 +137,5 @@ es:
Bonus: Bonificación
Inflation: Inflación
Volumetric: Volumétrico
+ Max length m³: Medida máxima tumbado