From 5c7d1816e7231b938044e484bbbe7e339f7c3e4d Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Fri, 27 Feb 2026 15:35:25 +0900 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BA=D0=BE=D0=B4=20=D0=BF=D1=80=D0=B8=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D0=B5=20=D0=BE=D1=80=D0=B3=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B7=D0=B0=D1=86=D0=B8=D0=B8=20=D0=B8=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=BD=D0=B0=20=D1=84?= =?UTF-8?q?=D0=B8=D0=BB=D1=8C=D1=82=D1=80=D0=B0=D1=86=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/Pages/Home/ArchiveHistoryMoveModal/Index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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) => { - +