fix: 修复key批次编辑绑定类型,不勾选不提交数据
This commit is contained in:
parent
36e5064568
commit
daff92c12d
|
@ -917,7 +917,7 @@ export default class acclist extends React.Component {
|
||||||
data.allow_repetition = this.state.model.allow_repetition;
|
data.allow_repetition = this.state.model.allow_repetition;
|
||||||
data.allow_loss = this.state.model.allow_loss;
|
data.allow_loss = this.state.model.allow_loss;
|
||||||
data.merge_stock = this.state.model.merge_stock;
|
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_excel = this.state.mobile_excel;
|
||||||
data.mobile_repeat = this.state.mobile_repeat;
|
data.mobile_repeat = this.state.mobile_repeat;
|
||||||
data.payment_direction =
|
data.payment_direction =
|
||||||
|
|
|
@ -269,7 +269,7 @@ export default class acclist extends React.Component {
|
||||||
} else {
|
} else {
|
||||||
// 优惠券
|
// 优惠券
|
||||||
if (this.refs.form1.validator()) {
|
if (this.refs.form1.validator()) {
|
||||||
let param = this.state.couponData;
|
let param = this.state.couponData.filter((item) => item.checked);
|
||||||
let data = {};
|
let data = {};
|
||||||
data.batch_name = this.state.model.batch_name;
|
data.batch_name = this.state.model.batch_name;
|
||||||
data.style = this.state.model.style;
|
data.style = this.state.model.style;
|
||||||
|
|
|
@ -228,6 +228,7 @@ export default class acclist extends React.Component {
|
||||||
id: "",
|
id: "",
|
||||||
white_visible: false,
|
white_visible: false,
|
||||||
planTime: "",
|
planTime: "",
|
||||||
|
audit_visible: false,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -283,6 +284,7 @@ export default class acclist extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
|
console.log("详情 =>", req);
|
||||||
if (req.status == 7) {
|
if (req.status == 7) {
|
||||||
this.setState({ isCancel: true });
|
this.setState({ isCancel: true });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue