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
559ef2e2
authored
Jun 10, 2021
by
wong.peiyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
消耗确认添加用户定价或定价引擎定价
parent
7be4f296
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
22 deletions
app/containers/common/SubSuccPage.js
app/containers/equipConsu/EquipConsuPage.js
app/containers/equipConsu/module/ConsumDetailsPage.js
app/containers/common/SubSuccPage.js
View file @
559ef2e2
...
@@ -25,7 +25,7 @@ import { show } from '../../utils/Utils';
...
@@ -25,7 +25,7 @@ import { show } from '../../utils/Utils';
class
SubSuccPage
extends
Component
{
class
SubSuccPage
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
orderVal
:
''
orderVal
:
''
}
}
}
}
...
@@ -58,9 +58,9 @@ class SubSuccPage extends Component {
...
@@ -58,9 +58,9 @@ class SubSuccPage extends Component {
render
()
{
render
()
{
let
{
navigation
}
=
this
.
props
let
{
navigation
}
=
this
.
props
let
{
title
}
=
navigation
.
state
.
params
let
{
title
,
warnTip
}
=
navigation
.
state
.
params
let
{
state
}
=
this
let
{
state
}
=
this
return
(
return
(
<
View
style
=
{
styles
.
succ_container
}
>
<
View
style
=
{
styles
.
succ_container
}
>
<
StatusBarView
<
StatusBarView
isReactStackNavigator
=
{
true
}
isReactStackNavigator
=
{
true
}
...
@@ -75,10 +75,13 @@ class SubSuccPage extends Component {
...
@@ -75,10 +75,13 @@ class SubSuccPage extends Component {
<
/View
>
<
/View
>
<
Text
style
=
{
styles
.
succ_title
}
>
{
'提交成功'
}
<
/Text
>
<
Text
style
=
{
styles
.
succ_title
}
>
{
'提交成功'
}
<
/Text
>
{
{
state
.
orderVal
?
state
.
orderVal
?
<
Text
style
=
{
styles
.
succ_text
}
>
{
'订单号:'
}
{
state
.
orderVal
}
<
/Text
>
<
Text
style
=
{
styles
.
succ_text
}
>
{
'订单号:'
}
{
state
.
orderVal
}
<
/Text
>
:
null
:
null
}
}
{
!!
warnTip
&&
<
Text
style
=
{
styles
.
warn_tip
}
>
{
warnTip
}
<
/Text
>
}
<
TouchableOpacity
<
TouchableOpacity
activeOpacity
=
{.
9
}
activeOpacity
=
{.
9
}
style
=
{
styles
.
succ_btn
}
style
=
{
styles
.
succ_btn
}
...
@@ -90,7 +93,7 @@ class SubSuccPage extends Component {
...
@@ -90,7 +93,7 @@ class SubSuccPage extends Component {
<
/TouchableOpacity
>
<
/TouchableOpacity
>
<
/View
>
<
/View
>
<
/SafeAreaView
>
<
/SafeAreaView
>
<
/View
>
<
/View
>
);
);
}
}
...
@@ -125,7 +128,14 @@ const styles = StyleSheet.create({
...
@@ -125,7 +128,14 @@ const styles = StyleSheet.create({
color
:
second_text_color
,
color
:
second_text_color
,
paddingBottom
:
30
,
paddingBottom
:
30
,
fontFamily
:
font_family_regular
fontFamily
:
font_family_regular
},
},
warn_tip
:
{
fontSize
:
14
,
paddingLeft
:
20
,
paddingRight
:
20
,
paddingBottom
:
20
,
color
:
'#fdbe34'
},
succ_btn
:
{
succ_btn
:
{
backgroundColor
:
promary_color
,
backgroundColor
:
promary_color
,
width
:
pxSize
(
330
),
width
:
pxSize
(
330
),
...
@@ -141,5 +151,5 @@ const styles = StyleSheet.create({
...
@@ -141,5 +151,5 @@ const styles = StyleSheet.create({
fontFamily
:
font_family_regular
fontFamily
:
font_family_regular
}
}
})
})
export
default
SubSuccPage
;
export
default
SubSuccPage
;
\ No newline at end of file
app/containers/equipConsu/EquipConsuPage.js
View file @
559ef2e2
...
@@ -25,6 +25,7 @@ class EquipConsuPage extends Component {
...
@@ -25,6 +25,7 @@ class EquipConsuPage extends Component {
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
canSubFlag
:
false
,
// 生成订单按钮样式改变
canSubFlag
:
false
,
// 生成订单按钮样式改变
userEnteredPrice
:
"Y"
,
listOptionData
:
[
// 页面元素
listOptionData
:
[
// 页面元素
{
{
"id"
:
"0"
,
"id"
:
"0"
,
...
@@ -446,6 +447,7 @@ class EquipConsuPage extends Component {
...
@@ -446,6 +447,7 @@ class EquipConsuPage extends Component {
that
.
clearInitNameAndValue
(
3
)
that
.
clearInitNameAndValue
(
3
)
that
.
getCurOrderDetail
()
that
.
getCurOrderDetail
()
that
.
autoSetDoctorAndFollower
()
that
.
autoSetDoctorAndFollower
()
that
.
setUserEnteredPrice
(
item
.
value
)
}
}
}
}
return
chItem
return
chItem
...
@@ -497,6 +499,7 @@ class EquipConsuPage extends Component {
...
@@ -497,6 +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
.
userEnteredPrice
||
'Y'
resultArr
.
push
(
obj
)
resultArr
.
push
(
obj
)
})
})
tempOption
=
[...
resultArr
]
tempOption
=
[...
resultArr
]
...
@@ -529,6 +532,18 @@ class EquipConsuPage extends Component {
...
@@ -529,6 +532,18 @@ class EquipConsuPage extends Component {
})
})
}
}
/**
* @description: 设置是否可以用户输入价格
* @param {*}
* @return {*}
*/
setUserEnteredPrice
(
collectNumber
)
{
const
{
orderInfos
,
listOptionData
}
=
this
.
state
const
orders
=
orderInfos
[
`
${
listOptionData
[
1
].
value
}
_
${
listOptionData
[
2
].
value
}
`
]
const
order
=
R
.
find
(
R
.
propEq
(
'value'
,
collectNumber
))(
orders
)
this
.
setState
({
userEnteredPrice
:
order
.
userEnteredPrice
||
'Y'
})
}
// 修改选择器为属性 name 和 value
// 修改选择器为属性 name 和 value
changeNameAndValue
(
data
,
nameType
,
valueType
)
{
changeNameAndValue
(
data
,
nameType
,
valueType
)
{
let
result
=
[]
let
result
=
[]
...
@@ -1096,12 +1111,13 @@ class EquipConsuPage extends Component {
...
@@ -1096,12 +1111,13 @@ class EquipConsuPage extends Component {
// 耗材明细 点击
// 耗材明细 点击
handleConsumDetailCheck
()
{
handleConsumDetailCheck
()
{
let
{
listOptionData
}
=
this
.
state
let
{
listOptionData
,
userEnteredPrice
}
=
this
.
state
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
()
if
(
this
.
judgeOrgIsNull
()
&&
this
.
judgeCustomerIsNull
()
&&
this
.
judgeOrderInfoIsNull
())
{
&&
this
.
judgeOrderInfoIsNull
())
{
this
.
props
.
navigation
.
navigate
(
'ConsumDetailsPage'
,
{
this
.
props
.
navigation
.
navigate
(
'ConsumDetailsPage'
,
{
title
:
'器械消耗 - 添加明细'
,
title
:
'器械消耗 - 添加明细'
,
orderId
:
listOptionData
[
3
].
value
orderId
:
listOptionData
[
3
].
value
,
userEnteredPrice
})
})
}
}
}
}
...
@@ -1250,7 +1266,10 @@ class EquipConsuPage extends Component {
...
@@ -1250,7 +1266,10 @@ class EquipConsuPage extends Component {
tempSubOption
.
patient_id
=
state
.
listOptionData
[
9
].
value
tempSubOption
.
patient_id
=
state
.
listOptionData
[
9
].
value
// tempSubOption.settled_flag = state.listOptionData[10].isRedio
// tempSubOption.settled_flag = state.listOptionData[10].isRedio
tempSubOption
.
remark
=
state
.
listOptionData
[
11
].
value
tempSubOption
.
remark
=
state
.
listOptionData
[
11
].
value
tempSubOption
.
lines
=
state
.
listOptionData
[
12
].
subOption
tempSubOption
.
lines
=
R
.
clone
(
state
.
listOptionData
[
12
].
subOption
)
if
(
OBS_MOBILE_EQU_CON_DISPLAY_PRICE
===
'N'
||
state
.
userEnteredPrice
===
'N'
)
{
tempSubOption
.
lines
=
R
.
map
(
R
.
dissoc
(
'sale_price'
))(
tempSubOption
.
lines
)
}
// 部门等信息
// 部门等信息
sysValues
.
OBS_MOBILE_CONSU_DEPARTMENT_DISPLAY
>
0
&&
(
tempSubOption
.
department_code
=
state
.
listOptionData
[
15
].
value
)
sysValues
.
OBS_MOBILE_CONSU_DEPARTMENT_DISPLAY
>
0
&&
(
tempSubOption
.
department_code
=
state
.
listOptionData
[
15
].
value
)
...
@@ -1326,7 +1345,8 @@ class EquipConsuPage extends Component {
...
@@ -1326,7 +1345,8 @@ class EquipConsuPage extends Component {
this
.
clearAllData
()
// 清空数据
this
.
clearAllData
()
// 清空数据
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
})
})
}
}
}
}
...
@@ -1645,7 +1665,11 @@ class EquipConsuPage extends Component {
...
@@ -1645,7 +1665,11 @@ class EquipConsuPage extends Component {
// 返回耗材明细
// 返回耗材明细
renderConsumablesDetailsItem
()
{
renderConsumablesDetailsItem
()
{
let
{
state
}
=
this
let
{
state
}
=
this
const
sum
=
this
.
consumeSum
()
let
{
userEnteredPrice
}
=
state
let
sum
=
0
if
(
userEnteredPrice
!==
'N'
)
{
sum
=
this
.
consumeSum
()
}
return
(
return
(
<
CellTextStyle
style
=
{
list_common_item
.
consu_detail
}
>
<
CellTextStyle
style
=
{
list_common_item
.
consu_detail
}
>
...
@@ -1662,7 +1686,9 @@ class EquipConsuPage extends Component {
...
@@ -1662,7 +1686,9 @@ class EquipConsuPage extends Component {
<
Text
style
=
{
list_common_item
.
detail_tit_text
}
>
<
Text
style
=
{
list_common_item
.
detail_tit_text
}
>
耗材(
{
state
.
listOptionData
[
12
].
subOption
.
length
}
)
耗材(
{
state
.
listOptionData
[
12
].
subOption
.
length
}
)
<
/Text
>
<
/Text
>
<
Text
style
=
{
list_common_item
.
detail_tit_text
}
>
耗材总金额:
{
sum
}
<
/Text
>
{
userEnteredPrice
!==
'N'
&&
<
Text
style
=
{
list_common_item
.
detail_tit_text
}
>
耗材总金额:
{
sum
}
<
/Text
>
}
<
/View
>
<
/View
>
{
{
state
.
listOptionData
[
12
].
isShowSub
?
state
.
listOptionData
[
12
].
isShowSub
?
...
@@ -1690,6 +1716,8 @@ class EquipConsuPage extends Component {
...
@@ -1690,6 +1716,8 @@ class EquipConsuPage extends Component {
// 返回耗材明细子项
// 返回耗材明细子项
renderConDeSubItem
(
item
,
index
)
{
renderConDeSubItem
(
item
,
index
)
{
const
{
userEnteredPrice
}
=
this
.
state
return
(
return
(
<
View
style
=
{
list_common_item
.
con_de_sub
}
key
=
{
index
}
>
<
View
style
=
{
list_common_item
.
con_de_sub
}
key
=
{
index
}
>
<
Text
style
=
{[
list_common_item
.
de_sub_tit
]}
>
<
Text
style
=
{[
list_common_item
.
de_sub_tit
]}
>
...
@@ -1698,7 +1726,7 @@ class EquipConsuPage extends Component {
...
@@ -1698,7 +1726,7 @@ class EquipConsuPage extends Component {
<
Text
style
=
{
list_common_item
.
de_tip
}
>
<
Text
style
=
{
list_common_item
.
de_tip
}
>
序列号:
{
item
.
serial_number
?
item
.
serial_number
:
'无'
}
序列号:
{
item
.
serial_number
?
item
.
serial_number
:
'无'
}
<
/Text
>
<
/Text
>
{
OBS_MOBILE_EQU_CON_DISPLAY_PRICE
===
'Y'
?
{
OBS_MOBILE_EQU_CON_DISPLAY_PRICE
===
'Y'
&&
userEnteredPrice
!==
'N'
?
<
Text
style
=
{
list_common_item
.
de_tip
}
>
<
Text
style
=
{
list_common_item
.
de_tip
}
>
单价
(
¥
)
:
{
item
.
sale_price
}
单价
(
¥
)
:
{
item
.
sale_price
}
<
/Text> : null
}
<
/Text> : null
}
...
@@ -1766,14 +1794,18 @@ class EquipConsuPage extends Component {
...
@@ -1766,14 +1794,18 @@ class EquipConsuPage extends Component {
// 返回添加图片
// 返回添加图片
renderAddPicturesItem
()
{
renderAddPicturesItem
()
{
let
{
state
}
=
this
let
{
state
}
=
this
const
sum
=
this
.
feeSum
()
+
this
.
consumeSum
()
const
userEnteredPrice
=
state
.
userEnteredPrice
let
sum
=
this
.
feeSum
()
if
(
userEnteredPrice
!==
'N'
)
{
sum
+=
this
.
consumeSum
()
}
return
(
return
(
<
CellTextStyle
style
=
{
list_common_item
.
consu_addpic
}
>
<
CellTextStyle
style
=
{
list_common_item
.
consu_addpic
}
>
<
View
style
=
{
list_common_item
.
addpic_inner
}
>
<
View
style
=
{
list_common_item
.
addpic_inner
}
>
<
View
style
=
{
list_common_item
.
detail_title_box
}
>
<
View
style
=
{
list_common_item
.
detail_title_box
}
>
<
Text
style
=
{
list_common_item
.
addpic_tit
}
>
添加图片
<
/Text
>
<
Text
style
=
{
list_common_item
.
addpic_tit
}
>
添加图片
<
/Text
>
<
Text
style
=
{
list_common_item
.
detail_tit
}
>
耗材
+
费用总金额:
{
sum
}
<
/Text
>
<
Text
style
=
{
list_common_item
.
detail_tit
}
>
{
userEnteredPrice
!==
'N'
&&
'耗材+'
}
费用总金额:
{
sum
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{
list_common_item
.
addpic_cont
}
>
<
View
style
=
{
list_common_item
.
addpic_cont
}
>
{
state
.
localPhoOption
.
length
{
state
.
localPhoOption
.
length
...
...
app/containers/equipConsu/module/ConsumDetailsPage.js
View file @
559ef2e2
...
@@ -27,6 +27,7 @@ class ConsumDetailsPage extends Component {
...
@@ -27,6 +27,7 @@ class ConsumDetailsPage extends Component {
localSelectOption
:
[],
// 已选数据
localSelectOption
:
[],
// 已选数据
isSubLoding
:
true
,
// 加载中弹窗
isSubLoding
:
true
,
// 加载中弹窗
lodingTitle
:
'加载中'
,
lodingTitle
:
'加载中'
,
userEnteredPrice
:
'Y'
}
}
}
}
...
@@ -57,7 +58,7 @@ class ConsumDetailsPage extends Component {
...
@@ -57,7 +58,7 @@ class ConsumDetailsPage extends Component {
// 获取当前订单的消耗明细
// 获取当前订单的消耗明细
async
getCurOrderDetail
()
{
async
getCurOrderDetail
()
{
let
{
orderId
}
=
this
.
props
.
navigation
.
state
.
params
let
{
orderId
,
userEnteredPrice
}
=
this
.
props
.
navigation
.
state
.
params
let
{
global_domain_config
}
=
this
.
props
let
{
global_domain_config
}
=
this
.
props
let
params
=
{
let
params
=
{
access_token
:
this
.
props
.
token
,
access_token
:
this
.
props
.
token
,
...
@@ -88,7 +89,8 @@ class ConsumDetailsPage extends Component {
...
@@ -88,7 +89,8 @@ class ConsumDetailsPage extends Component {
this
.
setState
({
this
.
setState
({
isSubLoding
:
false
,
isSubLoding
:
false
,
conDetaOption
:
lines
,
conDetaOption
:
lines
,
allConOption
:
lines
allConOption
:
lines
,
userEnteredPrice
})
})
this
.
changeIsSelected
()
this
.
changeIsSelected
()
}
else
if
(
detailResult
.
error_code
===
41006
)
{
}
else
if
(
detailResult
.
error_code
===
41006
)
{
...
@@ -217,12 +219,12 @@ class ConsumDetailsPage extends Component {
...
@@ -217,12 +219,12 @@ class ConsumDetailsPage extends Component {
// 点击 确定耗材
// 点击 确定耗材
handleSubmit
()
{
handleSubmit
()
{
this
.
handleCloseSelectModal
(
false
)
this
.
handleCloseSelectModal
(
false
)
let
{
localSelectOption
}
=
this
.
state
let
{
localSelectOption
,
userEnteredPrice
}
=
this
.
state
if
(
!
localSelectOption
.
length
)
{
if
(
!
localSelectOption
.
length
)
{
show
(
'请选择耗材'
)
show
(
'请选择耗材'
)
return
return
}
}
if
(
OBS_MOBILE_EQU_CON_DISPLAY_PRICE
===
'Y'
){
if
(
OBS_MOBILE_EQU_CON_DISPLAY_PRICE
===
'Y'
&&
userEnteredPrice
!==
'N'
){
this
.
props
.
navigation
.
navigate
(
'FillUnitPricePage'
,
{
this
.
props
.
navigation
.
navigate
(
'FillUnitPricePage'
,
{
title
:
'器械消耗 - 填写单价'
,
title
:
'器械消耗 - 填写单价'
,
localSelectOption
:
localSelectOption
localSelectOption
:
localSelectOption
...
...
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