mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 04:29:36 +08:00
描述:选择优惠券
This commit is contained in:
parent
8baf9881ff
commit
ee077bc38a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user