This commit is contained in:
parent
d55bf0ff75
commit
56d226b36b
|
@ -38,18 +38,6 @@ onMounted(async () => {
|
||||||
}"
|
}"
|
||||||
@on-fetch="(data) => (itemBotanicals = data)"
|
@on-fetch="(data) => (itemBotanicals = data)"
|
||||||
/>
|
/>
|
||||||
<FetchData
|
|
||||||
url="Genera"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'name ASC' }"
|
|
||||||
@on-fetch="(data) => (itemGenusOptions = data)"
|
|
||||||
auto-load
|
|
||||||
/>
|
|
||||||
<FetchData
|
|
||||||
url="Species"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'name ASC' }"
|
|
||||||
@on-fetch="(data) => (itemSpeciesOptions = data)"
|
|
||||||
auto-load
|
|
||||||
/>
|
|
||||||
<FormModel
|
<FormModel
|
||||||
url-update="ItemBotanicals"
|
url-update="ItemBotanicals"
|
||||||
model="entry"
|
model="entry"
|
||||||
|
|
|
@ -17,9 +17,7 @@ const { t } = useI18n();
|
||||||
const state = useState();
|
const state = useState();
|
||||||
const user = state.getUser();
|
const user = state.getUser();
|
||||||
const stateFetchDataRef = ref(null);
|
const stateFetchDataRef = ref(null);
|
||||||
|
|
||||||
const statesOptions = ref([]);
|
const statesOptions = ref([]);
|
||||||
const workersOptions = ref([]);
|
|
||||||
|
|
||||||
const onStateFkChange = (formData) => (formData.userFk = user.value.id);
|
const onStateFkChange = (formData) => (formData.userFk = user.value.id);
|
||||||
</script>
|
</script>
|
||||||
|
@ -30,12 +28,6 @@ const onStateFkChange = (formData) => (formData.userFk = user.value.id);
|
||||||
auto-load
|
auto-load
|
||||||
@on-fetch="(data) => (statesOptions = data)"
|
@on-fetch="(data) => (statesOptions = data)"
|
||||||
/>
|
/>
|
||||||
<FetchData
|
|
||||||
url="Workers/search"
|
|
||||||
:filter="{ fields: ['id', 'name'], order: 'name ASC' }"
|
|
||||||
auto-load
|
|
||||||
@on-fetch="(data) => (workersOptions = data)"
|
|
||||||
/>
|
|
||||||
<FormModelPopup
|
<FormModelPopup
|
||||||
:title="t('Create tracking')"
|
:title="t('Create tracking')"
|
||||||
url-create="Tickets/state"
|
url-create="Tickets/state"
|
||||||
|
@ -57,7 +49,9 @@ const onStateFkChange = (formData) => (formData.userFk = user.value.id);
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('tracking.worker')"
|
:label="t('tracking.worker')"
|
||||||
v-model="data.userFk"
|
v-model="data.userFk"
|
||||||
:options="workersOptions"
|
url="Workers/search"
|
||||||
|
fields=" ['id', 'name']"
|
||||||
|
sort-by="name ASC"
|
||||||
hide-selected
|
hide-selected
|
||||||
option-label="name"
|
option-label="name"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
|
|
|
@ -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 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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue