Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhang Xin
max_android_panel
Commits
52496141
Commit
52496141
authored
Sep 19, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add breakageContainer reducer
parent
bbf3c769
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
24 deletions
+27
-24
client/actions/common.js
+5
-4
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
+2
-2
client/components/BreakageComponent/BreakageProductDetail/index.css
+3
-1
client/containers/BreakageContainer/BreakageConatiner.jsx
+1
-1
client/containers/PageContainer/PageContainer.jsx
+2
-2
client/containers/TakeStokeContainer/index.css
+14
-14
No files found.
client/actions/common.js
View file @
52496141
...
@@ -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/1
3
/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/1
3
/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/1
3/A/336
/28'
;
return
(
dispatch
)
=>
{
return
(
dispatch
)
=>
{
fetch
(
url
,{
fetch
(
url
,{
// credentials : 'include',
// credentials : 'include',
...
...
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
View file @
52496141
...
@@ -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
>
...
...
client/components/BreakageComponent/BreakageProductDetail/index.css
View file @
52496141
...
@@ -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
{
...
...
client/containers/BreakageContainer/BreakageConatiner.jsx
View file @
52496141
...
@@ -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
>
...
...
client/containers/PageContainer/PageContainer.jsx
View file @
52496141
...
@@ -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
[
1
3
],
showPage
:
showPage
[
1
1
],
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
}))}
}
/>
;
/>
;
...
...
client/containers/TakeStokeContainer/index.css
View file @
52496141
...
@@ -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; */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment