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
c547c435
authored
Oct 21, 2022
by
peii
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
【BUG】全局搜索bug修复
parent
9724c77e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
app/containers/selfOrder/module/ChooseProductPage.js
app/containers/selfOrder/module/SearchPage.js
app/reducers/module/mixConsume.js
app/containers/selfOrder/module/ChooseProductPage.js
View file @
c547c435
...
...
@@ -133,9 +133,17 @@ class ChooseProductPage extends Component {
handleGoBack
()
{
let
{
topProcOptionList
,
originManufacterList
}
=
this
.
state
let
{
setSelectProductOpts
}
=
this
.
props
setSelectProductOpts
(
originManufacterList
)
console
.
log
(
'originManufacterList'
,
originManufacterList
)
this
.
props
.
navigation
.
state
.
params
.
productCallBack
(
originManufacterList
)
const
res
=
R
.
map
(
item
=>
{
const
topItem
=
R
.
find
(
R
.
propEq
(
'supplier_code'
,
item
.
supplier_code
))(
topProcOptionList
)
if
(
isNotBlank
(
topItem
))
{
item
=
R
.
mergeDeepLeft
(
topItem
,
item
)
}
return
item
})(
originManufacterList
)
setSelectProductOpts
(
res
)
this
.
props
.
navigation
.
state
.
params
.
productCallBack
(
res
)
this
.
props
.
navigation
.
goBack
()
}
...
...
app/containers/selfOrder/module/SearchPage.js
View file @
c547c435
...
...
@@ -133,6 +133,7 @@ class SearchPage extends Component {
this
.
refs
.
LoadingModel
.
hide
()
console
.
log
(
'single_all_search'
,
single_all_search
)
const
oldData
=
data
.
item
this
.
setState
({
data
:
{
...
single_all_search
?.
data
,
...
...
@@ -329,6 +330,7 @@ class SearchPage extends Component {
show
(
'添加成功'
)
},
)
console
.
log
(
JSON
.
stringify
(
topProcOptionList
));
return
Promise
.
resolve
(
topProcOptionList
)
}
...
...
app/reducers/module/mixConsume.js
View file @
c547c435
...
...
@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/app/reducers/module/mixConsume.js
* @Author: PEII
* @Date: 2022-08-04 17:28:07
* @LastEditTime: 2022-10-
12 15:49:35
* @LastEditTime: 2022-10-
21 12:54:50
* @LastEditors: PEII
* @Vision: 1.0
* @Description: 混单消耗
...
...
@@ -15,7 +15,6 @@ const initState = {
}
export
default
(
state
=
initState
,
action
)
=>
{
console
.
log
(
action
)
switch
(
action
.
type
)
{
case
SET_MIX_CONSUME_ORDERS
:
return
Object
.
assign
({},
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