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
89e379a7
authored
May 26, 2022
by
lhc
1
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 修复全局搜索后生成订单没加入商品的问题
parent
a311bae1
Hide 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 @
89e379a7
This diff could not be displayed because it is too large.
app/containers/selfOrder/module/SearchPage.js
View file @
89e379a7
...
...
@@ -22,6 +22,7 @@ import { connect } from 'react-redux'
import
LoadingModel
from
'../../common/listDataComponent/LoadingModel'
import
{
Width
}
from
'../../../base/BaseStyle'
import
{
show
}
from
'../../../utils/Utils'
import
*
as
R
from
'ramda'
class
SearchPage
extends
Component
{
constructor
(
props
)
{
super
(
props
)
...
...
@@ -302,6 +303,13 @@ class SearchPage extends Component {
[
LocalVariable
.
SELECTED_QUQNTITY
]:
topProcOptionList
[
topActiveIndex
][
LocalVariable
.
SELECTED_QUQNTITY
]
+
1
,
leftOptionList
:
leftOptionList
.
map
(
ele
=>
{
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
)
return
{
...
ele
,
...
...
lhc
@lhc
mentioned in commit
28295252
May 26, 2022
mentioned in commit
28295252
mentioned in commit 28295252f51aee091cd35af6b30b100b77ec616f
Toggle commit list
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