Commit a2be3251 by wujiabao

fix bug

parent 93d8809a
...@@ -98,10 +98,13 @@ class TakeStokeContaniner extends React.Component { ...@@ -98,10 +98,13 @@ class TakeStokeContaniner extends React.Component {
//核对产品数量 //核对产品数量
checkProductNum(){ checkProductNum(){
let {initNum}=this.state; let {initNum}=this.state;
if(!initNum===''){
let {workListId,skuPassId}=this.props.tokeTaskProduct; let {workListId,skuPassId}=this.props.tokeTaskProduct;
let tokeProductInfo={workListId,skuPassId,quantity:initNum} let tokeProductInfo={workListId,skuPassId,quantity:initNum}
this.props.checkProductQuantity(tokeProductInfo) this.props.checkProductQuantity(tokeProductInfo)
} }
}
//根据后台返回的数据 判断显示的组件 //根据后台返回的数据 判断显示的组件
componentWillReceiveProps(nextProps){ componentWillReceiveProps(nextProps){
if(!(this.props.TokeStokeState.type===3&&nextProps.TokeStokeState.type===3)){ if(!(this.props.TokeStokeState.type===3&&nextProps.TokeStokeState.type===3)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment