From b5b0677b0128e272791cfcf6395652137721cb18 Mon Sep 17 00:00:00 2001 From: dxc Date: Tue, 10 Feb 2026 15:16:03 +0800 Subject: [PATCH] feat: align service inbound material search with buy/semi Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) --- .../src/views/stock/inbound/service.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/inventory-web/src/views/stock/inbound/service.vue b/inventory-web/src/views/stock/inbound/service.vue index a0dccdc..c04a867 100644 --- a/inventory-web/src/views/stock/inbound/service.vue +++ b/inventory-web/src/views/stock/inbound/service.vue @@ -290,7 +290,8 @@ const handleSearchMaterial = async (query: string) => { try { const res = await searchMaterialBase(query) if (res.code === 200) { - materialOptions.value = res.data + const apiResults = (res.data || []).map((i: any) => ({ ...i, isHistory: false })) + materialOptions.value = apiResults } else { materialOptions.value = [] } @@ -521,4 +522,20 @@ onMounted(() => { font-weight: 600; color: #409EFF; } + +/* Material search options matching buy/semi style */ +.option-item { + display: flex; + justify-content: space-between; + width: 100%; + align-items: center; +} +.opt-name { + font-weight: bold; +} +.opt-spec { + color: #8492a6; + font-size: 13px; + margin-right: 10px; +}