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 = ''

View File

@ -16,12 +16,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>
@ -555,7 +567,7 @@ const dialogStatus = ref<'create' | 'update'>('create')
const tableData = ref([])
const total = ref(0)
const formRef = ref()
const queryParams = reactive({ page: 1, pageSize: 100, keyword: '', category: '', material_type: '', statuses: ['在库', '借库'], company: '', orderByColumn: '', isAsc: '', advancedFilters: [] })
const queryParams = reactive({ page: 1, pageSize: 100, keyword: '', sku: '', category: '', material_type: '', statuses: ['在库', '借库'], company: '', orderByColumn: '', isAsc: '', advancedFilters: [] })
const categoryOptions = ref<string[]>([])
const typeOptions = ref<string[]>([])
const companyOptions = ref<string[]>([]) // [新增]
@ -982,6 +994,7 @@ const loadWarehouseTree = async () => {
const resetQuery = () => {
queryParams.keyword = ''
queryParams.sku = ''
queryParams.category = ''
queryParams.material_type = ''
queryParams.company = ''

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>
@ -621,7 +633,7 @@ const dialogStatus = ref<'create' | 'update'>('create')
const tableData = ref([])
const total = ref(0)
const formRef = ref()
const queryParams = reactive({ page: 1, pageSize: 100, keyword: '', category: '', material_type: '', statuses: ['在库', '借库'], company: '', orderByColumn: '', isAsc: '', advancedFilters: [] })
const queryParams = reactive({ page: 1, pageSize: 100, keyword: '', sku: '', category: '', material_type: '', statuses: ['在库', '借库'], company: '', orderByColumn: '', isAsc: '', advancedFilters: [] })
const categoryOptions = ref<string[]>([])
const typeOptions = ref<string[]>([])
const companyOptions = ref<string[]>([]) // [新增]
@ -1116,6 +1128,7 @@ const loadWarehouseTree = async () => {
const resetQuery = () => {
queryParams.keyword = ''
queryParams.sku = ''
queryParams.category = ''
queryParams.material_type = ''
queryParams.company = ''