描述:选择优惠券

This commit is contained in:
SelfRidicule 2024-03-26 09:12:04 +08:00
parent 8baf9881ff
commit ee077bc38a

View File

@ -210,10 +210,10 @@ export default {
title: '优惠劵总数量',
dataIndex: 'sumNum'
},
{
title: '优惠劵多发数量',
dataIndex: 'moreNum'
},
// {
// title: '',
// dataIndex: 'moreNum'
// },
{
title: '操作',
dataIndex: 'action',
@ -340,6 +340,9 @@ export default {
if (!item.moreNum) {
item.moreNum = 0
}
if (!item.sumNum) {
item.sumNum = 0
}
return item
})
})
@ -355,12 +358,8 @@ export default {
this.form.validateFields((err, values) => {
if (!err) {
console.log('Received values of form: ', values)
values.count = 1
let ids = []
this.loadData.forEach(item => {
ids.push(item.id)
})
values.enterpriseIds = this.selectedRowKeys > 0 ? this.selectedRowKeys : ids
//
values.ticketCustomerVo = this.loadData
this.confirmLoading = true
saveTicket(values).then(res => {
if (res.code === 0) {