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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user