Commit eecda43d by chenwq

优惠券列表;新增/编辑loading

1 parent 001b8ddb
......@@ -3,7 +3,7 @@ import { http } from '@/main'
const defaultPath = 'scrm.api.coupon.'
//优惠券列表
const getMerchantListApi = params => {
const getCouponListApi = params => {
// params.method = `${defaultPath}list.merchant`
params.method = 'scrm.backstage.coupon.list.merchant'
return http({
......@@ -151,4 +151,4 @@ const getAllGoodsApi = params => {
})
}
export default { getMerchantListApi, couponExportApi, getVerificationListApi, verificationExportApi, effectiveCouponApi, codeVerificationApi, getCouponDetailApi, deleteCouponApi, createCouponApi, updateCouponApi, getAllGoodsApi, getListReceiveRecordApi, exportReceiveRecordApi }
export default { getCouponListApi, couponExportApi, getVerificationListApi, verificationExportApi, effectiveCouponApi, codeVerificationApi, getCouponDetailApi, deleteCouponApi, createCouponApi, updateCouponApi, getAllGoodsApi, getListReceiveRecordApi, exportReceiveRecordApi }
<!-- 编辑代金券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="position: relative">
<div class="container edit-container" style="position: relative" v-loading="loading">
<div class="right_show">
<div class="card-top"></div>
<div class="slider">
......@@ -169,6 +169,7 @@ export default {
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
routeInfo: {
// 1-新增;2-编辑;3-查看
addOrEdit: 1,
......@@ -198,7 +199,8 @@ export default {
full: '',
goods: '1',
goodsRefList: [],
directionalFlag: '1'
directionalFlag: '1',
scopeApplication: ''
},
//商品列表
tableParams: {
......@@ -319,15 +321,16 @@ export default {
],
// 适用门店
merchantRule: {
merchantRadio: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'merchantRadio',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
......@@ -361,6 +364,7 @@ export default {
this.title = '查看'
let idx = this.editFormData.findIndex(item => item.name == 'editHtml')
this.editFormData[idx].isHide = false
this.setAllDisabled('merchantEditFormData')
} else if (addOrEdit == 2) {
this.apear = 'couponEdit'
this.title = '编辑'
......@@ -474,6 +478,11 @@ export default {
},
methods: {
setAllDisabled(editName) {
this[editName].forEach(item => {
item.isDisabled = true
})
},
editCoupon(attribute) {
attribute.forEach(item => {
let index = this.editFormData.findIndex(val => val.name == `${item}`)
......@@ -512,21 +521,29 @@ export default {
if (goodsName) {
params.goodsName = goodsName
}
this.$apis.couponManage.getAllGoodsApi(params).then(res => {
const goods = this.$common.utils.deepClone(res.list)
this.selectedAllProList = goods
if (goods && goods.length > 0) {
this.minPirceForAll = goods[0].retailPrice
goods.forEach((item, index) => {
if (item.retailPrice < this.minPirceForAll) {
this.minPirceForAll = item.retailPrice
}
})
} else {
this.priceFlag = true
}
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
})
this.loading = true
this.$apis.couponManage
.getAllGoodsApi(params)
.then(res => {
const goods = this.$common.utils.deepClone(res.list)
this.selectedAllProList = goods
if (goods && goods.length > 0) {
this.minPirceForAll = goods[0].retailPrice
goods.forEach((item, index) => {
if (item.retailPrice < this.minPirceForAll) {
this.minPirceForAll = item.retailPrice
}
})
} else {
this.priceFlag = true
}
this.routeInfo.addOrEdit != 1 ? this.getInfo() : ''
})
.finally(() => {
if (this.routeInfo.addOrEdit == 1) {
this.loading = false
}
})
},
//选择商品
......@@ -591,32 +608,41 @@ export default {
},
getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveTime = []
this.editForm.useChannel = this.editForm.useChannel + ''
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useBarriers = this.editForm.useBarriers + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
this.editForm.goodsRefList = []
if (this.editForm.goodsIds && this.editForm.goodsIds.length > 0) {
this.editForm.goodsIds.forEach((goodsId, index) => {
var good = this.selectedAllProList.find(item => item.id == goodsId)
good.retailPrice = (good.retailPrice / 100).toFixed(2)
this.editForm.goodsRefList.push(good)
this.loading = true
this.$apis.couponManage
.getCouponDetailApi({ couponId: this.routeInfo.id })
.then(res => {
this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveTime = []
this.editForm.useChannel = this.editForm.useChannel + ''
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useBarriers = this.editForm.useBarriers + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
this.editForm.goodsRefList = []
if (this.editForm.goodsIds && this.editForm.goodsIds.length > 0) {
this.editForm.goodsIds.forEach((goodsId, index) => {
var good = this.selectedAllProList.find(item => item.id == goodsId)
good.retailPrice = (good.retailPrice / 100).toFixed(2)
this.editForm.goodsRefList.push(good)
})
}
this.tableParams.tableOption = false //去掉操作栏
this.$nextTick(() => {
this.editStatus = false
})
}
this.tableParams.tableOption = false //去掉操作栏
this.$nextTick(() => {
this.editStatus = false
})
})
.finally(() => {
this.loading = false
})
},
validateRules() {
......@@ -689,7 +715,12 @@ export default {
//面值
obj.denomination = form.denomination
//库存
obj.stock = form.stock
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
obj.useType = 1
//有效期或者间隔天数使用次数
......@@ -742,6 +773,7 @@ export default {
} else {
method = 'createCouponApi' //后台创建优惠券
}
console.log(params)
this.$apis.couponManage[method](params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......
<!-- 编辑折扣券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="position: relative">
<div class="container edit-container" style="position: relative" v-loading="loading">
<!-- <div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
......@@ -165,6 +165,7 @@ export default {
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
// pickerOptions: {
// disabledDate(v) {//禁用当前之前的日期
// return v.getTime() < new Date().getTime() - 86400000;
......@@ -200,7 +201,8 @@ export default {
effectiveDays: '',
anticipatedCost: '',
discountIntensity: '',
directionalFlag: '1'
directionalFlag: '1',
scopeApplication: ''
},
editRule: {
anticipatedCost: [{ required: true, message: '请输入预估成本', trigger: 'change' }],
......@@ -273,15 +275,16 @@ export default {
],
// 适用门店
merchantRule: {
merchantRadio: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'merchantRadio',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
......@@ -316,6 +319,7 @@ export default {
this.title = '查看'
const editHtmlIndex = this.editFormData.findIndex(val => val.addHtml == 'editHtml')
this.editFormData[editHtmlIndex].isHide = false
this.setAllDisabled('merchantEditFormData')
} else if (addOrEdit == 2) {
this.apear = 'couponEdit'
this.title = '编辑'
......@@ -375,6 +379,11 @@ export default {
}
},
methods: {
setAllDisabled(editName) {
this[editName].forEach(item => {
item.isDisabled = true
})
},
editCoupon(attribute) {
attribute.forEach(item => {
let index = this.editFormData.findIndex(val => val.name == `${item}`)
......@@ -407,27 +416,36 @@ export default {
},
getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res)
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useBarriers = this.editForm.useBarriers + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
this.editForm.discountIntensity = (this.editForm.discountIntensity / 100).toFixed(2)
//使用限制,满多少元可用
if (this.editForm.useBarriers == 2) {
this.editForm.full = this.editForm.full
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
this.$nextTick(() => {
this.editStatus = false
this.loading = true
this.$apis.couponManage
.getCouponDetailApi({ couponId: this.routeInfo.id })
.then(res => {
console.log(res)
this.editForm = this.$common.utils.deepClone(res)
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useBarriers = this.editForm.useBarriers + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
this.editForm.discountIntensity = (this.editForm.discountIntensity / 100).toFixed(2)
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
//使用限制,满多少元可用
if (this.editForm.useBarriers == 2) {
this.editForm.full = this.editForm.full
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
this.$nextTick(() => {
this.editStatus = false
})
})
.finally(() => {
this.loading = false
})
})
},
validateRules() {
......@@ -488,7 +506,12 @@ export default {
obj.full = form.full
}
//库存
obj.stock = form.stock
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
//折扣
obj.discountIntensity = (form.discountIntensity * 100).toFixed(0)
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
......
<!-- 编辑兑换券 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container" style="position: relative">
<div class="container edit-container" style="position: relative" v-loading="loading">
<div class="right_show">
<div class="card-top"></div>
<div class="slider">
......@@ -128,6 +128,7 @@ export default {
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
editStatus: false,
// pickerOptions: {
// disabledDate(v) {//禁用当前之前的日期
......@@ -160,7 +161,8 @@ export default {
effectiveTime: [],
effectiveDays: '',
anticipatedCost: '',
directionalFlag: '1'
directionalFlag: '1',
scopeApplication: ''
},
editRule: {
anticipatedCost: [{ required: true, message: '请输入预估成本', trigger: 'change' }],
......@@ -219,15 +221,16 @@ export default {
],
// 适用门店
merchantRule: {
merchantRadio: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'merchantRadio',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
......@@ -262,6 +265,7 @@ export default {
this.editFormData[editHtmlIndex].isHide = false
this.showSubmit = false
this.title = '查看'
this.setAllDisabled('merchantEditFormData')
} else if (addOrEdit == 2) {
this.apear = 'couponEdit'
this.title = '编辑'
......@@ -309,6 +313,11 @@ export default {
},
methods: {
setAllDisabled(editName) {
this[editName].forEach(item => {
item.isDisabled = true
})
},
editCoupon(attribute) {
attribute.forEach(item => {
let index = this.editFormData.findIndex(val => val.name == `${item}`)
......@@ -333,20 +342,28 @@ export default {
},
getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
this.editForm = this.$common.utils.deepClone(res)
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
this.$nextTick(() => {
this.editStatus = false
this.loading = true
this.$apis.couponManage
.getCouponDetailApi({ couponId: this.routeInfo.id })
.then(res => {
this.editForm = this.$common.utils.deepClone(res)
this.editForm.directionalFlag = this.editForm.directionalFlag + ''
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.anticipatedCost = (this.editForm.anticipatedCost / 100).toFixed(2)
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
this.$nextTick(() => {
this.editStatus = false
})
}).finally(() => {
this.loading = false
})
})
},
validateRules() {
......@@ -394,7 +411,12 @@ export default {
}
//库存
obj.stock = form.stock
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
obj.useType = 1
//有效期或者间隔天数使用次数
......
<!-- 编辑会员服务 -->
<template>
<div class="edit-share marketing p-t-20 edit-box">
<div class="container edit-container">
<div class="container edit-container" v-loading="loading">
<p class="edit-title">{{ title }}会员服务</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="effectiveHtml">
......@@ -97,6 +97,7 @@ export default {
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef',
loading: false,
// pickerOptions: {
// disabledDate(v) {//禁用当前之前的日期
// return v.getTime() < new Date().getTime() - 86400000;
......@@ -118,7 +119,8 @@ export default {
effectiveType: '3',
useType: '0',
usageTimes: 1,
usageTimes2: 1
usageTimes2: 1,
scopeApplication: ''
},
editRule: {
couponName: [{ required: true, message: '请输入优惠券名称', trigger: 'change' }],
......@@ -179,15 +181,16 @@ export default {
],
// 适用门店
merchantRule: {
merchantRadio: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
scopeApplication: [{ required: true, message: '请选择适用范围', trigger: 'change' }]
},
merchantEditFormData: [
{
label: '适用范围',
name: 'merchantRadio',
name: 'scopeApplication',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
optionList: [
{
confId: '1',
......@@ -219,6 +222,7 @@ export default {
if (addOrEdit == 3) {
this.apear = 'couponSee'
this.title = '查看'
this.setAllDisabled('merchantEditFormData')
} else if (addOrEdit == 2) {
this.apear = 'couponEdit'
this.title = '编辑'
......@@ -267,29 +271,42 @@ export default {
},
methods: {
setAllDisabled(editName) {
this[editName].forEach(item => {
item.isDisabled = true
})
},
setDateString(objField, special) {
var value = typeof objField == 'string' ? objField.split(' ')[0] : special ? objField.format('YYYY年MM月DD日') : objField.format('YYYY年MM月DD日')
return value
},
getInfo() {
this.$apis.couponManage.getCouponDetailApi({ couponId: this.routeInfo.id }).then(res => {
this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useType = this.editForm.useType + ''
this.loading = true
this.$apis.couponManage
.getCouponDetailApi({ couponId: this.routeInfo.id })
.then(res => {
this.editForm = this.$common.utils.deepClone(res)
this.editForm.effectiveType = this.editForm.effectiveType + ''
this.editForm.useType = this.editForm.useType + ''
if (this.$isGroupUp) {
this.editForm.scopeApplication = this.editForm.scopeApplication + ''
}
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
if (this.editForm.useType == 1) {
this.editForm.usageTimes = this.editForm.useAmount
} else if (this.editForm.useType == 2) {
this.editForm.usageTimes2 = this.editForm.useAmount
}
})
//有效期
//有效类型 1:固定天数,领取后计算 2:时间段,3:无有效期
if (this.editForm.effectiveType == 2) {
this.editForm.effectiveTime = [this.editForm.effectiveStartTime, this.editForm.effectiveEndTime]
}
//类型(0:不限制次数,1:根据有效期限制多少次,2:根据间隔多少天限制多少次)
if (this.editForm.useType == 1) {
this.editForm.usageTimes = this.editForm.useAmount
} else if (this.editForm.useType == 2) {
this.editForm.usageTimes2 = this.editForm.useAmount
}
}).finally(() => {
this.loading = false
})
},
validateRules() {
......@@ -364,7 +381,12 @@ export default {
//门店价
obj.shopPrice = form.shopPrice
//库存
obj.stock = form.stock
obj.limitStockFlag = this.$isGroupUp ? 2 : 1
if (!this.$isGroupUp) {
obj.stock = form.stock
} else {
obj.scopeApplication = form.scopeApplication
}
}
//使用描述
obj.useDescription = form.useDescription
......
......@@ -56,6 +56,7 @@
</template>
<script>
import * as dayjs from 'dayjs'
import url from '@/assets/empty.png'
import { exportFn } from '@/common/constant'
export default {
......@@ -82,7 +83,7 @@ export default {
couponName: '',
discountType: '',
status: '',
discountTypes: [2, 3, 4]
discountTypes: [2, 3, 4, 7]
},
tableSearchForm: {},
// 搜索
......@@ -122,7 +123,7 @@ export default {
// }
],
// 表格
getListApi: this.$apis.couponManage.getMerchantListApi,
getListApi: this.$apis.couponManage.getCouponListApi,
tableParams: {
listName: 'list',
tableOption: true,
......@@ -136,19 +137,51 @@ export default {
{
label: '券名称',
prop: 'couponName',
width: 200,
line: 2
},
{
label: '有效期',
prop: ''
prop: 'effectiveType',
width: 200,
formatter: cellValue => {
switch (cellValue.effectiveType) {
case 1:
return '领取后' + cellValue.effectiveDays + '天内有效'
case 2:
return dayjs(cellValue.effectiveStartTime).format('YYYY-MM-DD HH:mm:ss') + '-' + dayjs(cellValue.effectiveEndTime).format('YYYY-MM-DD HH:mm:ss')
case 3:
return '无有效期'
default:
return '-'
}
}
},
{
label: '可用次数',
prop: ''
prop: 'useType',
width: 200,
line: 2,
formatter: cellValue => {
switch (cellValue.useType) {
case 0:
return '不限制次数'
case 1:
return '有效期内可使用' + cellValue.useAmount + '次'
case 2:
return '有效期内' + cellValue.useLimitDays + '天可使用' + cellValue.useAmount + '次'
default:
return '-'
}
}
},
{
label: '库存',
prop: ''
prop: 'stock',
width: 120,
formatter: cellValue => {
return cellValue.limitStockFlag == 1 ? cellValue.stock : '无库存限制'
}
},
{
label: '使用途径',
......@@ -200,7 +233,14 @@ export default {
},
{
label: '适用范围',
name: 'application'
name: 'scopeApplication',
width: 160,
formatter: cellValue => {
return {
1: '旗下所有店通用',
2: '旗下品牌店通用'
}[cellValue.scopeApplication]
}
},
{
label: '已领取',
......@@ -216,7 +256,8 @@ export default {
attrToIcon: {
2: 'discount',
3: 'cash',
4: 'exchange'
4: 'exchange',
7: 'service'
},
baseData: {
discountTypeList: [
......@@ -231,11 +272,11 @@ export default {
{
confId: '4',
confName: '兑换券'
},
{
confId: '7',
confName: '服务券'
}
// {
// confId: '7',
// confName: '会员服务'
// }
],
// directionalFlagList: [
// {
......@@ -448,7 +489,7 @@ export default {
couponName: '',
discountType: '',
status: '',
discountTypes: [2, 3, 4]
discountTypes: [2, 3, 4, 7]
}
this.handleSearch()
},
......
......@@ -96,7 +96,8 @@ export default {
attrToIcon: {
2: 'discount',
3: 'cash',
4: 'exchange'
4: 'exchange',
7: 'service'
},
// 优惠券信息
couponFormData: [
......
......@@ -98,17 +98,13 @@ export default {
},
size: 'small',
searchForm: {
// couponId:222 //卷id
//userCouponId //用户卷id
// name: '',
// daterange:''
couponName: '',
userReq: '',
verificationOperator: '',
orderCode: '',
merchantId: 0,
discountType: '',
discountTypes: [7]
discountTypes: [2, 3, 4, 7]
},
tableSearchForm: {},
// 搜索
......@@ -219,7 +215,8 @@ export default {
attrToIcon: {
2: 'discount',
3: 'cash',
4: 'exchange'
4: 'exchange',
7: 'service'
},
baseData: {
discountTypeList: [
......@@ -399,7 +396,7 @@ export default {
// this.searchForm = { merchantId: 44184606 }
// this.handleSearch()
this.isReload = false
this.searchForm = { merchantId: this.merchantId, discountTypes: [7] }
this.searchForm = { merchantId: this.merchantId, discountTypes: [2, 3, 4, 7] }
this.$nextTick(() => {
this.isReload = true
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!