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
fa601a40
Commit
fa601a40
authored
Jun 16, 2023
by
唐玉峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fc07ee9c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
11 deletions
+42
-11
public/index.html
+5
-2
src/views/outClinicalpathway.vue
+37
-9
src/views/test.vue
+0
-0
No files found.
public/index.html
View file @
fa601a40
...
...
@@ -13,8 +13,11 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<link
rel=
"icon"
href=
"favicon.ico"
/>
<!-- <link rel="stylesheet" href="../src/assets/font/complete/iconfont.css"> -->
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=8"
/>
<meta
http-equiv=
"Expires"
content=
"0"
/>
<meta
http-equiv=
"Pragma"
content=
"no-cache"
/>
<meta
http-equiv=
"Cache-control"
content=
"no-cache"
/>
<meta
http-equiv=
"Cache"
content=
"no-cache"
/>
<title>
基于病种精准管理系统
</title>
</head>
...
...
src/views/outClinicalpathway.vue
View file @
fa601a40
...
...
@@ -552,6 +552,25 @@ export default {
},
},
methods
:
{
// :prop="'tableList.' + getPropPosi(scope.row) + '.isAntibiotic'"
// 获取prop位置
getPropPosi
(
row
)
{
let
posi
=
this
.
findPosi
(
this
.
formData
.
tableList
,
row
,
""
,
""
);
return
posi
;
},
// 递归查找位置
findPosi
(
list
,
row
,
posi
,
current
)
{
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
if
(
list
[
i
].
id
==
row
.
id
)
{
return
current
+
i
;
}
if
(
list
[
i
].
children
&&
list
[
i
].
children
?.
length
)
{
posi
=
this
.
findPosi
(
list
[
i
].
children
||
[],
row
,
posi
,
i
+
posi
+
".children."
);
}
}
return
posi
;
},
// 总量计算
setIput
(
row
)
{
if
(
!
isNaN
(
parseFloat
(
row
.
medicUseQuantity
))
&&
isFinite
(
row
.
medicUseQuantity
)
&&
row
.
medicUsePlan
)
{
...
...
@@ -615,7 +634,7 @@ export default {
medicQuantity
:
0
,
medicUnit
:
null
,
remark
:
""
,
inventoryNum
:
null
,
inventoryNum
:
0
,
orderType
:
r
.
orderType
,
medicalPurpose
:
r
.
medicalPurpose
,
price
:
null
,
...
...
@@ -1037,7 +1056,9 @@ export default {
},
getTableData
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=
${
this
.
$route
.
query
.
pid
}
&case_routeid=
${
this
.
case_routeid
}
&searchQuery=
${
this
.
inhosdays
}
`
,
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=
${
this
.
$route
.
query
.
pid
}
&case_routeid=
${
this
.
case_routeid
}
&searchQuery=
${
this
.
inhosdays
}
&type=
${
this
.
radio
}
&t=
${
Math
.
random
()}
`
,
{}
)
.
then
((
data
)
=>
{
...
...
@@ -1057,8 +1078,10 @@ export default {
});
}
});
this
.
newtable1
=
data
.
route1
;
this
.
newtable2
=
data
.
route2
;
// console.log(data.route1);
// console.log(data.route2);
// this.newtable1 = data.route1;
// this.newtable2 = data.route2;
this
.
tableData
=
this
.
radio
==
1
?
data
.
route1
:
data
.
route2
;
})
.
catch
((
error
)
=>
{
...
...
@@ -1073,7 +1096,8 @@ export default {
this
.
$refs
.
numberValidateForm1
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
radio
=
e
;
this
.
tableData
=
this
.
radio
==
1
?
this
.
newtable1
:
this
.
newtable2
;
this
.
getTableData
();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
...
...
@@ -1102,7 +1126,8 @@ export default {
this
.
$refs
.
medicalPurpose
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
radio
=
e
;
this
.
tableData
=
this
.
radio
==
1
?
this
.
newtable1
:
this
.
newtable2
;
this
.
getTableData
();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
...
...
@@ -1118,7 +1143,8 @@ export default {
});
}
else
{
this
.
radio
=
e
;
this
.
tableData
=
this
.
radio
==
1
?
this
.
newtable1
:
this
.
newtable2
;
this
.
getTableData
();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
...
...
@@ -1143,7 +1169,8 @@ export default {
});
}
else
{
this
.
radio
=
e
;
this
.
tableData
=
this
.
radio
==
1
?
this
.
newtable1
:
this
.
newtable2
;
this
.
getTableData
();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
...
...
@@ -1243,7 +1270,8 @@ export default {
this
.
msg
(
"error"
,
item
.
msg
);
}
});
this
.
getlefttime
();
// this.getlefttime();
this
.
getTableData
();
})
.
catch
((
error
)
=>
{});
...
...
src/views/test.vue
View file @
fa601a40
This diff is collapsed.
Click to expand it.
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