fix: 修复创建中的优惠券不勾选不提交
This commit is contained in:
parent
28843c43b5
commit
b1154b6533
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue