This commit is contained in:
cun-nan 2024-03-08 17:05:12 +08:00
parent bd6fec90ac
commit 56290e0297

View File

@ -54,7 +54,8 @@
<el-table-column label="活动名称" align="center" prop="name" /> <el-table-column label="活动名称" align="center" prop="name" />
<el-table-column label="适用油品" align="center" prop="adaptOil" > <el-table-column label="适用油品" align="center" prop="adaptOil" >
<template slot-scope="scope"> <template slot-scope="scope">
<span v-for="item in scope.row.adaptOils">{{ item }}, </span> <!-- <span v-for="item in scope.row.adaptOils">{{ item }}, </span>-->
<span >{{ getName(oilNameList,scope.row.adaptOil) }} </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="满足金额" align="center" prop="participationConditionMoney" > <el-table-column label="满足金额" align="center" prop="participationConditionMoney" >
@ -636,6 +637,7 @@
<script> <script>
import { getoiltype,getoilName, listActiveConsumption,listExchange,listLJGoods, getActiveConsumption, delActiveConsumption, addActiveConsumption, updateActiveConsumption,listFavorable,looklook,looklooklook } from "@/api/EventMarketing/activeConsumption"; import { getoiltype,getoilName, listActiveConsumption,listExchange,listLJGoods, getActiveConsumption, delActiveConsumption, addActiveConsumption, updateActiveConsumption,listFavorable,looklook,looklooklook } from "@/api/EventMarketing/activeConsumption";
import {listUserGrade} from "@/api/staff/user/usergrade"; import {listUserGrade} from "@/api/staff/user/usergrade";
import {getOilNameList} from "@/api/order/oilnumgun";
export default { export default {
name: "ActiveConsumption", name: "ActiveConsumption",
@ -650,6 +652,8 @@ export default {
], ],
labelPosition:'left', labelPosition:'left',
userGradeList:[], userGradeList:[],
//
oilNameList:[],
pdidlist:[],//id pdidlist:[],//id
pddhidlist:[],//id pddhidlist:[],//id
pdswidlist:[],//id pdswidlist:[],//id
@ -847,6 +851,19 @@ export default {
}) })
}, },
//
getName(oilNameList,ids){
let name = ""
let _this = this;
ids.forEach(i => {
oilNameList.forEach(item => {
if (item.id == i){
name += item.oilName + ",";
}
})
})
return name;
},
// //
getoiltypeliet(){ getoiltypeliet(){
getoiltype().then(res=>{ getoiltype().then(res=>{
@ -861,6 +878,9 @@ export default {
}) })
getOilNameList().then( response => {
this.oilNameList = response.data;
})
}, },
swchange(e){ swchange(e){
console.log(this.shopdata) console.log(this.shopdata)