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
de4dcb5c
authored
May 20, 2020
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加【器械消耗】模块需要的组件
parent
7f6c648e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
25 deletions
app/Router.js
app/containers/equipConsu/EquipConsuPage.js
app/containers/equipConsu/module/ConsumDetailsPage.js
app/containers/equipConsu/module/DetailsModel.js
app/Router.js
View file @
de4dcb5c
...
...
@@ -13,6 +13,7 @@ import ChooseProductPage from './containers/selfOrder/module/ChooseProductPage';
import
EditStencilPage
from
'./containers/selfOrder/module/EditStencilPage'
;
import
SubSuccessPage
from
'./containers/selfOrder/module/SubSuccessPage'
;
import
EquipConsuPage
from
'./containers/equipConsu/EquipConsuPage'
;
import
ConsumDetailsPage
from
'./containers/equipConsu//module/ConsumDetailsPage'
;
import
QuickOrderPage
from
'./containers/quickOrder/QuickOrderPage'
;
import
TransOrderPage
from
'./containers/transOrder/TransOrderPage'
;
import
TransSearchPage
from
'./containers/transOrder/module/TransSearchPage'
;
...
...
@@ -26,6 +27,7 @@ const Router = createAppContainer(createStackNavigator({
EditStencilPage
:
{
screen
:
EditStencilPage
},
SubSuccessPage
:
{
screen
:
SubSuccessPage
},
EquipConsuPage
:
{
screen
:
EquipConsuPage
},
ConsumDetailsPage
:
{
screen
:
ConsumDetailsPage
},
QuickOrderPage
:
{
screen
:
QuickOrderPage
},
TransOrderPage
:
{
screen
:
TransOrderPage
},
TransSearchPage
:
{
screen
:
TransSearchPage
},
...
...
app/containers/equipConsu/EquipConsuPage.js
View file @
de4dcb5c
...
...
@@ -326,9 +326,9 @@ class EquipConsuPage extends Component {
// 耗材明细 点击
handleConsumDetailCheck
()
{
console
.
warn
(
'耗材明细------check'
)
// this.props.navigation.navigate('TransSearch
Page', {
//
title: '器械消耗 - 添加明细'
//
})
this
.
props
.
navigation
.
navigate
(
'ConsumDetails
Page'
,
{
title
:
'器械消耗 - 添加明细'
})
}
// 添加图片 点击
...
...
@@ -344,18 +344,6 @@ class EquipConsuPage extends Component {
// 返回备注以上的元素
renderListItem
()
{
let
{
listOptionData
,
dateModelPop
}
=
this
.
state
let
{
userInfo
:{
person_name
}}
=
this
.
props
if
(
!
isEmpty
(
person_name
))
{
// this.setState({
// listOptionData: listOptionData.map(item => {
// if(item.title === '销售员') {
// item.name = person_name
// item.value = person_name
// }
// return item
// })
// })
}
return
(
<
View
style
=
{
styles
.
list_cont
}
>
...
...
@@ -366,7 +354,7 @@ class EquipConsuPage extends Component {
<
CellTextStyle
>
<
AsteriskTextStyle
>*<
/AsteriskTextStyle
>
<
TitleTextStyle
>
{
'销售员'
}
<
/TitleTextStyle
>
<
ContInputTextStyle
editable
=
{
false
}
defaultValue
=
{
listOptionData
[
0
].
valu
e
}
><
/ContInputTextStyle
>
<
ContInputTextStyle
editable
=
{
false
}
defaultValue
=
{
listOptionData
[
0
].
nam
e
}
><
/ContInputTextStyle
>
<
/CellTextStyle
>
<
/TouchableOpacity
>
<
/View
>
...
...
@@ -648,7 +636,7 @@ class EquipConsuPage extends Component {
{
state
.
listOptionData
[
12
].
isShowSub
?
<
View
style
=
{
list_common_item
.
detail_sub_inner
}
>
<
ScrollView
{
/*
<ScrollView
style={list_common_item.detail_scroll}
onPress={() => {console.log('--触碰---')}}
onScrollBeginDrag={() => {console.log('--滚动---')}}
...
...
@@ -659,7 +647,12 @@ class EquipConsuPage extends Component {
return this.renderConDeSubItem(item, index)
})
}
<
/ScrollView
>
</ScrollView> */
}
{
state
.
listOptionData
[
12
].
subOption
.
map
((
item
,
index
)
=>
{
return
this
.
renderConDeSubItem
(
item
,
index
)
})
}
<
/View> : nul
l
}
<
/View> : nul
l
...
...
@@ -746,19 +739,12 @@ class EquipConsuPage extends Component {
style
=
{
styles
.
equip_main
}
showsVerticalScrollIndicator
=
{
false
}
>
<
Text
>
'器械消耗'
<
/Text
>
{
this
.
renderListItem
()}
{
this
.
renderRemarksItem
()}
{
this
.
renderConsumablesDetailsItem
()}
{
this
.
renderAddPicturesItem
()}
<
/ScrollView
>
<
/SafeAreaView
>
<
FooterBtnStyle
style
=
{
canSubFlag
?
styles
.
sub_btn_pro
:
''
}
activeOpacity
=
{
canSubFlag
?
.
8
:
1
}
...
...
@@ -766,6 +752,9 @@ class EquipConsuPage extends Component {
textStyle
=
{
styles
.
sub_btn
}
onPress
=
{()
=>
this
.
handleSubmit
()}
/
>
<
/ScrollView
>
<
/SafeAreaView
>
<
/View
>
);
}
...
...
app/containers/equipConsu/module/ConsumDetailsPage.js
0 → 100644
View file @
de4dcb5c
This diff is collapsed.
Click to expand it.
app/containers/equipConsu/module/DetailsModel.js
0 → 100644
View file @
de4dcb5c
This diff is collapsed.
Click to expand it.
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