diff --git a/resources/js/Pages/Home/ArchiveHistoryMoveModal/Index.vue b/resources/js/Pages/Home/ArchiveHistoryMoveModal/Index.vue
index 1a1297a..7e574ee 100644
--- a/resources/js/Pages/Home/ArchiveHistoryMoveModal/Index.vue
+++ b/resources/js/Pages/Home/ArchiveHistoryMoveModal/Index.vue
@@ -63,7 +63,10 @@ const onCloseWithoutSave = () => {
const loadArchiveHistoryData = async () => {
try {
await axios.get('/api/orgs').then(res => {
- orgs.value = res.data
+ orgs.value = res.data.map(org => ({
+ ...org,
+ name: `${org.code} - ${org.name}`
+ }))
})
if (!props.archiveHistoryId) return
@@ -100,6 +103,10 @@ const submit = () => {
}
}
+const filterOrg = (pattern, option) => {
+ return option.name.startsWith(pattern)
+}
+
// Наблюдаем за изменением archiveHistoryId
watch(() => props.archiveHistoryId, async (newId) => {
if (!props.isCreateNew) {
@@ -123,7 +130,7 @@ watch(() => props.archiveHistoryId, async (newId) => {
-
+