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
535cfae8
Commit
535cfae8
authored
6 years ago
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 2171 2170
parent
9b9606d3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
9 deletions
+48
-9
client/components/ReplenishComponent/ReplenishScanPage/ReplenishScanPage.jsx
+10
-3
client/components/ReplenishComponent/ReplenishSkuPage/ReplenishSkuPage.jsx
+8
-4
client/containers/ChooseTaskContainer/ChooseTaskContainer.jsx
+27
-1
client/containers/PageContainer/PageContainer.jsx
+3
-1
No files found.
client/components/ReplenishComponent/ReplenishScanPage/ReplenishScanPage.jsx
View file @
535cfae8
...
@@ -21,6 +21,7 @@ export default class ReplenishScanPage extends React.Component{
...
@@ -21,6 +21,7 @@ export default class ReplenishScanPage extends React.Component{
this
.
handleScanOver
=
this
.
handleScanOver
.
bind
(
this
);
this
.
handleScanOver
=
this
.
handleScanOver
.
bind
(
this
);
this
.
scanOver
=
this
.
scanOver
.
bind
(
this
);
this
.
scanOver
=
this
.
scanOver
.
bind
(
this
);
this
.
putInBox
=
this
.
putInBox
.
bind
(
this
);
this
.
putInBox
=
this
.
putInBox
.
bind
(
this
);
this
.
handleScanContinue
=
this
.
handleScanContinue
.
bind
(
this
);
this
.
state
=
{
this
.
state
=
{
barcodeText
:
''
,
barcodeText
:
''
,
barcodeErrorText
:
''
,
barcodeErrorText
:
''
,
...
@@ -144,11 +145,17 @@ export default class ReplenishScanPage extends React.Component{
...
@@ -144,11 +145,17 @@ export default class ReplenishScanPage extends React.Component{
</
div
>
</
div
>
}
}
handleScanContinue
(){
let
{
emptyErrorInfo
,
hidePopup
}
=
this
.
props
;
emptyErrorInfo
();
hidePopup
()
}
handleScanOver
(){
handleScanOver
(){
console
.
log
(
"扫描结束"
);
console
.
log
(
"扫描结束"
);
//货道商品不符
//货道商品不符
let
{
showPopup
,
hidePopup
}
=
this
.
props
;
let
{
showPopup
,
hidePopup
}
=
this
.
props
;
let
btnDom1
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn1 font32"
}
key=
{
"replenishHandleScanOverBtn1"
}
text=
{
"继续扫描"
}
option=
{
hidePopup
}
/>
let
btnDom1
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn1 font32"
}
key=
{
"replenishHandleScanOverBtn1"
}
text=
{
"继续扫描"
}
option=
{
this
.
handleScanContinue
}
/>
let
btnDom2
=
<
Button
btnContainer=
{
"replenishHandleScanOverBtn2 backff775c colfff font32"
}
key=
{
"replenishHandleScanOverBtn2"
}
text=
{
"确认扫描完毕"
}
option=
{
this
.
scanOver
}
/>
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"
}
>
...
@@ -166,12 +173,12 @@ export default class ReplenishScanPage extends React.Component{
...
@@ -166,12 +173,12 @@ export default class ReplenishScanPage extends React.Component{
//确认扫描完毕
//确认扫描完毕
scanOver
(){
scanOver
(){
console
.
log
(
"确认扫描完毕 "
,
this
.
state
.
btnClock
)
let
props
=
this
.
props
;
let
props
=
this
.
props
;
if
(
!
this
.
state
.
btnClock
){
if
(
!
this
.
state
.
btnClock
){
this
.
setState
({
this
.
setState
({
btnClock
:
true
btnClock
:
true
},()
=>
{
},()
=>
{
props
.
emptyErrorInfo
();
props
.
hidePopup
()
props
.
hidePopup
()
props
.
finishReplenish
(
2
);
props
.
finishReplenish
(
2
);
})
})
...
@@ -270,7 +277,6 @@ export default class ReplenishScanPage extends React.Component{
...
@@ -270,7 +277,6 @@ export default class ReplenishScanPage extends React.Component{
//货道已满解决办法
//货道已满解决办法
let
{
showPopup
,
hidePopup
,
headerInfo
}
=
this
.
props
;
let
{
showPopup
,
hidePopup
,
headerInfo
}
=
this
.
props
;
let
{
taskInfo
=
{}}
=
headerInfo
;
let
{
taskInfo
=
{}}
=
headerInfo
;
console
.
log
(
"不在本区补货范围 "
,
taskInfo
);
let
btnDom
=
<
Button
btnContainer=
{
"replenishContainerQrcode font32 backff775c colfff"
}
key=
{
"replenishContainerWrongQrcode"
}
text=
{
"关闭"
}
option=
{
this
.
hidePop
}
/>
let
btnDom
=
<
Button
btnContainer=
{
"replenishContainerQrcode font32 backff775c colfff"
}
key=
{
"replenishContainerWrongQrcode"
}
text=
{
"关闭"
}
option=
{
this
.
hidePop
}
/>
let
popDom
=
let
popDom
=
<
PopModel
popupTitle=
{
"扫描货品异常"
}
classContainer=
{
"replenishPopInfo"
}
>
<
PopModel
popupTitle=
{
"扫描货品异常"
}
classContainer=
{
"replenishPopInfo"
}
>
...
@@ -340,6 +346,7 @@ export default class ReplenishScanPage extends React.Component{
...
@@ -340,6 +346,7 @@ export default class ReplenishScanPage extends React.Component{
this
.
setState
({
this
.
setState
({
barcodeText
:
''
barcodeText
:
''
},()
=>
{
},()
=>
{
this
.
props
.
emptyErrorInfo
();
this
.
props
.
hidePopup
()
this
.
props
.
hidePopup
()
})
})
}
}
...
...
This diff is collapsed.
Click to expand it.
client/components/ReplenishComponent/ReplenishSkuPage/ReplenishSkuPage.jsx
View file @
535cfae8
...
@@ -39,9 +39,14 @@ export default class ReplenishSkuPage extends React.Component{
...
@@ -39,9 +39,14 @@ export default class ReplenishSkuPage extends React.Component{
}
}
handleScanQrcode
(){
handleScanQrcode
(){
//扫描下一个
//扫描下一个
this
.
props
.
finishBoxRecovery
();
if
(
!
this
.
state
.
btnClock
){
this
.
continueScan
()
this
.
setState
({
btnClock
:
true
},()
=>
{
this
.
props
.
finishBoxRecovery
();
this
.
continueScan
()
})
}
}
}
shouldComponentUpdate
(
nextProps
,
nextState
){
shouldComponentUpdate
(
nextProps
,
nextState
){
...
@@ -336,7 +341,6 @@ export default class ReplenishSkuPage extends React.Component{
...
@@ -336,7 +341,6 @@ export default class ReplenishSkuPage extends React.Component{
}
}
render
(){
render
(){
console
.
log
(
"rerender"
)
let
props
=
this
.
props
;
let
props
=
this
.
props
;
return
this
[
questionType
[
this
.
state
.
pageType
]]()
return
this
[
questionType
[
this
.
state
.
pageType
]]()
}
}
...
...
This diff is collapsed.
Click to expand it.
client/containers/ChooseTaskContainer/ChooseTaskContainer.jsx
View file @
535cfae8
...
@@ -9,6 +9,8 @@ export default class ChooseTaskContainer extends React.Component{
...
@@ -9,6 +9,8 @@ export default class ChooseTaskContainer extends React.Component{
this
.
state
=
{
this
.
state
=
{
};
};
this
.
closeDoor
=
this
.
closeDoor
.
bind
(
this
);
this
.
closeDoor
=
this
.
closeDoor
.
bind
(
this
);
this
.
logout
=
this
.
logout
.
bind
(
this
)
this
.
showLogoutPopup
=
this
.
showLogoutPopup
.
bind
(
this
)
}
}
componentWillMount
(){
componentWillMount
(){
...
@@ -19,6 +21,29 @@ export default class ChooseTaskContainer extends React.Component{
...
@@ -19,6 +21,29 @@ export default class ChooseTaskContainer extends React.Component{
}
}
logout
(){
this
.
props
.
tempLogout
()
}
showLogoutPopup
(){
let
{
showPopup
,
hidePopup
}
=
this
.
props
;
let
btnDom1
=
<
Button
btnContainer=
{
"headerLogoutBtn backff775c colfff font32 font32 "
}
key=
{
"headerLogoutBtn1"
}
text=
{
"确定退出?"
}
option=
{
this
.
logout
}
/>
let
btnDom2
=
<
Button
btnContainer=
{
"headerLogoutBtn btne5 font32"
}
key=
{
"headerLogoutBtn2"
}
text=
{
"取消"
}
option=
{
hidePopup
}
/>
let
popDom
=
<
PopModel
popupTitle=
{
"是否退出登录"
}
classContainer=
{
"headerLogout"
}
>
<
div
className=
{
"icon iconfont icon-exclamation font150 colf5a623"
}
/>
<
div
className=
{
"text font40 col000"
}
style=
{
{
lineHeight
:
'1.6'
}
}
>
<
p
>
此步临时添加,可用作测试退出登录
</
p
>
<
p
>
重新扫码开门,不必重启服务
</
p
>
</
div
>
<
div
className=
{
"btn"
}
>
{
btnDom1
}
{
btnDom2
}
</
div
>
</
PopModel
>;
showPopup
({
popupChild
:
popDom
});
}
closeDoor
(){
closeDoor
(){
console
.
log
(
"closeDoor"
);
console
.
log
(
"closeDoor"
);
this
.
props
.
hidePopup
();
this
.
props
.
hidePopup
();
...
@@ -34,6 +59,7 @@ export default class ChooseTaskContainer extends React.Component{
...
@@ -34,6 +59,7 @@ export default class ChooseTaskContainer extends React.Component{
<
HeaderComponent
<
HeaderComponent
showHeader=
{
CONFIG
.
headerStatus
[
1
]
}
showHeader=
{
CONFIG
.
headerStatus
[
1
]
}
headerInfo=
{
headerInfo
}
headerInfo=
{
headerInfo
}
showLogoutPopup=
{
this
.
showLogoutPopup
}
/>
/>
<
div
className=
{
"chooseTaskContainer"
}
>
<
div
className=
{
"chooseTaskContainer"
}
>
<
div
className=
{
"chooseTaskText font32"
}
>
<
div
className=
{
"chooseTaskText font32"
}
>
...
@@ -44,7 +70,7 @@ export default class ChooseTaskContainer extends React.Component{
...
@@ -44,7 +70,7 @@ export default class ChooseTaskContainer extends React.Component{
<
Button
text=
{
"申报新故障"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
20
)}
}
/>
<
Button
text=
{
"申报新故障"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
20
)}
}
/>
<
Button
text=
{
"设备检查"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
20
)}
}
/>
<
Button
text=
{
"设备检查"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
20
)}
}
/>
<
Button
text=
{
"设备测试"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
20
)}
}
/>
<
Button
text=
{
"设备测试"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
20
)}
}
/>
<
Button
text=
{
"确认退出,并离店"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
87
)}
}
option=
{
this
.
closeDoor
}
/>
<
Button
text=
{
"确认退出,并离店"
}
style=
{
{
'marginTop'
:
UTILPATH
.
getRemByPx
(
87
)}
}
option=
{
this
.
showLogoutPopup
}
/>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
client/containers/PageContainer/PageContainer.jsx
View file @
535cfae8
...
@@ -189,7 +189,7 @@ class PageContainer extends React.Component {
...
@@ -189,7 +189,7 @@ class PageContainer extends React.Component {
// remove(CONFIG.socketType.GETSTOREINFO,this)
// remove(CONFIG.socketType.GETSTOREINFO,this)
// remove(CONFIG.socketType.GETSOCKETMSG,this)
// remove(CONFIG.socketType.GETSOCKETMSG,this)
this
.
setState
({
this
.
setState
({
showPage
:
showPage
[
7
],
showPage
:
showPage
[
initPage
],
showClock
:
false
,
showClock
:
false
,
popupInfo
:
defaultPopupInfo
,
popupInfo
:
defaultPopupInfo
,
successCloseDoor
:
true
successCloseDoor
:
true
...
@@ -601,7 +601,9 @@ class PageContainer extends React.Component {
...
@@ -601,7 +601,9 @@ class PageContainer extends React.Component {
pages =
<
ChooseTaskContainer
headerInfo=
{
commonInfo
}
pages =
<
ChooseTaskContainer
headerInfo=
{
commonInfo
}
changePages=
{
(
data
)
=>
this
.
changePages
(
data
)
}
changePages=
{
(
data
)
=>
this
.
changePages
(
data
)
}
showOpenDoorPage=
{
()
=>
this
.
showOpenDoorPage
.
bind
(
this
)()
}
showOpenDoorPage=
{
()
=>
this
.
showOpenDoorPage
.
bind
(
this
)()
}
showPopup=
{
(
info
)
=>
this
.
showPopup
(
info
)
}
hidePopup=
{
()
=>
this
.
hidePopup
()
}
hidePopup=
{
()
=>
this
.
hidePopup
()
}
tempLogout=
{
()
=>
this
.
tempLogout
.
bind
(
this
)()
}
/>
;
/>
;
break;
break;
/*以下是二期页面 start*/
/*以下是二期页面 start*/
...
...
This diff is collapsed.
Click to expand it.
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