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
7885fa96
Commit
7885fa96
authored
Jun 21, 2022
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改样式
parent
38a4f1ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
69 deletions
+64
-69
src/views/outpatientDetails.vue
+64
-69
No files found.
src/views/outpatientDetails.vue
View file @
7885fa96
...
...
@@ -195,7 +195,7 @@
</li>
</ul>
-->
<el-table
<
!--
<
el-table
:data=
"tableData1"
style=
"width: 100%; margin-bottom: 20px"
header-row-style=
"height:100px"
...
...
@@ -205,15 +205,49 @@
:tree-props=
"
{ children: 'children', hasChildren: 'hasChildren' }"
@row-click="eowclick"
@expand-change='changeRowClick'
>
<el-table-column
prop=
"iteM_TYPE"
label=
"项目名称"
width=
"100"
header-align=
"center"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"总金额(小计)"
width=
"80"
header-align=
"center"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"address"
label=
"占总费用(比例)"
width=
"80"
header-align=
"center"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"c
c
"
label=
"预计DRG设定费用(参考)"
header-align=
"center"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"c
oreTotalFee
"
label=
"预计DRG设定费用(参考)"
header-align=
"center"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"dd"
label=
"设定费用比例(参考)"
header-align=
"center"
align=
"center"
>
</el-table-column>
</el-table>
-->
<el-table
ref=
"monthlyPlanTable"
:data=
"tableData1"
style=
"width: 100%; margin-bottom: 20px"
header-row-style=
"height:100px"
row-key=
"id"
:default-expand-all=
"false"
:highlight-current-row=
"true"
:tree-props=
"
{ children: 'inpat_FeeDatas', hasChildren: 'hasChildren' }"
@row-click="eowclick"
@expand-change="changeRowClick"
>
<el-table-column
prop=
"iteM_TYPE"
label=
"项目名称"
width=
"100"
header-align=
"center"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"totalFee"
label=
"总金额(小计)"
width=
"80"
header-align=
"center"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
decimal
(
scope
.
row
.
totalFee
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"proportion"
label=
"占总费用(比例)"
width=
"80"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
proportion
!=
undefined
?
decimal
(
scope
.
row
.
proportion
)
+
'%'
:
''
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"coreTotalFee"
label=
"预计DRG设定费用(参考)"
width=
"100"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
decimal
(
scope
.
row
.
coreTotalFee
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"coreProportion"
label=
"设定费用比例(参考)"
header-align=
"center"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
coreProportion
!=
undefined
?
decimal
(
scope
.
row
.
coreProportion
)
+
'%'
:
''
}}
</
template
>
</el-table-column>
</el-table>
</div>
<!-- 中间有数据样式 表格-->
<div
...
...
@@ -358,6 +392,7 @@ import {
onMounted
,
nextTick
,
computed
,
ref
}
from
"@vue/composition-api"
;
import
{
decimal
}
from
"../utils/decimal"
;
...
...
@@ -367,6 +402,7 @@ import { setItem, getItem } from "../utils/auth";
export
default
{
name
:
"outpatientDetails"
,
setup
()
{
const
monthlyPlanTable
=
ref
();
//表格颜色
const
tableRowClassName
=
({
row
})
=>
{
if
(
row
.
rowIndex
%
2
==
0
)
{
...
...
@@ -378,10 +414,28 @@ export default {
//当某一个行被点击时
const
eowclick
=
(
row
)
=>
{
console
.
log
(
'row'
,
row
);
getInpatFeesByREGCODE
(
row
)
};
//获取左侧表格数据
const
getlefttable
=
()
=>
{
http
.
post
(
`/medical/Post/getHisStaChargeType?code=
${
route
.
value
.
query
.
id
}
`
,
{})
.
then
((
data
)
=>
{
state
.
tableData1
=
data
;
if
(
state
.
tableData1
!=
[])
{
eowclick
(
state
.
tableData1
[
0
]);
//默认高亮第一行
nextTick
(()
=>
{
monthlyPlanTable
.
value
.
setCurrentRow
(
state
.
tableData1
[
0
]);
});
}
//中间的表格默认展示第一条数据
})
.
catch
((
error
)
=>
{});
};
//当行展开和关闭是触发
const
changeRowClick
=
(
row
)
=>
{
console
.
log
(
'row-chang'
,
row
);
...
...
@@ -545,69 +599,7 @@ export default {
// state.checkindex = index;
};
let
state
=
reactive
({
tableData1
:
[
{
id
:
1
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'低 30%'
,
},
{
id
:
3
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'高 30%'
,
children
:
[
{
id
:
31
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'低 30%'
,
},
{
id
:
32
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'低 30%'
,
},
],
},
{
id
:
4
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'低 30%'
,
children
:
[
{
id
:
31
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'低 30%'
,
},
{
id
:
32
,
iteM_TYPE
:
'检查费'
,
name
:
'300'
,
address
:
'高 30%'
,
cc
:
'3000'
,
dd
:
'低 30%'
,
},
],
},
],
tableData1
:
[],
HistoryInfo
:
{
name
:
""
,
healthyID
:
""
,
...
...
@@ -673,6 +665,7 @@ export default {
onMounted
(()
=>
{
GetProjectRulesData
();
getHistoryInfo
();
getlefttable
();
});
return
{
...
...
@@ -689,7 +682,9 @@ export default {
gettype
,
getruleId
,
eowclick
,
changeRowClick
changeRowClick
,
getlefttable
,
monthlyPlanTable
};
},
};
...
...
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