This commit is contained in:
yanran200730
2022-11-30 16:17:55 +08:00
parent 7a936f8a9f
commit 28f52973f3
2 changed files with 22 additions and 15 deletions

View File

@@ -29,12 +29,12 @@
</template>
<template #right>
<el-input
v-model="search.name"
v-model="search.merchandiseName"
size="small"
placeholder="请输入商品名称"
clearable
v-throttle="() => {search.current = 1, getList()}"
@clear="search.current = 1, search.name = '', getList()"
@clear="search.current = 1, search.merchandiseName = '', getList()"
suffix-icon="iconfont iconSearch">
</el-input>
</template>
@@ -85,7 +85,7 @@
search: {
current: 1,
size: 10,
name: '',
merchandiseName: '',
girdId: ''
},
name: '',

View File

@@ -8,7 +8,7 @@
<template slot="content">
<ai-search-bar bottomBorder>
<template #left>
<ai-user-selecter :instance="instance" @change="onUserChange" :isMultiple="false">
<ai-user-selecter v-model="user" :instance="instance" @change="onUserChange" :isMultiple="false">
<div class="userSelcet">
<span style="color: #606266;" v-if="search.consumerId">{{ name }}</span>
<span v-else>兑换人</span>
@@ -24,7 +24,7 @@
@change="search.current = 1, getList()">
</ai-select>
<el-date-picker
v-model="search.queryBeginTime"
v-model="search.createTimeStart"
type="date"
size="small"
value-format="yyyy-MM-dd"
@@ -32,7 +32,7 @@
@change="search.current = 1, getList()">
</el-date-picker>
<el-date-picker
v-model="search.queryEndTime"
v-model="search.createTimeEnd"
type="date"
size="small"
value-format="yyyy-MM-dd"
@@ -120,7 +120,9 @@
size: 10,
merchandiseName: '',
orderStatus: '',
consumerId: ''
consumerId: '',
createTimeStart: '',
createTimeEnd: ''
},
id: '',
form: {
@@ -170,8 +172,16 @@
},
methods: {
onUserChange () {
onUserChange (e) {
if (e.length) {
this.name = e[0].name
this.search.consumerId = e[0].id
} else {
this.search.consumerId = ''
}
this.search.current = 1
this.getList()
},
onConfirm() {
@@ -196,10 +206,7 @@
getList () {
this.instance.post(`/app/appintegralmerchandiseorder/list`, null, {
params: {
...this.search,
arriveAreaId: this.search.arriveAreaId,
queryBeginTime: this.search.queryBeginTime ? this.search.queryBeginTime + ' 00:00:00' : '',
queryEndTime: this.search.queryEndTime ? this.search.queryEndTime + ' 23:59:59' : ''
...this.search
}
}).then(res => {
if (res.code == 0) {