Update edit.js

This commit is contained in:
姜棚 2022-01-06 17:06:30 +08:00
parent 0d11052d46
commit 6b1eb6c829
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ export default class exchangedit extends React.Component{
onQuantityChange(e,row){
this.setState({tempdata:this.state.tempdata})
let value = e.target.value == "" ? 0 : e.target.value;
let value = e.target.value;
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
if(value - this.state.tempdata[rowIndex].usage < 0)
{