|
@@ -150,7 +150,7 @@
|
|
|
<!-- 发放优惠券弹窗 -->
|
|
<!-- 发放优惠券弹窗 -->
|
|
|
<el-dialog
|
|
<el-dialog
|
|
|
title="发放优惠券"
|
|
title="发放优惠券"
|
|
|
- :visible.sync="couponDialogVisible"
|
|
|
|
|
|
|
+ :visible.sync="issueDialogVisible"
|
|
|
width="500px"
|
|
width="500px"
|
|
|
>
|
|
>
|
|
|
<el-form :model="couponForm" label-width="100px">
|
|
<el-form :model="couponForm" label-width="100px">
|
|
@@ -172,7 +172,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
<div slot="footer">
|
|
<div slot="footer">
|
|
|
- <el-button @click="couponDialogVisible = false">取消</el-button>
|
|
|
|
|
|
|
+ <el-button @click="issueDialogVisible = false">取消</el-button>
|
|
|
<el-button type="primary" @click="confirmIssueCoupon" :loading="couponSubmitting">确认发放</el-button>
|
|
<el-button type="primary" @click="confirmIssueCoupon" :loading="couponSubmitting">确认发放</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -314,6 +314,7 @@ export default {
|
|
|
children: []
|
|
children: []
|
|
|
},
|
|
},
|
|
|
couponDialogVisible: false,
|
|
couponDialogVisible: false,
|
|
|
|
|
+ issueDialogVisible: false,
|
|
|
couponForm: {
|
|
couponForm: {
|
|
|
familyId: null,
|
|
familyId: null,
|
|
|
couponId: null,
|
|
couponId: null,
|
|
@@ -455,7 +456,7 @@ export default {
|
|
|
couponId: null,
|
|
couponId: null,
|
|
|
quantity: 1
|
|
quantity: 1
|
|
|
}
|
|
}
|
|
|
- this.couponDialogVisible = true
|
|
|
|
|
|
|
+ this.issueDialogVisible = true
|
|
|
try {
|
|
try {
|
|
|
const res = await getCouponList({ page: 1, size: 999 })
|
|
const res = await getCouponList({ page: 1, size: 999 })
|
|
|
this.couponOptions = res.data.records || res.data.list || res.data || []
|
|
this.couponOptions = res.data.records || res.data.list || res.data || []
|
|
@@ -482,7 +483,7 @@ export default {
|
|
|
quantity: this.couponForm.quantity
|
|
quantity: this.couponForm.quantity
|
|
|
})
|
|
})
|
|
|
this.$message.success('发放成功')
|
|
this.$message.success('发放成功')
|
|
|
- this.couponDialogVisible = false
|
|
|
|
|
|
|
+ this.issueDialogVisible = false
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
this.$message.error(error.message || '发放失败')
|
|
this.$message.error(error.message || '发放失败')
|
|
|
} finally {
|
|
} finally {
|