fix: remove unnesed imports

This commit is contained in:
Javier Segarra 2024-09-11 12:55:14 +02:00
parent d6bb39236d
commit 5e89bbe19e
2 changed files with 0 additions and 85 deletions

View File

@ -12,14 +12,9 @@ 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 VnSelect from 'components/common/VnSelect.vue';
import VnInput from 'src/components/common/VnInput.vue';
import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
import { toDate, toHour } from 'src/filters';
import useNotify from 'src/composables/useNotify.js';
import { useStateStore } from 'stores/useStateStore';
import { useDialogPluginComponent } from 'quasar';
import { useSession } from 'src/composables/useSession';
import { useRoute } from 'vue-router';
import { useArrayData } from 'src/composables/useArrayData';
import VnImg from 'src/components/ui/VnImg.vue';
@ -27,7 +22,6 @@ import TicketLackTable from './TicketLackTable.vue';
const { t } = useI18n();
const URL_KEY = 'Tickets/ItemLack';
const editableStates = ref([]);
const { notify } = useNotify();
const stateStore = useStateStore();
const proposalDialogRef = ref();
const changeStateDialogRef = ref();
@ -53,8 +47,6 @@ const copyOriginalRowsData = (rows) => {
const entityId = computed(() => route.params.id);
const item = ref({});
const emit = defineEmits([...useDialogPluginComponent.emits, 'selection', 'close']);
const itemLackForm = ref();
const reload = async () => {

View File

@ -1,7 +1,6 @@
<script setup>
import { computed, ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { QBtn, QCheckbox } from 'quasar';
import axios from 'axios';
import FetchData from 'src/components/FetchData.vue';
import VnSelect from 'components/common/VnSelect.vue';
@ -12,19 +11,15 @@ import useNotify from 'src/composables/useNotify.js';
import { useDialogPluginComponent } from 'quasar';
import ZoneDescriptorProxy from 'pages/Zone/Card/ZoneDescriptorProxy.vue';
import { useRoute } from 'vue-router';
import { useArrayData } from 'src/composables/useArrayData';
import VnTable from 'src/components/VnTable/VnTable.vue';
const { t } = useI18n();
const URL_KEY = 'Tickets/ItemLack';
const editableStates = ref([]);
const { notify } = useNotify();
const showFree = ref(true);
const selectedRows = ref([]);
const route = useRoute();
const itemLack = ref(null);
const originalRowDataCopy = ref(null);
// defineProps({
// rows: {
// type: [Object],
@ -63,78 +58,6 @@ const saveChange = async (field, { rowIndex, row }) => {
};
const entityId = computed(() => route.params.id);
const item = ref({});
function isComponentVn(col) {
return tableColumnComponents?.value[col.name]?.component === 'span' ?? false;
}
const tableColumnComponents = computed(() => ({
status: {
component: 'span',
props: {},
event: () => ({}),
sortable: false,
},
ticketFk: {
component: QBtn,
props: { color: 'blue', sortable: true, flat: true },
event: () => ({}),
sortable: true,
},
shipped: {
component: 'span',
props: {},
event: () => ({}),
},
theoreticalhour: {
component: 'span',
props: {},
event: () => ({}),
},
state: {
style: 'width: 160px',
component: VnSelect,
type: 'select',
filterValue: null,
props: {
'option-value': 'code',
'option-label': 'name',
'emit-value': true,
'map-options': true,
'use-input': true,
'hide-selected': true,
dense: true,
options: editableStates.value,
},
event: getInputEvents,
},
zoneName: {
component: QBtn,
props: { color: 'blue', sortable: true, flat: true },
event: () => ({}),
},
nickname: {
component: 'span',
props: {},
event: () => ({}),
},
quantity: {
component: VnInput,
props: {
type: 'number',
min: 0,
class: 'input-number',
},
event: getInputEvents,
style: 'width: 100px',
},
alertLevelCode: {
component: 'span',
props: {},
event: () => ({}),
},
}));
const columns = computed(() => [
{