Commit 278978eb by 李伟康

Merge branch 'v3.24.0' of http://192.168.3.233:8090/saas/outbound into v3.24.0

2 parents ac21256c e7edc35f
......@@ -179,7 +179,7 @@ export default {
data() {
return {
loading: false,
activePage: 2,
activePage: 1,
templateList: [],
couponList: [],
afterRangePickerOptions,
......@@ -305,8 +305,6 @@ export default {
}
},
mounted() {
// this.getRedEnvelopeTemplateList()
this.getCouponList()
if (this.configForm.id) this.getRedEnvelopeActivityDetail()
},
methods: {
......@@ -369,7 +367,8 @@ export default {
getCouponList() {
let params = {
pageSize: 10000,
pageNum: 1
pageNum: 1,
status: 2
}
this.$apis.redenvelope.getCouponList(params).then(res => {
this.couponList = res.list
......@@ -384,6 +383,7 @@ export default {
},
async handleConfirm(val) {
if (this.activePage == 1) {
this.getCouponList()
this.result = await this.$refs.configRef.validate()
}
if (this.result) {
......@@ -440,7 +440,7 @@ export default {
if (item.type === 0) {
if (item.total) params.redEnvelopesTotal += Number(item.total)
if (item.amount && item.total) {
params.amountTotal += item.amount * item.total
params.amountTotal += new BigNumber(item.amount).times(item.total).dp(2).toNumber()
}
}
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!