bug
This commit is contained in:
@@ -29,12 +29,12 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="search.name"
|
v-model="search.merchandiseName"
|
||||||
size="small"
|
size="small"
|
||||||
placeholder="请输入商品名称"
|
placeholder="请输入商品名称"
|
||||||
clearable
|
clearable
|
||||||
v-throttle="() => {search.current = 1, getList()}"
|
v-throttle="() => {search.current = 1, getList()}"
|
||||||
@clear="search.current = 1, search.name = '', getList()"
|
@clear="search.current = 1, search.merchandiseName = '', getList()"
|
||||||
suffix-icon="iconfont iconSearch">
|
suffix-icon="iconfont iconSearch">
|
||||||
</el-input>
|
</el-input>
|
||||||
</template>
|
</template>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
search: {
|
search: {
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 10,
|
size: 10,
|
||||||
name: '',
|
merchandiseName: '',
|
||||||
girdId: ''
|
girdId: ''
|
||||||
},
|
},
|
||||||
name: '',
|
name: '',
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<template slot="content">
|
<template slot="content">
|
||||||
<ai-search-bar bottomBorder>
|
<ai-search-bar bottomBorder>
|
||||||
<template #left>
|
<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">
|
<div class="userSelcet">
|
||||||
<span style="color: #606266;" v-if="search.consumerId">{{ name }}</span>
|
<span style="color: #606266;" v-if="search.consumerId">{{ name }}</span>
|
||||||
<span v-else>兑换人</span>
|
<span v-else>兑换人</span>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
@change="search.current = 1, getList()">
|
@change="search.current = 1, getList()">
|
||||||
</ai-select>
|
</ai-select>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="search.queryBeginTime"
|
v-model="search.createTimeStart"
|
||||||
type="date"
|
type="date"
|
||||||
size="small"
|
size="small"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
@change="search.current = 1, getList()">
|
@change="search.current = 1, getList()">
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="search.queryEndTime"
|
v-model="search.createTimeEnd"
|
||||||
type="date"
|
type="date"
|
||||||
size="small"
|
size="small"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
@@ -120,7 +120,9 @@
|
|||||||
size: 10,
|
size: 10,
|
||||||
merchandiseName: '',
|
merchandiseName: '',
|
||||||
orderStatus: '',
|
orderStatus: '',
|
||||||
consumerId: ''
|
consumerId: '',
|
||||||
|
createTimeStart: '',
|
||||||
|
createTimeEnd: ''
|
||||||
},
|
},
|
||||||
id: '',
|
id: '',
|
||||||
form: {
|
form: {
|
||||||
@@ -170,8 +172,16 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
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() {
|
onConfirm() {
|
||||||
@@ -196,10 +206,7 @@
|
|||||||
getList () {
|
getList () {
|
||||||
this.instance.post(`/app/appintegralmerchandiseorder/list`, null, {
|
this.instance.post(`/app/appintegralmerchandiseorder/list`, null, {
|
||||||
params: {
|
params: {
|
||||||
...this.search,
|
...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' : ''
|
|
||||||
}
|
}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user