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
70c53577
Commit
70c53577
authored
Sep 28, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change reducer-common
parent
57dba521
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
5 deletions
+15
-5
client/actions/TokeStokeContainer.js
+2
-2
client/actions/breakaegContainer.js
+2
-2
client/components/BreakageComponent/defaultComponent/DefaultComponnet.jsx
+2
-1
client/reducers/common.js
+9
-0
No files found.
client/actions/TokeStokeContainer.js
View file @
70c53577
...
...
@@ -8,10 +8,10 @@ let domain = 'http://192.168.10.128:8080/web/'
const
checkProductQuantity
=
(
data
)
=>
{
let
{
commonInfo
,
tokeProductInfo
}
=
data
;
let
storeId
=
commonInfo
.
storeInfo
.
id
;
let
{
taskId
,
area
}
=
commonInfo
.
taskInfo
;
let
{
taskId
,
area
,
currentTaskType
}
=
commonInfo
.
taskInfo
;
let
employeeId
=
commonInfo
.
userInfo
.
id
;
let
{
quantity
,
skuPassId
,
workListId
}
=
tokeProductInfo
;
let
bodyData
=
{
storeId
,
taskId
,
area
,
quantity
,
skuPassId
,
workListId
,
employeeId
}
let
bodyData
=
{
storeId
,
taskId
,
area
,
quantity
,
skuPassId
,
workListId
,
employeeId
,
currentTaskType
}
let
url
=
domain
+
`flat/work/ck`
;
return
(
dispatch
)
=>
{
fetch
(
url
,{
...
...
client/actions/breakaegContainer.js
View file @
70c53577
...
...
@@ -13,10 +13,10 @@ const submitBreakageProduct = (data)=>{
console
.
log
(
data
,
"执行了提交遗留上报"
)
let
{
productDetail
,
commonInfo
}
=
data
;
let
userId
=
commonInfo
.
userInfo
.
id
;
let
{
currentTaskType
,
taskId
}
=
commonInfo
.
taskInfo
;
let
{
taskId
}
=
commonInfo
.
taskInfo
;
let
machineId
=
commonInfo
.
storeInfo
.
id
;
let
{
skuPosition
,
skuId
,
skuStatus
}
=
productDetail
;
let
bodyData
=
{
skuPosition
,
skuId
,
skuStatus
,
machineId
,
taskId
,
currentTaskType
}
let
bodyData
=
{
skuPosition
,
skuId
,
skuStatus
,
machineId
,
taskId
}
let
url
=
domain
+
`flat/lr/
${
userId
}
`
return
()
=>
{
fetch
(
url
,{
...
...
client/components/BreakageComponent/defaultComponent/DefaultComponnet.jsx
View file @
70c53577
...
...
@@ -27,7 +27,7 @@ class DefaultComponent extends React.Component{
//控制显示扫码页面并且显示扫码页
skipInputCode
(){
this
.
props
.
changeCodePage
(
false
);
this
.
props
.
changeSanCodePage
(
'
San
Code'
)
this
.
props
.
changeSanCodePage
(
'
Hand
Code'
)
}
}
export
default
DefaultComponent
;
\ No newline at end of file
client/reducers/common.js
View file @
70c53577
...
...
@@ -89,6 +89,15 @@ const NumChangeWord = (currentTaskType,childTaskNum)=>{
}
}
break
;
case
'CR'
:
{
let
name
=
2
;
taskName
=
arr
[
name
-
1
].
title
;
if
(
child
)
{
taskName
=
arr
[
name
-
1
].
children
[
child
-
1
]
}
}
break
;
}
return
taskName
;
...
...
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