Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-composition-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宁路鹏
vue-composition-api
Commits
fd01bd07
Commit
fd01bd07
authored
Jun 10, 2022
by
wangshuangqing
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/修改' into develop
parents
3758f55d
f0a8ef2b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
388 additions
and
178 deletions
+388
-178
src/views/outHistorygrouping.vue
+49
-11
src/views/outpatientDetails.vue
+339
-167
No files found.
src/views/outHistorygrouping.vue
View file @
fd01bd07
...
...
@@ -42,6 +42,13 @@
医疗付费方式:
<span>
{{
casehisObj
?
casehisObj
.
a46C
:
""
}}
</span>
</div>
</div>
<div
class=
"outsetgrouping_top_message_blow"
>
<span
class=
"outsetgrouping_top_message_blow_tu7"
><img
src=
"../assets/img/daoru.png"
alt=
""
></span>
<div
class=
"outsetgrouping_top_message_blow_t4"
>
分组类型:
<span>
{{
casehisObj
?
casehisObj
.
drgs
.
disNature
:
''
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"outsetgrouping_top2"
>
...
...
@@ -67,7 +74,9 @@
casehisObj
?
casehisObj
.
drgs
.
actualfee
:
""
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"outsetgrouping_top3"
></div>
...
...
@@ -96,6 +105,7 @@
<div
class=
"outsetgrouping_centent_totalnum_left_text_msg1_text1"
>
<span>
诊断名称:
{{
item
.
diagMapName
}}
</span>
<span>
诊断类型:
{{
item
.
diagOrder
}}
</span>
<span>
分组类型:
{{
item
.
disNature
}}
</span>
</div>
<div
class=
"outsetgrouping_centent_totalnum_left_text_msg1_text2"
>
<span>
操作名称:
{{
item
.
opsMapName
}}
</span>
...
...
@@ -393,7 +403,7 @@ export default {
justify-content
:
space-between
;
&_left
{
width
:
33
%
;
width
:
25
%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
...
...
@@ -429,7 +439,7 @@ export default {
}
&
_centert
{
width
:
33
%
;
width
:
25
%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
...
...
@@ -466,7 +476,7 @@ export default {
}
&
_right
{
width
:
33
%
;
width
:
25
%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
...
...
@@ -501,7 +511,38 @@ export default {
}
}
}
&
_blow
{
width
:
25%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
align-items
:
center
;
background-color
:
#f3fafd
;
font-family
:
PingFang
SC
;
&_tu7{
padding-left
:
29px
;
font-size
:
23px
;
}
&
_t4
{
width
:
80%
;
height
:
42px
;
display
:
flex
;
justify-content
:
start
;
padding-left
:
10px
;
align-items
:
center
;
background-color
:
#fff
;
color
:
#abafb3
;
font-size
:
14px
;
margin-left
:
29px
;
span
{
color
:
#787e8a
;
}
}
}
}
}
...
...
@@ -602,11 +643,7 @@ export default {
background-color
:
#f3fafd
;
font-family
:
PingFang
SC
;
//
.iconfont
{
//
color
:
#2cabe3
;
//
padding-left
:
29px
;
//
font-size
:
23px
;
//
}
&_tu6{
padding-left
:
29px
;
font-size
:
23px
;
...
...
@@ -629,6 +666,7 @@ export default {
}
}
}
}
}
...
...
@@ -727,17 +765,17 @@ export default {
width
:
100%
;
height
:
48%
;
display
:
flex
;
justify-content
:
s
pace-between
;
justify-content
:
s
tart
;
span
{
height
:
100%
;
width
:
50
%
;
width
:
32
%
;
margin
:
0px
5px
;
display
:
flex
;
justify-content
:
start
;
align-items
:
center
;
font-size
:
14px
;
padding-left
:
1
0
px
;
padding-left
:
1
1
px
;
font-family
:
PingFang
SC
;
font-weight
:
300
;
color
:
#6a707e
;
...
...
src/views/outpatientDetails.vue
View file @
fd01bd07
...
...
@@ -17,27 +17,43 @@
<div
class=
"outpatientDetails_top_message"
>
<div
class=
"outpatientDetails_top_message_left"
>
<span
class=
"outpatientDetails_top_message_left_tu1"
>
<img
src=
"../assets/img/peo.png"
alt=
""
></span>
<span
class=
"outpatientDetails_top_message_left_tu1"
>
<img
src=
"../assets/img/peo.png"
alt=
""
/></span>
<div
class=
"outpatientDetails_top_message_left_t1"
>
住院号:
<span>
{{
HistoryInfo
.
id
}}
</span>
</div>
</div>
<div
class=
"outpatientDetails_top_message_centert"
>
<span
class=
"outpatientDetails_top_message_centert_tu2"
><img
src=
"../assets/img/ka.png"
alt=
""
></span>
<span
class=
"outpatientDetails_top_message_centert_tu2"
><img
src=
"../assets/img/ka.png"
alt=
""
/></span>
<div
class=
"outpatientDetails_top_message_centert_t2"
>
住院次数:
<span>
{{
HistoryInfo
.
a49
}}
</span>
</div>
</div>
<div
class=
"outpatientDetails_top_message_right"
>
<span
class=
"outpatientDetails_top_message_right_tu3"
><img
src=
"../assets/img/qian.png"
alt=
""
></span>
<span
class=
"outpatientDetails_top_message_right_tu3"
><img
src=
"../assets/img/qian.png"
alt=
""
/></span>
<div
class=
"outpatientDetails_top_message_right_t3"
>
医疗付费方式:
<span>
{{
HistoryInfo
.
paymentType
}}
</span>
</div>
</div>
<div
class=
"outpatientDetails_top_message_low"
>
<span
class=
"outpatientDetails_top_message_low_tu4"
><img
src=
"../assets/img/daoru.png"
alt=
""
/></span>
<div
class=
"outpatientDetails_top_message_low_t4"
>
分组类型:
<span>
{{
HistoryInfo
.
disNature
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"outpatientDetails_msg"
>
<span
class=
"outpatientDetails_msg_tu4"
><img
src=
"../assets/img/zu.png"
alt=
""
></span>
<span
class=
"outpatientDetails_msg_tu4"
><img
src=
"../assets/img/zu.png"
alt=
""
/></span>
<span>
分组:
{{
HistoryInfo
.
doctorName
}}
</span>
<span>
基准点数:
{{
decimal
(
HistoryInfo
.
rw
)
}}
</span>
<span>
实际医保费用:
{{
decimal
(
HistoryInfo
.
actualfee
)
}}
</span>
...
...
@@ -46,33 +62,93 @@
<span>
院内历年平均费用:
{{
decimal
(
HistoryInfo
.
avgFee
)
}}
</span>
<span>
院内历年平均住院天数:
{{
decimal
(
HistoryInfo
.
days
)
}}
</span>
</div>
<div
class=
"outpatientDetails_fenqu"
v-if=
"lowMagnification!=0 && highMagnification!=0"
>
<div
class=
"outpatientDetails_fenqu"
v-if=
"lowMagnification != 0 && highMagnification != 0"
>
<div
class=
"outpatientDetails_fenqu_di"
>
<div
class=
"outpatientDetails_fenqu_di_bb"
>
<div
class=
"outpatientDetails_fenqu_di_bb_div1"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div1_num"
:style=
"
{marginLeft:(totalwidth-1)+'%',color:totalcolor}">
{{
decimal
(
HistoryInfo
.
totalFee
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div1_he"
:style=
"
{ marginLeft:totalwidth+'%',backgroundColor:totalcolor}">
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div1_num"
:style=
"
{ marginLeft: totalwidth - 1 + '%', color: totalcolor }"
>
{{
decimal
(
HistoryInfo
.
totalFee
)
}}
</span
>
<span
class=
"outpatientDetails_fenqu_di_bb_div1_he"
:style=
"
{
marginLeft: totalwidth + '%',
backgroundColor: totalcolor,
}"
>
</span>
</div>
<div
class=
"outpatientDetails_fenqu_di_bb_div2"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span1"
:style=
"
{ width: lowwidth + '%' }">低倍率区域:
<
=
{{
Math
.
round
(
lowMagnification
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span2"
:style=
"
{ width: contentwidth + '%' }">正常区域:
{{
(
Math
.
round
(
lowMagnification
)
+
1
)
+
'~'
+
(
Math
.
round
(
highMagnification
)
-
1
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span1"
:style=
"
{ width: lowwidth + '%' }"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span1_t1"
:title=
"'低倍率区域:<=' + Math.round(lowMagnification)"
>
低倍率区域:
<
=
{{
Math
.
round
(
lowMagnification
)
}}
</span
></span
>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span2"
:style=
"
{ width: contentwidth + '%' }"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span2_t2"
:title=
"
'正常区域:' +
Math.round(lowMagnification) +
1 +
'~' +
(Math.round(highMagnification) - 1)
"
>
正常区域:
{{
Math
.
round
(
lowMagnification
)
+
1
+
"~"
+
(
Math
.
round
(
highMagnification
)
-
1
)
}}
</span
></span
>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span3"
:style=
"
{ width: heightwidth + '%' }">高倍率区域:>
{{
Math
.
round
(
highMagnification
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span3"
:style=
"
{ width: heightwidth + '%' }"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div2_span3_t3"
:title=
"'高倍率区域:>' + Math.round(highMagnification)"
>
高倍率区域:>
{{
Math
.
round
(
highMagnification
)
}}
</span
></span
>
</div>
<div
class=
"outpatientDetails_fenqu_di_bb_div3"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span1"
:style=
"
{ width: lowwidth + '%' }">
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span1"
:style=
"
{ width: lowwidth + '%' }"
>
0
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span2"
:style=
"
{ width: contentwidth + '%' }">
{{
Math
.
round
(
lowMagnification
)
}}
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span2"
:style=
"
{ width: contentwidth + '%' }"
>
{{
Math
.
round
(
lowMagnification
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span3"
:style=
"
{ width: heightwidth + '%' }">
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span2_nmm1"
>
{{
Math
.
round
(
highMagnification
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span2_nmm2"
>
{{
Math
.
round
(
heightnum
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span3"
:style=
"
{ width: heightwidth + '%' }"
>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span2_nmm1"
>
{{
Math
.
round
(
highMagnification
)
}}
</span>
<span
class=
"outpatientDetails_fenqu_di_bb_div3_span2_nmm2"
>
{{
Math
.
round
(
heightnum
)
}}
</span>
</span>
</div>
</div>
</div>
</div>
...
...
@@ -80,9 +156,12 @@
<span>
费用分类
</span>
</div>
<div
class=
"outpatientDetails_bottom"
:style=
"
{height:bottomheight
}">
<div
class=
"outpatientDetails_bottom"
:style=
"
{ height: bottomheight
}">
<!-- 有数据 -->
<div
class=
"outpatientDetails_bottom_leftShowBox"
v-if=
"goods.length !== 0"
>
<div
class=
"outpatientDetails_bottom_leftShowBox"
v-if=
"goods.length !== 0"
>
<div
class=
"outpatientDetails_bottom_leftShowBox_left"
>
<ul
class=
"outpatientDetails_bottom_leftShowBox_left_ul"
>
<li
v-for=
"(item, index) in goods"
:key=
"index"
>
...
...
@@ -94,23 +173,27 @@
:class=
"
{ active: index == checkindex }"
>
<span
:class=
"
{ fc2: index == checkindex }" class="sp1">
<span
v-show=
"index == checkindex"
style=
"color: #fff"
class=
"iconfont icon-jiantou1"
></span>
<span
v-show=
"index == checkindex"
style=
"color: #fff"
class=
"iconfont icon-jiantou1"
></span>
{{
item
.
iteM_TYPE
}}
:
{{
decimal
(
item
.
totalFee
)
}}
</span
>
<span
:class=
"
{ fc3: index == checkindex }" class="sp2">
<span
class=
"sp2_avg"
>
<!--
<span
class=
"sp2_avg"
>
平均:
{{
decimal
(
item
.
avgFee
)
}}
</span>
</span>
-->
<!--
<span
class=
"sp2_reto"
v-ratio=
"[item.proportion / 100, item.proportion / 100, `$
{index == checkindex ? '#fff' : '#6a707e'}`]">
</span>
-->
<span
class=
"sp2_reto"
v-if=
"item.proportion
<
=
0
"
>
{{
decimal
(
item
.
proportion
*
-
1
)
+
'%'
}}
<img
style=
"width: 4px; height: 12px; margin-left: 5px"
src=
"../assets/img/dataCockpit/lvse_zuo.png"
/
>
{{
decimal
(
item
.
proportion
*
-
1
)
+
"%"
}}
<!--
<img
style=
"width: 4px; height: 12px; margin-left: 5px"
src=
"../assets/img/dataCockpit/lvse_zuo.png"
/>
--
>
</span>
<span
class=
"sp2_reto"
v-else
>
{{
decimal
(
item
.
proportion
)
+
'%'
}}
<img
style=
"width: 4px; height: 12px; margin-left: 5px"
src=
"../assets/img/dataCockpit/hongse_you.png"
/
>
{{
decimal
(
item
.
proportion
)
+
"%"
}}
<!--
<img
style=
"width: 4px; height: 12px; margin-left: 5px"
src=
"../assets/img/dataCockpit/hongse_you.png"
/>
--
>
</span>
</span>
</div>
...
...
@@ -118,7 +201,10 @@
</ul>
</div>
<!-- 中间有数据样式 表格-->
<div
class=
"outpatientDetails_bottom_leftShowBox_right"
v-if=
"tableData.length !== 0"
>
<div
class=
"outpatientDetails_bottom_leftShowBox_right"
v-if=
"tableData.length !== 0"
>
<el-table
:data=
"tableData"
border
...
...
@@ -147,7 +233,7 @@
</el-table-column>
<el-table-column
label=
"数量"
prop=
"quantity"
></el-table-column>
<el-table-column
label=
"总金额"
prop=
"fee"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
{{
decimal
(
scope
.
row
.
unitprice
)
}}
</
template
>
</el-table-column>
...
...
@@ -156,8 +242,14 @@
<!-- 中间表格无数据 -->
<div
class=
"outpatientDetails_bottom_leftShowBox_right"
v-else
>
<div
class=
"outpatientDetails_bottom_leftShowBox_right_box"
>
<img
class=
"outpatientDetails_bottom_leftShowBox_right_box_img"
src=
"../assets/img/nodata.png"
alt=
""
/>
<div
class=
"outpatientDetails_bottom_leftShowBox_right_box_text"
>
暂无数据
</div>
<img
class=
"outpatientDetails_bottom_leftShowBox_right_box_img"
src=
"../assets/img/nodata.png"
alt=
""
/>
<div
class=
"outpatientDetails_bottom_leftShowBox_right_box_text"
>
暂无数据
</div>
</div>
</div>
</div>
...
...
@@ -165,8 +257,14 @@
<!-- 表格无数据样式 -->
<div
class=
"outpatientDetails_bottom_leftShowBox"
v-else
>
<div
class=
"outpatientDetails_bottom_leftShowBox_box"
>
<img
class=
"outpatientDetails_bottom_leftShowBox_box_img"
src=
"../assets/img/nodata.png"
alt=
""
/>
<div
class=
"outpatientDetails_bottom_leftShowBox_box_text"
>
暂无数据
</div>
<img
class=
"outpatientDetails_bottom_leftShowBox_box_img"
src=
"../assets/img/nodata.png"
alt=
""
/>
<div
class=
"outpatientDetails_bottom_leftShowBox_box_text"
>
暂无数据
</div>
</div>
</div>
<!-- 右侧有数据 -->
...
...
@@ -174,8 +272,13 @@
<div
class=
"outpatientDetails_bottom_rght2_top"
>
<div
class=
"outpatientDetails_bottom_rght2_top_title"
>
异常问题
</div>
<div
class=
"outpatientDetails_bottom_rght2_top_mes"
>
<span
class=
"outpatientDetails_bottom_rght2_top_mes_span1"
v-for=
"(item, ind) in typeCountDatas"
:key=
"ind"
>
{{ item.name }}:
<span
:style=
"{ color: item.color }"
>
{{ item.count }}
</span></span
<span
class=
"outpatientDetails_bottom_rght2_top_mes_span1"
v-for=
"(item, ind) in typeCountDatas"
:key=
"ind"
>
{{ item.name }}:
<span
:style=
"{ color: item.color }"
>
{{
item.count
}}
</span></span
>
<!-- <span class="outpatientDetails_bottom_rght2_top_mes_span2">检查:<span style="color: #3ad330">0</span></span>
...
...
@@ -184,24 +287,36 @@
</div>
</div>
<div
class=
"outpatientDetails_bottom_rght2_bottom"
>
<div
class=
"outpatientDetails_bottom_rght2_bottom_li"
v-for=
"(item, ind) in options"
:key=
"ind"
>
<span
v-show=
"item.projectRuleLevel == '禁止'"
class=
"outpatientDetails_bottom_rght2_bottom_li_title"
style=
"background: red"
>
{{
item.projectRuleLevel
}}
</span>
<span
v-show=
"item.projectRuleLevel == '提示'"
class=
"outpatientDetails_bottom_rght2_bottom_li_title"
style=
"background: #2aaae2"
>
{{
item.projectRuleLevel
}}
</span>
<span
v-show=
"item.projectRuleLevel == '警告'"
class=
"outpatientDetails_bottom_rght2_bottom_li_title"
style=
"background: #e9c621"
>
{{
item.projectRuleLevel
}}
</span>
<div
class=
"outpatientDetails_bottom_rght2_bottom_li"
v-for=
"(item, ind) in options"
:key=
"ind"
>
<span
v-show=
"item.projectRuleLevel == '禁止'"
class=
"outpatientDetails_bottom_rght2_bottom_li_title"
style=
"background: red"
>
{{ item.projectRuleLevel }}
</span
>
<span
v-show=
"item.projectRuleLevel == '提示'"
class=
"outpatientDetails_bottom_rght2_bottom_li_title"
style=
"background: #2aaae2"
>
{{ item.projectRuleLevel }}
</span
>
<span
v-show=
"item.projectRuleLevel == '警告'"
class=
"outpatientDetails_bottom_rght2_bottom_li_title"
style=
"background: #e9c621"
>
{{ item.projectRuleLevel }}
</span
>
<el-tooltip
placement=
"bottom"
trigger=
"hover"
>
<
template
#
content
>
{{
item
.
notes
}}
</
template
>
<span
class=
"outpatientDetails_bottom_rght2_bottom_li_cont"
>
{{ item.notes }}
</span>
<
template
#
content
>
{{
item
.
notes
}}
</
template
>
<span
class=
"outpatientDetails_bottom_rght2_bottom_li_cont"
>
{{
item.notes
}}
</span>
</el-tooltip>
</div>
</div>
</div>
...
...
@@ -216,30 +331,33 @@
</div>
</template>
<
script
>
import
http
from
'../utils/http'
;
import
{
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
}
from
'@vue/composition-api'
;
import
{
decimal
}
from
'../utils/decimal'
;
import
{
Message
}
from
'element-ui'
;
import
{
useRoute
,
useRouter
}
from
'../utils/useVueRouter'
;
import
{
setItem
,
getItem
}
from
'../utils/auth'
;
import
http
from
"../utils/http"
;
import
{
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
,
}
from
"@vue/composition-api"
;
import
{
decimal
}
from
"../utils/decimal"
;
import
{
Message
}
from
"element-ui"
;
import
{
useRoute
,
useRouter
}
from
"../utils/useVueRouter"
;
import
{
setItem
,
getItem
}
from
"../utils/auth"
;
export
default
{
name
:
'outpatientDetails'
,
name
:
"outpatientDetails"
,
setup
()
{
//表格颜色
const
tableRowClassName
=
({
row
})
=>
{
const
tableRowClassName
=
({
row
})
=>
{
if
(
row
.
rowIndex
%
2
==
0
)
{
return
'isverifyStyle'
;
return
"isverifyStyle"
;
}
else
{
return
''
;
return
""
;
}
};
//异常问题接口
const
GetProjectRulesData
=
()
=>
{
http
.
post
(
`/medical/get/GetPRHisData?&code=
${
route
.
value
.
query
.
id
}
`
,
{})
.
then
((
data
)
=>
{
...
...
@@ -251,29 +369,20 @@ export default {
if
(
data
.
projectRules
==
null
)
{
state
.
showbottom
=
false
;
}
})
.
catch
((
error
)
=>
{
});
.
catch
((
error
)
=>
{});
};
//医嘱质控
const
getControl
=
()
=>
{
http
.
post
(
`/global/post/SetCaseProjectRuleHis?id=
${
route
.
value
.
query
.
id
}
`
)
.
then
((
data
)
=>
{
Message
.
success
(
data
.
message
);
})
.
catch
((
error
)
=>
{
});
.
catch
((
error
)
=>
{});
};
//获取患者信息数据
const
getHistoryInfo
=
()
=>
{
http
.
post
(
`/medical/Get/getHisInfo?&code=
${
route
.
value
.
query
.
id
}
`
,
{})
.
then
((
data
)
=>
{
...
...
@@ -281,70 +390,74 @@ export default {
state
.
dipid
=
data
.
id
;
state
.
goods
=
data
.
inpat_FeeDatas
;
state
.
lowMagnification
=
data
.
lowMagnification
;
state
.
highMagnification
=
data
.
highMagnification
;
state
.
lowMagnification
=
data
.
lowMagnification
;
state
.
highMagnification
=
data
.
highMagnification
;
// 高倍率>总费用 高倍率金额+高倍率金额*30%
if
(
data
.
highMagnification
>
data
.
totalFee
)
{
state
.
heightnum
=
data
.
highMagnification
+
data
.
highMagnification
*
0.3
;
console
.
log
(
'state.heightnum'
,
state
.
heightnum
);
state
.
heightnum
=
data
.
highMagnification
+
data
.
highMagnification
*
0.3
;
console
.
log
(
"state.heightnum"
,
state
.
heightnum
);
}
else
if
(
data
.
highMagnification
<
data
.
totalFee
)
{
// 高倍率
<
总费用
患者总费用的金额
+
患者总费用的金额
*
30
%
state
.
heightnum
=
data
.
totalFee
+
data
.
totalFee
*
0.3
;
console
.
log
(
'state.heightnum'
,
state
.
heightnum
);
console
.
log
(
"state.heightnum"
,
state
.
heightnum
);
}
// 低倍率宽度
state
.
lowwidth
=
Math
.
round
((
Math
.
round
(
data
.
lowMagnification
)
/
Math
.
round
(
state
.
heightnum
))
*
100
);
state
.
lowwidth
=
Math
.
round
(
(
Math
.
round
(
data
.
lowMagnification
)
/
Math
.
round
(
state
.
heightnum
))
*
100
);
// 高倍率宽度
state
.
heightwidth
=
Math
.
round
(((
Math
.
round
(
state
.
heightnum
)
-
Math
.
round
(
data
.
highMagnification
)
)
/
Math
.
round
(
state
.
heightnum
))
*
100
);
state
.
heightwidth
=
Math
.
round
(
((
Math
.
round
(
state
.
heightnum
)
-
Math
.
round
(
data
.
highMagnification
))
/
Math
.
round
(
state
.
heightnum
))
*
100
);
// 正常倍率宽度
state
.
contentwidth
=
100
-
(
state
.
lowwidth
+
state
.
heightwidth
);
//总费用宽度
state
.
totalwidth
=
Math
.
round
((
Math
.
round
(
data
.
totalFee
)
/
Math
.
round
(
state
.
heightnum
))
*
100
);
state
.
totalwidth
=
Math
.
round
(
(
Math
.
round
(
data
.
totalFee
)
/
Math
.
round
(
state
.
heightnum
))
*
100
);
// 判断总费用显示的颜色
if
(
data
.
totalFee
<
data
.
lowMagnification
){
state
.
totalcolor
=
'#e9c622'
}
else
if
(
data
.
totalFee
>
data
.
lowMagnification
&&
data
.
totalFee
<
data
.
highMagnification
){
state
.
totalcolor
=
'#22d016'
}
else
if
(
data
.
totalFee
>
data
.
highMagnification
){
state
.
totalcolor
=
'#ff7e00'
if
(
data
.
totalFee
<
data
.
lowMagnification
)
{
state
.
totalcolor
=
"#e9c622"
;
}
else
if
(
data
.
totalFee
>
data
.
lowMagnification
&&
data
.
totalFee
<
data
.
highMagnification
)
{
state
.
totalcolor
=
"#22d016"
;
}
else
if
(
data
.
totalFee
>
data
.
highMagnification
)
{
state
.
totalcolor
=
"#ff7e00"
;
}
if
(
data
.
lowMagnification
==
0
||
data
.
highMagnification
==
0
){
state
.
bottomheight
=
"80%"
}
else
if
(
data
.
lowMagnification
!=
0
)
{
state
.
bottomheight
=
"70%"
if
(
data
.
lowMagnification
==
0
||
data
.
highMagnification
==
0
)
{
state
.
bottomheight
=
"80%"
;
}
else
if
(
data
.
lowMagnification
!=
0
)
{
state
.
bottomheight
=
"70%"
;
}
if
(
state
.
goods
.
length
>
0
)
{
// debugger
toggle
(
0
,
state
.
goods
[
0
]);
}
})
.
catch
((
error
)
=>
{
});
.
catch
((
error
)
=>
{});
};
//费用分类接口
const
getInpatFeesByREGCODE
=
(
item
)
=>
{
http
.
post
(
`/medical/Get/getIFHisByREGCODE?&code=
${
route
.
value
.
query
.
id
}
&ItemType=
${
item
.
iteM_TYPE
}
`
,
{})
.
post
(
`/medical/Get/getIFHisByREGCODE?&code=
${
route
.
value
.
query
.
id
}
&ItemType=
${
item
.
iteM_TYPE
}
`
,
{}
)
.
then
((
data
)
=>
{
state
.
tableData
=
data
;
})
.
catch
((
error
)
=>
{
});
.
catch
((
error
)
=>
{});
};
const
toggle
=
(
index
,
item
)
=>
{
state
.
checkindex
=
index
;
...
...
@@ -355,39 +468,40 @@ export default {
};
let
state
=
reactive
({
HistoryInfo
:
{
name
:
''
,
healthyID
:
''
,
paymentType
:
''
,
doctorName
:
''
,
rw
:
''
,
totalFee
:
''
,
avgFee
:
''
,
days
:
''
,
profitLoss
:
''
,
name
:
""
,
healthyID
:
""
,
paymentType
:
""
,
disNature
:
''
,
doctorName
:
""
,
rw
:
""
,
totalFee
:
""
,
avgFee
:
""
,
days
:
""
,
profitLoss
:
""
,
},
checkindex
:
0
,
// 初始化第一个栏块高亮
goods
:
[],
//左侧费用类型
tableListHead
:
[
{
cloumn
:
'开单日期'
,
name
:
'chargeTime'
},
{
cloumn
:
"开单日期"
,
name
:
"chargeTime"
},
{
cloumn
:
'项目编码'
,
name
:
'iteM_CODE'
,
cloumn
:
"项目编码"
,
name
:
"iteM_CODE"
,
},
{
cloumn
:
'项目名称'
,
name
:
'iteM_NAME'
,
cloumn
:
"项目名称"
,
name
:
"iteM_NAME"
,
},
{
cloumn
:
'单价'
,
name
:
'unitprice'
,
cloumn
:
"单价"
,
name
:
"unitprice"
,
},
{
cloumn
:
'数量'
,
name
:
'quantity'
,
cloumn
:
"数量"
,
name
:
"quantity"
,
},
{
cloumn
:
'总金额'
,
name
:
'fee'
,
cloumn
:
"总金额"
,
name
:
"fee"
,
},
],
tableData
:
[],
...
...
@@ -396,19 +510,19 @@ export default {
notdrugsNum
:
0
,
//非药品
drugsNum
:
0
,
//药品
diseaseNum
:
0
,
//疾病
dipid
:
''
,
dipid
:
""
,
typeCountDatas
:
[],
//异常数据
showCountDatas
:
true
,
//异常问题类型是否显示
showbottom
:
true
,
//异常问题详情是否显示
heightnum
:
''
,
//最大值
lowwidth
:
''
,
//低倍率宽度
heightwidth
:
''
,
//高倍率宽度
contentwidth
:
''
,
//正常倍率宽度
totalwidth
:
''
,
//总费用宽度
totalcolor
:
''
,
//总费用颜色
lowMagnification
:
0
,
//低倍率值
highMagnification
:
0
,
//高倍率值
bottomheight
:
'60%'
,
//底部高度
heightnum
:
""
,
//最大值
lowwidth
:
""
,
//低倍率宽度
heightwidth
:
""
,
//高倍率宽度
contentwidth
:
""
,
//正常倍率宽度
totalwidth
:
""
,
//总费用宽度
totalcolor
:
""
,
//总费用颜色
lowMagnification
:
0
,
//低倍率值
highMagnification
:
0
,
//高倍率值
bottomheight
:
"60%"
,
//底部高度
});
//表格自适应高度
const
route
=
useRoute
();
...
...
@@ -434,7 +548,7 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
'../styles/mixin.scss'
;
@import
"../styles/mixin.scss"
;
//
@import
'../styles/media/components/outpatientDetails.scss'
;
.outpatientDetails
{
//
height
:
calc
(
100%
-
50px
);
...
...
@@ -468,7 +582,7 @@ export default {
justify-content
:
space-between
;
margin-top
:
16px
;
&_left
{
width
:
33
%
;
width
:
25
%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
...
...
@@ -479,7 +593,7 @@ export default {
//
padding-left
:
29px
;
//
font-size
:
23px
;
//
}
&
_tu1
{
&
_tu1
{
padding-left
:
29px
;
font-size
:
23px
;
}
...
...
@@ -501,7 +615,7 @@ export default {
}
}
&
_centert
{
width
:
33
%
;
width
:
25
%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
...
...
@@ -513,7 +627,7 @@ export default {
//
padding-left
:
29px
;
//
font-size
:
23px
;
//
}
&
_tu2
{
&
_tu2
{
padding-left
:
29px
;
font-size
:
23px
;
}
...
...
@@ -535,19 +649,15 @@ export default {
}
}
&
_right
{
width
:
33
%
;
width
:
25
%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
align-items
:
center
;
background-color
:
#f3fafd
;
font-family
:
PingFang
SC
;
//
.iconfont
{
//
color
:
#2cabe3
;
//
padding-left
:
29px
;
//
font-size
:
23px
;
//
}
&
_tu3
{
&_tu3
{
padding-left
:
29px
;
font-size
:
23px
;
}
...
...
@@ -567,6 +677,35 @@ export default {
}
}
}
&
_low
{
width
:
25%
;
height
:
51px
;
display
:
flex
;
justify-content
:
start
;
align-items
:
center
;
background-color
:
#f3fafd
;
font-family
:
PingFang
SC
;
&_tu4
{
padding-left
:
29px
;
font-size
:
23px
;
}
&
_t4
{
width
:
80%
;
height
:
42px
;
display
:
flex
;
justify-content
:
start
;
padding-left
:
10px
;
align-items
:
center
;
background-color
:
#fff
;
color
:
#abafb3
;
font-size
:
14px
;
margin-left
:
29px
;
span
{
color
:
#787e8a
;
}
}
}
}
}
&
_msg
{
...
...
@@ -581,7 +720,7 @@ export default {
//
padding-left
:
28px
;
//
font-size
:
23px
;
//
}
&
_tu4
{
&
_tu4
{
padding-left
:
29px
;
font-size
:
23px
;
}
...
...
@@ -621,7 +760,7 @@ export default {
display
:
flex
;
justify-content
:
center
;
&_bb
{
&_bb
{
width
:
98%
;
height
:
85%
;
margin
:
0
5px
;
...
...
@@ -645,7 +784,6 @@ export default {
display
:
block
;
width
:
2px
;
height
:
10px
;
}
}
&
_div2
{
...
...
@@ -667,6 +805,18 @@ export default {
align-items
:
center
;
justify-content
:
center
;
font-family
:
PingFang
SC
;
&_t1
{
width
:
90%
;
height
:
100%
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-align
:
center
;
padding-top
:
10px
;
}
&
_t1
:hover
{
width
:
90%
;
}
}
&
_span2
{
display
:
block
;
...
...
@@ -681,6 +831,18 @@ export default {
align-items
:
center
;
justify-content
:
center
;
font-family
:
PingFang
SC
;
&_t2
{
width
:
90%
;
height
:
100%
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-align
:
center
;
padding-top
:
10px
;
}
&
_t2
:hover
{
width
:
90%
;
}
}
&
_span3
{
display
:
block
;
...
...
@@ -694,6 +856,20 @@ export default {
align-items
:
center
;
justify-content
:
center
;
font-family
:
PingFang
SC
;
&_t3
{
width
:
90%
;
height
:
100%
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-align
:
center
;
padding-top
:
10px
;
}
&
_t3
:hover
{
width
:
90%
;
}
}
}
&
_div3
{
...
...
@@ -707,7 +883,6 @@ export default {
font-size
:
12px
;
font-family
:
PingFang
SC
;
color
:
#abafb3
;
}
&
_span2
{
display
:
flex
;
...
...
@@ -735,15 +910,12 @@ export default {
//
color
:
#abafb3
;
//
}
}
}
}
}
&
_title
{
background-image
:
url('../assets/img/dataMaintenance/title.png'
)
;
background-image
:
url("../assets/img/dataMaintenance/title.png"
)
;
background-repeat
:
no-repeat
;
display
:
flex
;
justify-content
:
start
;
...
...
@@ -790,7 +962,7 @@ export default {
//
有数据
&
_left
{
list-style-type
:
none
;
width
:
3
7%
;
width
:
2
7%
;
height
:
90%
;
overflow-y
:
auto
;
...
...
@@ -807,7 +979,7 @@ export default {
color
:
#fff
;
.fc2
{
width
:
4
0%
;
width
:
7
0%
;
height
:
100%
;
display
:
flex
;
...
...
@@ -820,12 +992,12 @@ export default {
}
}
.fc3
{
width
:
6
0%
;
width
:
3
0%
;
height
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-items
:
center
;
justify-content
:
flex-end
;
justify-content
:
center
;
padding-right
:
3%
;
}
}
...
...
@@ -850,7 +1022,7 @@ export default {
align-items
:
center
;
font-size
:
13px
;
font-family
:
'PingFang SC'
;
font-family
:
"PingFang SC"
;
.sp1
{
width
:
40%
;
...
...
@@ -861,7 +1033,7 @@ export default {
justify-content
:
flex-start
;
padding-left
:
3%
;
font-family
:
'PingFang SC'
;
font-family
:
"PingFang SC"
;
}
.sp2
{
width
:
60%
;
...
...
@@ -872,7 +1044,7 @@ export default {
justify-content
:
flex-end
;
padding-right
:
3%
;
font-family
:
'PingFang SC'
;
font-family
:
"PingFang SC"
;
&_avg
{
display
:
flex
;
...
...
@@ -887,14 +1059,14 @@ export default {
flex-direction
:
row
;
align-items
:
center
;
width
:
50%
;
justify-content
:
flex-end
;
justify-content
:
center
;
}
}
}
}
}
&
_right
{
width
:
6
2%
;
width
:
7
2%
;
//
无数据样式
&_box
{
width
:
100%
;
...
...
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