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
748ca8b6
Commit
748ca8b6
authored
Sep 26, 2018
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善补货逻辑
parent
2ebd9863
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
client/components/ReplenishComponent/ReplenishSkuPage/ReplenishSkuPage.jsx
+18
-5
client/containers/PageContainer/PageContainer.jsx
+1
-0
No files found.
client/components/ReplenishComponent/ReplenishSkuPage/ReplenishSkuPage.jsx
View file @
748ca8b6
...
@@ -28,7 +28,8 @@ export default class ReplenishSkuPage extends React.Component{
...
@@ -28,7 +28,8 @@ export default class ReplenishSkuPage extends React.Component{
this
.
getWrongSku
=
this
.
getWrongSku
.
bind
(
this
);
// 商品不符
this
.
getWrongSku
=
this
.
getWrongSku
.
bind
(
this
);
// 商品不符
this
.
overflowShelf
=
this
.
overflowShelf
.
bind
(
this
);
// 货道已满页面
this
.
overflowShelf
=
this
.
overflowShelf
.
bind
(
this
);
// 货道已满页面
this
.
putInBox
=
this
.
putInBox
.
bind
(
this
);
// 放回
this
.
putInBox
=
this
.
putInBox
.
bind
(
this
);
// 放回
this
.
continueScan
=
this
.
continueScan
.
bind
(
this
);
// 放回
this
.
continueScan
=
this
.
continueScan
.
bind
(
this
);
// 继续扫描
this
.
scanOver
=
this
.
scanOver
.
bind
(
this
);
// 全部补货完毕
this
.
state
=
{
this
.
state
=
{
pageType
:
1
,
pageType
:
1
,
...
@@ -80,9 +81,9 @@ export default class ReplenishSkuPage extends React.Component{
...
@@ -80,9 +81,9 @@ export default class ReplenishSkuPage extends React.Component{
handleScanOver
(){
handleScanOver
(){
console
.
log
(
"扫描结束"
)
console
.
log
(
"扫描结束"
)
//货道商品不符
//货道商品不符
let
{
showPopup
,
hidePopup
}
=
this
.
props
;
let
{
showPopup
}
=
this
.
props
;
let
btnDom1
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn1 font32"
}
key=
{
"replenishHandleScanOverBtn1"
}
text=
{
"继续扫描"
}
option=
{
this
.
continueScan
}
/>
let
btnDom1
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn1 font32"
}
key=
{
"replenishHandleScanOverBtn1"
}
text=
{
"继续扫描"
}
option=
{
this
.
continueScan
}
/>
let
btnDom2
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn2 backff775c colfff font32"
}
key=
{
"replenishHandleScanOverBtn2"
}
text=
{
"确认扫描完毕"
}
option=
{
hidePopup
}
/>
let
btnDom2
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn2 backff775c colfff font32"
}
key=
{
"replenishHandleScanOverBtn2"
}
text=
{
"确认扫描完毕"
}
option=
{
this
.
scanOver
}
/>
let
popDom
=
let
popDom
=
<
PopModel
popupTitle=
{
"补货结束确认"
}
classContainer=
{
"replenishPopInfo"
}
>
<
PopModel
popupTitle=
{
"补货结束确认"
}
classContainer=
{
"replenishPopInfo"
}
>
<
div
className=
{
"icon iconfont icon-exclamation font150 colf5a623"
}
/>
<
div
className=
{
"icon iconfont icon-exclamation font150 colf5a623"
}
/>
...
@@ -97,6 +98,19 @@ export default class ReplenishSkuPage extends React.Component{
...
@@ -97,6 +98,19 @@ export default class ReplenishSkuPage extends React.Component{
showPopup
({
popupChild
:
popDom
});
showPopup
({
popupChild
:
popDom
});
}
}
//确认扫描完毕
scanOver
(){
let
props
=
this
.
props
;
if
(
!
this
.
state
.
btnClock
){
this
.
setState
({
btnClock
:
true
},()
=>
{
props
.
hidePopup
()
props
.
finishReplenish
();
})
}
}
getSkuInfo
(){
getSkuInfo
(){
let
{
headerInfo
}
=
this
.
props
;
let
{
headerInfo
}
=
this
.
props
;
let
{
taskList
=
{}}
=
headerInfo
let
{
taskList
=
{}}
=
headerInfo
...
@@ -290,8 +304,7 @@ export default class ReplenishSkuPage extends React.Component{
...
@@ -290,8 +304,7 @@ export default class ReplenishSkuPage extends React.Component{
},()
=>
{
},()
=>
{
uploadError
(
type
);
uploadError
(
type
);
hidePopup
();
hidePopup
();
this
.
getPage
(
1
)
beginScan
();
// beginScan();
})
})
}
}
...
...
client/containers/PageContainer/PageContainer.jsx
View file @
748ca8b6
...
@@ -638,6 +638,7 @@ class PageContainer extends React.Component {
...
@@ -638,6 +638,7 @@ class PageContainer extends React.Component {
finishBoxRecovery=
{
()
=>
dispatch
(
finishBoxRecovery
(
state
.
commonInfo
))
}
finishBoxRecovery=
{
()
=>
dispatch
(
finishBoxRecovery
(
state
.
commonInfo
))
}
emptyErrorInfo=
{
()
=>
dispatch
(
replenishAction
.
emptyErrorInfo
())
}
emptyErrorInfo=
{
()
=>
dispatch
(
replenishAction
.
emptyErrorInfo
())
}
uploadError=
{
(
exceptionType
)
=>
dispatch
(
uploadError
(
state
.
commonInfo
,
exceptionType
))
}
uploadError=
{
(
exceptionType
)
=>
dispatch
(
uploadError
(
state
.
commonInfo
,
exceptionType
))
}
finishReplenish=
{
()
=>
dispatch
(
replenishAction
.
finishReplenish
(
state
.
commonInfo
))
}
/>
/>
/*以下是二期页面 end*/
/*以下是二期页面 end*/
}
}
...
...
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