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
65b06dac
Commit
65b06dac
authored
Nov 16, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
68b51221
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
9 deletions
+21
-9
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
+3
-2
client/containers/TakeStokeContainer/TakeStokeContainer.jsx
+7
-5
client/containers/TakeStokeContainer/index.css
+8
-2
client/util/socket.js
+3
-0
No files found.
client/components/BreakageComponent/BreakageProductDetail/BreakageProductDetail.jsx
View file @
65b06dac
...
...
@@ -115,8 +115,9 @@ class BreakageProductDetail extends React.Component{
//改变显示的报损页面
changePageDefault
(){
let
{
product
}
=
this
.
props
.
breakageProductInfo
;
let
{
statusColor
,
packStatus
}
=
this
.
state
;
let
productDetail
=
{
skuId
:
product
.
skuId
,
skuStatus
:
packStatus
[
statusColor
].
code
,
skuPosition
:
0
}
let
{
statusColor
,
packStatus
,
positionColor
}
=
this
.
state
;
let
id
=
product
.
skuPositionList
[
positionColor
]
&&
product
.
skuPositionList
[
positionColor
].
id
?
product
.
skuPositionList
[
positionColor
].
id
:
''
;
let
productDetail
=
{
skuId
:
product
.
skuId
,
skuStatus
:
packStatus
[
statusColor
].
code
,
skuPosition
:
id
}
this
.
props
.
submitBreakageProduct
(
productDetail
);
this
.
props
.
changePopShow
(
true
)
}
...
...
client/containers/TakeStokeContainer/TakeStokeContainer.jsx
View file @
65b06dac
...
...
@@ -12,7 +12,7 @@ class TakeStokeContaniner extends React.Component {
this
.
state
=
{
showButton
:
true
,
number
:
1
,
initNum
:
''
initNum
:
'
-
'
}
}
...
...
@@ -53,11 +53,11 @@ class TakeStokeContaniner extends React.Component {
<
p
className=
{
'font30 clo333'
}
>
<
span
>
货品数量:
</
span
>
<
span
className=
{
'disNum'
}
onClick=
{
this
.
productNum
.
bind
(
this
,
'dis'
)
}
>
-
</
span
>
<
span
className=
{
'baseNum font50 colff775c'
}
>
{
initNum
}
</
span
>
<
span
className=
{
'baseNum font50 colff775c'
}
style=
{
{
opacity
:
initNum
===
'-'
?
0
:
1
}
}
>
{
initNum
}
</
span
>
<
span
className=
{
'addNum'
}
onClick=
{
this
.
productNum
.
bind
(
this
,
'add'
)
}
>
+
</
span
>
</
p
>
</
div
>
<
Button
text=
{
'提交'
}
btnContainer=
{
'
backff775c font32 colfff'
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
80
)
}
}
option=
{
this
.
checkProductNum
.
bind
(
this
)
}
/>
<
Button
text=
{
'提交'
}
btnContainer=
{
'
font32 colfff'
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
80
),
background
:
initNum
===
'-'
?
'#ededed'
:
'#ff7860'
}
}
option=
{
this
.
checkProductNum
.
bind
(
this
)
}
/>
</
div
>:<
Button
option=
{
this
.
clickPutIn
.
bind
(
this
)
}
text=
{
'已放入'
}
btnContainer=
{
'backff775c font32 colfff'
}
style=
{
{
marginTop
:
UTILPATH
.
getRemByPx
(
280
)}
}
/>
}
</
div
>
...
...
@@ -78,7 +78,7 @@ class TakeStokeContaniner extends React.Component {
productNum
(
str
){
let
{
initNum
}
=
this
.
state
;
if
(
str
===
'add'
){
if
(
initNum
===
''
){
if
(
initNum
===
'
-
'
){
initNum
=
0
;
}
else
{
initNum
++
;
...
...
@@ -98,7 +98,9 @@ class TakeStokeContaniner extends React.Component {
//核对产品数量
checkProductNum
(){
let
{
initNum
}
=
this
.
state
;
if
(
!
initNum
===
''
){
console
.
log
(
initNum
)
if
(
initNum
!==
'-'
){
console
.
log
(
212
)
let
{
workListId
,
skuPassId
}
=
this
.
props
.
tokeTaskProduct
;
let
tokeProductInfo
=
{
workListId
,
skuPassId
,
quantity
:
initNum
}
this
.
props
.
checkProductQuantity
(
tokeProductInfo
)
...
...
client/containers/TakeStokeContainer/index.css
View file @
65b06dac
...
...
@@ -131,7 +131,6 @@
padding-left
:
4.5rem
;
box-sizing
:
border-box
;
}
.TokeStokeContent
.commonPage
.productNum
p
span
:nth-of-type
(
2
),
.commonPage
.productNum
p
span
:nth-of-type
(
4
)
{
width
:
0.6666666666666666rem
;
height
:
0.6666666666666666rem
;
...
...
@@ -148,8 +147,15 @@
}
.TokeStokeContent
.commonPage
.productNum
p
span
:nth-of-type
(
3
)
{
width
:
0.6666666666666666rem
;
height
:
0.6666666666666666rem
;
border
:
2px
solid
#fff
;
border-radius
:
0.08333333333333333rem
;
display
:
inline-block
;
line-height
:
0.6666666666666666rem
;
text-align
:
center
;
font-weight
:
600
;
padding
:
0.16666666666666666rem
0.275rem
;
}
.TokeStokeContent
.commonPage
.buttonComponent
{
...
...
client/util/socket.js
View file @
65b06dac
...
...
@@ -27,6 +27,7 @@ const checkStatus = (response)=>{
};
const
parseJson
=
(
response
)
=>
{
console
.
log
(
"socket response "
,
response
);
return
response
.
json
();
};
...
...
@@ -78,6 +79,7 @@ const testIp = (ip) => {
console
.
log
(
"testIp : "
,
ip
);
let
url
=
'http://'
+
domainIp
+
ip
+
':9999/getmyid'
;
console
.
log
(
"testIp url : "
,
url
);
fetch
(
url
,{
// credentials : 'include',
method
:
'GET'
,
...
...
@@ -85,6 +87,7 @@ const testIp = (ip) => {
}).
then
(
checkStatus
)
.
then
(
parseJson
)
.
then
((
data
)
=>
{
console
.
log
(
"socket data "
,
data
);
if
(
data
.
storeId
){
window
.
storeId
=
data
.
storeId
;
window
.
localIp
=
domainIp
+
ip
;
...
...
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