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
4b7600ee
authored
Jan 15, 2021
by
Denglingling
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
完善器械消耗展示内容、转单展示内容,以及token过期退出登录
parent
377709c3
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
184 additions
and
256 deletions
app/containers/common/listDataComponent/PicTitDetaiCalcu.js
app/containers/equipConsu/module/ChargeDetailsPage.js
app/containers/equipConsu/module/ConsumDetailsPage.js
app/containers/equipConsu/module/DetailsModel.js
app/containers/equipConsu/module/FillUnitPricePage.js
app/containers/equipConsu/module/ShowDetailPage.js
app/containers/home/HomePage.js
app/containers/transOrder/TransOrderPage.js
app/containers/transOrder/module/TransDetailsModel.js
app/containers/transOrder/module/TransSearchPage.js
app/containers/common/listDataComponent/PicTitDetaiCalcu.js
View file @
4b7600ee
import
React
,
{
Component
}
from
'react'
;
import
{
StyleSheet
,
Image
,
Text
,
TouchableOpacity
,
View
}
from
'react-native'
;
import
{
connect
}
from
'react-redux'
;
import
{
first_text_color
,
font_family_medium
,
font_family_regular
,
font_family_semibold
,
home_background_color
,
icon_style
,
pxSize
,
second_text_
color
,
second_text_size
,
text_audit_color
,
text_default_color
,
text_other_color
,
text_return_color
,
third_text_color
,
third_text_size
}
from
'../../../base/BaseStyle'
;
import
{
first_text_color
,
font_family_medium
,
font_family_regular
,
font_family_semibold
,
home_background_color
,
icon_style
,
pxSize
,
second_text_
size
,
third_text_color
,
third_text_size
,
list_tit_color
,
list_str_color
,
list_one_color
,
list_thr_color
}
from
'../../../base/BaseStyle'
;
import
PictureZoom
from
'../../common/listDataComponent/PictureZoom'
;
const
PropTypes
=
require
(
'prop-types'
);
...
...
@@ -123,8 +123,6 @@ class PicTitDetaiCalcu extends Component {
cur_photos
[
0
]
=
{
url
:
global_domain_config
+
'/jeecg-boot/sys/common/view/'
+
listItem
[
listImgIcon
]
}
}
// console.log('cur_photos--', cur_photos)
return
(
<
View
style
=
{[
styles
.
ri_inner
,
listStyleBox
]}
>
{(
listImgIcon
&&
cur_photos
.
length
>
0
)
?
...
...
@@ -240,35 +238,21 @@ const styles = StyleSheet.create({
thr_ot
:
{
fontFamily
:
font_family_medium
,
fontSize
:
second_text_size
,
color
:
'rgba(0, 0, 0, 0.87)'
,
// color: text_default_color,
color
:
list_tit_color
,
paddingBottom
:
4
},
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
color
:
'#0CB4E8'
,
// color: '#0CB4E8',
// color: '#02a5ab'
// color: 'rgba(58, 58, 58, 100)'
// color: text_default_color
// color: text_return_color
color
:
list_str_color
},
te_ot_one
:{
color
:
'#1B40B5'
,
// color: '#003BF5',
// color: text_return_color
// color: first_text_color
color
:
list_one_color
},
te_ot_two
:{
color
:
'#1B40B5'
,
// color: '#3B4C82',
// color: '#0080FF',
// color: text_return_color
color
:
list_one_color
},
te_ot_thr
:{
color
:
'#3B4C82'
,
// color: '#0CB4E8',
// color: text_return_color
color
:
list_thr_color
},
oth_img_box
:
{
width
:
pxSize
(
58
),
...
...
@@ -303,9 +287,7 @@ const styles = StyleSheet.create({
paddingHorizontal
:
4
,
paddingVertical
:
4
},
btn_clear_inner
:
{
},
btn_clear_inner
:
{},
icon_cle_btn
:
{
width
:
pxSize
(
22
),
height
:
pxSize
(
22
)
...
...
app/containers/equipConsu/module/ChargeDetailsPage.js
View file @
4b7600ee
...
...
@@ -45,6 +45,19 @@ class ChargeDetailsPage extends Component {
this
.
getChargeType
()
}
componentWillReceiveProps
(
nextProps
)
{
let
{
loginState
,
navigation
}
=
this
.
props
if
(
loginState
!=
nextProps
.
loginState
)
{
switch
(
nextProps
.
loginState
)
{
case
LOGIN_NO
:
navigation
.
navigate
(
'LoginPage'
)
break
;
default
:
break
;
}
}
}
// 获取费用类型
async
getChargeType
()
{
let
{
props
}
=
this
...
...
@@ -499,6 +512,7 @@ const styles = StyleSheet.create({
const
mapStateToProps
=
(
state
)
=>
{
return
{
token
:
state
.
login
.
token
,
loginState
:
state
.
login
.
loginState
,
global_domain_config
:
state
.
login
.
global_domain_config
,
charDetailOption
:
state
.
equip
.
charDetailOption
}
...
...
app/containers/equipConsu/module/ConsumDetailsPage.js
View file @
4b7600ee
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
,
SafeAreaView
,
Image
,
TextInput
,
ScrollView
,
TouchableOpacity
,
FlatList
}
from
'react-native'
;
import
{
home_background_color
,
promary_color
,
safe_view
,
list_common_item
,
icon_style
,
pxSize
,
second_text_size
,
promary_text_color
,
font_family_regular
,
font_family_semibold
,
foundation_color
,
list_tit_color
,
list_str_color
,
list_one_color
,
list_thr_color
,
third_text_size
}
from
'../../../base/BaseStyle'
;
import
{
View
,
Text
,
StyleSheet
,
SafeAreaView
,
Image
,
TextInput
,
ScrollView
,
TouchableOpacity
,
FlatList
}
from
'react-native'
;
import
{
home_background_color
,
promary_color
,
safe_view
,
list_common_item
,
icon_style
,
pxSize
,
second_text_size
,
font_family_regular
,
font_family_semibold
,
foundation_color
,
list_tit_color
,
list_str_color
,
list_one_color
,
list_thr_color
,
third_text_size
}
from
'../../../base/BaseStyle'
;
import
StatusBarView
from
'../../common/StatusBarView'
;
import
HeadBackItem
from
'../../common/HeadBackItem'
;
import
DetailsModel
from
'./DetailsModel'
;
import
{
requestEquipDetails
}
from
'../../../action/EquipAction'
;
import
{
requestEquipDetails
}
from
'../../../action/EquipAction'
;
import
{
connect
}
from
'react-redux'
;
import
{
show
}
from
'../../../utils/Utils'
;
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'
;
const
CONSUM_SEARCH_VALUE_BAR_CODE
=
'CONSUM_SEARCH_VALUE_BAR_CODE'
;
...
...
@@ -46,6 +35,7 @@ class ConsumDetailsPage extends Component {
componentWillReceiveProps
(
nextProps
)
{
let
{
barCodeData
}
=
nextProps
.
navigation
.
state
.
params
let
{
loginState
,
navigation
}
=
this
.
props
let
that
=
this
if
(
barCodeData
&&
barCodeData
.
typeValue
&&
barCodeData
.
typeName
==
CONSUM_SEARCH_VALUE_BAR_CODE
)
{
that
.
setState
({
...
...
@@ -53,6 +43,15 @@ class ConsumDetailsPage extends Component {
})
that
.
handleSearchInput
(
barCodeData
.
typeValue
)
}
if
(
loginState
!=
nextProps
.
loginState
)
{
switch
(
nextProps
.
loginState
)
{
case
LOGIN_NO
:
navigation
.
navigate
(
'LoginPage'
)
break
;
default
:
break
;
}
}
}
// 获取当前订单的消耗明细
...
...
@@ -72,7 +71,7 @@ class ConsumDetailsPage extends Component {
return
fiItem
.
raised_consume
!=
'Y'
})
if
(
lines
.
length
==
0
)
{
show
(
'当前明细数据为空,请重
现
选择订单'
)
show
(
'当前明细数据为空,请重
新
选择订单'
)
}
else
{
let
{
subDetOption
}
=
this
.
props
// 【器械消耗】已存在的明细
lines
.
length
&&
lines
.
forEach
((
chItem
,
chInd
)
=>
{
...
...
@@ -285,21 +284,19 @@ class ConsumDetailsPage extends Component {
style
=
{
styles
.
cons_sub_list
}
onPress
=
{()
=>
this
.
handleSubSelectCheck
(
index
,
!
item
.
select
)}
>
<
View
style
=
{
styles
.
sub_list_lef
}
>
{
item
.
select
?
<
View
{
item
.
select
?
<
View
style
=
{
styles
.
sub_icon_box
}
// onPress={() => this.handleCelSelCheck(item, index)}
>
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_yes.png'
)}
/
>
<
/View
>
:
<
View
style
=
{
styles
.
sub_icon_box
}
// onPress={() => this.handle
CelSel
Check(item, index)}
// onPress={() => this.handle
SubSelected
Check(item, index)}
>
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_yes.png'
)}
/
>
<
/View
>
:
<
View
style
=
{
styles
.
sub_icon_box
}
// onPress={() => this.handleSubSelectedCheck(item, index)}
>
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_no.png'
)}
/
>
<
/View
>
}
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_no.png'
)}
/
>
<
/View>
}
<
/View
>
<
View
style
=
{
styles
.
sub_list_rig
}
>
<
Text
style
=
{
styles
.
rig_tit
}
>
...
...
@@ -428,39 +425,28 @@ const styles = StyleSheet.create({
},
rig_tit
:
{
fontSize
:
second_text_size
,
// color: promary_text_color,
fontFamily
:
font_family_regular
,
color
:
list_tit_color
,
},
rig_ser
:
{
// fontSize: 14,
// color: '#ADADAD',
fontSize
:
third_text_size
,
fontFamily
:
font_family_regular
},
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
// color: '#0CB4E8'
color
:
list_str_color
},
te_ot_one
:{
// color: '#1B40B5',
color
:
list_one_color
},
te_ot_two
:{
// color: '#1B40B5',
color
:
list_one_color
},
te_ot_thr
:{
// color: '#3B4C82',
color
:
list_thr_color
},
fot_btn_lef
:
{
// width: pxSize(220)
},
fot_btn_rig
:
{
// width: pxSize(120)
},
fot_btn_lef
:
{},
fot_btn_rig
:
{},
loding_back
:
{
backgroundColor
:
'rgba(0, 0, 0, 0)'
},
...
...
app/containers/equipConsu/module/DetailsModel.js
View file @
4b7600ee
...
...
@@ -33,60 +33,16 @@ class DetailsModel extends Component {
{
title
:
'已选耗材'
},
// {
// title: '螺钉盒'
// },
// {
// title: '器械包'
// },
// {
// title: '工具'
// }
],
topActiveIndex
:
0
,
contOptionData
:
[
// 底部产品内容
{
"id"
:
"0"
,
item_name
:
'人工髋关节假体-JS-HB ||| T'
,
specification
:
'3g,Ytg-DG-SZGT'
,
serial_number
:
'2001202001001774'
,
select
:
false
},
{
"id"
:
"1"
,
item_name
:
'规格:JS-CGO PE 10 11'
,
specification
:
'3g,Ytg-DG-SZGT'
,
serial_number
:
'2001202001001774'
,
select
:
false
},
{
"id"
:
"2"
,
item_name
:
'规格:JS-CGO PE 10 22'
,
specification
:
'3g,Ytg-DG-SZGT'
,
serial_number
:
'2001202001001774'
,
select
:
false
},
{
"id"
:
"3"
,
item_name
:
'规格:JS-CGO PE 10 33'
,
specification
:
'3g,Ytg-DG-SZGT'
,
serial_number
:
'2001202001001774'
,
select
:
false
},
{
"id"
:
"4"
,
item_name
:
'规格:JS-CGO PE 10 44'
,
specification
:
'3g,Ytg-DG-SZGT'
,
serial_number
:
'2001202001001774'
,
select
:
false
},
{
"id"
:
"5"
,
item_name
:
'规格:JS-CGO PE 10 55'
,
specification
:
'3g,Ytg-DG-SZGT'
,
serial_number
:
'2001202001001774'
,
select
:
false
}
// {
// "id": "0",
// item_name: '人工髋关节假体-JS-HB ||| T',
// specification: '3g,Ytg-DG-SZGT',
// serial_number: '2001202001001774',
// select: false
// }
]
}
}
...
...
@@ -102,18 +58,13 @@ class DetailsModel extends Component {
// 已选 点击
handleCloseSelected
()
{
// console.warn('已选:666--model')
let
{
contOptionData
}
=
this
.
state
this
.
props
.
callback
(
contOptionData
)
this
.
closeModal
()
// this.props.closeSelected(false)
}
// 确定耗材 点击
handleCloseSubmit
()
{
// console.warn('确定耗材--model')
this
.
closeModal
()
this
.
props
.
closeSubmit
(
false
)
}
...
...
@@ -131,7 +82,6 @@ class DetailsModel extends Component {
* @param {number} index 当前角标
*/
handleDelItemClick
(
item
,
index
)
{
// console.log('-----删除-----', item, index)
let
{
contOptionData
}
=
this
.
state
contOptionData
.
splice
(
index
,
1
)
this
.
setState
({
...
...
@@ -166,8 +116,6 @@ class DetailsModel extends Component {
>
<
View
style
=
{[
styles
.
top_inner
,
// (index == 1 || index == 2) ? styles.se_thr_width : '',
// index == 3 ? styles.four_width : '',
index
==
topActiveIndex
?
styles
.
top_inner_act
:
''
]}
>
<
Text
style
=
{[
styles
.
top_tit
,
index
==
topActiveIndex
?
styles
.
top_tit_act
:
''
]}
>
...
...
@@ -264,7 +212,6 @@ class DetailsModel extends Component {
<
View
style
=
{
styles
.
scro_box
}
>
{
this
.
renderTopProItem
()}
{
this
.
renderContItem
()}
{
/* {this.renderFooterBtnItem()} */
}
<
/View
>
{
this
.
renderFooterBtnItem
()}
<
/View
>
...
...
@@ -319,28 +266,12 @@ const styles = StyleSheet.create({
borderTopRightRadius
:
12
,
height
:
pxHeight
(
580
)
},
// item: {
// width: Width(),
// height: 40,
// paddingLeft: 20,
// paddingRight: 20,
// alignItems: 'center'
// },
// itemText: {
// fontSize: 16,
// color: third_text_color
// },
// curr_item: {
// color: first_text_color,
// fontWeight: 'bold'
// },
scro_box
:
{
flex
:
1
},
top_box
:
{
width
:
Width
(),
paddingHorizontal
:
20
// backgroundColor: foundation_color,
},
top_scroll_cont
:
{
paddingBottom
:
4
,
...
...
@@ -370,7 +301,6 @@ const styles = StyleSheet.create({
paddingTop
:
16
,
paddingBottom
:
12
,
color
:
second_text_color
,
// fontSize: third_text_size
fontSize
:
14
},
top_tit_act
:
{
...
...
@@ -378,7 +308,6 @@ const styles = StyleSheet.create({
fontWeight
:
'bold'
},
edit_cont
:
{
// height: pxHeight(430)
flex
:
1
},
edit_scroll_cont
:
{
...
...
app/containers/equipConsu/module/FillUnitPricePage.js
View file @
4b7600ee
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
,
SafeAreaView
,
TouchableOpacity
,
ScrollView
,
FlatList
,
TextInput
}
from
'react-native'
;
import
{
View
,
Text
,
StyleSheet
,
SafeAreaView
,
TouchableOpacity
,
ScrollView
,
FlatList
,
TextInput
}
from
'react-native'
;
import
{
home_background_color
,
promary_color
,
safe_view
,
list_common_item
,
placehold_text_color
,
second_text_size
,
promary_text_color
,
font_family_regular
,
font_family_medium
,
list_tit_color
,
list_str_color
,
list_one_color
,
list_thr_color
,
third_text_size
,
font_family_semibold
}
from
'../../../base/BaseStyle'
;
import
StatusBarView
from
'../../common/StatusBarView'
;
import
HeadBackItem
from
'../../common/HeadBackItem'
;
...
...
@@ -186,7 +177,6 @@ const styles = StyleSheet.create({
cons_cont
:
{
paddingHorizontal
:
20
},
cons_sub_list
:
{
backgroundColor
:
'#FFF'
,
marginVertical
:
10
,
...
...
@@ -194,31 +184,24 @@ const styles = StyleSheet.create({
},
cont_tit
:
{
fontSize
:
second_text_size
,
// color: promary_text_color,
fontFamily
:
font_family_regular
,
color
:
list_tit_color
,
},
cont_ser
:
{
// fontSize: 14,
// color: '#A3A3A3',
fontSize
:
third_text_size
,
fontFamily
:
font_family_regular
},
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
// color: '#0CB4E8'
color
:
list_str_color
},
te_ot_one
:{
// color: '#1B40B5',
color
:
list_one_color
},
te_ot_two
:{
// color: '#1B40B5',
color
:
list_one_color
},
te_ot_thr
:{
// color: '#3B4C82',
color
:
list_thr_color
},
cont_pri
:
{
...
...
@@ -234,7 +217,6 @@ const styles = StyleSheet.create({
pri_inner
:
{
fontFamily
:
font_family_medium
,
fontSize
:
14
,
// color: promary_text_color
color
:
list_thr_color
},
cont_pri_box
:
{
...
...
@@ -243,9 +225,7 @@ const styles = StyleSheet.create({
},
pri_txt
:
{
fontFamily
:
font_family_regular
,
// fontSize: second_text_size,
fontSize
:
14
,
// color: promary_text_color
color
:
list_thr_color
},
...
...
app/containers/equipConsu/module/ShowDetailPage.js
View file @
4b7600ee
import
React
,
{
Component
}
from
'react'
;
import
{
View
,
Text
,
StyleSheet
,
SafeAreaView
,
TouchableOpacity
,
ScrollView
,
FlatList
,
TextInput
}
from
'react-native'
;
import
{
home_background_color
,
promary_color
,
safe_view
,
list_common_item
,
placehold_text_color
,
second_text_size
,
promary_text_color
,
font_family_regular
,
font_family_medium
,
font_family_semibold
,
foundation_color
,
list_tit_color
,
list_str_color
,
list_one_color
,
list_thr_color
,
third_text_size
}
from
'../../../base/BaseStyle'
;
import
{
View
,
Text
,
StyleSheet
,
SafeAreaView
,
TouchableOpacity
,
ScrollView
,
FlatList
}
from
'react-native'
;
import
{
home_background_color
,
promary_color
,
safe_view
,
list_common_item
,
second_text_size
,
promary_text_color
,
font_family_regular
,
font_family_medium
,
font_family_semibold
,
foundation_color
,
list_tit_color
,
list_str_color
,
list_one_color
,
list_thr_color
,
third_text_size
}
from
'../../../base/BaseStyle'
;
import
StatusBarView
from
'../../common/StatusBarView'
;
import
HeadBackItem
from
'../../common/HeadBackItem'
;
import
{
show
}
from
'../../../utils/Utils'
;
import
{
setSubdetailOption
}
from
'../../../action/EquipAction'
;
import
{
connect
}
from
'react-redux'
;
...
...
@@ -165,31 +154,24 @@ const styles = StyleSheet.create({
},
cont_tit
:
{
fontSize
:
second_text_size
,
// color: promary_text_color,
fontFamily
:
font_family_regular
,
color
:
list_tit_color
,
},
cont_ser
:
{
// fontSize: 14,
// color: '#A3A3A3',
fontSize
:
third_text_size
,
fontFamily
:
font_family_regular
},
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
// color: '#0CB4E8'
color
:
list_str_color
},
te_ot_one
:{
// color: '#1B40B5',
color
:
list_one_color
},
te_ot_two
:{
// color: '#1B40B5',
color
:
list_one_color
},
te_ot_thr
:{
// color: '#3B4C82',
color
:
list_thr_color
},
cont_pri
:
{
...
...
app/containers/home/HomePage.js
View file @
4b7600ee
...
...
@@ -26,6 +26,7 @@ import TabBottomItem from './module/TabBottomItem';
import
HistoricalOrderPage
from
'../historicalOrder/HistoricalOrderPage'
;
import
{
referenceArrSort
,
show
}
from
'../../utils/Utils'
;
import
{
setEquConDisplayPrice
}
from
'../../base/BaseConstants'
;
import
{
LOGIN_NO
}
from
'../../base/ActionTypes'
;
class
HomePage
extends
Component
{
...
...
@@ -111,6 +112,19 @@ class HomePage extends Component {
this
.
getSysConfigValue
()
}
componentWillReceiveProps
(
nextProps
)
{
let
{
loginState
,
navigation
}
=
this
.
props
if
(
loginState
!=
nextProps
.
loginState
)
{
switch
(
nextProps
.
loginState
)
{
case
LOGIN_NO
:
navigation
.
navigate
(
'LoginPage'
)
break
;
default
:
break
;
}
}
}
// 获取菜单权限
getMenuRuleInfo
()
{
let
{
functions
}
=
this
.
props
.
userInfo
...
...
app/containers/transOrder/TransOrderPage.js
View file @
4b7600ee
...
...
@@ -114,12 +114,7 @@ class TransOrderPage extends Component {
value
:
''
,
isJumpSubPage
:
true
,
// 跳转子页
isShowSub
:
true
,
// 是否展示子项
subOption
:
[
// {
// item_name: '人工髋关节假体-JS-HB ||| 人工髋关节假体-JS-HB',
// serial_number: 'SC20200506000006, SC20200506000006'
// }
]
subOption
:
[]
},
{
"id"
:
"7"
,
...
...
@@ -157,10 +152,7 @@ class TransOrderPage extends Component {
isSubLoding
:
false
,
// 加载中弹窗
lodingTitle
:
'加载中'
,
listCurrentOption
:
[
// 当前选择器数据
// {
// name: '男',
// value: 'boy'
// }
],
hasPermission
:
undefined
,
//录音 授权状态
audioPath
:
AudioUtils
.
DocumentDirectoryPath
+
`/trans_audio_
${
new
Date
().
getTime
()}
.aac`
,
// 文件路径
...
...
@@ -1327,6 +1319,9 @@ class TransOrderPage extends Component {
<
Text
style
=
{
list_common_item
.
de_tip
}
>
{
item
.
surgery_collect_number
}
,
{
item
.
serial_number
}
<
/Text
>
<
Text
style
=
{[
list_common_item
.
de_tip
]}
>
{
item
.
specification
?
item
.
specification
:
'规格型号无'
}
<
/Text
>
<
/View
>
)
}
...
...
app/containers/transOrder/module/TransDetailsModel.js
View file @
4b7600ee
...
...
@@ -21,7 +21,14 @@ import {
safe_view
,
list_common_item
,
icon_style
,
font_family_regular
font_family_regular
,
second_text_size
,
third_text_size
,
font_family_semibold
,
list_str_color
,
list_one_color
,
list_tit_color
,
list_thr_color
}
from
'../../../base/BaseStyle'
;
class
TransDetailsModel
extends
Component
{
...
...
@@ -33,15 +40,6 @@ class TransDetailsModel extends Component {
{
title
:
'已选'
},
// {
// title: '螺钉盒'
// },
// {
// title: '器械包'
// },
// {
// title: '工具'
// }
],
topActiveIndex
:
0
,
contOptionData
:
[
// 底部产品内容
...
...
@@ -168,11 +166,17 @@ class TransDetailsModel extends Component {
style
=
{
styles
.
column_container
}
>
<
View
style
=
{
styles
.
ri_inner
}
>
<
View
style
=
{
styles
.
ri_text_box
}
>
<
Text
style
=
{
styles
.
ri_te_tit
}
>
{
item
.
item_name
}
-
{
item
.
specification
}
<
Text
style
=
{
[
styles
.
rig_tit
]
}
>
{
item
.
item_name
?
item
.
item_name
:
'物料名称无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
ri_te_ot
,
styles
.
thr_ot
]}
>
{
item
.
surgery_collect_number
}
,
{
item
.
serial_number
}
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_str
]}
>
{
item
.
general_name
?
item
.
general_name
:
'通用名称无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_one
]}
>
{
item
.
surgery_collect_number
}
,
{
item
.
serial_number
?
item
.
serial_number
:
'序列号无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_one
]}
>
{
item
.
specification
?
item
.
specification
:
'规格型号无'
}
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
ri_num_box
}
>
...
...
@@ -342,17 +346,6 @@ const styles = StyleSheet.create({
borderBottomColor
:
'#EAEAEA'
,
paddingVertical
:
14
,
},
ri_te_tit
:
{
fontSize
:
14
,
color
:
first_text_color
,
fontFamily
:
font_family_regular
},
thr_ot
:
{},
ri_te_ot
:
{
fontSize
:
14
,
color
:
'#C5C6C5'
,
fontFamily
:
font_family_regular
},
ri_num_box
:
{
flexDirection
:
'row'
,
alignItems
:
'center'
...
...
@@ -366,6 +359,29 @@ const styles = StyleSheet.create({
marginLeft
:
14
},
btn_inner
:
{},
rig_tit
:
{
fontSize
:
second_text_size
,
fontFamily
:
font_family_regular
,
color
:
list_tit_color
},
rig_ser
:
{
fontSize
:
third_text_size
,
fontFamily
:
font_family_regular
},
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
color
:
list_str_color
},
te_ot_one
:{
color
:
list_one_color
},
te_ot_two
:{
color
:
list_one_color
},
te_ot_thr
:{
color
:
list_thr_color
},
})
export
default
TransDetailsModel
;
\ No newline at end of file
app/containers/transOrder/module/TransSearchPage.js
View file @
4b7600ee
...
...
@@ -23,7 +23,13 @@ import {
font_family_regular
,
promary_text_color
,
list_common_item
,
third_text_color
third_text_color
,
list_one_color
,
list_thr_color
,
font_family_semibold
,
list_str_color
,
list_tit_color
,
third_text_size
}
from
'../../../base/BaseStyle'
;
import
StatusBarView
from
'../../common/StatusBarView'
;
import
{
...
...
@@ -47,6 +53,7 @@ import { exitLoginStatus } from '../../../action/LoginAction';
import
DialogModel
from
'../../common/DialogModel'
;
import
DateModel
from
'../../common/DateModel'
;
import
moment
from
'moment'
;
import
{
LOGIN_NO
}
from
'../../../base/ActionTypes'
;
const
SERIAL_NUMBER_BAR_CODE
=
'SERIAL_NUMBER_BAR_CODE'
;
const
SURGERY_COLLECT_NUMBER_BAR_CODE
=
'SURGERY_COLLECT_NUMBER_BAR_CODE'
;
...
...
@@ -117,6 +124,7 @@ class TransSearchPage extends Component {
componentWillReceiveProps
(
nextProps
)
{
let
{
barCodeData
}
=
nextProps
.
navigation
.
state
.
params
let
{
listOptionData
}
=
this
.
state
let
{
loginState
,
navigation
}
=
this
.
props
let
that
=
this
if
(
barCodeData
&&
barCodeData
.
typeValue
&&
barCodeData
.
typeName
==
SERIAL_NUMBER_BAR_CODE
)
{
listOptionData
[
1
].
value
=
barCodeData
.
typeValue
...
...
@@ -130,6 +138,15 @@ class TransSearchPage extends Component {
listOptionData
})
}
if
(
loginState
!=
nextProps
.
loginState
)
{
switch
(
nextProps
.
loginState
)
{
case
LOGIN_NO
:
navigation
.
navigate
(
'LoginPage'
)
break
;
default
:
break
;
}
}
}
// 获取已存在的数据
...
...
@@ -309,7 +326,6 @@ class TransSearchPage extends Component {
// 手术时间
handleSurDateCheck
(
typeName
)
{
console
.
log
(
'筛选 - 手术时间---'
,
typeName
)
let
{
listOptionData
}
=
this
.
state
let
tempCurTit
=
'手术时间'
let
tempCurDate
=
new
Date
()
...
...
@@ -369,6 +385,7 @@ class TransSearchPage extends Component {
this
.
changeLodingFlag
(
true
)
let
{
global_domain_config
}
=
that
.
props
let
detailResult
=
await
requestTransDetails
(
global_domain_config
,
params
)
console
.
log
(
'查询明细 res==='
,
detailResult
)
if
(
detailResult
.
error_code
===
0
)
{
let
{
data
:
{
sur_transfer_lines
}}
=
detailResult
if
(
sur_transfer_lines
.
length
==
0
)
{
...
...
@@ -749,31 +766,34 @@ class TransSearchPage extends Component {
}}
>
<
View
style
=
{
styles
.
sub_list_lef
}
>
{
item
.
select
?
<
TouchableOpacity
{
item
.
select
?
<
TouchableOpacity
activeOpacity
=
{.
8
}
style
=
{
styles
.
sub_icon_box
}
onPress
=
{()
=>
this
.
handleCelSelCheck
(
index
)}
>
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_yes.png'
)}
/
>
<
/TouchableOpacity
>
:
<
TouchableOpacity
activeOpacity
=
{.
8
}
style
=
{
styles
.
sub_icon_box
}
onPress
=
{()
=>
this
.
handle
CelSel
Check
(
index
)}
onPress
=
{()
=>
this
.
handle
SubSelected
Check
(
index
)}
>
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_yes.png'
)}
/
>
<
/TouchableOpacity
>
:
<
TouchableOpacity
activeOpacity
=
{.
8
}
style
=
{
styles
.
sub_icon_box
}
onPress
=
{()
=>
this
.
handleSubSelectedCheck
(
index
)}
>
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_no.png'
)}
/
>
<
/TouchableOpacity
>
}
<
Image
style
=
{
icon_style
}
source
=
{
require
(
'../../../images/radio_no.png'
)}
/
>
<
/TouchableOpacity>
}
<
/View
>
<
View
style
=
{
styles
.
sub_list_rig
}
>
<
Text
style
=
{
styles
.
rig_tit
}
>
{
item
.
item_name
}
<
Text
style
=
{[
styles
.
rig_tit
]}
>
{
item
.
item_name
?
item
.
item_name
:
'物料名称无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_str
]}
>
{
item
.
general_name
?
item
.
general_name
:
'通用名称无'
}
<
/Text
>
<
Text
style
=
{[
styles
.
rig_ser
,
styles
.
te_ot_one
]}
>
{
item
.
surgery_collect_number
}
,
{
item
.
serial_number
?
item
.
serial_number
:
'序列号无'
}
<
/Text
>
<
Text
style
=
{
styles
.
rig_ser
}
>
{
item
.
s
urgery_collect_number
}
,
{
item
.
serial_number
}
<
Text
style
=
{
[
styles
.
rig_ser
,
styles
.
te_ot_one
]
}
>
{
item
.
s
pecification
?
item
.
specification
:
'规格型号无'
}
<
/Text
>
<
/View
>
<
/TouchableOpacity
>
...
...
@@ -975,9 +995,7 @@ const styles = StyleSheet.create({
width
:
80
,
backgroundColor
:
'#666'
},
cle_btn
:
{
// color: ''
},
cle_btn
:
{},
cont_list
:{
paddingVertical
:
16
},
...
...
@@ -999,10 +1017,9 @@ const styles = StyleSheet.create({
right_tip
:{},
cons_cont
:
{},
cons_sub_list
:
{
// paddingHorizontal: 0,
paddingVertical
:
12
,
flexDirection
:
'row'
,
alignItems
:
'center'
alignItems
:
'center'
,
marginTop
:
12
},
sub_list_lef
:
{
paddingRight
:
10
...
...
@@ -1012,21 +1029,33 @@ const styles = StyleSheet.create({
height
:
pxSize
(
20
)
},
sub_list_rig
:
{
flex
:
1
flex
:
1
,
borderBottomColor
:
'#EAEAEA'
,
borderBottomWidth
:
1
,
paddingBottom
:
8
,
marginBottom
:
8
},
rig_tit
:
{
fontSize
:
second_text_size
,
color
:
promary_text_colo
r
,
fontFamily
:
font_family_regula
r
fontFamily
:
font_family_regula
r
,
color
:
list_tit_colo
r
},
rig_ser
:
{
fontSize
:
14
,
color
:
'#ADADAD'
,
fontSize
:
third_text_size
,
fontFamily
:
font_family_regular
},
sub_btn_pro
:
{
backgroundColor
:
promary_color
te_ot_str
:
{
fontFamily
:
font_family_semibold
,
color
:
list_str_color
},
te_ot_one
:{
color
:
list_one_color
},
te_ot_two
:{
color
:
list_one_color
},
te_ot_thr
:{
color
:
list_thr_color
},
})
...
...
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