This commit is contained in:
parent
71bc0eed61
commit
28d31e28ec
|
@ -647,7 +647,6 @@ export default class acclist extends React.Component{
|
|||
onQuantityChange(e,row,rowIndex){
|
||||
|
||||
this.state.tempdata[rowIndex].quantity =e.target.value == "" ? 0 : e.target.value;
|
||||
this.state.tempdata[rowIndex].stock = e.target.value == "" ? 0 : e.target.value;
|
||||
this.setState({tempdata:this.state.tempdata})
|
||||
}
|
||||
onPriceChange(e,row,rowIndex){
|
||||
|
|
|
@ -132,8 +132,6 @@ export default class adduserinfo extends React.Component{
|
|||
official_price:cur_product.official_price,
|
||||
cost_price:cur_product.cost_price,
|
||||
quantity:quantity,
|
||||
stock:quantity,
|
||||
usage:0,
|
||||
product_name:this.state.model.product_name,
|
||||
show_url:picItem ? picItem.pic : "",
|
||||
describe_url:picItem ? picItem.pic : "",
|
||||
|
@ -314,7 +312,7 @@ export default class adduserinfo extends React.Component{
|
|||
<Ipt onChange={(e)=>{
|
||||
let model2 = this.state.model;
|
||||
model2.quantity = e;
|
||||
model2.stock = e;
|
||||
|
||||
this.setState({model:model2})
|
||||
}}
|
||||
|
||||
|
|
|
@ -489,7 +489,6 @@ export default class acclist extends React.Component{
|
|||
}
|
||||
onQuantityChange(e,row,rowIndex){
|
||||
this.state.tempdata[rowIndex].quantity =e.target.value == "" ? 0 : e.target.value;
|
||||
this.state.tempdata[rowIndex].stock = e.target.value == "" ? 0 : e.target.value;
|
||||
this.setState({tempdata:this.state.tempdata})
|
||||
}
|
||||
onPriceChange(e,row,rowIndex){
|
||||
|
@ -654,20 +653,6 @@ export default class acclist extends React.Component{
|
|||
type: "slot",
|
||||
width:'auto',
|
||||
},
|
||||
{
|
||||
title: '剩余数量',
|
||||
prop: 'stock',
|
||||
name: 'stock',
|
||||
type: "normal",
|
||||
width:'auto',
|
||||
},
|
||||
{
|
||||
title: '已使用数量',
|
||||
prop: 'usage',
|
||||
name: 'usage',
|
||||
type: "normal",
|
||||
width:'auto',
|
||||
},
|
||||
{
|
||||
title: '商品展示',
|
||||
prop: 'show_url',
|
||||
|
|
|
@ -527,9 +527,6 @@ export default class acclist extends React.Component{
|
|||
onQuantityChange(e,row,rowIndex){
|
||||
let value = e.target.value == "" ? 0 : e.target.value;
|
||||
|
||||
|
||||
|
||||
this.state.tempdata[rowIndex].stock = value - this.state.tempdata[rowIndex].usage;
|
||||
this.state.tempdata[rowIndex].quantity =value;
|
||||
this.setState({tempdata:this.state.tempdata})
|
||||
}
|
||||
|
|
|
@ -123,8 +123,6 @@ export default class adduserinfo extends React.Component{
|
|||
official_price:cur_product.official_price,
|
||||
cost_price:cur_product.cost_price,
|
||||
quantity:this.state.model.quantity,
|
||||
stock:this.state.model.quantity,
|
||||
usage:0,
|
||||
product_name:this.state.model.product_name,
|
||||
show_url:this.state.show_url ? this.state.show_url : "",
|
||||
describe_url:this.state.describe_url ? this.state.describe_url : "",
|
||||
|
|
|
@ -23,8 +23,6 @@ export default class adduserinfo extends React.Component{
|
|||
quantity:"",
|
||||
product_name:"",
|
||||
show_url:"",
|
||||
stock:"",
|
||||
usage:"",
|
||||
describe_url:"",
|
||||
},
|
||||
cur_product:null,
|
||||
|
@ -133,8 +131,6 @@ export default class adduserinfo extends React.Component{
|
|||
model2.official_price=cur_product.official_price;
|
||||
model2.cost_price=cur_product.cost_price;
|
||||
model2.quantity=this.state.model.quantity;
|
||||
model2.stock=this.state.model.quantity;
|
||||
model2.usage=0;
|
||||
model2.product_name=this.state.model.product_name;
|
||||
model2.account_type=cur_product.account_type;
|
||||
model2.show_url=picItem ? picItem.pic : "";
|
||||
|
@ -299,7 +295,7 @@ export default class adduserinfo extends React.Component{
|
|||
<Ipt onChange={(e)=>{
|
||||
let model2 = this.state.model;
|
||||
model2.quantity = e;
|
||||
model2.stock = e;
|
||||
|
||||
this.setState({model:model2})
|
||||
}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue