修复:添加商品名称输入框和清空按钮,并更新查询参数

This commit is contained in:
mkm 2024-08-21 10:52:54 +08:00
parent 47d2149c0d
commit f8f8d85272
1 changed files with 11 additions and 1 deletions

View File

@ -2,6 +2,15 @@
<div> <div>
<el-card class="!border-none mb-4" shadow="never"> <el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline> <el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="商品名称" prop="store_name">
<el-input
class="w-[280px]"
v-model="queryParams.store_name"
@keydown.enter="resetPage"
clearable
placeholder="请输入商品名称"
/>
</el-form-item>
<el-form-item label="门店" prop="store_id"> <el-form-item label="门店" prop="store_id">
<el-select <el-select
v-model="queryParams.store_id" v-model="queryParams.store_id"
@ -151,7 +160,8 @@ const queryParams = reactive({
start_time: moment(startEndTime.value[0]).format('YYYY-MM-DD') + ' 00:00:00', start_time: moment(startEndTime.value[0]).format('YYYY-MM-DD') + ' 00:00:00',
end_time: moment(startEndTime.value[1]).format('YYYY-MM-DD') + ' 23:59:59', end_time: moment(startEndTime.value[1]).format('YYYY-MM-DD') + ' 23:59:59',
is_group: '', is_group: '',
store_id: '' store_id: '',
store_name: ''
}) })
const changeStartEndTime = () => { const changeStartEndTime = () => {
if (startEndTime.value[0] && startEndTime.value[1]) { if (startEndTime.value[0] && startEndTime.value[1]) {