Commit 8e057e3e by 吕明尚

自营券增加套餐券

parent a499245e
...@@ -209,14 +209,28 @@ ...@@ -209,14 +209,28 @@
<el-form-item label="优惠券名称" prop="name"> <el-form-item label="优惠券名称" prop="name">
<el-input v-model="form.name" placeholder="请输入优惠券名称"/> <el-input v-model="form.name" placeholder="请输入优惠券名称"/>
</el-form-item> </el-form-item>
<!-- <el-form-item label="优惠券类型" prop="couponType">-->
<!-- <el-select v-model="form.couponType" placeholder="请选择优惠券类型" disabled>-->
<!-- <el-option-->
<!-- v-for="dict in dict.type.duration_coupon_type"-->
<!-- :key="dict.value"-->
<!-- :label="dict.label"-->
<!-- :value="parseInt(dict.value)"-->
<!-- ></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<el-form-item label="优惠券类型" prop="couponType"> <el-form-item label="优惠券类型" prop="couponType">
<el-select v-model="form.couponType" placeholder="请选择优惠券类型" disabled> <el-select v-model="form.couponType" clearable placeholder="请选择优惠券类型">
<el-option <el-option
v-for="dict in dict.type.duration_coupon_type" key="4"
:key="dict.value" label="时长券"
:label="dict.label" value="4"
:value="parseInt(dict.value)" />
></el-option> <el-option
key="5"
label="套餐券"
value="5"
/>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="优惠券原始金额" prop="originalPrice"> <el-form-item label="优惠券原始金额" prop="originalPrice">
...@@ -553,7 +567,6 @@ export default { ...@@ -553,7 +567,6 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.form.platformType = 1; this.form.platformType = 1;
this.form.couponType = 4;
this.open = true; this.open = true;
this.title = "添加优惠券"; this.title = "添加优惠券";
}, },
...@@ -566,6 +579,9 @@ export default { ...@@ -566,6 +579,9 @@ export default {
if (response.data.orderType) { if (response.data.orderType) {
this.form.orderType = response.data.orderType.toString(); this.form.orderType = response.data.orderType.toString();
} }
if (response.data.couponType) {
this.form.couponType = response.data.couponType.toString();
}
if (response.data.packageId) { if (response.data.packageId) {
this.form.packageId = response.data.packageId.toString(); this.form.packageId = response.data.packageId.toString();
} }
......
...@@ -298,7 +298,7 @@ ...@@ -298,7 +298,7 @@
<!-- <dict-tag :options="dict.type.order_pay_status" :value="scope.row.payStatus"/>--> <!-- <dict-tag :options="dict.type.order_pay_status" :value="scope.row.payStatus"/>-->
<!-- </template>--> <!-- </template>-->
<!-- </el-table-column>--> <!-- </el-table-column>-->
<el-table-column align="center" class-name="small-padding fixed-width" fixed="right" label="操作" width="100"> <el-table-column align="center" class-name="small-padding fixed-width" fixed="right" label="操作" width="120px">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.payStatus == 1 && scope.row.status != 3" <el-button v-if="scope.row.payStatus == 1 && scope.row.status != 3"
size="mini" size="mini"
......
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