diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue
index 7f7af8d9d..39b2c3166 100644
--- a/src/components/VnTable/VnTable.vue
+++ b/src/components/VnTable/VnTable.vue
@@ -404,9 +404,9 @@ function handleOnDataSaved(_) {
- {{ scope }}
-
-
+
+
+
[
...defaultColumnAttrs,
label: t('proposal.difference'),
name: 'difference',
- format: ({ id }) => (id % 2 === 0 ? 10 : -10),
columnFilter: {
component: 'input',
type: 'number',
@@ -103,7 +102,7 @@ const columns = computed(() => [
},
{
...defaultColumnAttrs,
- label: t('Compatibildiad'),
+ label: t('proposal.compatibility'),
name: 'status',
field: statusConditionalValue,
sortable: true,
@@ -224,6 +223,12 @@ function onDialogClose() {
emit('dialogClosed', { data: true });
}
onUnmounted(() => {});
+function handleSelection(value, evt) {
+ quantity.value = value.available;
+}
+const isSelectionAvailable = ({ row }) => {
+ return $props.replaceAction && row.available >= $props.itemLack.lack * -1;
+};
@@ -255,10 +260,11 @@ onUnmounted(() => {});
:disable-option="{ card: true, table: true }"
:table="{
'row-key': 'id',
- selection: 'multiple',
+ selection: 'single',
}"
>
+ {{ proposalSelected }}
{});
/>
-
-
-
-
-
+
+
+ handleSelection(data.row, null)"
+ >
+
+
-
-
-
+ >-->
diff --git a/src/pages/Item/components/ItemProposalProxy.vue b/src/pages/Item/components/ItemProposalProxy.vue
index b8609d87a..e5163c752 100644
--- a/src/pages/Item/components/ItemProposalProxy.vue
+++ b/src/pages/Item/components/ItemProposalProxy.vue
@@ -1,5 +1,9 @@
-
+
+
+ {{ $t('Item proposal') }}
+
+
+
+
+
+
+ {{ item.longName }}
+
+
+
+
+
+
+
diff --git a/src/pages/Ticket/Negative/TicketLackDetail.vue b/src/pages/Ticket/Negative/TicketLackDetail.vue
index 288185493..a451317bc 100644
--- a/src/pages/Ticket/Negative/TicketLackDetail.vue
+++ b/src/pages/Ticket/Negative/TicketLackDetail.vue
@@ -6,12 +6,12 @@ import ChangeQuantityDialog from 'pages/Ticket/Negative/components/ChangeQuantit
import ChangeStateDialog from 'pages/Ticket/Negative/components/ChangeStateDialog.vue';
import ItemProposal from 'pages/Item/components/ItemProposal.vue';
import FetchedTags from 'components/ui/FetchedTags.vue';
+import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue';
import TicketTransfer from '../Card/TicketTransfer.vue';
import TicketMassiveUpdate from '../Card/TicketMassiveUpdate.vue';
import VnPaginate from 'src/components/ui/VnPaginate.vue';
import FetchData from 'src/components/FetchData.vue';
-import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import useNotify from 'src/composables/useNotify.js';
import { useStateStore } from 'stores/useStateStore';
import { useRoute } from 'vue-router';
diff --git a/src/router/modules/ticket.js b/src/router/modules/ticket.js
index 29396fcb8..e59aaae8f 100644
--- a/src/router/modules/ticket.js
+++ b/src/router/modules/ticket.js
@@ -58,11 +58,9 @@ export default {
{
path: 'negative',
redirect: { name: 'TicketNegative' },
-
children: [
{
name: 'TicketNegative',
- path: '',
meta: {
title: 'negative',
icon: 'view_list',
@@ -70,6 +68,7 @@ export default {
// redirect: { name: 'TicketNegative' },
component: () =>
import('src/pages/Ticket/Negative/TicketLackList.vue'),
+ path: '',
},
{
name: 'NegativeDetail',