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
341f5c8e
Commit
341f5c8e
authored
Sep 28, 2018
by
Zhang Xin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix breakage bug
parent
2740581d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
client/actions/breakaegContainer.js
+2
-2
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
+3
-3
No files found.
client/actions/breakaegContainer.js
View file @
341f5c8e
...
...
@@ -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
machineId
=
commonInfo
.
storeInfo
.
id
;
let
taskId
=
commonInfo
.
taskInfo
.
taskId
;
let
{
skuPosition
,
skuId
,
skuStatus
}
=
productDetail
;
let
bodyData
=
{
skuPosition
,
skuId
,
skuStatus
,
machineId
,
taskId
}
let
bodyData
=
{
skuPosition
,
skuId
,
skuStatus
,
machineId
,
taskId
,
currentTaskType
}
let
url
=
domain
+
`flat/lr/
${
userId
}
`
return
()
=>
{
fetch
(
url
,{
...
...
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
View file @
341f5c8e
...
...
@@ -22,7 +22,7 @@ class BreakageProductDetail extends React.Component{
render
(){
let
{
breakageProductInfo
}
=
this
.
props
;
let
{
packStatus
,
statusColor
}
=
this
.
state
;
let
{
packStatus
,
statusColor
,
positionColor
}
=
this
.
state
;
return
(
<
div
>
{
...
...
@@ -61,7 +61,7 @@ class BreakageProductDetail extends React.Component{
<li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}>左</span></li>
<li><img src={UTILPATH.localImg.defaultImg} alt=""/><span className={'font28 col333'}>右</span></li> */
}
{
breakageProductInfo
.
product
.
placeMent
List
.
map
((
item
,
key
)
=>
{
breakageProductInfo
.
product
.
skuPositionList
&&
breakageProductInfo
.
product
.
skuPosition
List
.
map
((
item
,
key
)
=>
{
return
<
li
key=
{
key
}
className=
{
positionColor
===
key
?
'active'
:
''
}
...
...
@@ -76,7 +76,7 @@ class BreakageProductDetail extends React.Component{
</
div
>
</
div
>
<
div
className=
{
'breakProductPosition'
}
>
<
img
src=
{
breakageProductInfo
.
product
.
placeMentList
[
positionColor
].
filePath
}
alt=
""
/>
{
positionColor
===-
1
?
null
:<
img
src=
{
breakageProductInfo
.
product
.
skuPositionList
[
positionColor
].
filePath
}
alt=
""
/>
}
</
div
>
</
div
>
</
div
>
...
...
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