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
fa37ed34
authored
Jul 12, 2021
by
peii
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
费用配置
parent
2cfd25c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
app/containers/equipConsu/EquipConsuPage.js
app/containers/equipConsu/EquipConsuPage.js
View file @
fa37ed34
...
@@ -184,7 +184,8 @@ class EquipConsuPage extends Component {
...
@@ -184,7 +184,8 @@ class EquipConsuPage extends Component {
sysValues
:
{
sysValues
:
{
OBS_MOBILE_CONSU_DEPARTMENT_DISPLAY
:
0
,
OBS_MOBILE_CONSU_DEPARTMENT_DISPLAY
:
0
,
OBS_MOBILE_CONSU_DOCTOR_DISPLAY
:
0
,
OBS_MOBILE_CONSU_DOCTOR_DISPLAY
:
0
,
OBS_MOBILE_CONSU_FOLLOW_DISPLAY
:
0
OBS_MOBILE_CONSU_FOLLOW_DISPLAY
:
0
,
OBS_MOBILE_CONSUME_FEE
:
'Y'
},
},
departments
:
[],
departments
:
[],
localDoctors
:
[],
localDoctors
:
[],
...
@@ -669,6 +670,9 @@ class EquipConsuPage extends Component {
...
@@ -669,6 +670,9 @@ class EquipConsuPage extends Component {
*/
*/
async
getDepartmentsByOrg
(
org_code
)
{
async
getDepartmentsByOrg
(
org_code
)
{
const
{
token
,
global_domain_config
,
userInfo
}
=
this
.
props
const
{
token
,
global_domain_config
,
userInfo
}
=
this
.
props
const
{
sysValues
}
=
this
.
state
if
(
sysValues
.
OBS_MOBILE_CONSU_DEPARTMENT_DISPLAY
<
2
)
return
const
params
=
{
const
params
=
{
access_token
:
token
,
access_token
:
token
,
org_code
,
org_code
,
...
@@ -812,7 +816,7 @@ class EquipConsuPage extends Component {
...
@@ -812,7 +816,7 @@ class EquipConsuPage extends Component {
* @return {*}
* @return {*}
*/
*/
selectOrderCallback
(
item
)
{
selectOrderCallback
(
item
)
{
const
{
listOptionData
}
=
this
.
state
const
{
listOptionData
,
sysValues
}
=
this
.
state
listOptionData
[
3
].
value
=
item
.
collect_number
listOptionData
[
3
].
value
=
item
.
collect_number
listOptionData
[
3
].
name
=
item
.
collect_number
listOptionData
[
3
].
name
=
item
.
collect_number
this
.
setState
({
listOptionData
},
()
=>
{
this
.
setState
({
listOptionData
},
()
=>
{
...
@@ -820,7 +824,7 @@ class EquipConsuPage extends Component {
...
@@ -820,7 +824,7 @@ class EquipConsuPage extends Component {
this
.
getCurOrderDetail
()
this
.
getCurOrderDetail
()
this
.
autoSetDoctorAndFollower
()
this
.
autoSetDoctorAndFollower
()
this
.
setUserEnteredPrice
(
item
.
collect_number
)
this
.
setUserEnteredPrice
(
item
.
collect_number
)
this
.
getConsumeFeeLines
(
item
.
collect_number
)
sysValues
.
OBS_MOBILE_CONSUME_FEE
&&
this
.
getConsumeFeeLines
(
item
.
collect_number
)
})
})
}
}
...
@@ -837,14 +841,14 @@ class EquipConsuPage extends Component {
...
@@ -837,14 +841,14 @@ class EquipConsuPage extends Component {
try
{
try
{
const
res
=
await
reqConsumeFeeLines
(
this
.
props
.
global_domain_config
,
params
)
const
res
=
await
reqConsumeFeeLines
(
this
.
props
.
global_domain_config
,
params
)
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
error_code
!==
0
)
{
if
(
res
.
error_code
!==
0
)
return
{}
return
show
(
res
.
error_msg
||
'请求失败'
)
}
this
.
setState
({
fees
:
res
.
data
})
this
.
setState
({
fees
:
res
.
data
})
this
.
props
.
setCharDetailsOption
(
res
.
data
.
collect_fee_lines
)
this
.
props
.
setCharDetailsOption
(
res
.
data
.
collect_fee_lines
)
return
res
.
data
return
res
.
data
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
error
);
console
.
log
(
error
);
return
{}
}
}
}
}
...
@@ -1341,9 +1345,12 @@ class EquipConsuPage extends Component {
...
@@ -1341,9 +1345,12 @@ class EquipConsuPage extends Component {
if
(
state
.
listOptionData
[
13
].
subOption
&&
state
.
listOptionData
[
13
].
subOption
.
length
>
0
){
if
(
state
.
listOptionData
[
13
].
subOption
&&
state
.
listOptionData
[
13
].
subOption
.
length
>
0
){
tempSubOption
.
fee_lines
=
R
.
compose
(
tempSubOption
.
fee_lines
=
R
.
compose
(
R
.
map
(
item
=>
{
R
.
addIndex
(
R
.
map
)((
item
,
index
)
=>
{
item
.
quantity
=
Number
(
item
.
quantity
)
item
.
quantity
=
isNotBlank
(
item
.
quantity
)
?
Number
(
item
.
quantity
)
:
1
item
.
sale_price
=
Number
(
item
.
sale_price
)
item
.
sale_price
=
Number
(
item
.
sale_price
)
item
.
unit_code
=
'JIAN'
item
.
surgery_collect_fee_line_number
=
(
index
+
1
).
toString
()
item
.
surgery_collect_number
=
tempSubOption
.
surgery_collect_number
return
item
return
item
}),
}),
R
.
map
(
R
.
dissocPath
([
'id'
])),
R
.
map
(
R
.
dissocPath
([
'id'
])),
...
@@ -1361,7 +1368,7 @@ class EquipConsuPage extends Component {
...
@@ -1361,7 +1368,7 @@ class EquipConsuPage extends Component {
access_token
:
props
.
token
,
access_token
:
props
.
token
,
data
:
{
...
tempSubOption
}
data
:
{
...
tempSubOption
}
}
}
console
.
log
(
'==params===='
,
params
)
//
console.log('==params====', params)
props
.
requestEquipSumbit
(
params
)
props
.
requestEquipSumbit
(
params
)
}
}
}
}
...
@@ -1941,7 +1948,7 @@ class EquipConsuPage extends Component {
...
@@ -1941,7 +1948,7 @@ class EquipConsuPage extends Component {
}
}
render
()
{
render
()
{
let
{
canSubFlag
}
=
this
.
state
let
{
canSubFlag
,
sysValues
}
=
this
.
state
let
{
navigation
}
=
this
.
props
let
{
navigation
}
=
this
.
props
let
{
title
}
=
navigation
.
state
.
params
let
{
title
}
=
navigation
.
state
.
params
return
(
return
(
...
@@ -1960,7 +1967,7 @@ class EquipConsuPage extends Component {
...
@@ -1960,7 +1967,7 @@ class EquipConsuPage extends Component {
{
this
.
renderListItem
()}
{
this
.
renderListItem
()}
{
this
.
renderRemarksItem
()}
{
this
.
renderRemarksItem
()}
{
this
.
renderConsumablesDetailsItem
()}
{
this
.
renderConsumablesDetailsItem
()}
{
this
.
renderChargeDetailsItem
()}
{
sysValues
.
OBS_MOBILE_CONSUME_FEE
===
'Y'
&&
this
.
renderChargeDetailsItem
()}
{
this
.
renderAddPicturesItem
()}
{
this
.
renderAddPicturesItem
()}
{
this
.
renderZoomPicture
()}
{
this
.
renderZoomPicture
()}
<
FooterBtnStyle
<
FooterBtnStyle
...
...
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