#6321 - Negative ticket #158
|
@ -12,14 +12,9 @@ import TicketTransfer from '../Card/TicketTransfer.vue';
|
||||||
import TicketMassiveUpdate from '../Card/TicketMassiveUpdate.vue';
|
import TicketMassiveUpdate from '../Card/TicketMassiveUpdate.vue';
|
||||||
import VnPaginate from 'src/components/ui/VnPaginate.vue';
|
import VnPaginate from 'src/components/ui/VnPaginate.vue';
|
||||||
import FetchData from 'src/components/FetchData.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 ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue';
|
||||||
import { toDate, toHour } from 'src/filters';
|
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import { useStateStore } from 'stores/useStateStore';
|
import { useStateStore } from 'stores/useStateStore';
|
||||||
import { useDialogPluginComponent } from 'quasar';
|
|
||||||
import { useSession } from 'src/composables/useSession';
|
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
import { useArrayData } from 'src/composables/useArrayData';
|
||||||
import VnImg from 'src/components/ui/VnImg.vue';
|
import VnImg from 'src/components/ui/VnImg.vue';
|
||||||
|
@ -27,7 +22,6 @@ import TicketLackTable from './TicketLackTable.vue';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const URL_KEY = 'Tickets/ItemLack';
|
const URL_KEY = 'Tickets/ItemLack';
|
||||||
const editableStates = ref([]);
|
const editableStates = ref([]);
|
||||||
const { notify } = useNotify();
|
|
||||||
const stateStore = useStateStore();
|
const stateStore = useStateStore();
|
||||||
const proposalDialogRef = ref();
|
const proposalDialogRef = ref();
|
||||||
const changeStateDialogRef = ref();
|
const changeStateDialogRef = ref();
|
||||||
|
@ -53,8 +47,6 @@ const copyOriginalRowsData = (rows) => {
|
||||||
const entityId = computed(() => route.params.id);
|
const entityId = computed(() => route.params.id);
|
||||||
const item = ref({});
|
const item = ref({});
|
||||||
|
|
||||||
const emit = defineEmits([...useDialogPluginComponent.emits, 'selection', 'close']);
|
|
||||||
|
|
||||||
const itemLackForm = ref();
|
const itemLackForm = ref();
|
||||||
|
|
||||||
const reload = async () => {
|
const reload = async () => {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { QBtn, QCheckbox } from 'quasar';
|
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import FetchData from 'src/components/FetchData.vue';
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
import VnSelect from 'components/common/VnSelect.vue';
|
import VnSelect from 'components/common/VnSelect.vue';
|
||||||
|
@ -12,19 +11,15 @@ import useNotify from 'src/composables/useNotify.js';
|
||||||
import { useDialogPluginComponent } from 'quasar';
|
import { useDialogPluginComponent } from 'quasar';
|
||||||
import ZoneDescriptorProxy from 'pages/Zone/Card/ZoneDescriptorProxy.vue';
|
import ZoneDescriptorProxy from 'pages/Zone/Card/ZoneDescriptorProxy.vue';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
import { useArrayData } from 'src/composables/useArrayData';
|
|
||||||
import VnTable from 'src/components/VnTable/VnTable.vue';
|
import VnTable from 'src/components/VnTable/VnTable.vue';
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const URL_KEY = 'Tickets/ItemLack';
|
const URL_KEY = 'Tickets/ItemLack';
|
||||||
const editableStates = ref([]);
|
const editableStates = ref([]);
|
||||||
const { notify } = useNotify();
|
const { notify } = useNotify();
|
||||||
const showFree = ref(true);
|
|
||||||
const selectedRows = ref([]);
|
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const itemLack = ref(null);
|
const itemLack = ref(null);
|
||||||
const originalRowDataCopy = ref(null);
|
|
||||||
// defineProps({
|
// defineProps({
|
||||||
// rows: {
|
// rows: {
|
||||||
// type: [Object],
|
// type: [Object],
|
||||||
|
@ -63,78 +58,6 @@ const saveChange = async (field, { rowIndex, row }) => {
|
||||||
};
|
};
|
||||||
const entityId = computed(() => route.params.id);
|
const entityId = computed(() => route.params.id);
|
||||||
const item = ref({});
|
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(() => [
|
const columns = computed(() => [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue