{{ name }}
兑换人
@@ -24,7 +24,7 @@
@change="search.current = 1, getList()">
{
// return h('span', {
// }, params.row.areaName)
@@ -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) {