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
e3bca643
Commit
e3bca643
authored
Nov 15, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
535cfae8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
client/containers/TakeStokeContainer/TakeStokeContainer.jsx
+12
-3
No files found.
client/containers/TakeStokeContainer/TakeStokeContainer.jsx
View file @
e3bca643
...
@@ -12,7 +12,7 @@ class TakeStokeContaniner extends React.Component {
...
@@ -12,7 +12,7 @@ class TakeStokeContaniner extends React.Component {
this
.
state
=
{
this
.
state
=
{
showButton
:
true
,
showButton
:
true
,
number
:
1
,
number
:
1
,
initNum
:
0
initNum
:
''
}
}
}
}
...
@@ -78,7 +78,11 @@ class TakeStokeContaniner extends React.Component {
...
@@ -78,7 +78,11 @@ class TakeStokeContaniner extends React.Component {
productNum
(
str
){
productNum
(
str
){
let
{
initNum
}
=
this
.
state
;
let
{
initNum
}
=
this
.
state
;
if
(
str
===
'add'
){
if
(
str
===
'add'
){
if
(
initNum
===
''
){
initNum
=
0
;
}
else
{
initNum
++
;
initNum
++
;
}
this
.
setState
({
this
.
setState
({
initNum
initNum
})
})
...
@@ -100,7 +104,8 @@ class TakeStokeContaniner extends React.Component {
...
@@ -100,7 +104,8 @@ class TakeStokeContaniner extends React.Component {
}
}
//根据后台返回的数据 判断显示的组件
//根据后台返回的数据 判断显示的组件
componentWillReceiveProps
(
nextProps
){
componentWillReceiveProps
(
nextProps
){
console
.
log
(
"执行了盘点任务中的拉取工单"
)
console
.
log
(
"执行了盘点任务中的拉取工单"
,
this
.
props
,
nextProps
)
if
(
!
(
this
.
props
.
TokeStokeState
.
type
===
3
&&
nextProps
.
TokeStokeState
.
type
===
3
)){
let
{
type
}
=
nextProps
.
TokeStokeState
;
let
{
type
}
=
nextProps
.
TokeStokeState
;
switch
(
type
){
switch
(
type
){
case
1
:
case
1
:
...
@@ -114,10 +119,14 @@ class TakeStokeContaniner extends React.Component {
...
@@ -114,10 +119,14 @@ class TakeStokeContaniner extends React.Component {
break
;
break
;
}
}
}
}
}
//点击已放入 继续拉取工单
//点击已放入 继续拉取工单
clickPutIn
(){
clickPutIn
(){
this
.
props
.
getTaskList
();
this
.
props
.
getTaskList
();
this
.
setState
({
number
:
1
,
showButton
:
true
})
this
.
setState
({
number
:
1
,
showButton
:
true
,
initNum
:
0
},()
=>
{
console
.
log
(
this
.
state
)
})
}
}
}
}
...
...
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