diff --git a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue index faacca0be..f4c8884ac 100644 --- a/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue +++ b/fuintAdmin/src/views/EventMarketing/openCardGift/userConsume.vue @@ -45,11 +45,8 @@ {{ item }} - + @@ -155,6 +152,7 @@ import { } from "@/api/EventMarketing/activeFullminus"; import {listCardCoupon} from "@/api/EventMarketing/cardCoupon"; import {listUserGrade} from "@/api/staff/user/usergrade"; +import {getOilNameList, oilNumberList} from "@/api/order/oilnumgun"; export default { name: "ActiveNewlyweds", @@ -248,6 +246,9 @@ export default { // 优惠券列表信息 cardCouponList:[], userGradeList: [], + oilNameList: [], + // 油号列表 + oilNumberList: [], // 表单校验 rules: { name: [ @@ -270,11 +271,31 @@ export default { }, created() { // this.getList() - // this.getInfo() + this.getInfo() this.getCardCoupon() this.listUserGrade() + this.getOilList() }, 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) { this.tindex4 = index }, @@ -294,12 +315,14 @@ export default { getInfoActiveNewlyweds().then(res => { if (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.activeTimeType) this.tindex1 = res.data.activeTimeType if (res.data.couponList) this.couponList = res.data.couponList }else { this.ruleForm = { activeTimeType:0, + paymentType:[], courtesyReward:[] } this.tindex1 = 0