|
@@ -102,6 +102,8 @@
|
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
<el-tag prop="status" v-for="(item, index) in statusOptions" v-if="scope.row.status==item.dictValue">{{item.dictLabel}}</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+<!-- <el-table-column label="绑定商品" align="center" prop="productName" />-->
|
|
|
|
|
+ <el-table-column label="单场直播优惠券数量" align="center" prop="liveLimitNum" />
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -156,6 +158,9 @@
|
|
|
<el-form-item label="排序" prop="sort">
|
|
<el-form-item label="排序" prop="sort">
|
|
|
<el-input-number v-model="form.sort" :min="0" placeholder="请输入排序" />
|
|
<el-input-number v-model="form.sort" :min="0" placeholder="请输入排序" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ <el-form-item label="单场直播优惠券数量" prop="sort">
|
|
|
|
|
+ <el-input-number v-model="form.liveLimitNum" :min="0" placeholder="请输入单场直播优惠券数量" />
|
|
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="类型" prop="type">
|
|
<el-form-item label="类型" prop="type">
|
|
|
<el-radio-group v-model="form.type">
|
|
<el-radio-group v-model="form.type">
|
|
|
<el-radio :label="item.dictValue" v-for="item in couponTypeOptions" >{{item.dictLabel}}</el-radio>
|
|
<el-radio :label="item.dictValue" v-for="item in couponTypeOptions" >{{item.dictLabel}}</el-radio>
|
|
@@ -225,7 +230,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-import { publishCoupon,listStoreCoupon, getStoreCoupon, delStoreCoupon, addStoreCoupon, updateStoreCoupon, exportStoreCoupon } from "@/api/live/liveCoupon";
|
|
|
|
|
|
|
+import { publishCoupon,listStoreCoupon, getStoreCoupon, delStoreCoupon, addStoreCoupon, updateStoreCoupon, exportStoreCoupon, listOnSaleProducts } from "@/api/live/liveCoupon";
|
|
|
import addBatchPublish from "../components/addBatchPublish.vue";
|
|
import addBatchPublish from "../components/addBatchPublish.vue";
|
|
|
export default {
|
|
export default {
|
|
|
name: "StoreCoupon",
|
|
name: "StoreCoupon",
|
|
@@ -234,6 +239,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
cateOptions:[],
|
|
cateOptions:[],
|
|
|
couponTypeOptions:[],
|
|
couponTypeOptions:[],
|
|
|
|
|
+ productOptions: [],
|
|
|
publish:{
|
|
publish:{
|
|
|
title:"发布",
|
|
title:"发布",
|
|
|
open:false,
|
|
open:false,
|
|
@@ -347,7 +353,7 @@ export default {
|
|
|
this.getDicts("store_coupon_type").then((response) => {
|
|
this.getDicts("store_coupon_type").then((response) => {
|
|
|
this.couponTypeOptions = response.data;
|
|
this.couponTypeOptions = response.data;
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
|
|
+ this.getProductOptions();
|
|
|
this.getList();
|
|
this.getList();
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
@@ -378,6 +384,8 @@ export default {
|
|
|
status: "0",
|
|
status: "0",
|
|
|
type: "0",
|
|
type: "0",
|
|
|
productIds: null,
|
|
productIds: null,
|
|
|
|
|
+ productId: null,
|
|
|
|
|
+ liveLimitNum:null,
|
|
|
packageCateIds:[],
|
|
packageCateIds:[],
|
|
|
createTime: null,
|
|
createTime: null,
|
|
|
updateTime: null,
|
|
updateTime: null,
|
|
@@ -385,6 +393,14 @@ export default {
|
|
|
};
|
|
};
|
|
|
this.resetForm("form");
|
|
this.resetForm("form");
|
|
|
},
|
|
},
|
|
|
|
|
+ /** 获取商品选项 */
|
|
|
|
|
+ getProductOptions() {
|
|
|
|
|
+ listOnSaleProducts({ pageNum: 1, pageSize: 1000 }).then(response => {
|
|
|
|
|
+ if (response.code === 200) {
|
|
|
|
|
+ this.productOptions = response.rows || [];
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
/** 搜索按钮操作 */
|
|
/** 搜索按钮操作 */
|
|
|
handleQuery() {
|
|
handleQuery() {
|
|
|
this.queryParams.pageNum = 1;
|
|
this.queryParams.pageNum = 1;
|