diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index 26b66bf5..f4f8bfca 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -917,7 +917,7 @@ export default class acclist extends React.Component { data.allow_repetition = this.state.model.allow_repetition; data.allow_loss = this.state.model.allow_loss; data.merge_stock = this.state.model.merge_stock; - data.coupon = this.state.couponData; + data.coupon = this.state.couponData.filter((item) => item.checked); data.mobile_excel = this.state.mobile_excel; data.mobile_repeat = this.state.mobile_repeat; data.payment_direction = diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index a2827db7..612c44a7 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -269,7 +269,7 @@ export default class acclist extends React.Component { } else { // 优惠券 if (this.refs.form1.validator()) { - let param = this.state.couponData; + let param = this.state.couponData.filter((item) => item.checked); let data = {}; data.batch_name = this.state.model.batch_name; data.style = this.state.model.style; diff --git a/src/pages/plan/key/edit.js b/src/pages/plan/key/edit.js index 35531491..370eace2 100644 --- a/src/pages/plan/key/edit.js +++ b/src/pages/plan/key/edit.js @@ -228,6 +228,7 @@ export default class acclist extends React.Component { id: "", white_visible: false, planTime: "", + audit_visible: false, }; } @@ -283,6 +284,7 @@ export default class acclist extends React.Component { handelResponse( res, (req, msg) => { + console.log("详情 =>", req); if (req.status == 7) { this.setState({ isCancel: true }); }