feat(重号组查询): 修改入厂卷号重号组查询条件和交互方式
将查询条件中的仓库改为厂家,并添加查询按钮 将输入框的@input事件改为@change事件,提升搜索体验
This commit is contained in:
@@ -53,8 +53,10 @@
|
|||||||
<el-tab-pane label="入厂卷号重号组" name="enter">
|
<el-tab-pane label="入厂卷号重号组" name="enter">
|
||||||
<!-- 搜索区域 + 刷新按钮 -->
|
<!-- 搜索区域 + 刷新按钮 -->
|
||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<el-input v-model="enterSearchKey" placeholder="请输入卷号/规格/材质/仓库查询" clearable size="small"
|
<el-input v-model="enterSearchKey" placeholder="请输入卷号/规格/材质/厂家查询" clearable size="small"
|
||||||
@input="handleEnterSearch" class="search-input" />
|
@change="handleEnterSearch" class="search-input" />
|
||||||
|
<el-button icon="el-icon-search" size="small" type="primary" plain @click="handleEnterSearch"
|
||||||
|
:loading="loading" class="refresh-btn">查询</el-button>
|
||||||
<el-button icon="el-icon-refresh" size="small" type="primary" plain @click="handleEnterRefresh"
|
<el-button icon="el-icon-refresh" size="small" type="primary" plain @click="handleEnterRefresh"
|
||||||
:loading="loading" class="refresh-btn">刷新</el-button>
|
:loading="loading" class="refresh-btn">刷新</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -229,9 +231,10 @@ export default {
|
|||||||
const currentNo = (item.currentCoilNo || '').toLowerCase()
|
const currentNo = (item.currentCoilNo || '').toLowerCase()
|
||||||
const spec = (item.productSpecification || '').toLowerCase()
|
const spec = (item.productSpecification || '').toLowerCase()
|
||||||
const material = (item.productMaterial || '').toLowerCase()
|
const material = (item.productMaterial || '').toLowerCase()
|
||||||
const warehouse = (item.warehouseName || '').toLowerCase()
|
const manufacturer = (item.manufacturer || '').toLowerCase()
|
||||||
|
// const warehouse = (item.warehouseName || '').toLowerCase()
|
||||||
const matType = (item.materialType || '').toLowerCase()
|
const matType = (item.materialType || '').toLowerCase()
|
||||||
return enterNo.includes(key) || currentNo.includes(key) || spec.includes(key) || material.includes(key) || warehouse.includes(key) || matType.includes(key)
|
return enterNo.includes(key) || currentNo.includes(key) || spec.includes(key) || material.includes(key) || manufacturer.includes(key) || matType.includes(key)
|
||||||
})
|
})
|
||||||
return groupNo.includes(key) || hasMatchCoil
|
return groupNo.includes(key) || hasMatchCoil
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user