This commit is contained in:
cun-nan 2024-03-07 16:33:19 +08:00
parent fee077d015
commit a3d3909045
3 changed files with 47 additions and 2 deletions

View File

@ -53,7 +53,7 @@
<el-table-column label="活动名称" align="center" prop="name" />
<el-table-column label="适用油品" align="center" prop="adaptOil" >
<template slot-scope="scope">
<span > {{ scope.row.adaptOilss}} </span>
<span > {{ getName(oilNameList,scope.row.adaptOil) }} </span>
</template>
</el-table-column>
<el-table-column label="适用用户" align="center" prop="adaptOil" >
@ -290,6 +290,7 @@ import {
updateActiveConsumption
} from "@/api/EventMarketing/activeConsumption";
import {listUserGrade} from "@/api/staff/user/usergrade";
import {getOilNameList} from "@/api/order/oilnumgun";
export default {
name: "ActiveDiscount",
@ -321,6 +322,8 @@ export default {
total: 0,
//
activeDiscountList: [],
//
oilNameList:[],
//
title: "",
//
@ -420,6 +423,9 @@ export default {
this.oillist = res.data
})
getOilNameList().then( response => {
this.oilNameList = response.data;
})
},
listUserGrade(){
@ -498,6 +504,19 @@ export default {
this.open = true;
this.title = "添加折扣营销";
},
//
getName(oilNameList,ids){
let name = ""
let _this = this;
ids.forEach(i => {
oilNameList.forEach(item => {
if (item.id == i){
name += item.oilName + ",";
}
})
})
return name;
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();

View File

@ -53,7 +53,7 @@
<el-table-column label="活动名称" align="center" prop="name" />
<el-table-column label="适用油品" align="center" prop="adaptOil" >
<template slot-scope="scope">
<span > {{ scope.row.adaptOilss}} </span>
<span > {{ getName(oilNameList,scope.row.adaptOil) }} </span>
</template>
</el-table-column>
<el-table-column label="适用用户" align="center" prop="adaptOil" >
@ -266,6 +266,7 @@ import { listActiveFullminus, getActiveFullminus, delActiveFullminus, addActiveF
import {delActiveDiscount, getActiveDiscount, updateActiveDiscount} from "@/api/EventMarketing/activeDiscount";
import {getoilName, looklook, looklooklook} from "@/api/EventMarketing/activeConsumption";
import {listUserGrade} from "@/api/staff/user/usergrade";
import {getOilNameList} from "@/api/order/oilnumgun";
export default {
name: "ActiveFullminus",
@ -295,6 +296,8 @@ export default {
total: 0,
//
activeFullminusList: [],
//
oilNameList:[],
//
title: "",
//
@ -382,6 +385,9 @@ export default {
this.oillist = res.data
})
getOilNameList().then( response => {
this.oilNameList = response.data;
})
},
listUserGrade(){
listUserGrade().then(res=>{
@ -464,6 +470,19 @@ export default {
this.open = true;
this.title = "添加满减营销";
},
//
getName(oilNameList,ids){
let name = ""
let _this = this;
ids.forEach(i => {
oilNameList.forEach(item => {
if (item.id == i){
name += item.oilName + ",";
}
})
})
return name;
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();

View File

@ -4004,6 +4004,13 @@
_this.amount = 0
_this.seekZero = 0;
_this.fullReduction = 0;
_this.fullReduceDiscount = []
_this.checkAll1 = false
_this.gradeDiscount = []
_this.checkAll2 = false
_this.checkAll3 = false
_this.checkAll4 = false
_this.checkAll5 = false
};
this.userNo = ""
this.map = {