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
bfd4f5ea
Commit
bfd4f5ea
authored
Jun 05, 2023
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7f75b14a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
src/views/outClinicalpathway.vue
+20
-12
No files found.
src/views/outClinicalpathway.vue
View file @
bfd4f5ea
...
@@ -153,7 +153,17 @@
...
@@ -153,7 +153,17 @@
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.isnew && scope.row.orderType"
>
<template
v-if=
"scope.row.ischeck == 1 && scope.row.isnew && scope.row.orderType"
>
<el-popover
placement=
"bottom"
width=
"1000"
height=
"600"
trigger=
"focus"
v-model=
"scope.row.isPop"
>
<el-popover
placement=
"bottom"
width=
"1000"
height=
"600"
trigger=
"focus"
v-model=
"scope.row.isPop"
>
<el-table
:data=
"gridData"
@
row-dblclick=
"rowdblclick"
max-height=
"400"
size=
"mini"
style=
"width: 100%"
row-key=
"id"
>
<el-table
ref=
"singleTable"
:data=
"gridData"
highlight-current-row
@
row-dblclick
.
enter=
"rowdblclick"
max-height=
"400"
size=
"mini"
style=
"width: 100%"
row-key=
"id"
@
current-change=
"handleCurrentChange"
>
<el-table-column
width=
"80"
property=
"orderType"
label=
"类型"
></el-table-column>
<el-table-column
width=
"80"
property=
"orderType"
label=
"类型"
></el-table-column>
<el-table-column
show-overflow-tooltip
width=
"200"
property=
"project_name"
label=
"医嘱名称"
></el-table-column>
<el-table-column
show-overflow-tooltip
width=
"200"
property=
"project_name"
label=
"医嘱名称"
></el-table-column>
<el-table-column
show-overflow-tooltip
width=
"100"
property=
"specifications"
label=
"规格说明"
></el-table-column>
<el-table-column
show-overflow-tooltip
width=
"100"
property=
"specifications"
label=
"规格说明"
></el-table-column>
...
@@ -506,6 +516,7 @@ export default {
...
@@ -506,6 +516,7 @@ export default {
gridData
:
[],
gridData
:
[],
query
:
""
,
query
:
""
,
query1
:
""
,
query1
:
""
,
currentRow
:
null
,
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -543,16 +554,6 @@ export default {
...
@@ -543,16 +554,6 @@ export default {
methods
:
{
methods
:
{
// 总量计算
// 总量计算
setIput
(
row
)
{
setIput
(
row
)
{
// console.log(row);
// if (row.children && row.children.length) {
// row.children.map((item) => {
// item.medicalPurpose = row.medicalPurpose;
// item.medicUseMode = row.medicUseMode;
// item.medicUsePlan = row.medicUsePlan;
// item.dropNumber = row.dropNumber;
// item.medicQuantity = row.medicQuantity;
// });
// }
if
(
!
isNaN
(
parseFloat
(
row
.
medicUseQuantity
))
&&
isFinite
(
row
.
medicUseQuantity
)
&&
row
.
medicUsePlan
)
{
if
(
!
isNaN
(
parseFloat
(
row
.
medicUseQuantity
))
&&
isFinite
(
row
.
medicUseQuantity
)
&&
row
.
medicUsePlan
)
{
let
num
=
this
.
medicUsePlanoptions
.
find
((
item
)
=>
item
.
describe
==
row
.
medicUsePlan
).
num
;
let
num
=
this
.
medicUsePlanoptions
.
find
((
item
)
=>
item
.
describe
==
row
.
medicUsePlan
).
num
;
// 使用量;
// 使用量;
...
@@ -659,12 +660,19 @@ export default {
...
@@ -659,12 +660,19 @@ export default {
data
.
map
((
el
,
i
)
=>
{
data
.
map
((
el
,
i
)
=>
{
el
.
id
=
i
++
;
el
.
id
=
i
++
;
});
});
this
.
$refs
.
singleTable
.
setCurrentRow
(
data
[
0
]);
console
.
log
(
this
.
currentRow
);
}
}
this
.
gridData
=
data
;
this
.
gridData
=
data
;
})
})
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
},
},
handleCurrentChange
(
val
)
{
this
.
currentRow
=
val
;
},
handleEnter
()
{
console
.
log
(
"Enter key was pressed"
);
},
rowdblclick
(
row
,
column
,
event
)
{
rowdblclick
(
row
,
column
,
event
)
{
this
.
pushData
(
row
,
this
.
tableData
);
this
.
pushData
(
row
,
this
.
tableData
);
this
.
tempRow
.
isPop
=
false
;
this
.
tempRow
.
isPop
=
false
;
...
...
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