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
a36be8c0
authored
Oct 21, 2022
by
peii
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
报单消耗搜索事件
parent
c547c435
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
src/pages/mix_consume/components/search.tsx
src/pages/mix_consume/consumeItems.tsx
src/pages/mix_consume/components/search.tsx
View file @
a36be8c0
...
...
@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/src/pages/mix_consume/components/search.tsx
* @Author: PEII
* @Date: 2022-08-02 18:14:35
* @LastEditTime: 2022-
08-04 16:09:34
* @LastEditTime: 2022-
10-21 14:59:47
* @LastEditors: PEII
* @Vision: 1.0
* @Description: 搜索
...
...
@@ -25,7 +25,9 @@ export default ({ children, search, placeholder, onChange }) => {
clearButtonMode=
"always"
clearTextOnFocus=
{
true
}
/>
<
TouchableOpacity
activeOpacity=
{
0.8
}
onPress=
{
()
=>
search
&&
search
()
}
>
<
Image
source=
{
require
(
'../../../assets/images/search_icon.png'
)
}
style=
{
g
(
styles
,
'search-icon'
)
}
></
Image
>
</
TouchableOpacity
>
</
View
>
{
children
}
</
View
>
...
...
src/pages/mix_consume/consumeItems.tsx
View file @
a36be8c0
...
...
@@ -2,7 +2,7 @@
* @FilePath: /BoneHouse_Business_APP/src/pages/mix_consume/consumeItems.tsx
* @Author: PEII
* @Date: 2022-10-10 14:09:04
* @LastEditTime: 2022-10-
13 17:39:42
* @LastEditTime: 2022-10-
21 14:57:58
* @LastEditors: PEII
* @Vision: 1.0
* @Description: 扫码消耗项
...
...
@@ -35,6 +35,7 @@ class ConsumeItems extends React.Component<IProps> {
lines
:
[],
loading
:
false
,
submiting
:
false
,
searchValue
:
''
,
}
componentDidMount
():
void
{
...
...
@@ -135,11 +136,18 @@ class ConsumeItems extends React.Component<IProps> {
navigation
.
goBack
()
}
}
/>
<
Searchbar
placeholder=
"输入或扫描RFID序列号"
>
<
Searchbar
placeholder=
"输入或扫描RFID序列号"
onChange=
{
e
=>
{
this
.
setState
({
searchValue
:
e
})
}
}
search=
{
()
=>
{
this
.
requestItemBySrialNumber
(
this
.
state
.
searchValue
)
}
}
>
<
TouchableOpacity
activeOpacity=
{
0.8
}
onPress=
{
()
=>
{
console
.
log
(
'modal'
)
navigation
.
navigate
(
'BarCodePage'
,
{
title
:
'扫描RFID序列号'
,
supPage
:
{
pageName
:
'MixConsumeItems'
,
title
},
...
...
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