mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 10:19:36 +08:00
描述:选择优惠券
This commit is contained in:
parent
8baf9881ff
commit
ee077bc38a
@ -210,10 +210,10 @@ export default {
|
|||||||
title: '优惠劵总数量',
|
title: '优惠劵总数量',
|
||||||
dataIndex: 'sumNum'
|
dataIndex: 'sumNum'
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '优惠劵多发数量',
|
// title: '优惠劵多发数量',
|
||||||
dataIndex: 'moreNum'
|
// dataIndex: 'moreNum'
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: '操作',
|
||||||
dataIndex: 'action',
|
dataIndex: 'action',
|
||||||
@ -340,6 +340,9 @@ export default {
|
|||||||
if (!item.moreNum) {
|
if (!item.moreNum) {
|
||||||
item.moreNum = 0
|
item.moreNum = 0
|
||||||
}
|
}
|
||||||
|
if (!item.sumNum) {
|
||||||
|
item.sumNum = 0
|
||||||
|
}
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -355,12 +358,8 @@ export default {
|
|||||||
this.form.validateFields((err, values) => {
|
this.form.validateFields((err, values) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
console.log('Received values of form: ', values)
|
console.log('Received values of form: ', values)
|
||||||
values.count = 1
|
// 选择企业
|
||||||
let ids = []
|
values.ticketCustomerVo = this.loadData
|
||||||
this.loadData.forEach(item => {
|
|
||||||
ids.push(item.id)
|
|
||||||
})
|
|
||||||
values.enterpriseIds = this.selectedRowKeys > 0 ? this.selectedRowKeys : ids
|
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
saveTicket(values).then(res => {
|
saveTicket(values).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user