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
3878bca4
authored
May 25, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
消耗汇总
parent
30a28f13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
app/base/BaseStyle.js
app/containers/equipConsu/EquipConsuPage.js
app/base/BaseStyle.js
View file @
3878bca4
...
@@ -228,6 +228,10 @@ export const list_common_item = {
...
@@ -228,6 +228,10 @@ export const list_common_item = {
detail_inner
:
{
detail_inner
:
{
flex
:
1
flex
:
1
},
},
detail_title_box
:
{
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
},
detail_tit
:
{
detail_tit
:
{
fontSize
:
second_text_size
,
fontSize
:
second_text_size
,
color
:
'#A3A3A3'
,
color
:
'#A3A3A3'
,
...
...
app/containers/equipConsu/EquipConsuPage.js
View file @
3878bca4
...
@@ -1357,6 +1357,15 @@ class EquipConsuPage extends Component {
...
@@ -1357,6 +1357,15 @@ class EquipConsuPage extends Component {
})
})
}
}
consumeSum
()
{
try
{
const
{
listOptionData
}
=
this
.
state
return
R
.
compose
(
R
.
sum
,
R
.
pluck
(
'local_add_price'
),
R
.
pathOr
([],
[
12
,
'subOption'
]))(
listOptionData
)
}
catch
(
error
)
{
return
0
}
}
// 返回备注以上的元素
// 返回备注以上的元素
renderListItem
()
{
renderListItem
()
{
let
{
listOptionData
,
dateModelPop
,
sysValues
}
=
this
.
state
let
{
listOptionData
,
dateModelPop
,
sysValues
}
=
this
.
state
...
@@ -1618,10 +1627,16 @@ class EquipConsuPage extends Component {
...
@@ -1618,10 +1627,16 @@ class EquipConsuPage extends Component {
// 返回耗材明细
// 返回耗材明细
renderConsumablesDetailsItem
()
{
renderConsumablesDetailsItem
()
{
let
{
state
}
=
this
let
{
state
}
=
this
const
sum
=
this
.
consumeSum
()
return
(
return
(
<
CellTextStyle
style
=
{
list_common_item
.
consu_detail
}
>
<
CellTextStyle
style
=
{
list_common_item
.
consu_detail
}
>
<
View
style
=
{
list_common_item
.
detail_inner
}
>
<
View
style
=
{
list_common_item
.
detail_inner
}
>
<
View
style
=
{
list_common_item
.
detail_title_box
}
>
<
Text
style
=
{
list_common_item
.
detail_tit
}
>
耗材明细
<
/Text
>
<
Text
style
=
{
list_common_item
.
detail_tit
}
>
耗材明细
<
/Text
>
<
Text
style
=
{
list_common_item
.
detail_tit
}
>
总金额
(
¥
)
:
{
sum
}
<
/Text
>
<
/View
>
{
{
state
.
listOptionData
[
12
].
subOption
.
length
?
state
.
listOptionData
[
12
].
subOption
.
length
?
<
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