feat: 采购/半成品/成品列表拆分SKU独立搜索框

This commit is contained in:
DXC
2026-03-09 17:29:24 +08:00
parent 646baa08fe
commit 5d813c24bc
9 changed files with 74 additions and 19 deletions

View File

@ -17,12 +17,24 @@
<el-input
v-model="queryParams.keyword"
placeholder="请输入名称、规格或SKU搜索..."
placeholder="请输入名称、规格搜索..."
class="filter-item-input"
clearable
@clear="fetchData"
@keyup.enter="fetchData"
style="width: 240px;"
style="width: 200px;"
>
<template #prefix><el-icon><Search /></el-icon></template>
</el-input>
<el-input
v-model="queryParams.sku"
placeholder="请输入SKU搜索..."
class="filter-item-input"
clearable
@clear="fetchData"
@keyup.enter="fetchData"
style="width: 160px;"
>
<template #prefix><el-icon><Search /></el-icon></template>
</el-input>
@ -745,6 +757,7 @@ const queryParams = reactive({
page: 1,
pageSize: 100,
keyword: '',
sku: '',
category: '',
material_type: '',
company: '',
@ -1240,6 +1253,7 @@ const loadWarehouseTree = async () => {
const resetQuery = () => {
queryParams.keyword = ''
queryParams.sku = ''
queryParams.category = ''
queryParams.material_type = ''
queryParams.company = ''