fix: refs #7524 use limit ticket section
gitea/salix-front/pipeline/pr-test This commit looks good
Details
gitea/salix-front/pipeline/pr-test This commit looks good
Details
This commit is contained in:
parent
35829c743b
commit
42e7629c40
|
@ -30,7 +30,6 @@ const { t } = useI18n();
|
||||||
const agencyFetchRef = ref(null);
|
const agencyFetchRef = ref(null);
|
||||||
const zonesFetchRef = ref(null);
|
const zonesFetchRef = ref(null);
|
||||||
|
|
||||||
const clientsOptions = ref([]);
|
|
||||||
const warehousesOptions = ref([]);
|
const warehousesOptions = ref([]);
|
||||||
const companiesOptions = ref([]);
|
const companiesOptions = ref([]);
|
||||||
const agenciesOptions = ref([]);
|
const agenciesOptions = ref([]);
|
||||||
|
@ -273,15 +272,6 @@ const redirectToCustomerAddress = () => {
|
||||||
onMounted(() => onFormModelInit());
|
onMounted(() => onFormModelInit());
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
|
||||||
url="Clients"
|
|
||||||
:filter="{
|
|
||||||
fields: ['id', 'name'],
|
|
||||||
order: 'id',
|
|
||||||
}"
|
|
||||||
@on-fetch="(data) => (clientsOptions = data)"
|
|
||||||
auto-load
|
|
||||||
/>
|
|
||||||
<FetchData
|
<FetchData
|
||||||
url="Warehouses"
|
url="Warehouses"
|
||||||
@on-fetch="(data) => (warehousesOptions = data)"
|
@on-fetch="(data) => (warehousesOptions = data)"
|
||||||
|
@ -317,7 +307,9 @@ onMounted(() => onFormModelInit());
|
||||||
v-model="clientId"
|
v-model="clientId"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
:options="clientsOptions"
|
url="Clients"
|
||||||
|
:fields="['id', 'name']"
|
||||||
|
sort-by="id"
|
||||||
hide-selected
|
hide-selected
|
||||||
map-options
|
map-options
|
||||||
:required="true"
|
:required="true"
|
||||||
|
|
|
@ -3,7 +3,6 @@ import { onMounted, ref, computed, onUnmounted, reactive, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
import FetchData from 'components/FetchData.vue';
|
|
||||||
import VnInput from 'src/components/common/VnInput.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 TicketEditManaProxy from './TicketEditMana.vue';
|
import TicketEditManaProxy from './TicketEditMana.vue';
|
||||||
|
@ -35,7 +34,6 @@ const selectedExpeditions = ref([]);
|
||||||
const allColumnNames = ref([]);
|
const allColumnNames = ref([]);
|
||||||
const visibleColumns = ref([]);
|
const visibleColumns = ref([]);
|
||||||
const newTicketWithRoute = ref(false);
|
const newTicketWithRoute = ref(false);
|
||||||
const itemsOptions = ref([]);
|
|
||||||
|
|
||||||
const exprBuilder = (param, value) => {
|
const exprBuilder = (param, value) => {
|
||||||
switch (param) {
|
switch (param) {
|
||||||
|
@ -139,7 +137,9 @@ const columns = computed(() => [
|
||||||
filterValue: null,
|
filterValue: null,
|
||||||
event: getInputEvents,
|
event: getInputEvents,
|
||||||
attrs: {
|
attrs: {
|
||||||
options: itemsOptions.value,
|
url: 'Items',
|
||||||
|
fields: ['id', 'name'],
|
||||||
|
'sort-by': 'name ASC',
|
||||||
'option-value': 'id',
|
'option-value': 'id',
|
||||||
'option-label': 'name',
|
'option-label': 'name',
|
||||||
dense: true,
|
dense: true,
|
||||||
|
@ -274,12 +274,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<FetchData
|
|
||||||
url="Items"
|
|
||||||
auto-load
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'name ASC' }"
|
|
||||||
@on-fetch="(data) => (itemsOptions = data)"
|
|
||||||
/>
|
|
||||||
<VnSubToolbar>
|
<VnSubToolbar>
|
||||||
<template #st-data>
|
<template #st-data>
|
||||||
<TableVisibleColumns
|
<TableVisibleColumns
|
||||||
|
|
|
@ -38,7 +38,6 @@ const ticketConfig = ref(null);
|
||||||
const isLocked = ref(false);
|
const isLocked = ref(false);
|
||||||
const isTicketEditable = ref(false);
|
const isTicketEditable = ref(false);
|
||||||
const sales = ref([]);
|
const sales = ref([]);
|
||||||
const itemsWithNameOptions = ref([]);
|
|
||||||
const editableStatesOptions = ref([]);
|
const editableStatesOptions = ref([]);
|
||||||
const selectedSales = ref([]);
|
const selectedSales = ref([]);
|
||||||
const mana = ref(null);
|
const mana = ref(null);
|
||||||
|
@ -435,12 +434,6 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
auto-load
|
auto-load
|
||||||
@on-fetch="(data) => (isLocked = data)"
|
@on-fetch="(data) => (isLocked = data)"
|
||||||
/>
|
/>
|
||||||
<FetchData
|
|
||||||
url="Items/withName"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'id DESC' }"
|
|
||||||
auto-load
|
|
||||||
@on-fetch="(data) => (itemsWithNameOptions = data)"
|
|
||||||
/>
|
|
||||||
<FetchData
|
<FetchData
|
||||||
url="States/editableStates"
|
url="States/editableStates"
|
||||||
:filter="{ fields: ['code', 'name', 'id', 'alertLevel'], order: 'name ASC' }"
|
:filter="{ fields: ['code', 'name', 'id', 'alertLevel'], order: 'name ASC' }"
|
||||||
|
@ -626,10 +619,12 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
</div>
|
</div>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
v-else
|
v-else
|
||||||
:options="itemsWithNameOptions"
|
|
||||||
hide-selected
|
hide-selected
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
|
url="Items/withName"
|
||||||
|
:fields="['id', 'name']"
|
||||||
|
sort-by="id DESC"
|
||||||
@update:model-value="changeQuantity(row)"
|
@update:model-value="changeQuantity(row)"
|
||||||
v-model="row.itemFk"
|
v-model="row.itemFk"
|
||||||
>
|
>
|
||||||
|
|
|
@ -26,7 +26,6 @@ const saleTrackingFetchDataRef = ref(null);
|
||||||
const sales = ref([]);
|
const sales = ref([]);
|
||||||
const saleTrackings = ref([]);
|
const saleTrackings = ref([]);
|
||||||
const itemShelvignsSales = ref([]);
|
const itemShelvignsSales = ref([]);
|
||||||
const shelvingsOptions = ref([]);
|
|
||||||
const parkingsOptions = ref([]);
|
const parkingsOptions = ref([]);
|
||||||
const saleTrackingUrl = computed(() => `SaleTrackings/${route.params.id}/filter`);
|
const saleTrackingUrl = computed(() => `SaleTrackings/${route.params.id}/filter`);
|
||||||
const oldQuantity = ref(null);
|
const oldQuantity = ref(null);
|
||||||
|
@ -330,12 +329,6 @@ const qCheckBoxController = (sale, action) => {
|
||||||
auto-load
|
auto-load
|
||||||
@on-fetch="(data) => (sales = data)"
|
@on-fetch="(data) => (sales = data)"
|
||||||
/>
|
/>
|
||||||
<FetchData
|
|
||||||
url="Shelvings"
|
|
||||||
auto-load
|
|
||||||
@on-fetch="(data) => (shelvingsOptions = data)"
|
|
||||||
/>
|
|
||||||
<FetchData url="Parkings" auto-load @on-fetch="(data) => (parkingsOptions = data)" />
|
|
||||||
<QTable
|
<QTable
|
||||||
:rows="sales"
|
:rows="sales"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
|
@ -500,7 +493,7 @@ const qCheckBoxController = (sale, action) => {
|
||||||
<template #body-cell-shelving="{ row }">
|
<template #body-cell-shelving="{ row }">
|
||||||
<QTd auto-width>
|
<QTd auto-width>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:options="shelvingsOptions"
|
url="Shelvings"
|
||||||
hide-selected
|
hide-selected
|
||||||
option-label="code"
|
option-label="code"
|
||||||
option-value="code"
|
option-value="code"
|
||||||
|
@ -513,7 +506,7 @@ const qCheckBoxController = (sale, action) => {
|
||||||
<template #body-cell-parking="{ row }">
|
<template #body-cell-parking="{ row }">
|
||||||
<QTd auto-width>
|
<QTd auto-width>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:options="parkingsOptions"
|
url="Parkings"
|
||||||
hide-selected
|
hide-selected
|
||||||
option-label="code"
|
option-label="code"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
|
|
Loading…
Reference in New Issue