This commit is contained in:
姜棚 2021-12-09 15:29:03 +08:00
parent 73156a3ae4
commit b3f96b8b38
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ export default class adduserinfo extends React.Component{
contract_price:req.contract_price,
official_price:req.official_price,
cost_price:req.cost_price,
stock:req.quantity,
stock:req.stock,
name:req.product_name,
show_url:req.show_url[0],
describe_url: req.describe_url[0] ,

View File

@ -356,7 +356,7 @@ export default class exchangedit extends React.Component{
onQuantityChange(e,row){
let rowIndex =this.state.tempdata.findIndex((o)=>{return o.product_id == row.product_id})
this.state.tempdata[rowIndex].quantity =e.target.value;
this.state.tempdata[rowIndex].stock =e.target.value;
this.setState({tempdata:this.state.tempdata})
}
onPriceChange(e,row){
@ -665,7 +665,7 @@ export default class exchangedit extends React.Component{
}
if(com=="quantity")
{
return <Input width={140} placeholder="请输入数量" type="number" value={rowData.quantity} onChange={(e)=>{this.onQuantityChange(e,rowData)}} />
return <Input width={140} placeholder="请输入数量" type="number" value={rowData.stock} onChange={(e)=>{this.onQuantityChange(e,rowData)}} />
}
if(com =="contract_price" )
{