Commit 52496141 by wujiabao

add breakageContainer reducer

parent bbf3c769
...@@ -18,7 +18,7 @@ const getTaskInfo = (data)=>{ ...@@ -18,7 +18,7 @@ const getTaskInfo = (data)=>{
// let {userInfo,storeInfo} = data; // let {userInfo,storeInfo} = data;
return(dispatch)=>{ return(dispatch)=>{
// if(userInfo && userInfo.id && storeInfo && storeInfo.id) { // if(userInfo && userInfo.id && storeInfo && storeInfo.id) {
let url ='http://192.168.10.128:8080/web/flat/ready/1/A/28'; let url ='http://192.168.10.128:8080/web/flat/ready/13/A/28';
// let url = `${ENV.domain}flat/ready/${storeInfo.id}/${userInfo.id}`; // let url = `${ENV.domain}flat/ready/${storeInfo.id}/${userInfo.id}`;
fetch(url,{ fetch(url,{
// credentials : 'include', // credentials : 'include',
...@@ -114,10 +114,11 @@ const getUserinfo = (employeeId,storeId)=>{ ...@@ -114,10 +114,11 @@ const getUserinfo = (employeeId,storeId)=>{
}; };
//test 没有散落货品 //test 没有散落货品
const hasNoSku = (storeInfo)=>{ const hasNoSku = (commonInfo)=>{
// console.log(commonInfo,'没有散落物品')
return (dispatch)=>{ return (dispatch)=>{
// let url=`${ENV.domain}/flat/work/status/1`; // let url=`${ENV.domain}/flat/work/status/1`;
let url ='http://192.168.10.128:8080/web/flat/work/status/1/A/LR'; let url ='http://192.168.10.128:8080/web/flat/work/status/13/A/LR';
fetch(url,{ fetch(url,{
// credentials : 'include', // credentials : 'include',
method : 'PUT', method : 'PUT',
...@@ -134,7 +135,7 @@ const hasNoSku = (storeInfo)=>{ ...@@ -134,7 +135,7 @@ const hasNoSku = (storeInfo)=>{
//拉取工单 //拉取工单
const getTaskList = (data={})=>{ const getTaskList = (data={})=>{
// let url=`${ENV.domain}/flat/work/list/13`; // let url=`${ENV.domain}/flat/work/list/13`;
let url ='http://192.168.10.128:8080/web/flat/work/list/1/A/28'; let url ='http://192.168.10.128:8080/web/flat/work/list/13/A/336/28';
return (dispatch)=>{ return (dispatch)=>{
fetch(url,{ fetch(url,{
// credentials : 'include', // credentials : 'include',
......
...@@ -10,7 +10,7 @@ class BreakageProductDetail extends React.Component{ ...@@ -10,7 +10,7 @@ class BreakageProductDetail extends React.Component{
return ( return (
<div className={'breakageContent'}> <div className={'breakageContent'}>
<div className={'commonPage'}> <div className={'commonPage'}>
<div className={'pageTitle clo333 font40'}> <div className={'pageTitle clo333 font40'} style={{marginBottom:'20px'}}>
<span>上报遗留货品信息</span> <span>上报遗留货品信息</span>
</div> </div>
<div className={'pagebox'}> <div className={'pagebox'}>
...@@ -33,7 +33,7 @@ class BreakageProductDetail extends React.Component{ ...@@ -33,7 +33,7 @@ class BreakageProductDetail extends React.Component{
</div> </div>
<div className={'ProductPosition'}> <div className={'ProductPosition'}>
<h4 className={'col333 font32'}>请选择货品的位置:</h4> <h4 className={'col333 font32'}>请选择货品的位置:</h4>
<ul> <ul className={'imgList'}>
<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>
<li className={'active'}><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}></span></li> <li className={'active'}><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> <li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}></span></li>
......
...@@ -39,9 +39,10 @@ ...@@ -39,9 +39,10 @@
.pagebox .breakProductStatus p span:nth-of-type(2){ .pagebox .breakProductStatus p span:nth-of-type(2){
margin-left:20px; margin-left:20px;
} }
.pagebox .ProductPosition ul{ .pagebox .ProductPosition .imgList{
display: flex; display: flex;
margin-top:20px; margin-top:20px;
height:190px;
} }
.pagebox .ProductPosition ul li{ .pagebox .ProductPosition ul li{
width:146px; width:146px;
...@@ -52,6 +53,7 @@ ...@@ -52,6 +53,7 @@
.pagebox .ProductPosition ul li span{ .pagebox .ProductPosition ul li span{
text-align: center; text-align: center;
display: block; display: block;
margin-top:10px;
} }
.pagebox .ProductPosition ul li img{ .pagebox .ProductPosition ul li img{
......
...@@ -22,7 +22,7 @@ class BreakageContainer extends React.Component { ...@@ -22,7 +22,7 @@ class BreakageContainer extends React.Component {
return ( return (
<div className={"BreakageContainer"}> <div className={"BreakageContainer"}>
{ {
isShow?<div> isShow?<div style={{width:'100%',height:'100%'}}>
<HeaderComponent headerInfo={props.headerInfo} /> <HeaderComponent headerInfo={props.headerInfo} />
<LeftContainer leftInfo={props.headerInfo}/> <LeftContainer leftInfo={props.headerInfo}/>
<RightContainer> <RightContainer>
......
...@@ -57,7 +57,7 @@ class PageContainer extends React.Component { ...@@ -57,7 +57,7 @@ class PageContainer extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
showPage : showPage[13], showPage : showPage[11],
lastPage : '', lastPage : '',
page : null, page : null,
popupInfo : defaultPopupInfo, popupInfo : defaultPopupInfo,
...@@ -591,7 +591,7 @@ class PageContainer extends React.Component { ...@@ -591,7 +591,7 @@ class PageContainer extends React.Component {
break; break;
case showPage[5]: case showPage[5]:
pages = <BreakageContainer pages = <BreakageContainer
pullTaskList={()=>{dispatch(hasNoSku(state.commonInfo.storeInfo))}} pullTaskList={()=>{dispatch(hasNoSku(state.commonInfo))}}
headerInfo={state.commonInfo} headerInfo={state.commonInfo}
getProductInfo={(barcode)=>{dispatch(getProductInfo({barcode}))}} getProductInfo={(barcode)=>{dispatch(getProductInfo({barcode}))}}
/>; />;
......
...@@ -3,45 +3,45 @@ ...@@ -3,45 +3,45 @@
width:100%; width:100%;
height:100%; height:100%;
} }
.commonPage .pageTitle span:nth-of-type(2){ .TokeStokeContent .commonPage .pageTitle span:nth-of-type(2){
margin-left:10px; margin-left:10px;
} }
.pagebox{ .TokeStokeContent .pagebox{
display: flex; display: flex;
margin-left:300px; margin-left:300px;
box-sizing: border-box; box-sizing: border-box;
} }
.pagebox .productImg{ .TokeStokeContent .pagebox .productImg{
width:200px; width:200px;
height:200px; height:200px;
border:2px solid #e5e5e5; border:2px solid #e5e5e5;
} }
.pagebox .productDetail{ .TokeStokeContent .pagebox .productDetail{
margin-left:40px; margin-left:40px;
} }
.pagebox .productDetail p{ .TokeStokeContent .pagebox .productDetail p{
text-align: left; text-align: left;
margin-top:36px; margin-top:36px;
} }
.pagebox .productDetail p:nth-of-type(1){ .TokeStokeContent .pagebox .productDetail p:nth-of-type(1){
margin-top:14px; margin-top:14px;
} }
.pagebox .productDetail p:nth-of-type(2) span:nth-of-type(2){ .TokeStokeContent .pagebox .productDetail p:nth-of-type(2) span:nth-of-type(2){
margin-left:15px; margin-left:15px;
} }
.pagebox .productDetail p span:nth-of-type(1){ .TokeStokeContent .pagebox .productDetail p span:nth-of-type(1){
margin-right:15px; margin-right:15px;
} }
.commonPage .productNum{ .TokeStokeContent .commonPage .productNum{
width:auto; width:auto;
margin-top:100px; margin-top:100px;
} }
.commonPage .productNum p{ .TokeStokeContent .commonPage .productNum p{
text-align: left; text-align: left;
padding-left:540px; padding-left:540px;
box-sizing: border-box; box-sizing: border-box;
} }
.commonPage .productNum p span:nth-of-type(2),.commonPage .productNum p span:nth-of-type(4){ .TokeStokeContent .commonPage .productNum p span:nth-of-type(2),.commonPage .productNum p span:nth-of-type(4){
width:80px; width:80px;
height:80px; height:80px;
border:2px solid #e5e5e5; border:2px solid #e5e5e5;
...@@ -51,14 +51,14 @@ ...@@ -51,14 +51,14 @@
text-align: center; text-align: center;
font-weight: 800; font-weight: 800;
} }
.commonPage .productNum p span:nth-of-type(2){ .TokeStokeContent .commonPage .productNum p span:nth-of-type(2){
margin-left:10px; margin-left:10px;
} }
.commonPage .productNum p span:nth-of-type(3){ .TokeStokeContent .commonPage .productNum p span:nth-of-type(3){
font-weight: 600; font-weight: 600;
padding:20px 33px; padding:20px 33px;
} }
.commonPage .buttonComponent{ .TokeStokeContent .commonPage .buttonComponent{
/* position: absolute; */ /* position: absolute; */
margin-left:600px; margin-left:600px;
/* bottom:100px; */ /* bottom:100px; */
......
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