fix: select for item price
This commit is contained in:
@@ -35,7 +35,9 @@ import {
|
||||
|
||||
// Services
|
||||
import { getList, getDetail } from '~/services/item-price.service'
|
||||
import { getValueLabelList as getItemGroupList } from '~/services/item.service'
|
||||
|
||||
const items = ref<{ value: string | number; label: string }[]>([])
|
||||
const title = ref('')
|
||||
|
||||
const {
|
||||
@@ -119,6 +121,7 @@ watch([recId, recAction], () => {
|
||||
})
|
||||
|
||||
onMounted(async () => {
|
||||
items.value = await getItemGroupList()
|
||||
await getItemList()
|
||||
})
|
||||
</script>
|
||||
@@ -151,6 +154,7 @@ onMounted(async () => {
|
||||
>
|
||||
<AppItemEntryForm
|
||||
:schema="ItemPriceSchema"
|
||||
:items="items"
|
||||
:values="recItem"
|
||||
:is-loading="isProcessing"
|
||||
:is-readonly="isReadonly"
|
||||
|
||||
Reference in New Issue
Block a user