BUG 29748

This commit is contained in:
aixianling
2022-05-20 17:01:03 +08:00
parent 452cf44ab9
commit 2d6e69b68f

View File

@@ -1,7 +1,11 @@
<template> <template>
<section class="AppIntegralOrder"> <section class="AppIntegralOrder">
<AiTopFixed> <AiTopFixed>
<u-search v-model="search" @change="current=1,getList()" clearable :show-action="false" placeholder="搜索订单编号"/> <div class="header" flex>
<AiAreaPicker v-model="search.areaId" :area-id="user.areaId" isForm/>
<u-search class="fill" v-model="search.name" @change="current=1,getList()" clearable :show-action="false" placeholder="搜索订单编号"/>
</div>
</AiTopFixed> </AiTopFixed>
<div class="card" v-for="row in list" :key="row.id"> <div class="card" v-for="row in list" :key="row.id">
<div class="header bottomBorder" flex> <div class="header bottomBorder" flex>
@@ -38,19 +42,25 @@
</template> </template>
<script> <script>
import {mapState} from "vuex";
import AiMore from "../../components/AiMore";
export default { export default {
name: "AppIntegralOrder", name: "AppIntegralOrder",
components: {AiMore},
appName: "积分超市订单", appName: "积分超市订单",
data() { data() {
return {search: "", current: 1, list: [], pages: 0} return {search: {}, current: 1, list: [], pages: 0}
},
computed: {
...mapState(['user'])
}, },
methods: { methods: {
getList() { getList() {
let {current, search, pages} = this let {current, search, pages} = this
if ((!pages && current == 1) || current <= pages) { if ((!pages && current == 1) || current <= pages) {
this.$http.post("/app/appvillagerintegralshoporder/list", null, { this.$http.post("/app/appvillagerintegralshoporder/list", null, {
params: {current, name: search} params: {current, ...search}
}).then(res => { }).then(res => {
if (res?.data) { if (res?.data) {
res.data.records?.map(e => { res.data.records?.map(e => {
@@ -93,6 +103,7 @@ export default {
}, },
created() { created() {
this.$dict.load('integralOrderStatus') this.$dict.load('integralOrderStatus')
this.search.areaId = this.user.areaId
this.getList() this.getList()
}, },
onReachBottom() { onReachBottom() {