Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangzhonghua
/
BoneHouse_Business_APP
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
28295252
authored
May 26, 2022
by
lhc
Committed by
peii
May 26, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 修复全局搜索后生成订单没加入商品的问题
(cherry picked from commit
89e379a7
)
parent
d1514eb6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
app/containers/selfOrder/SelfOrderPage.js
app/containers/selfOrder/module/SearchPage.js
app/containers/selfOrder/SelfOrderPage.js
View file @
28295252
This diff is collapsed.
Click to expand it.
app/containers/selfOrder/module/SearchPage.js
View file @
28295252
...
@@ -22,6 +22,7 @@ import { connect } from 'react-redux'
...
@@ -22,6 +22,7 @@ import { connect } from 'react-redux'
import
LoadingModel
from
'../../common/listDataComponent/LoadingModel'
import
LoadingModel
from
'../../common/listDataComponent/LoadingModel'
import
{
Width
}
from
'../../../base/BaseStyle'
import
{
Width
}
from
'../../../base/BaseStyle'
import
{
show
}
from
'../../../utils/Utils'
import
{
show
}
from
'../../../utils/Utils'
import
*
as
R
from
'ramda'
class
SearchPage
extends
Component
{
class
SearchPage
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
)
super
(
props
)
...
@@ -302,6 +303,13 @@ class SearchPage extends Component {
...
@@ -302,6 +303,13 @@ class SearchPage extends Component {
[
LocalVariable
.
SELECTED_QUQNTITY
]:
topProcOptionList
[
topActiveIndex
][
LocalVariable
.
SELECTED_QUQNTITY
]
+
1
,
[
LocalVariable
.
SELECTED_QUQNTITY
]:
topProcOptionList
[
topActiveIndex
][
LocalVariable
.
SELECTED_QUQNTITY
]
+
1
,
leftOptionList
:
leftOptionList
.
map
(
ele
=>
{
leftOptionList
:
leftOptionList
.
map
(
ele
=>
{
const
childrenLineData
=
this
.
getChildrenLineData
(
ele
.
localSecondData
)
const
childrenLineData
=
this
.
getChildrenLineData
(
ele
.
localSecondData
)
if
(
!
ele
[
LocalVariable
.
SELECTED_DATA_ARR
])
{
ele
[
LocalVariable
.
SELECTED_DATA_ARR
]
=
[]
}
const
selectData
=
R
.
filter
(
R
.
compose
(
R
.
lt
(
0
),
R
.
prop
(
LocalVariable
.
QUANTITY_FIELD
)))(
ele
[
LocalVariable
.
LOCAL_SECOND_DATA
],
)
ele
.
selectedArr
=
selectData
console
.
log
(
'selectedDataArr'
,
childrenLineData
)
console
.
log
(
'selectedDataArr'
,
childrenLineData
)
return
{
return
{
...
ele
,
...
ele
,
...
...
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