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
07e2cc1e
authored
Jun 14, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
提示
parent
c66a8dd1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
app/containers/common/SubSuccPage.js
app/containers/equipConsu/EquipConsuPage.js
app/containers/common/SubSuccPage.js
View file @
07e2cc1e
...
@@ -6,7 +6,8 @@ import {
...
@@ -6,7 +6,8 @@ import {
Text
,
Text
,
Image
,
Image
,
TouchableOpacity
,
TouchableOpacity
,
Clipboard
Clipboard
,
ScrollView
}
from
'react-native'
;
}
from
'react-native'
;
import
HeadBackItem
from
'./HeadBackItem'
;
import
HeadBackItem
from
'./HeadBackItem'
;
import
{
import
{
...
@@ -67,8 +68,9 @@ class SubSuccPage extends Component {
...
@@ -67,8 +68,9 @@ class SubSuccPage extends Component {
backgroundColor
=
{
promary_color
}
backgroundColor
=
{
promary_color
}
barStyle
=
'light-content'
barStyle
=
'light-content'
/>
/>
<
SafeArea
View
style
=
{
safe_view
}
>
<
View
style
=
{
safe_view
}
>
<
HeadBackItem
title
=
{
title
}
navigation
=
{
navigation
}
/
>
<
HeadBackItem
title
=
{
title
}
navigation
=
{
navigation
}
/
>
<
ScrollView
style
=
{
safe_view
}
>
<
View
style
=
{
styles
.
succ_inner
}
>
<
View
style
=
{
styles
.
succ_inner
}
>
<
View
style
=
{
styles
.
img_box
}
>
<
View
style
=
{
styles
.
img_box
}
>
<
Image
source
=
{
require
(
'../../images/cor_green.png'
)}
style
=
{
styles
.
img_icon
}
/
>
<
Image
source
=
{
require
(
'../../images/cor_green.png'
)}
style
=
{
styles
.
img_icon
}
/
>
...
@@ -80,7 +82,7 @@ class SubSuccPage extends Component {
...
@@ -80,7 +82,7 @@ class SubSuccPage extends Component {
:
null
:
null
}
}
{
{
!!
warnTip
&&
<
Text
style
=
{
styles
.
warn_tip
}
>
{
warnTip
}
<
/Text
>
!!
warnTip
&&
<
View
><
Text
style
=
{
styles
.
warn_tip
}
numberOfLines
=
{
50
}
>
{
warnTip
}
<
/Text></
View
>
}
}
<
TouchableOpacity
<
TouchableOpacity
activeOpacity
=
{.
9
}
activeOpacity
=
{.
9
}
...
@@ -92,7 +94,8 @@ class SubSuccPage extends Component {
...
@@ -92,7 +94,8 @@ class SubSuccPage extends Component {
<
/Text
>
<
/Text
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/SafeAreaView
>
<
/ScrollView
>
<
/View
>
<
/View
>
<
/View
>
);
);
...
@@ -134,7 +137,8 @@ const styles = StyleSheet.create({
...
@@ -134,7 +137,8 @@ const styles = StyleSheet.create({
paddingLeft
:
20
,
paddingLeft
:
20
,
paddingRight
:
20
,
paddingRight
:
20
,
paddingBottom
:
20
,
paddingBottom
:
20
,
color
:
'#fdbe34'
color
:
'#fdbe34'
,
lineHeight
:
22
},
},
succ_btn
:
{
succ_btn
:
{
backgroundColor
:
promary_color
,
backgroundColor
:
promary_color
,
...
...
app/containers/equipConsu/EquipConsuPage.js
View file @
07e2cc1e
...
@@ -53,7 +53,7 @@ class EquipConsuPage extends Component {
...
@@ -53,7 +53,7 @@ class EquipConsuPage extends Component {
},
},
{
{
"id"
:
"4"
,
"id"
:
"4"
,
title
:
'
消耗
时间'
,
title
:
'
手术
时间'
,
name
:
'请选择'
,
name
:
'请选择'
,
value
:
''
,
value
:
''
,
dateValue
:
new
Date
()
dateValue
:
new
Date
()
...
@@ -499,7 +499,7 @@ class EquipConsuPage extends Component {
...
@@ -499,7 +499,7 @@ class EquipConsuPage extends Component {
let
tempName
=
`
${
collect_number
}
-
${
surgery_name
}
-
${
item
.
doctor_name
?
(
item
.
doctor_name
+
'-'
)
:
''
}${
create_time
}
`
let
tempName
=
`
${
collect_number
}
-
${
surgery_name
}
-
${
item
.
doctor_name
?
(
item
.
doctor_name
+
'-'
)
:
''
}${
create_time
}
`
obj
.
name
=
tempName
,
obj
.
name
=
tempName
,
obj
.
value
=
item
.
collect_number
obj
.
value
=
item
.
collect_number
obj
.
userEnteredPrice
=
item
.
user
EnteredP
rice
||
'Y'
obj
.
userEnteredPrice
=
item
.
user
_entered_p
rice
||
'Y'
resultArr
.
push
(
obj
)
resultArr
.
push
(
obj
)
})
})
tempOption
=
[...
resultArr
]
tempOption
=
[...
resultArr
]
...
@@ -849,7 +849,8 @@ class EquipConsuPage extends Component {
...
@@ -849,7 +849,8 @@ class EquipConsuPage extends Component {
listOptionData
[
3
].
name
=
tempName
listOptionData
[
3
].
name
=
tempName
listOptionData
[
3
].
value
=
surgery_collect_headers
[
0
].
collect_number
listOptionData
[
3
].
value
=
surgery_collect_headers
[
0
].
collect_number
that
.
setState
({
that
.
setState
({
listOptionData
listOptionData
,
userEnteredPrice
:
surgery_collect_headers
[
0
].
user_entered_price
||
'Y'
},
()
=>
{
},
()
=>
{
that
.
getCurOrderDetail
()
that
.
getCurOrderDetail
()
this
.
autoSetDoctorAndFollower
()
this
.
autoSetDoctorAndFollower
()
...
@@ -942,7 +943,7 @@ class EquipConsuPage extends Component {
...
@@ -942,7 +943,7 @@ class EquipConsuPage extends Component {
let
that
=
this
let
that
=
this
this
.
setState
({
this
.
setState
({
listOptionData
:
listOptionData
.
map
((
item
,
index
)
=>
{
listOptionData
:
listOptionData
.
map
((
item
,
index
)
=>
{
if
(
item
.
title
===
'
消耗
时间'
)
{
if
(
item
.
title
===
'
手术
时间'
)
{
item
.
name
=
date
item
.
name
=
date
item
.
value
=
date
item
.
value
=
date
item
.
dateValue
=
formatStrForDate
(
date
)
item
.
dateValue
=
formatStrForDate
(
date
)
...
@@ -1346,7 +1347,7 @@ class EquipConsuPage extends Component {
...
@@ -1346,7 +1347,7 @@ class EquipConsuPage extends Component {
let
{
state
:
{
params
:
{
title
}
}
}
=
this
.
props
.
navigation
let
{
state
:
{
params
:
{
title
}
}
}
=
this
.
props
.
navigation
this
.
props
.
navigation
.
navigate
(
'SubSuccPage'
,
{
// 现在没返回订单号
this
.
props
.
navigation
.
navigate
(
'SubSuccPage'
,
{
// 现在没返回订单号
title
:
`
${
title
}
- 下单成功`
,
title
:
`
${
title
}
- 下单成功`
,
get_price_error_list
:
equipOrderOption
.
get_price_error_list
warnTip
:
equipOrderOption
.
get_price_error_list
})
})
}
}
}
}
...
...
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