优惠券
This commit is contained in:
@@ -142,7 +142,10 @@
|
||||
@click.native="handleEditCurriculum(scope.row.productId)"
|
||||
>新版修改</el-dropdown-item
|
||||
> -->
|
||||
|
||||
<el-dropdown-item
|
||||
@click.native="showLinkCoupon(scope.row.productId)"
|
||||
>购买赠优惠券</el-dropdown-item
|
||||
>
|
||||
<el-dropdown-item
|
||||
@click.native="handleEditCorrelation(scope.row.productId)"
|
||||
>图书与课程</el-dropdown-item
|
||||
@@ -196,11 +199,12 @@
|
||||
<commonTags ref="commonTags"></commonTags>
|
||||
<correlation ref="correlation"></correlation>
|
||||
<choose-book v-if="chooseBookVisible" :bookIds = bookIds ref="chooseBook" :chooseBookVisible = chooseBookVisible @closeBookf = "closeBookf"></choose-book>
|
||||
|
||||
<pro-coupon-list v-if="LinkCouponVisible" :productId="curProductId" @close="proCouponClose"></pro-coupon-list>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import proCouponList from "./proCouponList.vue";
|
||||
import chooseBook from "./chooseBook.vue";
|
||||
import curriculum from "./curriculum.vue";
|
||||
import AddOrUpdate from "./shopproduct-add-or-update";
|
||||
@@ -225,7 +229,10 @@ export default {
|
||||
addOrUpdateVisible: false,
|
||||
chooseBookVisible: false,
|
||||
curriculumVisible: false,
|
||||
bookIds: []
|
||||
bookIds: [],
|
||||
LinkCouponVisible:false, // 显示优惠券弹窗
|
||||
curProductId: undefined, // 当前的商品id
|
||||
|
||||
};
|
||||
},
|
||||
components: {
|
||||
@@ -233,13 +240,23 @@ export default {
|
||||
AddOrUpdate,
|
||||
chooseBook,
|
||||
commonTags,
|
||||
correlation
|
||||
correlation,
|
||||
proCouponList
|
||||
},
|
||||
activated() {
|
||||
this.getDataList();
|
||||
this.getGoodsTypeList();
|
||||
},
|
||||
methods: {
|
||||
showLinkCoupon(id) {
|
||||
this.curProductId = id;
|
||||
this.LinkCouponVisible = true;
|
||||
|
||||
},
|
||||
proCouponClose() {
|
||||
this.LinkCouponVisible = false;
|
||||
},
|
||||
|
||||
getGoodsTypeList() {
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("/book/sysdictdata/selectByType/goodsType"),
|
||||
|
||||
Reference in New Issue
Block a user