feat: align service inbound material search with buy/semi

Co-authored-by: aider (openai/DeepSeek-V3.2-Thinking) <aider@aider.chat>
This commit is contained in:
dxc
2026-02-10 15:16:03 +08:00
parent 8d00e6783c
commit b5b0677b01

View File

@ -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;
}
</style>