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
a45161b8
Commit
a45161b8
authored
Mar 15, 2023
by
yufeng.tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求更改
parent
a0d0be07
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
76 deletions
+38
-76
src/views/outClinicalpathway.vue
+38
-76
No files found.
src/views/outClinicalpathway.vue
View file @
a45161b8
...
...
@@ -69,8 +69,7 @@
</el-form-item>
<el-form-item
label=
"变异原因:"
>
<el-select
v-model=
"form.reason"
class=
"m-2"
placeholder=
"请选择"
size=
"mini"
:title=
"getTitle(form.reason)"
>
<el-option
v-for=
"item in reasonoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
:title=
"item.describe"
>
</el-option>
<el-option
v-for=
"item in reasonoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
:title=
"item.describe"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"备注:"
>
...
...
@@ -122,7 +121,7 @@
<div
v-if=
"scope.row.orderType == '药疗'"
>
<i
@
click
.
prevent=
"addRow(scope.row)"
v-if=
"scope.row.ischeck == 1 && !scope.row.isnew && scope.row.orderType
"
v-if=
"scope.row.ischeck == 1 && !scope.row.isnew && scope.row.orderType && scope.row.isAdd
"
class=
"el-icon-circle-plus-outline"
style=
"font-size: 14px; color: #0283bb; margin-right: 3px; cursor: pointer"
></i>
...
...
@@ -160,13 +159,7 @@
<el-table-column
show-overflow-tooltip
width=
"150"
property=
"symptom"
label=
"症状及体征"
></el-table-column>
<el-table-column
show-overflow-tooltip
width=
"85"
property=
"emergency"
label=
"急诊"
></el-table-column>
-->
</el-table>
<el-input
slot=
"reference"
placeholder=
"请输入"
v-model=
"scope.row.project_name"
@
focus=
"onfocus(scope.row, $event)"
@
input=
"onInput(scope.row, $event)"
></el-input>
<el-input
slot=
"reference"
placeholder=
"请输入"
v-model=
"scope.row.project_name"
@
focus=
"onfocus(scope.row, $event)"
@
input=
"onInput(scope.row, $event)"
></el-input>
</el-popover>
</
template
>
...
...
@@ -200,14 +193,7 @@
<el-table-column
show-overflow-tooltip
property=
"medicUseUnit"
label=
"单位"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"medicUseMode"
label=
"途径"
width=
"120"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
size=
"mini"
v-model=
"scope.row.medicUseMode"
filterable
remote
:filter-method=
"remoteMethod"
>
<el-select
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
size=
"mini"
v-model=
"scope.row.medicUseMode"
filterable
remote
:filter-method=
"remoteMethod"
>
<el-option
v-for=
"item in medicUseModeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicUseMode
}}
</span>
...
...
@@ -236,14 +222,7 @@
<el-table-column
show-overflow-tooltip
property=
"medicUnit"
label=
"单位"
width=
"60"
/>
<el-table-column
show-overflow-tooltip
property=
"remark"
label=
"嘱托"
width=
"150'"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
v-model=
"scope.row.remark"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
>
</el-input>
<el-input
v-if=
"scope.row.ischeck == 1 && scope.row.orderType"
v-model=
"scope.row.remark"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }" placeholder="请输入内容">
</el-input>
<span
v-else
>
{{
scope
.
row
.
remark
}}
</span>
</
template
>
</el-table-column>
...
...
@@ -260,13 +239,7 @@
>
<el-form-item
prop=
"description"
:rules=
"[
{ required: true, message: '请输入内容' }]">
<template
#
label
>
<span></span></
template
>
<el-input
v-model=
"scope.row.description"
autocomplete=
"off"
placeholder=
"请输入内容"
type=
"textarea"
:autosize=
"{ minRows: 2 }"
></el-input>
<el-input
v-model=
"scope.row.description"
autocomplete=
"off"
placeholder=
"请输入内容"
type=
"textarea"
:autosize=
"{ minRows: 2 }"
></el-input>
</el-form-item>
</el-form>
</template>
...
...
@@ -283,13 +256,7 @@
>
<el-form-item
prop=
"symptom"
:rules=
"[
{ required: true, message: '请输入内容' }]">
<template
#
label
>
<span></span></
template
>
<el-input
v-model=
"scope.row.symptom"
autocomplete=
"off"
placeholder=
"请输入内容"
type=
"textarea"
:autosize=
"{ minRows: 2 }"
></el-input>
<el-input
v-model=
"scope.row.symptom"
autocomplete=
"off"
placeholder=
"请输入内容"
type=
"textarea"
:autosize=
"{ minRows: 2 }"
></el-input>
</el-form-item>
</el-form>
</template>
...
...
@@ -304,11 +271,7 @@
</el-table-column>
<el-table-column
label=
"操作"
width=
"80"
>
<
template
#
default=
"scope"
>
<el-button
v-if=
"scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit && scope.row.orderType"
size=
"mini"
type=
"primary"
@
click=
"goSeeScore(scope.row, scope.$index, scope)"
<el-button
v-if=
"scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit && scope.row.orderType"
size=
"mini"
type=
"primary"
@
click=
"goSeeScore(scope.row, scope.$index, scope)"
>
更多
</el-button
>
</
template
>
...
...
@@ -439,9 +402,7 @@ export default {
console
.
log
(
this
.
query
);
if
(
this
.
query
!==
""
)
{
this
.
medicUseModeoptions
=
this
.
medicUseModeoptionsLise
.
filter
((
item
)
=>
{
return
(
item
.
describe
.
toLowerCase
().
indexOf
(
this
.
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
this
.
query
.
toLowerCase
())
>
-
1
);
return
item
.
describe
.
toLowerCase
().
indexOf
(
this
.
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
this
.
query
.
toLowerCase
())
>
-
1
;
});
}
else
{
this
.
medicUseModeoptions
=
this
.
medicUseModeoptionsLise
;
...
...
@@ -503,7 +464,8 @@ export default {
value
&&
this
.
etProjectByName
(
value
);
},
etProjectByName
(
query
)
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetProjectByName?searchQuery=
${
query
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetProjectByName?searchQuery=
${
query
}
`
,
{})
.
then
((
data
)
=>
{
if
(
data
&&
data
.
length
)
{
data
.
map
((
el
,
i
)
=>
{
...
...
@@ -608,7 +570,8 @@ export default {
},
//获取途径,频率的下拉数据
gemedicUseModeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{})
.
then
((
data
)
=>
{
this
.
medicUseModeoptions
=
data
;
this
.
medicUseModeoptionsLise
=
data
;
...
...
@@ -628,7 +591,8 @@ export default {
},
//获取频率,频率的下拉数据
gemedicUsePlanoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{})
.
then
((
data
)
=>
{
this
.
medicUsePlanoptions
=
data
;
})
...
...
@@ -636,7 +600,8 @@ export default {
},
//获取用要目的下拉数据
getmedicalPurposeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{})
.
then
((
data
)
=>
{
this
.
medicalPurposeoptions
=
data
;
})
...
...
@@ -645,7 +610,8 @@ export default {
//获取患者信息
gettopdata
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
topdata
=
data
;
this
.
crid
=
data
.
crid
;
...
...
@@ -667,11 +633,6 @@ export default {
// 选中父节点时,子节点一起选中取消
select
(
selection
,
row
)
{
row
.
tickTime
=
transformTimestampnow
();
console
.
log
(
selection
.
some
((
el
)
=>
{
return
row
.
id
===
el
.
id
;
})
);
// 选中
if
(
selection
.
some
((
el
)
=>
{
...
...
@@ -688,22 +649,25 @@ export default {
console
.
log
(
j
.
type
);
this
.
toggleSelection
(
j
,
true
);
});
console
.
log
(
1
);
}
else
{
selection
.
map
((
v
)
=>
{
this
.
toggleSelection
(
v
,
true
);
});
console
.
log
(
2
);
}
//取消
}
else
{
console
.
log
(
row
);
this
.
toggleSelection
(
row
,
false
);
if
(
row
.
children
&&
row
.
children
.
length
)
{
console
.
log
(
3
,
row
);
row
.
children
.
map
((
p
)
=>
{
p
.
ischeck
=
2
;
p
.
isClass
=
false
;
this
.
toggleSelection
(
p
,
false
);
});
}
else
{
console
.
log
(
4
);
row
.
ischeck
=
2
;
this
.
toggleSelection
(
row
,
false
);
//取消的行数据
...
...
@@ -713,7 +677,6 @@ export default {
// 控制选框是否被选中
toggleSelection
(
row
,
select
)
{
if
(
row
)
{
console
.
log
(
row
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
multipleTable
&&
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
select
);
});
...
...
@@ -721,7 +684,6 @@ export default {
row
.
ischeck
=
1
;
}
else
{
row
.
ischeck
=
2
;
row
.
isClass
=
false
;
}
}
},
...
...
@@ -762,15 +724,11 @@ export default {
//当选择项发生变化时会触发该事件
SelectionChange
(
val
)
{
// this.multipleSelection = val;
console
.
log
(
val
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
)
+
"选中的数据"
);
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
=
val
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
);
console
.
log
(
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
type
!=
1
));
// this.multipleSelection = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort);
}
else
{
this
.
multipleSelection1
=
val
.
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
);
console
.
log
(
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
type
!=
1
));
// this.multipleSelection1 = val.filter((item) => !item.children).sort((a, b) => a.sort - b.sort);
}
if
(
this
.
multipleSelection
.
length
)
{
...
...
@@ -794,7 +752,8 @@ export default {
//获取左侧时间线数据
getlefttime
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
activities
=
data
;
this
.
options
=
data
;
...
...
@@ -816,7 +775,8 @@ export default {
},
//获取标识
getIsRoute
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/IsRoute?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/IsRoute?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
console
.
log
(
data
);
if
(
data
)
{
...
...
@@ -831,10 +791,8 @@ export default {
.
catch
((
error
)
=>
{});
},
getTableData
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=
${
this
.
$route
.
query
.
pid
}
&case_routeid=
${
this
.
case_routeid
}
&searchQuery=
${
this
.
inhosdays
}
`
,
{}
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=
${
this
.
$route
.
query
.
pid
}
&case_routeid=
${
this
.
case_routeid
}
&searchQuery=
${
this
.
inhosdays
}
`
,
{})
.
then
((
data
)
=>
{
data
.
route1
.
forEach
((
element
)
=>
{
if
(
element
.
children
)
{
...
...
@@ -950,7 +908,8 @@ export default {
saveSetPatientRoutes
()
{
this
.
objtable
.
route1
=
this
.
multipleSelection
;
this
.
objtable
.
route2
=
this
.
multipleSelection1
;
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
this
.
$route
.
query
.
pid
}
`
,
this
.
objtable
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
this
.
$route
.
query
.
pid
}
`
,
this
.
objtable
)
.
then
(
async
(
data
)
=>
{
data
.
map
((
item
)
=>
{
if
(
item
.
code
==
"0"
)
{
...
...
@@ -966,7 +925,8 @@ export default {
},
//获取病情变异--变异原因下拉框
getreasonoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=
${
this
.
crid
}
`
,
{})
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=
${
this
.
crid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
reasonoptions
=
data
;
})
...
...
@@ -985,7 +945,8 @@ export default {
remarks
:
this
.
form
.
remarks
,
};
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetVariation`
,
prome
)
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetVariation`
,
prome
)
.
then
((
data
)
=>
{
Message
({
message
:
data
.
message
,
...
...
@@ -1030,7 +991,8 @@ export default {
//
选中当前行样式
::v-deep
.rowStyleclass
{
font-weight
:
700
;
background-color
:
#f5f7fa
;
//
background-color
:
#f5f7fa
;
color
:
#0283bb
;
}
//
时间线样式
::v-deep
.el-timeline-item__tail
{
...
...
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