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
7b38ac04
Commit
7b38ac04
authored
Aug 03, 2018
by
yaxiLiuu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提修复不bug
parent
09f43fa8
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
99 additions
and
73 deletions
+99
-73
client/actions/ScanBarCode.js
+7
-1
client/actiontype/ScanBarCode.js
+3
-2
client/components/ReportDamageListComponent/DamageItemComponent/index.css
+2
-3
client/components/ScanBarCodeComponent/ProductDetailComponent/ProductDetailItem.jsx
+29
-15
client/components/ScanBarCodeComponent/ProductDetailComponent/index.css
+4
-0
client/config/swiperContainer.js
+3
-1
client/containers/PageContainer/PageContainer.jsx
+2
-1
client/containers/ReportDamagesListContainer/ReportDamagesListContainer.jsx
+25
-20
client/containers/ScanBarCodeContainer/ScanBarCodeContaienr.jsx
+13
-28
client/containers/ScanBarCodeContainer/index.css
+4
-2
client/reducers/scanBarCode.js
+7
-0
No files found.
client/actions/ScanBarCode.js
View file @
7b38ac04
...
@@ -4,7 +4,7 @@ import actionTypes_error from '../actiontype/error'
...
@@ -4,7 +4,7 @@ import actionTypes_error from '../actiontype/error'
let
domain
=
ENV
.
domain
;
let
domain
=
ENV
.
domain
;
export
function
scanBarCodeGetProductInfo
(
postData
)
{
export
function
scanBarCodeGetProductInfo
(
postData
)
{
return
(
dispatch
)
=>
{
return
(
dispatch
)
=>
{
let
url
=
String
(
domain
+
'
/
machine_pad/scanning_sku_barcode_for_add_loss_task'
);
let
url
=
String
(
domain
+
'machine_pad/scanning_sku_barcode_for_add_loss_task'
);
fetch
(
url
,{
fetch
(
url
,{
credentials
:
'include'
,
credentials
:
'include'
,
method
:
'POST'
,
method
:
'POST'
,
...
@@ -77,6 +77,12 @@ export function submitProductSuccess(data) {
...
@@ -77,6 +77,12 @@ export function submitProductSuccess(data) {
data
data
}
}
}
}
export
function
clearProductSuccess
()
{
return
{
type
:
actionTypes
.
ClEAR_PRODUCT_SUCCESS
,
data
:{}
}
}
function
saveEditProductInfoSuccess
(
data
){
function
saveEditProductInfoSuccess
(
data
){
return
{
return
{
type
:
actionTypes
.
SAVE_PRODUCTEDITINFO_SUCCESS
,
type
:
actionTypes
.
SAVE_PRODUCTEDITINFO_SUCCESS
,
...
...
client/actiontype/ScanBarCode.js
View file @
7b38ac04
const
INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS
=
'INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS'
;
const
INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS
=
'INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS'
;
const
SUBMIT_PRODUCT_SUCCESS
=
'SUBMIT_PRODUCT_SUCCESS'
;
const
SUBMIT_PRODUCT_SUCCESS
=
'SUBMIT_PRODUCT_SUCCESS'
;
const
SAVE_PRODUCTEDITINFO_SUCCESS
=
'SAVE_PRODUCTEDITINFO_SUCCESS'
const
SAVE_PRODUCTEDITINFO_SUCCESS
=
'SAVE_PRODUCTEDITINFO_SUCCESS'
;
const
ClEAR_PRODUCT_SUCCESS
=
"ClEAR_PRODUCT_SUCCESS"
;
module
.
exports
=
{
INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS
,
SUBMIT_PRODUCT_SUCCESS
,
SAVE_PRODUCTEDITINFO_SUCCESS
}
module
.
exports
=
{
INIT_SCANBARCODEGETPRODUCTINFO_SUCCESS
,
SUBMIT_PRODUCT_SUCCESS
,
SAVE_PRODUCTEDITINFO_SUCCESS
,
ClEAR_PRODUCT_SUCCESS
}
client/components/ReportDamageListComponent/DamageItemComponent/index.css
View file @
7b38ac04
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
width
:
198px
;
width
:
198px
;
height
:
198px
;
height
:
198px
;
border
:
2px
solid
#e5e5e5
;
border
:
2px
solid
#e5e5e5
;
box-sizing
:
border-box
;
/*background-color: darkgoldenrod;*/
/*background-color: darkgoldenrod;*/
float
:
left
;
float
:
left
;
}
}
...
@@ -61,11 +62,9 @@
...
@@ -61,11 +62,9 @@
}
}
.damageProductItem
.productBaseInfo
.productCount
{
.damageProductItem
.productBaseInfo
.productCount
{
display
:
inline-block
;
display
:
inline-block
;
/*padding-top: 140px;*/
float
:
left
;
float
:
left
;
/*margin:0 20px 0 220px;*/
box-sizing
:
border-box
;
box-sizing
:
border-box
;
line-height
:
1
9
8px
;
line-height
:
1
8
8px
;
}
}
.damageProductItem
.productBaseInfo
.productCount
.multipleIcon
{
.damageProductItem
.productBaseInfo
.productCount
.multipleIcon
{
font-size
:
32px
;
font-size
:
32px
;
...
...
client/components/ScanBarCodeComponent/ProductDetailComponent/ProductDetailItem.jsx
View file @
7b38ac04
import
React
from
'react'
;
import
React
from
'react'
;
import
SwiperComponent
from
'../../../components/CommonComponent/SwiperComponent/SwiperComponent'
;
require
(
'./index.css'
);
require
(
'./index.css'
);
import
ImgToolComponent
from
'../../../components/CommonComponent/ImgToolComponent/CommonSmalContainer'
;
import
ImgToolComponent
from
'../../../components/CommonComponent/ImgToolComponent/CommonSmalContainer'
;
export
default
class
ProductDetailItem
extends
React
.
Component
{
export
default
class
ProductDetailItem
extends
React
.
Component
{
...
@@ -66,8 +67,9 @@ export default class ProductDetailItem extends React.Component{
...
@@ -66,8 +67,9 @@ export default class ProductDetailItem extends React.Component{
}
}
handleSubmit
(){
handleSubmit
(){
let
{
inventorylossId
,
skuBaseInfoVo
,
handleSubmitProductInfo
,
data_currentProblemObj
,
changePages
}
=
this
.
props
;
let
{
inventorylossId
,
skuBaseInfoVo
,
handleSubmitProductInfo
,
data_currentProblemObj
,
changePages
,
clearProductSuccess
}
=
this
.
props
;
handleSubmitProductInfo
(
data_currentProblemObj
);
handleSubmitProductInfo
(
data_currentProblemObj
);
clearProductSuccess
()
}
}
...
@@ -76,13 +78,21 @@ export default class ProductDetailItem extends React.Component{
...
@@ -76,13 +78,21 @@ export default class ProductDetailItem extends React.Component{
let
{
skuBaseInfoVo
,
packingList
,
positionList
,
refreshImg
}
=
this
.
props
;
let
{
skuBaseInfoVo
,
packingList
,
positionList
,
refreshImg
}
=
this
.
props
;
let
imgFileList
=
refreshImg
.
files
?
refreshImg
.
files
:[];
let
imgFileList
=
refreshImg
.
files
?
refreshImg
.
files
:[];
let
productContent
=
''
;
let
productContent
=
''
;
let
swiperContainer
=
CONFIG
.
swiperContainers
.
productPostionContainer
;
let
swiperOptions
=
{
width
:
260
,
spaceBetween
:
30
,
freeMode
:
true
};
let
swiperCount
=
positionList
.
length
;
let
positonUi
=
positionList
.
map
((
item
,
index
)
=>
{
let
positonUi
=
positionList
.
map
((
item
,
index
)
=>
{
return
<
li
return
<
li
key=
{
"position"
+
index
}
key=
{
"position"
+
index
}
date
-
value
=
{
index
}
date
-
value
=
{
index
}
className=
{
index
==
this
.
state
.
currentPosition
?
"checkLi"
:
""
}
className=
{
index
==
this
.
state
.
currentPosition
?
"checkLi"
:
""
}
onClick=
{
this
.
handleSelectPosition
.
bind
(
this
)
}
>
onClick=
{
this
.
handleSelectPosition
.
bind
(
this
)
}
{
item
}
>
{
item
}
</
li
>
</
li
>
})
})
let
statusUi
=
packingList
.
map
((
item
,
index
)
=>
{
let
statusUi
=
packingList
.
map
((
item
,
index
)
=>
{
return
<
li
return
<
li
...
@@ -120,9 +130,13 @@ export default class ProductDetailItem extends React.Component{
...
@@ -120,9 +130,13 @@ export default class ProductDetailItem extends React.Component{
<
div
className=
{
"locationInfo clearfix"
}
>
<
div
className=
{
"locationInfo clearfix"
}
>
<
div
className=
{
"infoTitle"
}
>
商品位置
</
div
>
<
div
className=
{
"infoTitle"
}
>
商品位置
</
div
>
<
ul
className=
{
"detailContainer clearfix"
}
>
<
ul
className=
{
"detailContainer clearfix"
}
>
{
positonUi
}
{
{
/* <li className={"checkLi"}>出货传送区</li>
<
SwiperComponent
swiperContainer=
{
swiperContainer
}
<li>轨道</li>*/
}
swiperOptions=
{
swiperOptions
}
swiperCount=
{
swiperCount
}
>
{
positonUi
}
</
SwiperComponent
>
}
</
ul
>
</
ul
>
</
div
>
</
div
>
...
@@ -137,17 +151,17 @@ export default class ProductDetailItem extends React.Component{
...
@@ -137,17 +151,17 @@ export default class ProductDetailItem extends React.Component{
{
imgListUi
}
{
imgListUi
}
</
div
>
</
div
>
{
{
this
.
state
.
currentPakageStatus
==
2
?(
this
.
state
.
currentPakageStatus
==
1
?(
<
div
className=
{
"operationLeft"
}
>
<
div
className=
{
"operationLeft"
}
>
<
ImgToolComponent
<
ImgToolComponent
type=
{
"
refresh
"
}
type=
{
"
add
"
}
noCloseBtn
=
{
true
}
noCloseBtn
=
{
true
}
handleClikImgFunc
=
{
props
.
handle
Refresh
Img
}
handleClikImgFunc
=
{
props
.
handle
Add
Img
}
></
ImgToolComponent
>
></
ImgToolComponent
>
<
ImgToolComponent
<
ImgToolComponent
type=
{
"
add
"
}
type=
{
"
refresh
"
}
noCloseBtn
=
{
true
}
noCloseBtn
=
{
true
}
handleClikImgFunc
=
{
props
.
handle
Add
Img
}
handleClikImgFunc
=
{
props
.
handle
Refresh
Img
}
></
ImgToolComponent
>
></
ImgToolComponent
>
</
div
>
</
div
>
):
""
):
""
...
...
client/components/ScanBarCodeComponent/ProductDetailComponent/index.css
View file @
7b38ac04
...
@@ -59,6 +59,10 @@
...
@@ -59,6 +59,10 @@
.productContainer
.detailContainer
{
.productContainer
.detailContainer
{
overflow
:
auto
;
overflow
:
auto
;
}
}
.productPostionContainer
{
width
:
1070px
;
margin
:
0
;
}
.productContainer
.detailContainer
li
{
.productContainer
.detailContainer
li
{
box-sizing
:
border-box
;
box-sizing
:
border-box
;
float
:
left
;
float
:
left
;
...
...
client/config/swiperContainer.js
View file @
7b38ac04
module
.
exports
=
{
module
.
exports
=
{
troubleSwiperContainer
:
'troubleSwiperContainer'
,
troubleSwiperContainer
:
'troubleSwiperContainer'
,
damageSwiperContainer
:
'damageSwiperContainer'
,
damageSwiperContainer
:
'damageSwiperContainer'
,
editProblemSwiperContainer
:
'editProblemSwiperContainer'
editProblemSwiperContainer
:
'editProblemSwiperContainer'
,
productPostionContainer
:
"productPostionContainer"
}
}
\ No newline at end of file
client/containers/PageContainer/PageContainer.jsx
View file @
7b38ac04
...
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
...
@@ -5,7 +5,7 @@ import { connect } from 'react-redux';
import
{
getStoreInfo
}
from
"../../actions/getStore"
;
import
{
getStoreInfo
}
from
"../../actions/getStore"
;
import
{
getTroubleList
,
updateTroubleList
}
from
"../../actions/getTroubles"
;
import
{
getTroubleList
,
updateTroubleList
}
from
"../../actions/getTroubles"
;
import
{
initGetOtherProblem
,
addNewProbem
,
deleteProblem
,
editProblemItem
,
submitProblemList
}
from
"../../actions/otherQuestion"
import
{
initGetOtherProblem
,
addNewProbem
,
deleteProblem
,
editProblemItem
,
submitProblemList
}
from
"../../actions/otherQuestion"
import
{
scanBarCodeGetProductInfo
,
submitProductInfo
,
saveEditProductInfo
,
submitProductSuccess
}
from
"../../actions/ScanBarCode"
import
{
scanBarCodeGetProductInfo
,
submitProductInfo
,
saveEditProductInfo
,
submitProductSuccess
,
clearProductSuccess
}
from
"../../actions/ScanBarCode"
import
{
getReportDamageList
,
deleteDamageItem
}
from
'../../actions/reportDamageList'
import
{
getReportDamageList
,
deleteDamageItem
}
from
'../../actions/reportDamageList'
import
{
getRefreshImg
,
deleteImg
}
from
"../../actions/refreshImg"
import
{
getRefreshImg
,
deleteImg
}
from
"../../actions/refreshImg"
import
{
uploadError
,
addErrorInfo
}
from
'../../actions/uploadError'
import
{
uploadError
,
addErrorInfo
}
from
'../../actions/uploadError'
...
@@ -424,6 +424,7 @@ class PageContainer extends React.Component {
...
@@ -424,6 +424,7 @@ class PageContainer extends React.Component {
saveEditProductInfo =
{
(
postData
)
=>
dispatch
(
saveEditProductInfo
(
postData
))
}
saveEditProductInfo =
{
(
postData
)
=>
dispatch
(
saveEditProductInfo
(
postData
))
}
changePages=
{
(
data
)
=>
this
.
changePages
(
data
)
}
changePages=
{
(
data
)
=>
this
.
changePages
(
data
)
}
submitProductSuccess =
{
(
postData
)
=>
dispatch
(
submitProductSuccess
(
postData
))
}
submitProductSuccess =
{
(
postData
)
=>
dispatch
(
submitProductSuccess
(
postData
))
}
clearProductSuccess =
{
()
=>
dispatch
(
clearProductSuccess
())
}
state =
{
state
}
state =
{
state
}
/
>
;
/
>
;
break;
break;
...
...
client/containers/ReportDamagesListContainer/ReportDamagesListContainer.jsx
View file @
7b38ac04
...
@@ -57,27 +57,32 @@ export default class ReportDamagesListContainer extends React.Component{
...
@@ -57,27 +57,32 @@ export default class ReportDamagesListContainer extends React.Component{
let
swiperContainer
=
CONFIG
.
swiperContainers
.
damageSwiperContainer
;
let
swiperContainer
=
CONFIG
.
swiperContainers
.
damageSwiperContainer
;
let
swiperCount
=
reportDamageListUi
.
length
;
let
swiperCount
=
reportDamageListUi
.
length
;
return
(
return
(
reportDamageList
&&
reportDamageList
.
length
>
0
?(
<
div
className=
{
"ReportDamagesListContainer"
}
>
<
div
className=
{
"ReportDamagesListContainer"
}
>
<
HeaderComponent
<
HeaderComponent
showHeader=
{
CONFIG
.
headerStatus
[
1
]
}
showHeader=
{
CONFIG
.
headerStatus
[
1
]
}
userinfo=
{
userInfo
}
userinfo=
{
userInfo
}
storeInfo=
{
storeInfo
}
storeInfo=
{
storeInfo
}
/>
/>
<
div
className=
{
"damageTitleContainer"
}
>
故障相关报损商品(非货架区)
</
div
>
<
div
className=
{
"damageTitleContainer"
}
>
故障相关报损商品(非货架区)
</
div
>
<
div
className=
{
"damageProductList"
}
>
<
div
className=
{
"damageProductList"
}
>
{
<
SwiperComponent
reportDamageList
&&
reportDamageList
.
length
>
0
?(
swiperContainer=
{
swiperContainer
}
swiperOptions=
{
swiperOptions
}
swiperCount=
{
swiperCount
}
<
SwiperComponent
>
swiperContainer=
{
swiperContainer
}
swiperOptions=
{
swiperOptions
}
swiperCount=
{
swiperCount
}
{
reportDamageListUi
}
>
</
SwiperComponent
>
{
reportDamageListUi
}
</
div
>
</
SwiperComponent
>
<
div
className=
{
"opeationContainer clearfix"
}
>
):(
"请点击录入更多添加报损商品"
)
<
button
onClick=
{
this
.
hanleAddMoreClick
.
bind
(
this
)
}
className=
{
"addMoreBtn"
}
><
span
>
+
</
span
>
录入更多
</
button
>
}
<
button
onClick=
{
this
.
handleNoMoreClick
.
bind
(
this
)
}
className=
{
"noMoreBtn"
}
>
没有更多
</
button
>
</
div
>
</
div
>
<
div
className=
{
"opeationContainer clearfix"
}
>
<
button
onClick=
{
this
.
hanleAddMoreClick
.
bind
(
this
)
}
className=
{
"addMoreBtn"
}
><
span
>
+
</
span
>
录入更多
</
button
>
<
button
onClick=
{
this
.
handleNoMoreClick
.
bind
(
this
)
}
className=
{
"noMoreBtn"
}
>
没有更多
</
button
>
</
div
>
</
div
>
):
null
</
div
>
)
)
}
}
}
}
...
...
client/containers/ScanBarCodeContainer/ScanBarCodeContaienr.jsx
View file @
7b38ac04
...
@@ -32,9 +32,10 @@ export default class ScanBarCodeContainer extends React.Component{
...
@@ -32,9 +32,10 @@ export default class ScanBarCodeContainer extends React.Component{
componentWillReceiveProps
(
nextProps
){
componentWillReceiveProps
(
nextProps
){
//显示查询到的商品的数据
//显示查询到的商品的数据
let
{
state
,
changePages
}
=
nextProps
;
let
{
state
,
changePages
}
=
nextProps
;
let
{
scanBarCode
,
userInfo
,
storeInfo
,
refreshImg
}
=
state
;
let
{
scanBarCode
,
userInfo
,
storeInfo
,
refreshImg
,
errMsg
}
=
state
;
let
productInfo
=
state
.
scanBarCode
;
let
productInfo
=
state
.
scanBarCode
;
let
{
inventorylossId
,
skuBaseInfoVo
,
packingList
,
positionList
,
data_currentProblemObj
,
submit
}
=
productInfo
;
let
{
inventorylossId
,
skuBaseInfoVo
,
packingList
,
positionList
,
data_currentProblemObj
,
submit
}
=
productInfo
;
let
{
clearProductSuccess
}
=
this
.
props
if
(
submit
){
if
(
submit
){
changePages
(
CONFIG
.
showPage
[
3
])
changePages
(
CONFIG
.
showPage
[
3
])
}
}
...
@@ -51,18 +52,25 @@ export default class ScanBarCodeContainer extends React.Component{
...
@@ -51,18 +52,25 @@ export default class ScanBarCodeContainer extends React.Component{
handleSaveEditProductInfo
=
{
this
.
handleSaveEditProductInfo
.
bind
(
this
)}
handleSaveEditProductInfo
=
{
this
.
handleSaveEditProductInfo
.
bind
(
this
)}
refreshImg
=
{
refreshImg
}
refreshImg
=
{
refreshImg
}
changePages
=
{
changePages
}
changePages
=
{
changePages
}
clearProductSuccess
=
{
clearProductSuccess
}
/>
/>
if
(
scanBarCode
.
skuBaseInfoVo
&&
scanBarCode
.
skuBaseInfoVo
.
skuId
&&
this
.
state
.
showProductInfo
){
if
(
scanBarCode
.
skuBaseInfoVo
&&
scanBarCode
.
skuBaseInfoVo
.
skuId
&&
(
!
errMsg
.
errMsg
||
errMsg
.
errMsg
==
""
)
){
this
.
setState
({
this
.
setState
({
popupInfo
:{
popupInfo
:{
showPopup
:
true
,
showPopup
:
true
,
popupChild
:
productDetailUi
popupChild
:
productDetailUi
}
},
showProductInfo
:
true
})
})
}
}
if
(
errMsg
.
errMsg
){
showProductInfo
:
false
}
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
console
.
log
(
"===============submitProductSuccess==============="
);
let
{
submitProductSuccess
}
=
this
.
props
;
let
{
submitProductSuccess
}
=
this
.
props
;
submitProductSuccess
({
"submit"
:
false
})
submitProductSuccess
({
"submit"
:
false
})
}
}
...
@@ -97,14 +105,7 @@ export default class ScanBarCodeContainer extends React.Component{
...
@@ -97,14 +105,7 @@ export default class ScanBarCodeContainer extends React.Component{
postData
.
taskId
=
headerInfo
.
taskId
?
Number
(
headerInfo
.
taskId
):
Number
(
"1"
);
postData
.
taskId
=
headerInfo
.
taskId
?
Number
(
headerInfo
.
taskId
):
Number
(
"1"
);
postData
.
sellOrderId
=
headerInfo
.
sellOrderId
?
Number
(
headerInfo
.
sellOrderId
):
Number
(
21
);
postData
.
sellOrderId
=
headerInfo
.
sellOrderId
?
Number
(
headerInfo
.
sellOrderId
):
Number
(
21
);
postData
.
skuBarcode
=
String
(
this
.
state
.
barCodeValue
);
postData
.
skuBarcode
=
String
(
this
.
state
.
barCodeValue
);
//设置弹窗显示:
getProductInfo
(
postData
)
this
.
setState
({
showProductInfo
:
true
},()
=>
{
//发送查询action
getProductInfo
(
postData
)
})
}
}
// 点击再次再次尝试
// 点击再次再次尝试
...
@@ -138,8 +139,6 @@ export default class ScanBarCodeContainer extends React.Component{
...
@@ -138,8 +139,6 @@ export default class ScanBarCodeContainer extends React.Component{
handleAddImg
(){
handleAddImg
(){
let
{
state
}
=
this
.
props
;
let
{
state
}
=
this
.
props
;
let
{
storeInfo
,
scanBarCode
}
=
state
;
let
{
storeInfo
,
scanBarCode
}
=
state
;
console
.
log
(
scanBarCode
);
console
.
log
(
"+===================scanBarcode=============="
)
let
tmpUrl
=
""
;
let
tmpUrl
=
""
;
tmpUrl
=
`
${
ENV
.
uploadImg
}
/
${
scanBarCode
.
inventorylossId
}
/
${
this
.
state
.
taskTy
}
`
tmpUrl
=
`
${
ENV
.
uploadImg
}
/
${
scanBarCode
.
inventorylossId
}
/
${
this
.
state
.
taskTy
}
`
this
.
setState
({
this
.
setState
({
...
@@ -171,15 +170,6 @@ export default class ScanBarCodeContainer extends React.Component{
...
@@ -171,15 +170,6 @@ export default class ScanBarCodeContainer extends React.Component{
let
packingStatusImageIds
=
data
.
data_currentProblemObj
;
let
packingStatusImageIds
=
data
.
data_currentProblemObj
;
data
.
taskId
=
headerInfo
.
taskId
?
Number
(
headerInfo
.
taskId
):
Number
(
500
)
data
.
taskId
=
headerInfo
.
taskId
?
Number
(
headerInfo
.
taskId
):
Number
(
500
)
submitProductInfo
(
data
);
submitProductInfo
(
data
);
/* changePages(CONFIG.showPage[3])*/
//让弹窗消失
//让弹窗消失
/*this.setState({
showProductInfo:false,
popupInfo:{
"showPopup":false,
}
})*/
}
}
render
()
{
render
()
{
let
{
state
}
=
this
.
props
;
let
{
state
}
=
this
.
props
;
...
@@ -197,11 +187,6 @@ export default class ScanBarCodeContainer extends React.Component{
...
@@ -197,11 +187,6 @@ export default class ScanBarCodeContainer extends React.Component{
userinfo=
{
userInfo
}
userinfo=
{
userInfo
}
storeInfo=
{
storeInfo
}
storeInfo=
{
storeInfo
}
/>
/>
{
this
.
state
.
showPopup
?(
<
PopupComponent
popupInfo
=
{
this
.
state
.
popupInfo
}
/>
):
""
}
<
div
className=
{
"container"
}
>
<
div
className=
{
"container"
}
>
<
div
className=
{
"inputContaienr"
}
>
<
div
className=
{
"inputContaienr"
}
>
<
input
<
input
...
...
client/containers/ScanBarCodeContainer/index.css
View file @
7b38ac04
...
@@ -61,9 +61,11 @@ input:-ms-input-placeholder, textarea:-ms-input-placeholder {
...
@@ -61,9 +61,11 @@ input:-ms-input-placeholder, textarea:-ms-input-placeholder {
/*商品弹窗样式start*/
/*商品弹窗样式start*/
.scanBarCodeContainer
.productContainer
{
.scanBarCodeContainer
.productContainer
{
position
:
absolute
;
position
:
absolute
;
left
:
75px
;
left
:
50%
;
top
:
8px
;
top
:
50%
;
background-color
:
#fff
;
background-color
:
#fff
;
transform
:
translate
(
-50%
,
-50%
);
}
}
/*.scanBarCodeContainer .productContainer{
/*.scanBarCodeContainer .productContainer{
...
...
client/reducers/scanBarCode.js
View file @
7b38ac04
...
@@ -14,6 +14,11 @@ function submitSuccess(state,data) {
...
@@ -14,6 +14,11 @@ function submitSuccess(state,data) {
return
newInfo
;
return
newInfo
;
}
}
function
clearSuccess
(
state
,
data
)
{
let
newInfo
=
Object
.
assign
({},
state
);
newInfo
=
data
;
return
newInfo
;
}
function
saveInfoSuccess
(
state
,
data
)
{
function
saveInfoSuccess
(
state
,
data
)
{
if
(
data
.
type
==
"productPosition"
){
if
(
data
.
type
==
"productPosition"
){
currentProductInfo
.
lossPostion
=
data
.
data
;
currentProductInfo
.
lossPostion
=
data
.
data
;
...
@@ -37,6 +42,8 @@ export default function(state={}, action) {
...
@@ -37,6 +42,8 @@ export default function(state={}, action) {
return
submitSuccess
(
state
,
action
.
data
)
return
submitSuccess
(
state
,
action
.
data
)
case
actionTypes
.
SAVE_PRODUCTEDITINFO_SUCCESS
:
case
actionTypes
.
SAVE_PRODUCTEDITINFO_SUCCESS
:
return
saveInfoSuccess
(
state
,
action
.
data
)
return
saveInfoSuccess
(
state
,
action
.
data
)
case
actionTypes
.
ClEAR_PRODUCT_SUCCESS
:
return
clearSuccess
(
state
,
action
.
data
)
default
:
default
:
return
state
;
return
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