forked from verdnatura/salix-front
Merge branch 'dev' of https: refs #7283//gitea.verdnatura.es/verdnatura/salix-front into 7283-itemMigration
This commit is contained in:
commit
d2da1e3544
|
@ -1,5 +1,5 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, watch } from 'vue';
|
import { ref } from 'vue';
|
||||||
import { useValidator } from 'src/composables/useValidator';
|
import { useValidator } from 'src/composables/useValidator';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
|
||||||
|
|
|
@ -52,15 +52,27 @@ const redirectToItemTypeBasicData = (_, { id }) => {
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
|
url="Workers/search"
|
||||||
v-model="data.workerFk"
|
v-model="data.workerFk"
|
||||||
:label="t('itemType.shared.worker')"
|
:label="t('shared.worker')"
|
||||||
url="Workers"
|
sort-by="nickname ASC"
|
||||||
sort-by="firstName ASC"
|
:fields="['id', 'nickname']"
|
||||||
:fields="['id', 'firstName']"
|
:params="{ departmentCodes: ['shopping'] }"
|
||||||
|
option-label="nickname"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-label="firstName"
|
|
||||||
hide-selected
|
hide-selected
|
||||||
/>
|
><template #option="scope">
|
||||||
|
<QItem v-bind="scope.itemProps">
|
||||||
|
<QItemSection>
|
||||||
|
<QItemLabel>{{ scope.opt?.name }}</QItemLabel>
|
||||||
|
<QItemLabel caption
|
||||||
|
>{{ scope.opt?.nickname }},
|
||||||
|
{{ scope.opt?.code }}</QItemLabel
|
||||||
|
>
|
||||||
|
</QItemSection>
|
||||||
|
</QItem>
|
||||||
|
</template>
|
||||||
|
</VnSelect>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
v-model="data.categoryFk"
|
v-model="data.categoryFk"
|
||||||
:label="t('itemType.shared.category')"
|
:label="t('itemType.shared.category')"
|
||||||
|
|
|
@ -41,15 +41,27 @@ const temperaturesOptions = ref([]);
|
||||||
</VnRow>
|
</VnRow>
|
||||||
<VnRow>
|
<VnRow>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
|
url="Workers/search"
|
||||||
v-model="data.workerFk"
|
v-model="data.workerFk"
|
||||||
:label="t('shared.worker')"
|
:label="t('shared.worker')"
|
||||||
url="Workers"
|
sort-by="nickname ASC"
|
||||||
sort-by="firstName ASC"
|
:fields="['id', 'nickname']"
|
||||||
:fields="['id', 'firstName']"
|
:params="{ departmentCodes: ['shopping'] }"
|
||||||
|
option-label="nickname"
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-label="firstName"
|
|
||||||
hide-selected
|
hide-selected
|
||||||
/>
|
><template #option="scope">
|
||||||
|
<QItem v-bind="scope.itemProps">
|
||||||
|
<QItemSection>
|
||||||
|
<QItemLabel>{{ scope.opt?.name }}</QItemLabel>
|
||||||
|
<QItemLabel caption
|
||||||
|
>{{ scope.opt?.nickname }},
|
||||||
|
{{ scope.opt?.code }}</QItemLabel
|
||||||
|
>
|
||||||
|
</QItemSection>
|
||||||
|
</QItem>
|
||||||
|
</template></VnSelect
|
||||||
|
>
|
||||||
<VnSelect
|
<VnSelect
|
||||||
v-model="data.categoryFk"
|
v-model="data.categoryFk"
|
||||||
:label="t('shared.category')"
|
:label="t('shared.category')"
|
||||||
|
|
Loading…
Reference in New Issue