forked from verdnatura/salix-front
Merge branch 'dev' into 7896_down_devToTest_2436
This commit is contained in:
commit
7567f1b13f
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
import { useRoute } from 'vue-router';
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
|
@ -12,17 +12,14 @@ const route = useRoute();
|
||||||
|
|
||||||
const rolesOptions = ref([]);
|
const rolesOptions = ref([]);
|
||||||
const formModelRef = ref();
|
const formModelRef = ref();
|
||||||
|
watch(
|
||||||
|
() => route.params.id,
|
||||||
|
() => formModelRef.value.reset()
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<FetchData url="VnRoles" auto-load @on-fetch="(data) => (rolesOptions = data)" />
|
<FetchData url="VnRoles" auto-load @on-fetch="(data) => (rolesOptions = data)" />
|
||||||
<FormModel
|
<FormModel ref="formModelRef" model="AccountPrivileges" url="VnUsers" auto-load>
|
||||||
ref="formModelRef"
|
|
||||||
model="AccountPrivileges"
|
|
||||||
:url="`VnUsers/${route.params.id}/privileges`"
|
|
||||||
:url-create="`VnUsers/${route.params.id}/privileges`"
|
|
||||||
auto-load
|
|
||||||
@on-data-saved="formModelRef.fetch()"
|
|
||||||
>
|
|
||||||
<template #form="{ data }">
|
<template #form="{ data }">
|
||||||
<div class="q-gutter-y-sm">
|
<div class="q-gutter-y-sm">
|
||||||
<QCheckbox
|
<QCheckbox
|
||||||
|
|
|
@ -101,7 +101,17 @@ onMounted(async () => {
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
rounded
|
rounded
|
||||||
/>
|
>
|
||||||
|
<template #option="scope">
|
||||||
|
<QItem v-bind="scope.itemProps">
|
||||||
|
<QItemSection>
|
||||||
|
<QItemLabel>
|
||||||
|
#{{ scope.opt?.id }} {{ scope.opt?.name }}
|
||||||
|
</QItemLabel>
|
||||||
|
</QItemSection>
|
||||||
|
</QItem>
|
||||||
|
</template>
|
||||||
|
</VnSelect>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
:label="t('invoiceOutSerialType')"
|
:label="t('invoiceOutSerialType')"
|
||||||
v-model="formData.serialType"
|
v-model="formData.serialType"
|
||||||
|
|
|
@ -226,10 +226,18 @@ watchEffect(selectedRows);
|
||||||
url="Tickets"
|
url="Tickets"
|
||||||
v-model="data.ticketFk"
|
v-model="data.ticketFk"
|
||||||
:label="t('invoiceOutList.tableVisibleColumns.ticket')"
|
:label="t('invoiceOutList.tableVisibleColumns.ticket')"
|
||||||
:options="ticketsOptions"
|
option-label="id"
|
||||||
option-label="nickname"
|
|
||||||
option-value="id"
|
option-value="id"
|
||||||
/>
|
>
|
||||||
|
<template #option="scope">
|
||||||
|
<QItem v-bind="scope.itemProps">
|
||||||
|
<QItemSection>
|
||||||
|
<QItemLabel> #{{ scope.opt?.id }} </QItemLabel>
|
||||||
|
<QItemLabel caption>{{ scope.opt?.nickname }}</QItemLabel>
|
||||||
|
</QItemSection>
|
||||||
|
</QItem>
|
||||||
|
</template>
|
||||||
|
</VnSelect>
|
||||||
<span class="q-ml-md">O</span>
|
<span class="q-ml-md">O</span>
|
||||||
</div>
|
</div>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
|
|
Loading…
Reference in New Issue