Commit fab30682 by wujiabao

测试

parent 6f5d1b8c
...@@ -107,8 +107,9 @@ class BreakageProductDetail extends React.Component{ ...@@ -107,8 +107,9 @@ class BreakageProductDetail extends React.Component{
changePageDefault(){ changePageDefault(){
let {product}=this.props.breakageProductInfo; let {product}=this.props.breakageProductInfo;
let {statusColor,packStatus,positionColor}=this.state; let {statusColor,packStatus,positionColor}=this.state;
let props=this.props;
let id=product.skuPositionList&&product.skuPositionList[positionColor]&&product.skuPositionList[positionColor].id?product.skuPositionList[positionColor].id : ''; let id=product.skuPositionList&&product.skuPositionList[positionColor]&&product.skuPositionList[positionColor].id?product.skuPositionList[positionColor].id : '';
let productDetail={skuId:product.skuId,skuStatus:packStatus[statusColor].code,skuPosition:id} let productDetail={skuId:product.skuId,skuStatus:packStatus[statusColor].code,skuPosition:id,area:props.area}
this.props.submitBreakageProduct(productDetail); this.props.submitBreakageProduct(productDetail);
this.props.changePopShow(true) this.props.changePopShow(true)
} }
......
...@@ -147,6 +147,7 @@ class BreakageContainer extends React.Component { ...@@ -147,6 +147,7 @@ class BreakageContainer extends React.Component {
changePage={this.changePage} changePage={this.changePage}
submitBreakageProduct={this.transmitInfo.bind(this)} submitBreakageProduct={this.transmitInfo.bind(this)}
changePopShow={this.changePopShow.bind(this)} changePopShow={this.changePopShow.bind(this)}
area ={props.area}
/> />
break; break;
} }
......
...@@ -639,7 +639,7 @@ class PageContainer extends React.Component { ...@@ -639,7 +639,7 @@ class PageContainer extends React.Component {
getPages(){ getPages(){
let pages = null; let pages = null;
let{state,dispatch} = this.props; let{state,dispatch} = this.props;
let {commonInfo} = state; let {commonInfo ,area} = state;
switch (this.state.showPage){ switch (this.state.showPage){
case showPage[1]: case showPage[1]:
pages = <TroubleContainer pages = <TroubleContainer
...@@ -771,6 +771,7 @@ class PageContainer extends React.Component { ...@@ -771,6 +771,7 @@ class PageContainer extends React.Component {
breakageProductInfo={state.barcodeCommon} breakageProductInfo={state.barcodeCommon}
breakageContainer ={state.breakageContainer} breakageContainer ={state.breakageContainer}
submitBreakageProduct={(productDetail)=>{dispatch(submitBreakageProduct({commonInfo,productDetail}))}} submitBreakageProduct={(productDetail)=>{dispatch(submitBreakageProduct({commonInfo,productDetail}))}}
area={area}
/>; />;
break; break;
case showPage[51]: case showPage[51]:
......
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