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; +}