营销
This commit is contained in:
parent
553639e4b6
commit
8bd63ea9f3
@ -45,11 +45,8 @@
|
|||||||
{{ item }}
|
{{ item }}
|
||||||
</div>
|
</div>
|
||||||
<el-select v-model="ruleForm.dieselUserLevel" multiple clearable placeholder="请选择油品油号(多选)">
|
<el-select v-model="ruleForm.dieselUserLevel" multiple clearable placeholder="请选择油品油号(多选)">
|
||||||
<el-option
|
<el-option v-for="(item,index) in oilNumberList" :key="index"
|
||||||
v-for="(item,index) in userGradeList"
|
:label="getOilNamess(oilNameList,item.oilName)" :value="item.oilName"></el-option>
|
||||||
:label="item.name"
|
|
||||||
:value="item.id.toString()"
|
|
||||||
:key="index"></el-option>
|
|
||||||
</el-select>
|
</el-select>
|
||||||
</div>
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -155,6 +152,7 @@ import {
|
|||||||
} from "@/api/EventMarketing/activeFullminus";
|
} from "@/api/EventMarketing/activeFullminus";
|
||||||
import {listCardCoupon} from "@/api/EventMarketing/cardCoupon";
|
import {listCardCoupon} from "@/api/EventMarketing/cardCoupon";
|
||||||
import {listUserGrade} from "@/api/staff/user/usergrade";
|
import {listUserGrade} from "@/api/staff/user/usergrade";
|
||||||
|
import {getOilNameList, oilNumberList} from "@/api/order/oilnumgun";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "ActiveNewlyweds",
|
name: "ActiveNewlyweds",
|
||||||
@ -248,6 +246,9 @@ export default {
|
|||||||
// 优惠券列表信息
|
// 优惠券列表信息
|
||||||
cardCouponList:[],
|
cardCouponList:[],
|
||||||
userGradeList: [],
|
userGradeList: [],
|
||||||
|
oilNameList: [],
|
||||||
|
// 油号列表
|
||||||
|
oilNumberList: [],
|
||||||
// 表单校验
|
// 表单校验
|
||||||
rules: {
|
rules: {
|
||||||
name: [
|
name: [
|
||||||
@ -270,11 +271,31 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// this.getList()
|
// this.getList()
|
||||||
// this.getInfo()
|
this.getInfo()
|
||||||
this.getCardCoupon()
|
this.getCardCoupon()
|
||||||
this.listUserGrade()
|
this.listUserGrade()
|
||||||
|
this.getOilList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getOilList(){
|
||||||
|
getOilNameList().then(response => {
|
||||||
|
this.oilNameList = response.data;
|
||||||
|
})
|
||||||
|
oilNumberList().then(response => {
|
||||||
|
this.oilNumberList = response.data.records;
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getOilNamess(list, id) {
|
||||||
|
let name = ""
|
||||||
|
if (list != null && list != "") {
|
||||||
|
list.forEach(item => {
|
||||||
|
if (item.id == id) {
|
||||||
|
name = item.oilName;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
},
|
||||||
Typeindex4(index) {
|
Typeindex4(index) {
|
||||||
this.tindex4 = index
|
this.tindex4 = index
|
||||||
},
|
},
|
||||||
@ -294,12 +315,14 @@ export default {
|
|||||||
getInfoActiveNewlyweds().then(res => {
|
getInfoActiveNewlyweds().then(res => {
|
||||||
if (res.data) {
|
if (res.data) {
|
||||||
this.ruleForm = res.data
|
this.ruleForm = res.data
|
||||||
|
if (res.data.paymentType) this.ruleForm.paymentType = res.data.paymentType.split(",")
|
||||||
if (res.data.courtesyReward) this.ruleForm.courtesyReward = res.data.courtesyReward.split(",")
|
if (res.data.courtesyReward) this.ruleForm.courtesyReward = res.data.courtesyReward.split(",")
|
||||||
if (res.data.activeTimeType) this.tindex1 = res.data.activeTimeType
|
if (res.data.activeTimeType) this.tindex1 = res.data.activeTimeType
|
||||||
if (res.data.couponList) this.couponList = res.data.couponList
|
if (res.data.couponList) this.couponList = res.data.couponList
|
||||||
}else {
|
}else {
|
||||||
this.ruleForm = {
|
this.ruleForm = {
|
||||||
activeTimeType:0,
|
activeTimeType:0,
|
||||||
|
paymentType:[],
|
||||||
courtesyReward:[]
|
courtesyReward:[]
|
||||||
}
|
}
|
||||||
this.tindex1 = 0
|
this.tindex1 = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user