| | |
| | | </el-form> |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:membercoupon:create', 'business:membercoupon:exportExcel']"> |
| | | <li><el-button type="primary" @click="$refs.OperaMemberCouponWindow.open('新建', null)" v-permissions="['business:membercoupon:create']">定向发放</el-button></li> |
| | | <li> <el-button type="primary" :loading="isWorking.export" v-permissions="['business:membercoupon:exportExcel']" @click="exportExcel">导出</el-button></li> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | |
| | | <li> 起:{{ row.startDate}}</li> <li>止:{{row.endDate }}</li> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="price" label="优惠金额(元)" min-width="120px"></el-table-column> |
| | | <el-table-column prop="couponPrice" label="优惠金额(元)" min-width="120px"> |
| | | <template slot-scope="{row}"> |
| | | {{row.status==1?(row.couponPrice||0):'-'}} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.status ===0" class="green"> 未使用</span> |
| | |
| | | > |
| | | </pagination> |
| | | </template> |
| | | |
| | | <OperaMemberCouponWindow ref="OperaMemberCouponWindow" @success="handlePageChange"/> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseTable from '@/components/base/BaseTable' |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import OperaMemberCouponWindow from '@/components/business/OperaMemberCouponWindow' |
| | | import Pagination from '@/components/common/Pagination' |
| | | export default { |
| | | name: 'MemberCoupon', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination }, |
| | | components: { TableLayout, Pagination ,OperaMemberCouponWindow}, |
| | | data () { |
| | | return { |
| | | // 搜索 |