|
@@ -7,6 +7,7 @@
|
|
|
</h2>
|
|
|
<div class="m-core">
|
|
|
<save-form
|
|
|
+ size="mini"
|
|
|
:inline="true"
|
|
|
:model="searchForm"
|
|
|
@submit="search"
|
|
@@ -57,6 +58,7 @@
|
|
|
type="primary"
|
|
|
style="margin-bottom: 30px"
|
|
|
@click="gotoDetail()"
|
|
|
+ size="mini"
|
|
|
>新增优惠券</el-button
|
|
|
>
|
|
|
</auth>
|
|
@@ -66,6 +68,7 @@
|
|
|
style="width: 100%"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
:data="tableList"
|
|
|
+ size="mini"
|
|
|
>
|
|
|
<el-table-column
|
|
|
align="center"
|
|
@@ -277,7 +280,7 @@
|
|
|
>
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- {{scope.row.consumeNum }}
|
|
|
+ {{ scope.row.consumeNum }}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -286,10 +289,12 @@
|
|
|
prop="warningStockNum"
|
|
|
label="库存预警值"
|
|
|
>
|
|
|
- <template slot-scope="scope">
|
|
|
+ <template slot-scope="scope">
|
|
|
<div>
|
|
|
{{
|
|
|
- scope.row.warningStockNum == -1 ? "不限制" : scope.row.stockCount
|
|
|
+ scope.row.warningStockNum == -1
|
|
|
+ ? "不限制"
|
|
|
+ : scope.row.stockCount
|
|
|
}}
|
|
|
</div>
|
|
|
</template>
|
|
@@ -337,6 +342,16 @@
|
|
|
>删除</el-button
|
|
|
>
|
|
|
</auth>
|
|
|
+ <auth auths="sysCoupon/delete">
|
|
|
+ <el-button type="text" @click="removeCoupon(scope.row)"
|
|
|
+ >手动发放</el-button
|
|
|
+ >
|
|
|
+ </auth>
|
|
|
+ <auth auths="sysCoupon/delete">
|
|
|
+ <el-button type="text" @click="removeCoupon(scope.row)"
|
|
|
+ >发放记录</el-button
|
|
|
+ >
|
|
|
+ </auth>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|