fix: 修复创建中的优惠券不勾选不提交

This commit is contained in:
zhangds 2022-10-09 15:22:29 +08:00
parent 28843c43b5
commit b1154b6533
1 changed files with 3 additions and 1 deletions

View File

@ -1030,7 +1030,9 @@ export default class acclist extends React.Component {
// 如果是创建中的状态走新增接口 key_status 1 // 如果是创建中的状态走新增接口 key_status 1
console.log("this.state.key_status =>", this.state.key_status); console.log("this.state.key_status =>", this.state.key_status);
if (this.state.key_status === 1) { if (this.state.key_status === 1) {
let coupon_data = this.state.couponData.filter((item) => !item.id); let coupon_data = this.state.couponData.filter(
(item) => item.checked === true && !item.id
);
let create_param = { let create_param = {
batch_name: this.state.model.batch_name, batch_name: this.state.model.batch_name,
style: this.state.model.style, style: this.state.model.style,