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
febaa0ed
Commit
febaa0ed
authored
Sep 20, 2018
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自己梳ç理捕è补货逻辑
parent
227254f4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
103 additions
and
58 deletions
+103
-58
client/components/RecoveryComponent/RecoveryScanPage/index.css
+0
-15
client/components/ReplenishComponent/ReplenishScanPage/ReplenishScanPage.jsx
+66
-40
client/components/ReplenishComponent/ReplenishScanPage/index.css
+33
-0
client/containers/ReplenishContainer/ReplenishContainer.jsx
+4
-3
No files found.
client/components/RecoveryComponent/RecoveryScanPage/index.css
View file @
febaa0ed
...
...
@@ -27,21 +27,6 @@
margin-top
:
110px
;
}
.replenishScanPageErrorSku
.handleForgetSku
{
line-height
:
90px
;
}
.replenishScanPageErrorSku
.btn
{
flex-direction
:
column
;
align-items
:
center
;
}
.replenishScanPageForgetSku
.replenishSkuInfo
{
margin-top
:
8%
;
}
.recoveryScanDom
{
position
:
relative
;
width
:
100%
;
...
...
client/components/ReplenishComponent/ReplenishScanPage/ReplenishScanPage.jsx
View file @
febaa0ed
This diff is collapsed.
Click to expand it.
client/components/ReplenishComponent/ReplenishScanPage/index.css
View file @
febaa0ed
...
...
@@ -38,3 +38,35 @@
.replenishScanPageForgetSku
.replenishSkuInfo
{
margin-top
:
8%
;
}
.replenishScanDom
{
position
:
relative
;
width
:
100%
;
height
:
90%
;
text-align
:
center
;
}
.replenishScanDom
>
div
{
position
:
absolute
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.replenishScanDom
.scanText
{
top
:
8%
;
}
.replenishScanDom
.scanTips
{
top
:
80%
;
}
.replenishScanDom
.scanTips
>
span
{
margin-right
:
20px
;
}
.replenishScanDom
.scanInfo
{
top
:
90%
;
width
:
100%
;
white-space
:
nowrap
;
}
.replenishScanDom
.scanInfo
>
span
{
margin-right
:
30px
;
}
.replenishScanDom
.scanInfo
>
span
:last-child
{
margin-right
:
0
;
}
\ No newline at end of file
client/containers/ReplenishContainer/ReplenishContainer.jsx
View file @
febaa0ed
...
...
@@ -33,17 +33,18 @@ export default class ReplenishContainer extends React.Component{
componentWillReceiveProps
(
nextProps
){
console
.
log
(
"componentWillReceiveProps "
,
nextProps
)
if
(
nextProps
.
barcodeInfo
&&
nextProps
.
barcodeInfo
.
product
&&
nextProps
.
replenishInfo
&&
!
nextProps
.
replenishInfo
.
errorInfo
){
if
(
nextProps
.
barcodeInfo
&&
nextProps
.
barcodeInfo
.
product
&&
nextProps
.
replenishInfo
&&
(
!
nextProps
.
replenishInfo
.
errorInfo
||
!
nextProps
.
replenishInfo
.
errorInfo
.
errorMessage
)
){
//有条形码信息且 没有错误信息 进入条形码扫描成功页面
console
.
log
(
"in "
,
this
.
state
.
pageType
,
typeof
this
.
state
.
pageType
);
if
(
this
.
state
.
pageType
!==
2
){
console
.
log
(
"2222222"
)
console
.
log
(
"2222222"
);
nextProps
.
hidePopup
();
this
.
setState
({
pageType
:
2
,
showScanQrcode
:
false
})
}
}
else
if
(
nextProps
.
replenishInfo
&&
nextProps
.
replenishInfo
.
errorInfo
){
}
else
if
(
nextProps
.
replenishInfo
&&
nextProps
.
replenishInfo
.
errorInfo
&&
nextProps
.
replenishInfo
.
errorInfo
.
errorMessage
){
//有错误信息,再对应页面弹出错误信息弹窗,要区分错误信息
}
}
...
...
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