Commit 87b53c13 authored by 王悦's avatar 王悦
parents b7c15534 ead3d6a8
...@@ -82,10 +82,11 @@ ...@@ -82,10 +82,11 @@
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>优惠券名</th> <th>优惠券名</th>
<th>数量</th>
<th>线路名称</th> <th>线路名称</th>
<th>类型</th> <th>类型</th>
<th>面额</th> <th>面额</th>
<th>使用条件</th> <th>满减/折扣</th>
<!-- <th>使用状态</th> --> <!-- <th>使用状态</th> -->
<th>叠加使用</th> <th>叠加使用</th>
<th>生效日期</th> <th>生效日期</th>
...@@ -95,6 +96,7 @@ ...@@ -95,6 +96,7 @@
</tr> </tr>
<tr v-for="(item,index) in DataList" v-loading="loading"> <tr v-for="(item,index) in DataList" v-loading="loading">
<td>{{item.couponsName}}</td> <td>{{item.couponsName}}</td>
<td>{{item.couponCount}}</td>
<td>{{item.lineName}}</td> <td>{{item.lineName}}</td>
<td>{{item.couponsType ===1 ? "抵用券" : "折扣券"}}</td> <td>{{item.couponsType ===1 ? "抵用券" : "折扣券"}}</td>
<td>{{item.denomination}}</td> <td>{{item.denomination}}</td>
...@@ -208,11 +210,18 @@ ...@@ -208,11 +210,18 @@
</td> </td>
</tr> </tr>
<tr> <tr>
<td>
<el-form-item label="优惠券数量" prop="couponCount">
<el-input v-model="addMsg.couponCount" class="w217" type="number"/>
</el-form-item>
</td>
<td> <td>
<el-form-item label="使用条件" prop="useCondition"> <el-form-item label="使用条件" prop="useCondition">
<el-input v-model="addMsg.useCondition" class="w217" placeholder="满多少可用"/> <el-input v-model="addMsg.useCondition" class="w217" placeholder="满多少可用"/>
</el-form-item> </el-form-item>
</td> </td>
</tr>
<tr>
<td> <td>
<el-form-item label="生效日期" prop="effectDate"> <el-form-item label="生效日期" prop="effectDate">
<el-date-picker <el-date-picker
...@@ -223,8 +232,6 @@ ...@@ -223,8 +232,6 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
</td> </td>
</tr>
<tr>
<td> <td>
<el-form-item label="有效截止日" prop="expirationDate"> <el-form-item label="有效截止日" prop="expirationDate">
<el-date-picker <el-date-picker
...@@ -280,6 +287,7 @@ export default { ...@@ -280,6 +287,7 @@ export default {
useCondition: [{ required: true, message: "请输入使用条件", trigger: "blur" }], useCondition: [{ required: true, message: "请输入使用条件", trigger: "blur" }],
effectDate: [{ required: true, message: "请选择生效日期", trigger: "change" }], effectDate: [{ required: true, message: "请选择生效日期", trigger: "change" }],
expirationDate: [{ required: true, message: "请选择截止日期", trigger: "change" }], expirationDate: [{ required: true, message: "请选择截止日期", trigger: "change" }],
couponCount: [{ required: true, message: "请输入优惠券数量", trigger: "blur" }],
}, },
addMsg: { addMsg: {
couponsName: "", couponsName: "",
...@@ -293,6 +301,7 @@ export default { ...@@ -293,6 +301,7 @@ export default {
overlapUse: 0, overlapUse: 0,
useCondition: "", useCondition: "",
id: 0, id: 0,
couponCount: '',
}, },
pwdMsg: { pwdMsg: {
Id: "", Id: "",
...@@ -407,6 +416,8 @@ export default { ...@@ -407,6 +416,8 @@ export default {
this.addMsg.overlapUse= item.overlapUse this.addMsg.overlapUse= item.overlapUse
this.addMsg.useCondition= item.useCondition this.addMsg.useCondition= item.useCondition
this.addMsg.id= item.id this.addMsg.id= item.id
this.addMsg.couponCount = item.couponCount
console.log(item.couponCount)
this.isleaveBtn = true; this.isleaveBtn = true;
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment