From b3f96b8b38a1607ac1273e903888ab471c299368 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com>
Date: Thu, 9 Dec 2021 15:29:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/exchangecode/commodity/goodedit.js | 2 +-
src/pages/exchangecode/edit/edit.js | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/pages/exchangecode/commodity/goodedit.js b/src/pages/exchangecode/commodity/goodedit.js
index d6800c23..1fde993f 100644
--- a/src/pages/exchangecode/commodity/goodedit.js
+++ b/src/pages/exchangecode/commodity/goodedit.js
@@ -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] ,
diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js
index ed1b2f58..7778b066 100644
--- a/src/pages/exchangecode/edit/edit.js
+++ b/src/pages/exchangecode/edit/edit.js
@@ -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 {this.onQuantityChange(e,rowData)}} />
+ return {this.onQuantityChange(e,rowData)}} />
}
if(com =="contract_price" )
{