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
30835c4d
authored
Apr 29, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
APP提报消耗选择明细时非序列不展示,增加生产批号、生产序号、生产日期、过期日期等字段展示
parent
6d18288b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
20 deletions
app/containers/equipConsu/module/ConsumDetailsPage.js
app/containers/equipConsu/module/ConsumDetailsPage.js
View file @
30835c4d
...
...
@@ -11,6 +11,7 @@ import LodingModel from '../../common/LodingModel';
import
{
exitLoginStatus
}
from
'../../../action/LoginAction'
;
import
{
OBS_MOBILE_EQU_CON_DISPLAY_PRICE
}
from
'../../../base/BaseConstants'
;
import
{
LOGIN_NO
}
from
'../../../base/ActionTypes'
;
import
moment
from
'moment'
;
const
CONSUM_SEARCH_VALUE_BAR_CODE
=
'CONSUM_SEARCH_VALUE_BAR_CODE'
;
...
...
@@ -18,7 +19,7 @@ const CONSUM_SEARCH_VALUE_BAR_CODE = 'CONSUM_SEARCH_VALUE_BAR_CODE';
class
ConsumDetailsPage
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
this
.
state
=
{
searchValue
:
''
,
conDetaOption
:
[],
allConOption
:
[],
// 所有数据(未筛选过的)
...
...
@@ -48,7 +49,7 @@ class ConsumDetailsPage extends Component {
case
LOGIN_NO
:
navigation
.
navigate
(
'LoginPage'
)
break
;
default
:
default
:
break
;
}
}
...
...
@@ -113,7 +114,7 @@ class ConsumDetailsPage extends Component {
// 满足搜索条件
tempArr
.
push
(
item
)
}
})
})
}
else
{
tempArr
=
[...
allConOption
]
}
...
...
@@ -212,7 +213,7 @@ class ConsumDetailsPage extends Component {
handleSubSelected
(
show
)
{
this
.
handleCloseSelectModal
(
true
)
}
// 点击 确定耗材
handleSubmit
()
{
this
.
handleCloseSelectModal
(
false
)
...
...
@@ -270,7 +271,7 @@ class ConsumDetailsPage extends Component {
keyExtractor
=
{
item
=>
item
.
id
}
data
=
{
this
.
state
.
conDetaOption
}
extraData
=
{
this
.
state
}
renderItem
=
{
({
item
,
index
})
=>
this
.
renderSubListItem
(
item
,
index
)
}
renderItem
=
{
({
item
,
index
})
=>
this
.
renderSubListItem
(
item
,
index
)
}
/
>
<
/ScrollView
>
)
...
...
@@ -284,7 +285,7 @@ class ConsumDetailsPage extends Component {
style
=
{
styles
.
cons_sub_list
}
onPress
=
{()
=>
this
.
handleSubSelectCheck
(
index
,
!
item
.
select
)}
>
<
View
style
=
{
styles
.
sub_list_lef
}
>
{
item
.
select
?
{
item
.
select
?
<
View
style
=
{
styles
.
sub_icon_box
}
// onPress={() => this.handleCelSelCheck(item, index)}
...
...
@@ -300,19 +301,31 @@ class ConsumDetailsPage extends Component {
<
/View
>
<
View
style
=
{
styles
.
sub_list_rig
}
>
<
Text
style
=
{
styles
.
rig_tit
}
>
{
index
+
1
}.
{
item
.
manufacturer_product_code
?
item
.
manufacturer_product_code
:
'厂家产品代码无'
}
{
index
+
1
}.
{
item
.
manufacturer_product_code
||
'无厂家产品代码'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_str
]}
numberOfLines
=
{
1
}
>
物料名称
:
{
item
.
item_name
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_one
]}
numberOfLines
=
{
1
}
>
通用名称
:
{
item
.
general_name
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_one
]}
numberOfLines
=
{
1
}
>
规格型号:
{
item
.
specification
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_thr
]}
numberOfLines
=
{
1
}
>
序列号:
{
item
.
serial_number_v
||
item
.
serial_number
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_
str
]
}
>
物料名称
:
{
item
.
item_name
?
item
.
item_name
:
'无'
}
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_
thr
]}
numberOfLines
=
{
1
}
>
生产批号:
{
item
.
production_batch_number
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_
one
]
}
>
通用名称
:
{
item
.
general_name
?
item
.
general_name
:
'无'
}
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_
thr
]}
numberOfLines
=
{
1
}
>
生产序号:
{
item
.
production_serial_number
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_
one
]
}
>
规格型号:
{
item
.
specification
?
item
.
specification
:
'无'
}
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_
thr
]}
numberOfLines
=
{
1
}
>
生产日期:
{
item
.
production_date
&&
moment
(
item
.
production_date
).
format
(
'YYYY-MM-DD'
)
||
'无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_thr
]}
>
序列号:
{
item
.
serial_number
?
item
.
serial_number
:
'无'
}
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_thr
]}
numberOfLines
=
{
1
}
>
过期日期:
{
item
.
expiration_date
&&
moment
(
item
.
expiration_date
).
format
(
'YYYY-MM-DD'
)
||
'无'
}
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
...
...
@@ -363,7 +376,7 @@ class ConsumDetailsPage extends Component {
render
()
{
let
{
navigation
}
=
this
.
props
let
{
title
}
=
navigation
.
state
.
params
return
(
return
(
<
View
style
=
{
styles
.
cu_dl_container
}
>
<
StatusBarView
isReactStackNavigator
=
{
true
}
...
...
@@ -396,9 +409,9 @@ const styles = StyleSheet.create({
},
list_cont
:
{
flex
:
1
},
},
item_container
:
{
flex
:
1
flex
:
1
},
cons_cont_scroll
:
{},
cons_cont
:
{
...
...
@@ -430,7 +443,7 @@ const styles = StyleSheet.create({
},
rig_ser
:
{
fontSize
:
third_text_size
,
fontFamily
:
font_family_regular
fontFamily
:
font_family_regular
,
},
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
...
...
@@ -476,5 +489,5 @@ const mapDispatchToProps = (dispatch) => {
}
}
}
export
default
connect
(
mapStateToProps
,
mapDispatchToProps
)(
ConsumDetailsPage
);
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