Commit 0e0d7765 by 王志慧

fixed

1 parent 33789523
......@@ -63,7 +63,7 @@
<template v-if="configForm.awardList[scope.index].type == 2">
<!-- :红包、实物、谢谢惠顾时,为输入框 优惠券,为下拉框 -->
<el-form-item style="margin-bottom: 0px" :prop="'awardList.' + scope.index + '.couponId'" :rules="configRules.couponId">
<el-select style="width: 100%" v-model="scope.scope.couponId" placeholder="请选择">
<el-select style="width: 100%" v-model="scope.scope.couponId" placeholder="请选择" @change="setAwardName(scope.scope)">
<el-option v-for="item in couponList" :key="item.id" :label="item.goodsName" :value="item.id"></el-option>
</el-select>
</el-form-item>
......@@ -190,7 +190,7 @@ export default {
data() {
return {
loading: false,
activePage: 1,
activePage: 2,
templateList: [],
couponList: [],
afterRangePickerOptions,
......@@ -489,6 +489,9 @@ export default {
})
}
},
setAwardName(data){
data.name=this.couponList.filter(item=>item.id==data.couponId)[0].goodsName
},
handleCalculate(data, key) {
if (isNaN(data[key])) {
data[key] = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!