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
37c0c896
authored
May 18, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
消耗详情按钮
parent
e1e8052b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
2 deletions
src/pages/consume/consumables.styl
src/pages/consume/consumables.tsx
src/pages/consume/consumables.styl
View file @
37c0c896
...
...
@@ -28,13 +28,19 @@
margin-left 5px
.list
padding 20px
padding 0 20px
&-view
flex 1
// padding 20px 0
padding-top 20px
background-color home_background_color
&-item
width 100%
background-color #fff
padding 10px
margin-bottom 20px
@extend .row
@extend .center
...
...
@@ -59,3 +65,39 @@
font-size third_text_size
color list_thr_color
font-family font_family_regular
.footer
height 88px
width 100%
background-color #fff
@extend .middle
@extend .center
&-btn
@extend .row
@extend .center
width 342px
height 52px
border-radius 10px
background-color rgba(79, 79, 79, 1)
overflow hidden
&__selected
@extend .row
padding-left 20px
flex 1
&-text
font-size 18px
color btn_color
font-family font_family_medium
&__confirm
width 116px
height 100%
background-color primary_color
@extend .center
@extend .middle
.mr10
margin-right 10px
src/pages/consume/consumables.tsx
View file @
37c0c896
...
...
@@ -9,7 +9,15 @@
*
*/
import
React
,
{
Component
}
from
'react'
import
{
View
,
Text
,
Image
,
TextInput
,
FlatList
,
TouchableWithoutFeedback
}
from
'react-native'
import
{
View
,
Text
,
Image
,
TextInput
,
FlatList
,
TouchableWithoutFeedback
,
TouchableOpacity
,
}
from
'react-native'
import
{
inject
,
observer
}
from
'mobx-react'
import
{
IFormField
,
ISurgeryCollectLine
}
from
'bonehouse'
import
*
as
R
from
'ramda'
...
...
@@ -233,6 +241,7 @@ class Consumables extends Component<IProps, IState> {
{
loading
&&
<
Text
>
加载中
</
Text
>
}
{
/* 借货单行列表 */
}
<
View
style=
{
g
(
styles
,
'list-view'
)
}
>
<
FlatList
renderItem=
{
this
.
_renderItem
.
bind
(
this
)
}
data=
{
lines
}
...
...
@@ -240,6 +249,24 @@ class Consumables extends Component<IProps, IState> {
style=
{
g
(
styles
,
'list'
)
}
/>
</
View
>
<
View
style=
{
[
g
(
styles
,
'footer'
),
{
shadowColor
:
'#ccc'
,
shadowOffset
:
{
height
:
-
6
},
shadowOpacity
:
0.3
},
]
}
>
<
View
style=
{
g
(
styles
,
'footer-btn'
)
}
>
<
TouchableOpacity
style=
{
g
(
styles
,
'footer-btn__selected'
)
}
activeOpacity=
{
0.8
}
>
<
Text
style=
{
g
(
styles
,
'footer-btn__selected-text'
,
'mr10'
)
}
>
已选:
</
Text
>
<
Text
style=
{
g
(
styles
,
'footer-btn__selected-text'
)
}
>
{
R
.
length
(
selectedLines
)
}
</
Text
>
</
TouchableOpacity
>
<
TouchableOpacity
style=
{
g
(
styles
,
'footer-btn__confirm'
)
}
activeOpacity=
{
0.8
}
>
<
Text
style=
{
g
(
styles
,
'footer-btn__selected-text'
)
}
>
确定耗材
</
Text
>
</
TouchableOpacity
>
</
View
>
</
View
>
</
View
>
)
}
}
...
...
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