Commit 341f5c8e by Zhang Xin

fix breakage bug

parent 2740581d
......@@ -13,10 +13,10 @@ const submitBreakageProduct = (data)=>{
console.log(data,"执行了提交遗留上报")
let {productDetail,commonInfo}=data;
let userId=commonInfo.userInfo.id;
let {currentTaskType,taskId}=commonInfo.taskInfo;
let machineId=commonInfo.storeInfo.id;
let taskId=commonInfo.taskInfo.taskId;
let {skuPosition,skuId,skuStatus}=productDetail;
let bodyData={skuPosition,skuId,skuStatus,machineId,taskId}
let bodyData={skuPosition,skuId,skuStatus,machineId,taskId,currentTaskType}
let url=domain+`flat/lr/${userId}`
return ()=>{
fetch(url,{
......
......@@ -22,7 +22,7 @@ class BreakageProductDetail extends React.Component{
render (){
let {breakageProductInfo}=this.props;
let {packStatus,statusColor} =this.state;
let {packStatus,statusColor,positionColor} =this.state;
return (
<div>
{
......@@ -61,7 +61,7 @@ class BreakageProductDetail extends React.Component{
<li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}>左</span></li>
<li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}>右</span></li> */}
{
breakageProductInfo.product.placeMentList.map((item,key)=>{
breakageProductInfo.product.skuPositionList && breakageProductInfo.product.skuPositionList.map((item,key)=>{
return <li
key={key}
className={positionColor===key?'active':''}
......@@ -76,7 +76,7 @@ class BreakageProductDetail extends React.Component{
</div>
</div>
<div className={'breakProductPosition'}>
<img src={breakageProductInfo.product.placeMentList[positionColor].filePath} alt=""/>
{ positionColor===-1?null:<img src={breakageProductInfo.product.skuPositionList[positionColor].filePath} alt=""/>}
</div>
</div>
</div>
......
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