fix: 修复兑换码批次无法新增
This commit is contained in:
parent
9acdabaa55
commit
de0737711d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue