fix: 修复key批次编辑绑定类型,不勾选不提交数据

This commit is contained in:
zhangds 2022-10-18 10:30:59 +08:00
parent 36e5064568
commit daff92c12d
3 changed files with 4 additions and 2 deletions

View File

@ -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 =

View File

@ -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;

View File

@ -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 });
}