This commit is contained in:
yanran200830
2022-11-29 15:55:17 +08:00
parent 7d2fded062
commit 101d67ad48
3 changed files with 45 additions and 9 deletions

View File

@@ -49,8 +49,8 @@
<div class="AppAnnounceDetail-select"> <div class="AppAnnounceDetail-select">
<el-input size="small" class="AppAnnounceDetail-select__input" placeholder="请选择..." disabled v-model="form.wxGroupsName"></el-input> <el-input size="small" class="AppAnnounceDetail-select__input" placeholder="请选择..." disabled v-model="form.wxGroupsName"></el-input>
<div class="select-left" v-if="form.rangeList.length"> <div class="select-left" v-if="form.rangeList.length">
<span v-for="(item, index) in form.girdList" :key="index" v-if="index < 9">{{ item.girdName }}</span> <span v-for="(item, index) in girdList" :key="index" v-if="index < 9">{{ item.girdName }}</span>
<em v-if="form.girdList.length > 9">{{ form.girdList.length }}</em> <em v-if="girdList.length > 9">{{ girdList.length }}</em>
</div> </div>
<i v-if="!form.rangeList.length">请选择</i> <i v-if="!form.rangeList.length">请选择</i>
<div class="select-right">{{ form.rangeList.length ? '重新选择' : '选择' }}</div> <div class="select-right">{{ form.rangeList.length ? '重新选择' : '选择' }}</div>
@@ -114,12 +114,24 @@
this.form.imageUrl = [{ this.form.imageUrl = [{
url: res.data.imageUrl url: res.data.imageUrl
}] }]
if (res.data.rangeList && res.data.rangeList.length) {
this.form.wxGroupsName = 1
this.girdList = res.data.rangeList.map(v => {
return {
...v,
id: v.rangeId,
girdName: v.rangeName
}
})
this.form.rangeList = res.data.rangeList.map(v => v.rangeId)
}
} }
}) })
}, },
onPick (e) { onPick (e) {
this.form.girdList = e this.girdList = e
}, },
onSelcetChange (e) { onSelcetChange (e) {

View File

@@ -163,6 +163,10 @@
}) })
}, },
onUserChange () {
},
mapStatus (status) { mapStatus (status) {
return { return {
'0': '可兑换', '0': '可兑换',

View File

@@ -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" v-model="user"> <ai-user-selecter :instance="instance" @change="onUserChange" :isMultiple="false">
<div class="userSelcet"> <div class="userSelcet">
<span style="color: #606266;" v-if="search.createUserId">{{ name }}</span> <span style="color: #606266;" v-if="search.createUserId">{{ name }}</span>
<span v-else>兑换人</span> <span v-else>兑换人</span>
@@ -20,7 +20,7 @@
v-model="search.source" v-model="search.source"
clearable clearable
placeholder="请选择订单状态" placeholder="请选择订单状态"
:selectList="dict.getDict('EP_source')" :selectList="dict.getDict('merchandiseStatus')"
@change="search.current = 1, getList()"> @change="search.current = 1, getList()">
</ai-select> </ai-select>
<el-date-picker <el-date-picker
@@ -74,6 +74,8 @@
<el-table-column slot="goods" width="240px" label="商品" align="left"> <el-table-column slot="goods" width="240px" label="商品" align="left">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<div class="goods"> <div class="goods">
<img :src="row.imageUrl">
<span>{{ row.merchandiseName }}</span>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -107,6 +109,7 @@
name: '', name: '',
createUserId: '' createUserId: ''
}, },
user: [],
name: '', name: '',
info: {}, info: {},
colConfigs: [ colConfigs: [
@@ -120,9 +123,10 @@
label: '兑换时间' label: '兑换时间'
}, },
{ {
prop: 'arriveAreaName', prop: 'status',
align: 'center', align: 'center',
label: '状态' label: '状态',
formart: v => this.dict.getLabel('merchandiseStatus', v)
} }
], ],
ids: [], ids: [],
@@ -134,14 +138,18 @@
}, },
created () { created () {
this.dict.load(['EP_riskLevel', 'EP_handleType', 'modeType', 'EP_riskStatus', 'EP_source']).then(() => { this.dict.load(['merchandiseStatus']).then(() => {
this.getList() this.getList()
}) })
}, },
methods: { methods: {
onUserChange () {
},
getList () { getList () {
this.instance.post(`/app/appepidemicpreventionregisterinfo/list`, null, { this.instance.post(`/app/appintegralmerchandiseorder/list`, null, {
params: { params: {
...this.search, ...this.search,
arriveAreaId: this.search.arriveAreaId, arriveAreaId: this.search.arriveAreaId,
@@ -150,6 +158,7 @@
} }
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
console.log(res.data.records)
this.tableData = res.data.records this.tableData = res.data.records
this.total = res.data.total this.total = res.data.total
} }
@@ -181,6 +190,17 @@
<style scoped lang="scss"> <style scoped lang="scss">
.list { .list {
.goods {
display: flex;
align-items: center;
img {
width: 80px;
height: 80px;
margin-right: 20px;
}
}
.userSelcet { .userSelcet {
display: flex; display: flex;
align-items: center; align-items: center;