Commit 86005cc4 by 杨明

fixed

1 parent 0ea1fe14
...@@ -344,8 +344,7 @@ export default { ...@@ -344,8 +344,7 @@ export default {
goodsName: item.goodsName, goodsName: item.goodsName,
denomination: item.denomination, denomination: item.denomination,
effectiveDays: item.effectiveDays, effectiveDays: item.effectiveDays,
rechargeDenomination: item.rechargeDenomination, rechargeDenomination: item.rechargeDenomination
provideWay: 1
}) })
} }
}) })
......
...@@ -50,26 +50,19 @@ ...@@ -50,26 +50,19 @@
<template slot="selectGoodsBtn"> <template slot="selectGoodsBtn">
<el-button type="default" class="el-icon-plus" @click="handleGoodsAdd">选择福利券</el-button> <el-button type="default" class="el-icon-plus" @click="handleGoodsAdd">选择福利券</el-button>
</template> </template>
<div slot="goodsListBlock" style="width: 900px" :style="{ 'margin-left': defaultLabelWidth }" v-if="selectedGoodsList && selectedGoodsList.length"> <div slot="goodsListBlock" style="width: 792px" :style="{ 'margin-left': defaultLabelWidth }" v-if="selectedGoodsList && selectedGoodsList.length">
<div class="goods-panel"> <div class="goods-panel">
<el-table :data="selectedGoodsList" border style="width: 100%"> <el-table :data="selectedGoodsList" border style="width: 100%">
<el-table-column type="index" label="序号" width="70"></el-table-column> <el-table-column type="index" label="序号" width="70"></el-table-column>
<el-table-column prop="brandName" label="品牌" width="100"></el-table-column> <el-table-column prop="brandName" label="品牌" width="120"></el-table-column>
<el-table-column prop="goodsName" label="商户名称" width="150"></el-table-column> <el-table-column prop="goodsName" label="商户名称" width="160"></el-table-column>
<el-table-column prop="couponAmount" label="数量" width="70"></el-table-column> <el-table-column prop="couponAmount" label="数量" width="80"></el-table-column>
<el-table-column prop="denomination" label="劵面额" width="120"> <el-table-column prop="denomination" label="劵面额" width="140">
<template slot-scope="scope">{{ (scope.row.denomination / 100).toFixed(2) }}元</template> <template slot-scope="scope">{{ (scope.row.denomination / 100).toFixed(2) }}元</template>
</el-table-column> </el-table-column>
<el-table-column prop="effectiveDays" label="有效期" width="100"> <el-table-column prop="effectiveDays" label="有效期" width="120">
<template slot-scope="scope">{{ scope.row.effectiveDays }}天</template> <template slot-scope="scope">{{ scope.row.effectiveDays }}天</template>
</el-table-column> </el-table-column>
<el-table-column label="发券规则">
<template slot-scope="scope">
<el-select v-model="scope.row.provideWay" placeholder="请选择" class="provideWay-box">
<el-option v-for="item in rulesOptions" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</template>
</el-table-column>
<el-table-column label="操作" width="100"> <el-table-column label="操作" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="handleDeleteGoods(scope.row)" type="text" size="small">删除</el-button> <el-button @click="handleDeleteGoods(scope.row)" type="text" size="small">删除</el-button>
...@@ -2034,7 +2027,6 @@ export default { ...@@ -2034,7 +2027,6 @@ export default {
return { return {
couponId: item.id, couponId: item.id,
couponAmount: item.couponAmount, couponAmount: item.couponAmount,
provideWay: item.provideWay,
couponAnticipatedCost: item.denomination couponAnticipatedCost: item.denomination
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!