Commit 834bb569 authored by huangyuanyuan's avatar huangyuanyuan

优惠券添加条件

parent 3e14311e
...@@ -82,6 +82,20 @@ ...@@ -82,6 +82,20 @@
</el-select> </el-select>
</span> </span>
</li> </li>
<li>
<span>
<em>使用范围</em>
<el-select filterable v-model="msg.couponsUseScope">
<el-option :label="$t('active.cl_tongyong')" :value="1"></el-option>
<el-option :label="$t('active.cl_team')" :value="2"></el-option>
<el-option :label="$t('active.cl_qianzheng')" :value="3"></el-option>
<el-option :label="$t('active.cl_jipiao')" :value="4"></el-option>
<el-option label="门票" :value="5"></el-option>
<el-option label="车辆" :value="6"></el-option>
</el-select>
</span>
</li>
<li> <li>
<input <input
type="button" type="button"
...@@ -116,6 +130,7 @@ ...@@ -116,6 +130,7 @@
<th>{{$t('active.cl_sxriqi')}}</th> <th>{{$t('active.cl_sxriqi')}}</th>
<th>{{$t('active.cl_sxzhuangtai')}}</th> <th>{{$t('active.cl_sxzhuangtai')}}</th>
<th>{{$t('active.cl_gqriqi')}}</th> <th>{{$t('active.cl_gqriqi')}}</th>
<th>使用范围</th>
<th>{{$t('admin.admin_status')}}</th> <th>{{$t('admin.admin_status')}}</th>
<th>{{$t('active.cl_addPp')}}</th> <th>{{$t('active.cl_addPp')}}</th>
<th>{{$t('system.table_operation')}}</th> <th>{{$t('system.table_operation')}}</th>
...@@ -141,7 +156,16 @@ ...@@ -141,7 +156,16 @@
<span v-if="item.couponEffectStatus === 2" style="color: gray">{{$t('active.cl_wsxiao')}}</span> <span v-if="item.couponEffectStatus === 2" style="color: gray">{{$t('active.cl_wsxiao')}}</span>
<span v-if="item.couponEffectStatus === 3" style="color: red">{{$t('active.cl_ygqi')}}</span> <span v-if="item.couponEffectStatus === 3" style="color: red">{{$t('active.cl_ygqi')}}</span>
</td> </td>
<td>{{item.expirationDate}}</td> <td>{{item.expirationDate}}</td>
<td>
<span v-if="item.couponsUseScope == 1">全场通用</span>
<span v-if="item.couponsUseScope == 2">团队</span>
<span v-if="item.couponsUseScope == 3">签证</span>
<span v-if="item.couponsUseScope == 4">机票</span>
<span v-if="item.couponsUseScope == 5">门票</span>
<span v-if="item.couponsUseScope == 6">车辆</span>
</td>
<td> <td>
<span v-if="item.couponStatus == 1" style="color: green">{{$t('pub.normalSel')}}</span> <span v-if="item.couponStatus == 1" style="color: green">{{$t('pub.normalSel')}}</span>
<span v-if="item.couponStatus == 2" style="color: gray">{{$t('active.ld_jinyong')}}</span> <span v-if="item.couponStatus == 2" style="color: gray">{{$t('active.ld_jinyong')}}</span>
...@@ -343,6 +367,8 @@ ...@@ -343,6 +367,8 @@
<el-option :label="$t('active.cl_team')" :value="2"></el-option> <el-option :label="$t('active.cl_team')" :value="2"></el-option>
<el-option :label="$t('active.cl_qianzheng')" :value="3"></el-option> <el-option :label="$t('active.cl_qianzheng')" :value="3"></el-option>
<el-option :label="$t('active.cl_jipiao')" :value="4"></el-option> <el-option :label="$t('active.cl_jipiao')" :value="4"></el-option>
<el-option label="门票" :value="5"></el-option>
<el-option label="车辆" :value="6"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</td> </td>
...@@ -384,6 +410,7 @@ export default { ...@@ -384,6 +410,7 @@ export default {
couponStatus: -1, couponStatus: -1,
groupId: '', groupId: '',
branchId: '', branchId: '',
couponsUseScope:"",
}, },
rules: { rules: {
branchId: [{ required: true, message: this.$t('rule.company'), trigger: "change" }], branchId: [{ required: true, message: this.$t('rule.company'), trigger: "change" }],
...@@ -471,7 +498,8 @@ export default { ...@@ -471,7 +498,8 @@ export default {
if (res.data.resultCode === 1) { if (res.data.resultCode === 1) {
// this.currentPage = res.data.data.pageCount // this.currentPage = res.data.data.pageCount
this.total = res.data.data.count this.total = res.data.data.count
this.DataList = res.data.data.pageData this.DataList = res.data.data.pageData;
console.log("DataList",this.DataList);
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
......
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