fix: 修复兑换码批次无法新增

This commit is contained in:
zhangds 2022-09-29 18:37:44 +08:00
parent 9acdabaa55
commit de0737711d
1 changed files with 2 additions and 2 deletions

View File

@ -881,7 +881,7 @@ export default class acclist extends React.Component {
data.batch_name = this.state.model.batch_name;
data.style = this.state.model.style;
data.quantity = this.state.model.quantity;
data.bind_object = this.state.keyType;
data.bind_object = [this.state.keyType];
data.allow_repetition = this.state.model.allow_repetition;
data.allow_loss = this.state.model.allow_loss;
data.merge_stock = this.state.model.merge_stock;
@ -969,7 +969,7 @@ export default class acclist extends React.Component {
}
onBindNum(e, row, rowIndex) {
if (this.props.keyType === 1) {
if (this.state.keyType === 1) {
this.state.distdata[rowIndex].restrict = e.target.value;
this.setState({ distdata: this.state.distdata });
} else {