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
6e32017a
Commit
6e32017a
authored
Mar 12, 2023
by
yufeng.tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
药疗新增
parent
9d0cd01c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1084 additions
and
1087 deletions
+1084
-1087
src/views/outClinicalpathway.vue
+1084
-1087
No files found.
src/views/outClinicalpathway.vue
View file @
6e32017a
...
...
@@ -6,312 +6,298 @@
* @Description:
-->
<
template
>
<!-- 临床路径外放页面 -->
<div
class=
"outClinicalpathway"
>
<!-- 患者信息 -->
<div
class=
"outClinicalpathway_top"
>
<div
class=
"outClinicalpathway_top_bg"
></div>
<div
class=
"outClinicalpathway_top_coent"
>
<!--患者信息 -->
<div
class=
"outClinicalpathway_top_coent_left"
>
<div
class=
"outClinicalpathway_top_coent_left_one"
>
<span><img
src=
"../assets/img/peo.png"
alt=
""
/></span>
<div
class=
"outClinicalpathway_top_coent_left_one_t1"
>
患者姓名:
<span>
{{
topdata
.
patientName
}}
</span>
</div>
<div
class=
"outClinicalpathway_top_coent_left_one_t2"
>
住院号:
<span>
{{
topdata
.
regCode
}}
</span>
</div>
<div
class=
"outClinicalpathway_top_coent_left_one_t3"
>
住院次数:
<span>
{{
topdata
.
inHosNum
}}
</span>
</div>
<div
class=
"outClinicalpathway_top_coent_left_one_t4"
>
符合临床路径:
<span>
{{
topdata
.
clinical_route_name
}}
</span>
</div>
</div>
</div>
<div
class=
"outClinicalpathway_top_coent_right"
>
<div
class=
"outClinicalpathway_top_coent_right_btn"
>
<el-button
icon=
"el-icon-user"
style=
"background-color: #0283bb; color: #ffff"
@
click=
"joinorder()"
>
保存医嘱
</el-button>
<el-button
icon=
"el-icon-s-tools"
style=
"background-color: #0283bb; color: #ffff"
@
click=
"variation()"
>
病情变异
</el-button>
</div>
</div>
<!-- 临床路径外放页面 -->
<div
class=
"outClinicalpathway"
>
<!-- 患者信息 -->
<div
class=
"outClinicalpathway_top"
>
<div
class=
"outClinicalpathway_top_bg"
></div>
<div
class=
"outClinicalpathway_top_coent"
>
<!--患者信息 -->
<div
class=
"outClinicalpathway_top_coent_left"
>
<div
class=
"outClinicalpathway_top_coent_left_one"
>
<span><img
src=
"../assets/img/peo.png"
alt=
""
/></span>
<div
class=
"outClinicalpathway_top_coent_left_one_t1"
>
患者姓名:
<span>
{{
topdata
.
patientName
}}
</span>
</div>
<div
class=
"outClinicalpathway_top_coent_left_one_t2"
>
住院号:
<span>
{{
topdata
.
regCode
}}
</span>
</div>
<div
class=
"outClinicalpathway_top_coent_left_one_t3"
>
住院次数:
<span>
{{
topdata
.
inHosNum
}}
</span>
</div>
<div
class=
"outClinicalpathway_top_time"
>
<el-timeline
style=
"display: flex; padding: 0 10px"
>
<el-timeline-item
:class=
"timeindex == activity.inhosdays ? 'outClinicalpathway_top_time_timespan' : 'outClinicalpathway_top_time_timespan2'"
v-for=
"(activity, index) in activities"
:key=
"index"
:type=
"activity.type"
:color=
"activity.color"
:size=
"activity.size"
:hollow=
"activity.hollow"
:timestamp=
"activity.timestamp"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"activity.inhosdays"
placement=
"top-start"
v-if=
"activity.inhosdays.length > 7"
>
<span
@
click=
"timeclick(activity)"
>
{{
activity
.
inhosdays
}}
</span>
</el-tooltip>
<span
v-else
@
click=
"timeclick(activity)"
>
{{
activity
.
inhosdays
}}
</span>
</el-timeline-item>
</el-timeline>
<div
class=
"outClinicalpathway_top_coent_left_one_t4"
>
符合临床路径:
<span>
{{
topdata
.
clinical_route_name
}}
</span>
</div>
</div>
</div>
<!--病情变异弹框开始 -->
<el-dialog
:visible
.
sync=
"editdialogFormVisible"
width=
"30%"
@
close=
"close"
>
<el-form
ref=
"fromRef"
:model=
"form"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"路径天数:"
>
<!--
<el-input
v-model=
"form.inhosdays"
/>
-->
<el-select
v-model=
"form.inhosdays"
class=
"m-2"
placeholder=
"请选择"
size=
"mini"
>
<el-option
v-for=
"item in options"
:key=
"item.inhosdays"
:label=
"item.inhosdays"
:value=
"item.inhosdays"
/>
</el-select>
</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-select>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-input
v-model=
"form.remarks"
:autosize=
"
{ minRows: 4, maxRows: 10 }" type="textarea" />
</el-form-item>
</el-form>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"close()"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"fromOKbtn()"
>
确定
</el-button>
</span>
<div
class=
"outClinicalpathway_top_coent_right"
>
<div
class=
"outClinicalpathway_top_coent_right_btn"
>
<el-button
icon=
"el-icon-user"
style=
"background-color: #0283bb; color: #ffff"
@
click=
"joinorder()"
>
保存医嘱
</el-button>
<el-button
icon=
"el-icon-s-tools"
style=
"background-color: #0283bb; color: #ffff"
@
click=
"variation()"
>
病情变异
</el-button>
</div>
</div>
</div>
<div
class=
"outClinicalpathway_top_time"
>
<el-timeline
style=
"display: flex; padding: 0 10px"
>
<el-timeline-item
:class=
"timeindex == activity.inhosdays ? 'outClinicalpathway_top_time_timespan' : 'outClinicalpathway_top_time_timespan2'"
v-for=
"(activity, index) in activities"
:key=
"index"
:type=
"activity.type"
:color=
"activity.color"
:size=
"activity.size"
:hollow=
"activity.hollow"
:timestamp=
"activity.timestamp"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"activity.inhosdays"
placement=
"top-start"
v-if=
"activity.inhosdays.length > 7"
>
<span
@
click=
"timeclick(activity)"
>
{{
activity
.
inhosdays
}}
</span>
</el-tooltip>
<span
v-else
@
click=
"timeclick(activity)"
>
{{
activity
.
inhosdays
}}
</span>
</el-timeline-item>
</el-timeline>
</div>
</div>
<!--病情变异弹框开始 -->
<el-dialog
:visible
.
sync=
"editdialogFormVisible"
width=
"30%"
@
close=
"close"
>
<el-form
ref=
"fromRef"
:model=
"form"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"路径天数:"
>
<!--
<el-input
v-model=
"form.inhosdays"
/>
-->
<el-select
v-model=
"form.inhosdays"
class=
"m-2"
placeholder=
"请选择"
size=
"mini"
>
<el-option
v-for=
"item in options"
:key=
"item.inhosdays"
:label=
"item.inhosdays"
:value=
"item.inhosdays"
/>
</el-select>
</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-select>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-input
v-model=
"form.remarks"
:autosize=
"
{ minRows: 4, maxRows: 10 }" type="textarea" />
</el-form-item>
</el-form>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"close()"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"fromOKbtn()"
>
确定
</el-button>
</span>
</
template
>
</el-dialog>
<!--病情变异弹框结束 -->
<!-- 表格 -->
<div
class=
"outClinicalpathway_table"
>
<!-- 表格 -->
<div
class=
"outClinicalpathway_table_right"
>
<div
class=
"outClinicalpathway_table_right_radio"
>
<el-radio-group
:value=
"radio"
@
input=
"radiochange"
>
<el-radio
:label=
"1"
>
长期医嘱
</el-radio>
<el-radio
:label=
"2"
>
临时医嘱
</el-radio>
</el-radio-group>
</div>
<el-table
ref=
"multipleTable"
row-key=
"id"
:data=
"tableData"
height=
"100%"
style=
"width: 100%"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:select-on-indeterminate=
"true"
@
selection-change=
"SelectionChange"
@
select-all=
"selectAll"
@
select=
"select"
default-expand-all
size=
"mini"
:row-class-name=
"rowClass"
>
<el-table-column
type=
"selection"
:selectable=
"selectEnable"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"advice_name"
label=
"路径名称"
width=
"130"
/>
<el-table-column
show-overflow-tooltip
property=
"tickTime"
label=
"当前时间"
width=
"145"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
>
{{
scope
.
row
.
tickTime
}}
</span>
</
template
>
</el-dialog>
<!--病情变异弹框结束 -->
<!-- 表格 -->
<div
class=
"outClinicalpathway_table"
>
<!-- 表格 -->
<div
class=
"outClinicalpathway_table_right"
>
<div
class=
"outClinicalpathway_table_right_radio"
>
<el-radio-group
:value=
"radio"
@
input=
"radiochange"
>
<el-radio
:label=
"1"
>
长期医嘱
</el-radio>
<el-radio
:label=
"2"
>
临时医嘱
</el-radio>
</el-radio-group>
</div>
<el-table
ref=
"multipleTable"
row-key=
"id"
:data=
"tableData"
height=
"100%"
style=
"width: 100%"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:select-on-indeterminate=
"true"
@
selection-change=
"SelectionChange"
@
select-all=
"selectAll"
@
select=
"select"
default-expand-all
size=
"mini"
:row-class-name=
"rowClass"
>
<el-table-column
type=
"selection"
:selectable=
"selectEnable"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"advice_name"
label=
"路径名称"
width=
"130"
/>
<el-table-column
show-overflow-tooltip
property=
"tickTime"
label=
"当前时间"
width=
"145"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
>
{{
scope
.
row
.
tickTime
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"orderType"
label=
"类型"
width=
"50"
>
<
template
#
default=
"scope"
>
<div
v-if=
"scope.row.orderType == '药疗'"
>
<i
@
click=
"addRow(scope.row)"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
class=
"el-icon-circle-plus-outline"
style=
"font-size: 14px; color: #0283bb; margin-right: 5px; cursor: pointer"
></i
>
{{
scope
.
row
.
orderType
}}
</div>
<div
v-else
>
{{
scope
.
row
.
orderType
}}
</div>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"project_name"
label=
"医院项目名称"
width=
"200"
/>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"orderType"
label=
"类型"
width=
"50"
>
<
template
#
default=
"scope"
>
<div
v-if=
"scope.row.orderType == '药疗'"
>
<i
@
click=
"addRow(scope.row)"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
class=
"el-icon-circle-plus-outline"
style=
"font-size: 14px; color: #0283bb; margin-right: 5px; cursor: pointer"
></i
>
{{
scope
.
row
.
orderType
}}
</div>
<div
v-else
>
{{
scope
.
row
.
orderType
}}
</div>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"project_name"
label=
"医院项目名称"
width=
"200"
>
<
template
#
default=
"scope"
>
<template
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && !scope.row.project_name"
>
<el-popover
placement=
"bottom"
width=
"800"
trigger=
"focus"
:value=
"false"
>
<el-table
:data=
"gridData"
>
<el-table-column
width=
"150"
property=
"date"
label=
"日期"
></el-table-column>
<el-table-column
width=
"100"
property=
"name"
label=
"姓名"
></el-table-column>
<el-table-column
width=
"300"
property=
"address"
label=
"地址"
></el-table-column>
</el-table>
<el-input
slot=
"reference"
v-model=
"serch"
></el-input>
</el-popover>
</
template
>
<el-table-column
show-overflow-tooltip
property=
"specifications"
label=
"规格说明"
width=
"80"
/>
<el-table-column
show-overflow-tooltip
property=
"dosage"
label=
"药品剂型"
width=
"70"
/>
<el-table-column
show-overflow-tooltip
property=
"isAntibiotic"
label=
"抗生素"
width=
"85"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.isAntibiotic"
>
<el-option
v-for=
"item in chargeTypeoptions"
:key=
"item.label"
:label=
"item.label"
:value=
"item.label"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
isAntibiotic
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicalPurpose"
label=
"用药目的"
width=
"135"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicalPurpose"
>
<el-option
v-for=
"item in medicalPurposeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicalPurpose
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicUseQuantity"
label=
"用量"
width=
"60"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.medicUseQuantity"
size=
"mini"
></el-input>
<span
v-else
>
{{
scope
.
row
.
medicUseQuantity
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicUseUnit"
label=
"单位"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"medicUseMode"
label=
"途径"
width=
"110"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicUseMode"
filterable
: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>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicUsePlan"
label=
"频率"
width=
"110"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicUsePlan"
>
<el-option
v-for=
"item in medicUsePlanoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicUsePlan
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"dropNumber"
label=
"滴数"
width=
"60"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.dropNumber"
size=
"mini"
></el-input>
<span
v-else
>
{{
scope
.
row
.
dropNumber
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicQuantity"
label=
"用药总量"
width=
"80"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.medicQuantity"
size=
"mini"
></el-input>
<span
v-else
>
{{
scope
.
row
.
medicQuantity
}}
</span>
</
template
>
</el-table-column>
<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.advice_name == null && scope.row.ischeck == 1"
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>
<span
v-else
>
{{ scope.row.project_name }}
</span>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"specifications"
label=
"规格说明"
width=
"80"
/>
<el-table-column
show-overflow-tooltip
property=
"dosage"
label=
"药品剂型"
width=
"70"
/>
<el-table-column
show-overflow-tooltip
property=
"isAntibiotic"
label=
"抗生素"
width=
"85"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.isAntibiotic"
>
<el-option
v-for=
"item in chargeTypeoptions"
:key=
"item.label"
:label=
"item.label"
:value=
"item.label"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
isAntibiotic
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicalPurpose"
label=
"用药目的"
width=
"135"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicalPurpose"
>
<el-option
v-for=
"item in medicalPurposeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicalPurpose
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicUseQuantity"
label=
"用量"
width=
"60"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.medicUseQuantity"
size=
"mini"
></el-input>
<span
v-else
>
{{
scope
.
row
.
medicUseQuantity
}}
</span>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicUseUnit"
label=
"单位"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"medicUseMode"
label=
"途径"
width=
"110"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicUseMode"
filterable
: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>
</
template
>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"medicUsePlan"
label=
"频率"
width=
"110"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicUsePlan"
>
<el-option
v-for=
"item in medicUsePlanoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicUsePlan
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"dropNumber"
label=
"滴数"
width=
"60"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.dropNumber"
size=
"mini"
></el-input>
<span
v-else
>
{{
scope
.
row
.
dropNumber
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"medicQuantity"
label=
"用药总量"
width=
"80"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.medicQuantity"
size=
"mini"
></el-input>
<span
v-else
>
{{
scope
.
row
.
medicQuantity
}}
</span>
</
template
>
</el-table-column>
<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.advice_name == null && scope.row.ischeck == 1"
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>
<el-table-column
prop=
"description"
label=
"诊断描述"
width=
"150"
>
<
template
#
default=
"scope"
>
<el-form
:model=
"scope.row"
label-width=
"15px"
label-position=
"left"
ref=
"numberValidateForm"
class=
"demo-ruleForm"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit"
>
<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-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
prop=
"symptom"
label=
"症状及体征"
width=
"150"
>
<
template
#
default=
"scope"
>
<el-form
:model=
"scope.row"
label-width=
"15px"
label-position=
"left"
ref=
"numberValidateForm1"
class=
"demo-ruleForm"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit"
>
<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-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"emergency"
label=
"急诊"
width=
"85"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.isedit"
size=
"mini"
v-model=
"scope.row.emergency"
>
<el-option
v-for=
"item in chargeTypeoptions"
:key=
"item.label"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<!--
<span
v-else
>
{{
isObj
[
scope
.
row
.
emergency
]
}}
</span>
-->
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"80"
>
<
template
#
default=
"scope"
>
<el-button
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit"
size=
"mini"
type=
"primary"
@
click=
"goSeeScore(scope.row, scope.$index, scope)"
>
更多
</el-button
>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
<!-- 更多弹框开始 -->
<el-dialog
:visible
.
sync=
"goSeeScoredialogFormVisible"
width=
"30%"
@
close=
"goSeecolse"
>
<el-form
ref=
"goSeefromRef"
:model=
"goSeeform"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"主诉:"
>
<el-input
v-model=
"goSeeform.chiefComplaint"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"检查目的:"
>
<el-input
v-model=
"goSeeform.inspectionPurpose"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"既往史:"
>
<el-input
v-model=
"goSeeform.pastHistory"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
<el-table-column
prop=
"description"
label=
"诊断描述"
width=
"150"
>
<
template
#
default=
"scope"
>
<el-form
:model=
"scope.row"
label-width=
"15px"
label-position=
"left"
ref=
"numberValidateForm"
class=
"demo-ruleForm"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit"
>
<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-form-item>
<el-form-item
label=
"其他辅助项目:"
>
<el-input
v-model=
"goSeeform.auxiliaryItems"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-input
v-model=
"goSeeform.inspectRemarks"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form>
</template>
</el-table-column>
<el-table-column
prop=
"symptom"
label=
"症状及体征"
width=
"150"
>
<
template
#
default=
"scope"
>
<el-form
:model=
"scope.row"
label-width=
"15px"
label-position=
"left"
ref=
"numberValidateForm1"
class=
"demo-ruleForm"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit"
>
<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-form-item>
</el-form>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"goSeecolse"
>
取消
</el-button>
<el-button
size=
"mini"
@
click=
"goSeeok"
>
确定
</el-button>
</span>
</el-form>
</template>
</el-table-column>
<el-table-column
show-overflow-tooltip
property=
"emergency"
label=
"急诊"
width=
"85"
>
<
template
#
default=
"scope"
>
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.isedit"
size=
"mini"
v-model=
"scope.row.emergency"
>
<el-option
v-for=
"item in chargeTypeoptions"
:key=
"item.label"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<!--
<span
v-else
>
{{
isObj
[
scope
.
row
.
emergency
]
}}
</span>
-->
</
template
>
</el-dialog>
<!-- 更多弹框结束 -->
</el-table-column>
<el-table-column
label=
"操作"
width=
"80"
>
<
template
#
default=
"scope"
>
<el-button
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit"
size=
"mini"
type=
"primary"
@
click=
"goSeeScore(scope.row, scope.$index, scope)"
>
更多
</el-button
>
</
template
>
</el-table-column>
</el-table>
</div>
</div>
<!-- 更多弹框开始 -->
<el-dialog
:visible
.
sync=
"goSeeScoredialogFormVisible"
width=
"30%"
@
close=
"goSeecolse"
>
<el-form
ref=
"goSeefromRef"
:model=
"goSeeform"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"主诉:"
>
<el-input
v-model=
"goSeeform.chiefComplaint"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"检查目的:"
>
<el-input
v-model=
"goSeeform.inspectionPurpose"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"既往史:"
>
<el-input
v-model=
"goSeeform.pastHistory"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"其他辅助项目:"
>
<el-input
v-model=
"goSeeform.auxiliaryItems"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-input
v-model=
"goSeeform.inspectRemarks"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"goSeecolse"
>
取消
</el-button>
<el-button
size=
"mini"
@
click=
"goSeeok"
>
确定
</el-button>
</span>
</
template
>
</el-dialog>
<!-- 更多弹框结束 -->
</div>
</template>
<
script
>
import
http
from
"../utils/http"
;
...
...
@@ -319,612 +305,623 @@ import { Message } from "element-ui";
import
_
from
"lodash"
;
import
{
transformTimestampnow
}
from
"../utils/formatTime"
;
export
default
{
name
:
"outClinicalpathway"
,
data
()
{
return
{
//患者信息
topdata
:
{
patientName
:
""
,
//患者姓名
regCode
:
""
,
// 住院号
inHosNum
:
""
,
// 住院次数
clinical_route_name
:
""
,
// 符合临床路径
},
name
:
"outClinicalpathway"
,
data
()
{
return
{
//患者信息
topdata
:
{
patientName
:
""
,
//患者姓名
regCode
:
""
,
// 住院号
inHosNum
:
""
,
// 住院次数
clinical_route_name
:
""
,
// 符合临床路径
},
multipleSelection
:
[],
//被选择的数据
multipleSelection1
:
[],
//被选择的数据
selectArr
:
[],
tableData
:
[],
//表格数据
yztype
:
{
1
:
"长期医嘱"
,
2
:
"临时医嘱"
,
},
isObj
:
{
0
:
"否"
,
1
:
"是"
,
},
//被点击的index
timeindex
:
null
,
case_routeid
:
null
,
//点击左侧时间线的天数id
inhosdays
:
null
,
//点击左侧时间线的天数
//时间线
activities
:
[],
labelPosition
:
"right"
,
editdialogFormVisible
:
false
,
//弹框是否显示
//表单
form
:
{
inhosdays
:
""
,
reason
:
""
,
//变异原因
remarks
:
""
,
//备注
},
//路径天数下拉数据
options
:
[],
reasonoptions
:
[],
//变异原因
crid
:
null
,
chickid
:
[],
//选中的id
multipleSelection
:
[],
//被选择的数据
multipleSelection1
:
[],
//被选择的数据
selectArr
:
[],
tableData
:
[],
//表格数据
yztype
:
{
1
:
"长期医嘱"
,
2
:
"临时医嘱"
,
},
isObj
:
{
0
:
"否"
,
1
:
"是"
,
},
//被点击的index
timeindex
:
null
,
case_routeid
:
null
,
//点击左侧时间线的天数id
inhosdays
:
null
,
//点击左侧时间线的天数
//时间线
activities
:
[],
labelPosition
:
"right"
,
editdialogFormVisible
:
false
,
//弹框是否显示
//表单
form
:
{
inhosdays
:
""
,
reason
:
""
,
//变异原因
remarks
:
""
,
//备注
},
//路径天数下拉数据
options
:
[],
reasonoptions
:
[],
//变异原因
crid
:
null
,
chickid
:
[],
//选中的id
chargeTypeoptions
:
[
{
label
:
"是"
,
value
:
1
,
},
{
label
:
"否"
,
value
:
0
,
},
],
tempRow
:
{},
//储存正在编辑的行
tempRowChildren
:
[],
medicUseModeoptions
:
[],
//途径
medicUseModeoptionsLise
:
[],
medicUsePlanoptions
:
[],
//频率
medicalPurposeoptions
:
[],
//用药目的
radio
:
1
,
newtable1
:
[],
newtable2
:
[],
objtable
:
{
route1
:
[],
route2
:
[]
},
goSeeScoredialogFormVisible
:
false
,
//更多弹框
goSeeform
:
{},
oldRowObj
:
{},
goSeeIndex
:
""
,
goSeeIndexPid
:
""
,
distype
:
1
,
cout
:
0
,
};
},
mounted
()
{
this
.
getIsRoute
();
this
.
gettopdata
();
this
.
getlefttime
();
this
.
gemedicUseModeoptions
();
this
.
gemedicUsePlanoptions
();
this
.
getmedicalPurposeoptions
();
},
methods
:
{
addRow
(
r
)
{
if
(
r
.
children
==
undefined
)
{
r
.
children
=
new
Array
();
}
const
{
cout
}
=
this
;
const
newData
=
{
emergency
:
0
,
id
:
cout
+
1000000
,
isClass
:
false
,
inhosdays
:
""
,
isForbidden
:
true
,
tickTime
:
""
,
project_code
:
"15163"
,
project_name
:
"新增的"
,
ischeck
:
2
,
specifications
:
null
,
stockID
:
null
,
dosage
:
null
,
isAntibiotic
:
""
,
medicUseQuantity
:
0.0
,
medicUseUnit
:
null
,
medicUseMode
:
null
,
medicUsePlan
:
null
,
medicQuantity
:
1
,
medicUnit
:
null
,
remark
:
""
,
inventoryNum
:
null
,
orderType
:
""
,
medicalPurpose
:
null
,
price
:
null
,
type
:
1
,
chiefComplaint
:
null
,
inspectionPurpose
:
null
,
symptom
:
null
,
pastHistory
:
null
,
auxiliaryItems
:
null
,
inspectRemarks
:
null
,
description
:
null
,
};
this
.
cout
=
cout
+
1
;
r
.
children
.
push
(
newData
);
console
.
log
(
r
.
children
);
console
.
log
(
this
.
tableData
);
chargeTypeoptions
:
[
{
label
:
"是"
,
value
:
1
,
},
//表格禁用
selectEnable
(
row
,
rowIndex
)
{
if
(
row
.
isForbidden
==
false
)
{
return
false
;
// 不禁用
}
else
{
return
true
;
//禁用
}
{
label
:
"否"
,
value
:
0
,
},
//表格当前行样式
rowClass
({
row
,
rowIndex
})
{
if
(
row
.
isClass
)
{
return
"rowStyleclass"
;
}
else
{
return
""
;
}
},
//更多
goSeeScore
(
row
)
{
this
.
distype
=
row
.
type
;
this
.
oldRowObj
=
{
...
row
};
this
.
goSeeform
=
row
;
this
.
goSeeScoredialogFormVisible
=
true
;
// this.tableData.forEach((item, index) => {
// let childIndex = item.children.findIndex((v) => v.id == row.id);
// console.log(childIndex);
// if (childIndex !== -1) {
// this.goSeeIndexPid = index;
// this.goSeeIndex = childIndex;
// }
// });
],
tempRow
:
{},
//储存正在编辑的行
tempRowChildren
:
[],
medicUseModeoptions
:
[],
//途径
medicUseModeoptionsLise
:
[],
medicUsePlanoptions
:
[],
//频率
medicalPurposeoptions
:
[],
//用药目的
radio
:
1
,
newtable1
:
[],
newtable2
:
[],
objtable
:
{
route1
:
[],
route2
:
[]
},
goSeeScoredialogFormVisible
:
false
,
//更多弹框
goSeeform
:
{},
oldRowObj
:
{},
goSeeIndex
:
""
,
goSeeIndexPid
:
""
,
distype
:
1
,
cout
:
0
,
serch
:
""
,
gridData
:
[
{
date
:
"2016-05-02"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1518 弄"
,
},
//更多-取消
goSeecolse
()
{
this
.
goSeeform
=
{};
// let childrenList = [...this.tableData[this.goSeeIndexPid].children];
// childrenList.splice(this.goSeeIndex, 1, this.oldRowObj);
// this.tableData[this.goSeeIndexPid].children = childrenList;
this
.
goSeeScoredialogFormVisible
=
false
;
{
date
:
"2016-05-04"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1518 弄"
,
},
//更多--确定
goSeeok
()
{
// let childrenList = [...this.tableData[this.goSeeIndexPid].children];
// childrenList.splice(this.goSeeIndex, 1, this.goSeeform);
// this.tableData[this.goSeeIndexPid].children = childrenList;
// console.log(this.tableData, 999);
// this.tableData.forEach((item) => {
// let childIndex = item.children.findIndex((v) => v.id == this.goSeeform.id);
// console.log(childIndex);
// if (childIndex !== -1) {
// item.children[childIndex] = this.goSeeform;
// }
// });
console
.
log
(
this
.
tableData
);
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
[
0
]
=
this
.
goSeeform
;
}
else
{
this
.
multipleSelection1
[
0
]
=
this
.
goSeeform
;
}
console
.
log
(
this
.
tableData
);
console
.
log
(
this
.
multipleSelection
);
console
.
log
(
this
.
multipleSelection1
);
// toggleSelection(this.multipleSelection[0], true);
this
.
goSeeScoredialogFormVisible
=
false
;
{
date
:
"2016-05-01"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1518 弄"
,
},
//获取途径,频率的下拉数据
gemedicUseModeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{})
.
then
((
data
)
=>
{
this
.
medicUseModeoptions
=
data
;
this
.
medicUseModeoptionsLise
=
data
;
})
.
catch
((
error
)
=>
{});
{
date
:
"2016-05-03"
,
name
:
"王小虎"
,
address
:
"上海市普陀区金沙江路 1518 弄"
,
},
],
};
},
mounted
()
{
this
.
getIsRoute
();
this
.
gettopdata
();
this
.
getlefttime
();
this
.
gemedicUseModeoptions
();
this
.
gemedicUsePlanoptions
();
this
.
getmedicalPurposeoptions
();
},
methods
:
{
addRow
(
r
)
{
if
(
r
.
children
==
undefined
)
{
r
.
children
=
new
Array
();
}
console
.
log
(
r
);
const
{
cout
}
=
this
;
const
newData
=
{
emergency
:
0
,
id
:
cout
+
1000000
,
pid
:
r
.
id
,
isClass
:
false
,
inhosdays
:
""
,
isForbidden
:
true
,
tickTime
:
""
,
project_code
:
"15163"
,
project_name
:
null
,
ischeck
:
1
,
specifications
:
null
,
stockID
:
null
,
dosage
:
null
,
isAntibiotic
:
""
,
medicUseQuantity
:
0.0
,
medicUseUnit
:
null
,
medicUseMode
:
null
,
medicUsePlan
:
null
,
medicQuantity
:
1
,
medicUnit
:
null
,
remark
:
""
,
inventoryNum
:
null
,
orderType
:
""
,
medicalPurpose
:
null
,
price
:
null
,
type
:
r
.
type
,
sort
:
cout
+
1
,
isedit
:
false
,
isnew
:
true
,
chiefComplaint
:
null
,
inspectionPurpose
:
null
,
symptom
:
null
,
pastHistory
:
null
,
auxiliaryItems
:
null
,
inspectRemarks
:
null
,
description
:
null
,
};
this
.
toggleSelection
(
newData
,
true
);
this
.
cout
=
cout
+
1
;
r
.
children
.
push
(
newData
);
},
//表格禁用
selectEnable
(
row
,
rowIndex
)
{
if
(
row
.
isForbidden
==
false
)
{
return
false
;
// 不禁用
}
else
{
return
true
;
//禁用
}
},
//表格当前行样式
rowClass
({
row
,
rowIndex
})
{
if
(
row
.
isClass
)
{
return
"rowStyleclass"
;
}
else
{
return
""
;
}
},
remoteMethod
(
query
)
{
if
(
query
)
{
this
.
medicUseModeoptions
=
this
.
medicUseModeoptions
.
filter
((
item
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
});
// setTimeout(() => {}, 200);
}
else
{
this
.
medicUseModeoptions
=
this
.
medicUseModeoptionsLise
;
}
//更多
goSeeScore
(
row
)
{
this
.
distype
=
row
.
type
;
this
.
oldRowObj
=
{
...
row
};
this
.
goSeeform
=
row
;
this
.
goSeeScoredialogFormVisible
=
true
;
},
//更多-取消
goSeecolse
()
{
this
.
goSeeform
=
{};
this
.
goSeeScoredialogFormVisible
=
false
;
},
//更多--确定
goSeeok
()
{
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
[
0
]
=
this
.
goSeeform
;
}
else
{
this
.
multipleSelection1
[
0
]
=
this
.
goSeeform
;
}
this
.
goSeeScoredialogFormVisible
=
false
;
},
//获取途径,频率的下拉数据
gemedicUseModeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{})
.
then
((
data
)
=>
{
this
.
medicUseModeoptions
=
data
;
this
.
medicUseModeoptionsLise
=
data
;
})
.
catch
((
error
)
=>
{});
},
console
.
log
(
this
.
medicUseModeoptions
);
},
//获取频率,频率的下拉数据
gemedicUsePlanoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{})
.
then
((
data
)
=>
{
this
.
medicUsePlanoptions
=
data
;
})
.
catch
((
error
)
=>
{});
},
//获取用要目的下拉数据
getmedicalPurposeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{})
.
then
((
data
)
=>
{
this
.
medicalPurposeoptions
=
data
;
})
.
catch
((
error
)
=>
{});
},
remoteMethod
(
query
)
{
if
(
query
)
{
this
.
medicUseModeoptions
=
this
.
medicUseModeoptions
.
filter
((
item
)
=>
{
return
item
.
describe
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
||
item
.
pinyin
.
toLowerCase
().
indexOf
(
query
.
toLowerCase
())
>
-
1
;
});
}
else
{
this
.
medicUseModeoptions
=
this
.
medicUseModeoptionsLise
;
}
},
//获取频率,频率的下拉数据
gemedicUsePlanoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{})
.
then
((
data
)
=>
{
this
.
medicUsePlanoptions
=
data
;
})
.
catch
((
error
)
=>
{});
},
//获取用要目的下拉数据
getmedicalPurposeoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{})
.
then
((
data
)
=>
{
this
.
medicalPurposeoptions
=
data
;
})
.
catch
((
error
)
=>
{});
},
//获取患者信息
gettopdata
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
topdata
=
data
;
this
.
crid
=
data
.
crid
;
this
.
getreasonoptions
();
})
.
catch
((
error
)
=>
{});
},
//获取患者信息
gettopdata
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
topdata
=
data
;
this
.
crid
=
data
.
crid
;
this
.
getreasonoptions
();
})
.
catch
((
error
)
=>
{});
},
setChildren
(
children
,
type
)
{
// 编辑多个子层级
children
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
type
);
if
(
j
.
children
)
{
this
.
setChildren
(
j
.
children
,
type
);
}
});
},
//
setChildren(children, type) {
//
// 编辑多个子层级
//
children.map((j) => {
//
this.toggleSelection(j, type);
//
if (j.children) {
//
this.setChildren(j.children, type);
//
}
//
});
//
},
// 选中父节点时,子节点一起选中取消
select
(
selection
,
row
)
{
row
.
tickTime
=
transformTimestampnow
();
// 选中
if
(
selection
.
some
((
el
)
=>
{
return
row
.
id
===
el
.
id
;
})
)
{
row
.
ischeck
=
1
;
if
(
row
.
children
)
{
row
.
children
.
filter
((
item
)
=>
item
.
isForbidden
)
.
map
((
j
)
=>
{
j
.
tickTime
=
transformTimestampnow
();
j
.
edit
=
false
;
console
.
log
(
j
.
type
);
this
.
toggleSelection
(
j
,
true
);
});
}
else
{
selection
.
map
((
v
)
=>
{
this
.
toggleSelection
(
v
,
true
);
});
}
// 选中父节点时,子节点一起选中取消
select
(
selection
,
row
)
{
row
.
tickTime
=
transformTimestampnow
();
console
.
log
(
selection
.
some
((
el
)
=>
{
return
row
.
id
===
el
.
id
;
})
);
// 选中
if
(
selection
.
some
((
el
)
=>
{
return
row
.
id
===
el
.
id
;
})
)
{
row
.
ischeck
=
1
;
if
(
row
.
children
)
{
row
.
children
.
filter
((
item
)
=>
item
.
isForbidden
)
.
map
((
j
)
=>
{
j
.
tickTime
=
transformTimestampnow
();
j
.
edit
=
false
;
console
.
log
(
j
.
type
);
this
.
toggleSelection
(
j
,
true
);
});
}
else
{
selection
.
map
((
v
)
=>
{
this
.
toggleSelection
(
v
,
true
);
});
}
//取消
}
else
{
console
.
log
(
row
);
if
(
row
.
children
)
{
row
.
children
.
map
((
p
)
=>
{
p
.
ischeck
=
2
;
p
.
isClass
=
false
;
this
.
toggleSelection
(
p
,
false
);
});
}
else
{
//取消的行数据
row
.
ischeck
=
2
;
}
}
},
// 控制选框是否被选中
toggleSelection
(
row
,
select
)
{
if
(
row
)
{
console
.
log
(
row
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
multipleTable
&&
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
select
);
});
if
(
select
==
true
)
{
row
.
ischeck
=
1
;
}
else
{
row
.
ischeck
=
2
;
row
.
isClass
=
false
;
}
}
},
//取消
}
else
{
console
.
log
(
row
);
if
(
row
.
children
&&
row
.
children
.
length
)
{
row
.
children
.
map
((
p
)
=>
{
p
.
ischeck
=
2
;
p
.
isClass
=
false
;
this
.
toggleSelection
(
p
,
false
);
});
}
else
{
row
.
ischeck
=
2
;
this
.
toggleSelection
(
row
,
false
);
//取消的行数据
}
}
},
// 控制选框是否被选中
toggleSelection
(
row
,
select
)
{
if
(
row
)
{
console
.
log
(
row
);
this
.
$nextTick
(()
=>
{
this
.
$refs
.
multipleTable
&&
this
.
$refs
.
multipleTable
.
toggleRowSelection
(
row
,
select
);
});
if
(
select
==
true
)
{
row
.
ischeck
=
1
;
}
else
{
row
.
ischeck
=
2
;
row
.
isClass
=
false
;
}
}
},
// 选择全部
selectAll
(
selection
)
{
// tabledata第一层只要有在selection里面就是全选
const
isSelect
=
selection
.
some
((
el
)
=>
{
const
tableDataIds
=
this
.
tableData
.
map
((
j
)
=>
j
.
id
);
return
tableDataIds
.
includes
(
el
.
id
);
});
// tableDate第一层只要有不在selection里面就是全不选
const
isCancel
=
!
this
.
tableData
.
every
((
el
)
=>
{
const
selectIds
=
selection
.
map
((
j
)
=>
j
.
id
);
return
selectIds
.
includes
(
el
.
id
);
// 选择全部
selectAll
(
selection
)
{
// tabledata第一层只要有在selection里面就是全选
const
isSelect
=
selection
.
some
((
el
)
=>
{
const
tableDataIds
=
this
.
tableData
.
map
((
j
)
=>
j
.
id
);
return
tableDataIds
.
includes
(
el
.
id
);
});
// tableDate第一层只要有不在selection里面就是全不选
const
isCancel
=
!
this
.
tableData
.
every
((
el
)
=>
{
const
selectIds
=
selection
.
map
((
j
)
=>
j
.
id
);
return
selectIds
.
includes
(
el
.
id
);
});
if
(
isSelect
)
{
selection
.
map
((
el
)
=>
{
if
(
el
.
children
)
{
el
.
children
.
filter
((
item
)
=>
item
.
isForbidden
)
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
});
}
});
}
if
(
isCancel
)
{
this
.
tableData
.
map
((
el
)
=>
{
if
(
el
.
children
)
{
el
.
children
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
false
);
});
if
(
isSelect
)
{
selection
.
map
((
el
)
=>
{
if
(
el
.
children
)
{
el
.
children
.
filter
((
item
)
=>
item
.
isForbidden
)
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
});
}
});
}
if
(
isCancel
)
{
this
.
tableData
.
map
((
el
)
=>
{
if
(
el
.
children
)
{
el
.
children
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
false
);
});
}
});
}
},
//当选择项发生变化时会触发该事件
SelectionChange
(
val
)
{
// this.multipleSelection = val;
console
.
log
(
val
.
length
+
"选中的数据"
);
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
=
val
.
filter
((
item
)
=>
!
item
.
children
).
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
);
}
else
{
this
.
multipleSelection1
=
val
.
filter
((
item
)
=>
!
item
.
children
).
sort
((
a
,
b
)
=>
a
.
sort
-
b
.
sort
);
}
if
(
this
.
multipleSelection
.
length
)
{
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
map
((
item
,
index
)
=>
{
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
});
}
if
(
this
.
multipleSelection1
.
length
)
{
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
map
((
item
,
index
)
=>
{
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
});
}
},
}
});
}
},
//获取左侧时间线数据
getlefttime
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
activities
=
data
;
this
.
options
=
data
;
if
(
this
.
activities
.
filter
((
item
)
=>
item
.
flag
).
length
==
this
.
activities
.
length
)
{
this
.
timeindex
=
this
.
activities
[
this
.
activities
.
length
-
1
].
inhosdays
;
this
.
timeclick
(
this
.
activities
[
this
.
activities
.
length
-
1
]);
}
if
(
this
.
activities
.
filter
((
item
)
=>
!
item
.
flag
).
length
==
this
.
activities
.
length
)
{
this
.
timeindex
=
this
.
activities
[
0
].
inhosdays
;
this
.
timeclick
(
this
.
activities
[
0
]);
}
else
{
this
.
timeindex
=
this
.
activities
.
filter
((
item
)
=>
!
item
.
flag
)[
0
].
inhosdays
;
this
.
timeclick
(
this
.
activities
.
filter
((
item
)
=>
!
item
.
flag
)[
0
]);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
//获取标识
getIsRoute
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/IsRoute?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
console
.
log
(
data
);
if
(
data
)
{
this
.
$router
.
push
({
path
:
"Entrypath"
,
query
:
{
pid
:
this
.
$route
.
query
.
pid
,
},
});
}
})
.
catch
((
error
)
=>
{});
},
getTableData
()
{
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
)
{
element
.
children
.
map
((
el
,
i
)
=>
{
// if (el.orderType == "药疗") {
// el.children = [];
// }
el
.
sort
=
i
++
;
});
}
});
data
.
route2
.
forEach
((
element
)
=>
{
if
(
element
.
children
)
{
element
.
children
.
map
((
el
,
i
)
=>
{
// if (el.orderType == "药疗") {
// el.children = [];
// }
el
.
sort
=
i
++
;
});
}
});
//当选择项发生变化时会触发该事件
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
)
{
this
.
multipleSelection
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
filter
((
item
)
=>
!
item
.
children
)
.
map
((
item
,
index
)
=>
{
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
});
}
if
(
this
.
multipleSelection1
.
length
)
{
this
.
multipleSelection1
.
filter
((
item
)
=>
item
.
type
!=
1
)
.
filter
((
item
)
=>
!
item
.
children
)
.
map
((
item
,
index
)
=>
{
index
==
0
?
(
item
.
isedit
=
true
)
:
(
item
.
isedit
=
false
);
});
}
this
.
newtable1
=
data
.
route1
;
this
.
newtable2
=
data
.
route2
;
if
(
this
.
radio
==
1
)
{
this
.
tableData
=
data
.
route1
;
}
else
if
(
this
.
radio
==
2
)
{
this
.
tableData
=
data
.
route2
;
}
console
.
log
(
this
.
multipleSelection
);
console
.
log
(
this
.
multipleSelection1
);
},
console
.
log
(
this
.
tableData
);
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
//单选
radiochange
(
e
)
{
if
(
this
.
$refs
.
numberValidateForm
||
this
.
$refs
.
numberValidateForm1
)
{
this
.
$refs
.
numberValidateForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$refs
.
numberValidateForm1
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
radio
=
e
;
if
(
this
.
radio
==
1
)
{
this
.
tableData
=
this
.
newtable1
;
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
});
}
else
{
this
.
tableData
=
this
.
newtable2
;
this
.
multipleSelection1
.
map
((
p
)
=>
{
this
.
toggleSelection
(
p
,
true
);
});
}
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
//获取左侧时间线数据
getlefttime
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
activities
=
data
;
this
.
options
=
data
;
if
(
this
.
activities
.
filter
((
item
)
=>
item
.
flag
).
length
==
this
.
activities
.
length
)
{
this
.
timeindex
=
this
.
activities
[
this
.
activities
.
length
-
1
].
inhosdays
;
this
.
timeclick
(
this
.
activities
[
this
.
activities
.
length
-
1
]);
}
if
(
this
.
activities
.
filter
((
item
)
=>
!
item
.
flag
).
length
==
this
.
activities
.
length
)
{
this
.
timeindex
=
this
.
activities
[
0
].
inhosdays
;
this
.
timeclick
(
this
.
activities
[
0
]);
}
else
{
this
.
timeindex
=
this
.
activities
.
filter
((
item
)
=>
!
item
.
flag
)[
0
].
inhosdays
;
this
.
timeclick
(
this
.
activities
.
filter
((
item
)
=>
!
item
.
flag
)[
0
]);
}
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
//获取标识
getIsRoute
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/IsRoute?pid=
${
this
.
$route
.
query
.
pid
}
`
,
{})
.
then
((
data
)
=>
{
console
.
log
(
data
);
if
(
data
)
{
this
.
$router
.
push
({
path
:
"Entrypath"
,
query
:
{
pid
:
this
.
$route
.
query
.
pid
,
},
});
}
})
.
catch
((
error
)
=>
{});
},
getTableData
()
{
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
)
{
element
.
children
.
map
((
el
,
i
)
=>
{
if
(
el
.
orderType
==
"药疗"
)
{
el
.
children
=
[];
}
el
.
pid
=
element
.
id
;
el
.
sort
=
i
++
;
el
.
isedit
=
false
;
});
}
});
data
.
route2
.
forEach
((
element
)
=>
{
if
(
element
.
children
)
{
element
.
children
.
map
((
el
,
i
)
=>
{
if
(
el
.
orderType
==
"药疗"
)
{
el
.
children
=
[];
}
el
.
pid
=
element
.
id
;
el
.
sort
=
i
++
;
el
.
isedit
=
false
;
});
}
});
this
.
newtable1
=
data
.
route1
;
this
.
newtable2
=
data
.
route2
;
this
.
tableData
=
this
.
radio
==
1
?
data
.
route1
:
data
.
route2
;
})
.
catch
((
error
)
=>
{
console
.
log
(
error
);
});
},
//单选
radiochange
(
e
)
{
if
(
this
.
$refs
.
numberValidateForm
||
this
.
$refs
.
numberValidateForm1
)
{
this
.
$refs
.
numberValidateForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$refs
.
numberValidateForm1
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
radio
=
e
;
this
.
tableData
=
this
.
radio
==
1
?
this
.
newtable1
:
this
.
newtable2
;
if
(
this
.
radio
==
1
)
{
this
.
tableData
=
this
.
newtable1
;
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
});
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
});
}
else
{
this
.
tableData
=
this
.
newtable2
;
this
.
multipleSelection1
.
map
((
p
)
=>
{
this
.
toggleSelection
(
p
,
true
);
});
this
.
multipleSelection1
.
map
((
p
)
=>
{
this
.
toggleSelection
(
p
,
true
);
});
}
}
},
//点击左侧时间线 获取右侧表格数据
timeclick
(
val
)
{
this
.
timeindex
=
val
.
inhosdays
;
this
.
case_routeid
=
val
.
case_routeid
;
this
.
inhosdays
=
val
.
inhosdays
;
this
.
getTableData
();
},
//保存医嘱
joinorder
()
{
console
.
log
(
this
.
multipleSelection
);
console
.
log
(
this
.
multipleSelection1
);
if
(
this
.
multipleSelection
.
length
||
this
.
multipleSelection1
.
length
)
{
if
(
this
.
$refs
.
numberValidateForm
||
this
.
$refs
.
numberValidateForm1
)
{
this
.
$refs
.
numberValidateForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$refs
.
numberValidateForm1
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
saveSetPatientRoutes
();
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
this
.
radio
=
e
;
this
.
tableData
=
this
.
radio
==
1
?
this
.
newtable1
:
this
.
newtable2
;
if
(
this
.
radio
==
1
)
{
this
.
multipleSelection
.
map
((
j
)
=>
{
this
.
toggleSelection
(
j
,
true
);
});
}
else
{
this
.
multipleSelection1
.
map
((
p
)
=>
{
this
.
toggleSelection
(
p
,
true
);
});
}
}
},
//点击左侧时间线 获取右侧表格数据
timeclick
(
val
)
{
this
.
timeindex
=
val
.
inhosdays
;
this
.
case_routeid
=
val
.
case_routeid
;
this
.
inhosdays
=
val
.
inhosdays
;
this
.
getTableData
();
},
//保存医嘱
joinorder
()
{
if
(
this
.
multipleSelection
.
length
||
this
.
multipleSelection1
.
length
)
{
if
(
this
.
$refs
.
numberValidateForm
||
this
.
$refs
.
numberValidateForm1
)
{
this
.
$refs
.
numberValidateForm
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
$refs
.
numberValidateForm1
.
validate
((
valid
)
=>
{
if
(
valid
)
{
this
.
saveSetPatientRoutes
();
}
else
{
this
.
saveSetPatientRoutes
();
console
.
log
(
"error submit!!"
);
return
false
;
}
});
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
},
msg
(
s
,
m
)
{
Message
({
message
:
m
,
type
:
s
,
});
},
saveSetPatientRoutes
()
{
this
.
objtable
.
route1
=
this
.
multipleSelection
;
this
.
objtable
.
route2
=
this
.
multipleSelection1
;
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
this
.
$route
.
query
.
pid
}
`
,
this
.
objtable
)
.
then
(
async
(
data
)
=>
{
data
.
map
((
item
)
=>
{
if
(
item
.
code
==
"0"
)
{
setTimeout
(()
=>
{
this
.
msg
(
"success"
,
item
.
msg
);
},
300
);
}
else
{
setTimeout
(()
=>
{
this
.
msg
(
"error"
,
item
.
msg
);
},
300
);
}
});
this
.
getlefttime
();
})
});
}
else
{
this
.
saveSetPatientRoutes
();
}
}
},
msg
(
s
,
m
)
{
setTimeout
(()
=>
{
Message
({
message
:
m
,
type
:
s
,
});
},
300
);
},
saveSetPatientRoutes
()
{
this
.
objtable
.
route1
=
this
.
multipleSelection
;
this
.
objtable
.
route2
=
this
.
multipleSelection1
;
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
this
.
$route
.
query
.
pid
}
`
,
this
.
objtable
)
.
then
(
async
(
data
)
=>
{
data
.
map
((
item
)
=>
{
if
(
item
.
code
==
"0"
)
{
this
.
msg
(
"success"
,
item
.
msg
);
}
else
{
this
.
msg
(
"error"
,
item
.
msg
);
}
});
this
.
getlefttime
();
})
.
catch
((
error
)
=>
{});
},
//获取病情变异--变异原因下拉框
getreasonoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=
${
this
.
crid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
reasonoptions
=
data
;
})
.
catch
((
error
)
=>
{});
},
//病情变异
variation
()
{
this
.
editdialogFormVisible
=
true
;
},
//确定
fromOKbtn
(
fromRef
)
{
let
prome
=
{
pid
:
this
.
$route
.
value
.
query
.
pid
,
reason
:
this
.
form
.
reason
,
inhosdays
:
this
.
form
.
inhosdays
,
remarks
:
this
.
form
.
remarks
,
};
.
catch
((
error
)
=>
{});
},
//获取病情变异--变异原因下拉框
getreasonoptions
()
{
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=
${
this
.
crid
}
`
,
{})
.
then
((
data
)
=>
{
this
.
reasonoptions
=
data
;
})
.
catch
((
error
)
=>
{});
},
//病情变异
variation
()
{
this
.
editdialogFormVisible
=
true
;
},
//确定
fromOKbtn
(
fromRef
)
{
let
prome
=
{
pid
:
this
.
$route
.
value
.
query
.
pid
,
reason
:
this
.
form
.
reason
,
inhosdays
:
this
.
form
.
inhosdays
,
remarks
:
this
.
form
.
remarks
,
};
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetVariation`
,
prome
)
.
then
((
data
)
=>
{
Message
({
message
:
data
.
message
,
type
:
"success"
,
});
(
this
.
form
=
{
inhosdays
:
""
,
reason
:
""
,
}),
(
this
.
editdialogFormVisible
=
false
);
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetVariation`
,
prome
)
.
then
((
data
)
=>
{
Message
({
message
:
data
.
message
,
type
:
"success"
,
});
(
this
.
form
=
{
inhosdays
:
""
,
reason
:
""
,
}),
(
this
.
editdialogFormVisible
=
false
);
this
.
$router
.
push
({
path
:
"Entrypath"
,
query
:
{
pid
:
this
.
$route
.
query
.
pid
,
},
});
})
.
catch
((
error
)
=>
{});
},
//取消
close
()
{
(
this
.
form
=
{
inhosdays
:
""
,
reason
:
""
,
}),
(
this
.
editdialogFormVisible
=
false
);
},
//下拉框鼠标移上显示提示文字
getTitle
(
val
)
{
if
(
val
!=
""
)
{
let
a
=
this
.
reasonoptions
.
filter
((
item
)
=>
item
.
describe
==
val
);
return
a
[
0
].
describe
;
}
},
this
.
$router
.
push
({
path
:
"Entrypath"
,
query
:
{
pid
:
this
.
$route
.
query
.
pid
,
},
});
})
.
catch
((
error
)
=>
{});
},
//取消
close
()
{
(
this
.
form
=
{
inhosdays
:
""
,
reason
:
""
,
}),
(
this
.
editdialogFormVisible
=
false
);
},
//下拉框鼠标移上显示提示文字
getTitle
(
val
)
{
if
(
val
!=
""
)
{
let
a
=
this
.
reasonoptions
.
filter
((
item
)
=>
item
.
describe
==
val
);
return
a
[
0
].
describe
;
}
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -932,270 +929,270 @@ export default {
@import
"../styles/media/components/outClinicalpathway.scss"
;
//
选中当前行样式
::v-deep
.rowStyleclass
{
font-weight
:
700
;
background-color
:
#f5f7fa
;
font-weight
:
700
;
background-color
:
#f5f7fa
;
}
//
时间线样式
::v-deep
.el-timeline-item__tail
{
left
:
0
!important
;
height
:
0
!important
;
left
:
0
!important
;
height
:
0
!important
;
}
::v-deep
.el-timeline-item
{
padding-bottom
:
5px
!important
;
display
:
flex
!important
;
align-items
:
end
!important
;
padding-bottom
:
5px
!important
;
display
:
flex
!important
;
align-items
:
end
!important
;
}
::v-deep
.el-timeline-item__wrapper
{
padding-left
:
29px
!important
;
margin-right
:
30px
!important
;
top
:
3px
!important
;
display
:
flex
!important
;
align-items
:
end
!important
;
padding-left
:
29px
!important
;
margin-right
:
30px
!important
;
top
:
3px
!important
;
display
:
flex
!important
;
align-items
:
end
!important
;
.el-timeline-item__content
{
display
:
-webkit-box
;
overflow
:
hidden
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
1
;
text-overflow
:
ellipsis
;
}
.el-timeline-item__content
{
display
:
-webkit-box
;
overflow
:
hidden
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
1
;
text-overflow
:
ellipsis
;
}
}
::v-deep
.el-timeline-item__node--normal
{
margin-left
:
15px
!important
;
margin-left
:
15px
!important
;
}
//
单选框
::v-deep
.el-radio__input.is-checked
.el-radio__inner
{
background-color
:
#0085ba
!important
;
border-color
:
#1097e0
!important
;
background-color
:
#0085ba
!important
;
border-color
:
#1097e0
!important
;
}
::v-deep
.el-radio__input.is-checked
+
.el-radio__label
{
color
:
#0085ba
!important
;
color
:
#0085ba
!important
;
}
//
多选框选中状态背景颜色
::v-deep
.el-checkbox__input.is-checked
.el-checkbox__inner
{
background-color
:
#0085ba
!important
;
border-color
:
#1097e0
!important
;
background-color
:
#0085ba
!important
;
border-color
:
#1097e0
!important
;
}
::v-deep
.el-table--scrollable-x
.el-table__body-wrapper
{
height
:
688px
!important
;
overflow-y
:
auto
!important
;
height
:
688px
!important
;
overflow-y
:
auto
!important
;
}
//
滚动条的宽度
::v-deep
.el-table__body-wrapper
::-webkit-scrollbar
{
/*滚动条整体样式*/
width
:
10px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
10px
;
background-color
:
#ffff
;
/*滚动条整体样式*/
width
:
10px
;
/*高宽分别对应横竖滚动条的尺寸*/
height
:
10px
;
background-color
:
#ffff
;
}
//
滚动条的滑块
::v-deep
.el-table__body-wrapper
::-webkit-scrollbar-thumb
{
background-color
:
#27aae2
;
border
:
3px
solid
transparent
;
border-radius
:
9px
;
background-clip
:
content-box
;
background-color
:
#27aae2
;
border
:
3px
solid
transparent
;
border-radius
:
9px
;
background-clip
:
content-box
;
}
::v-deep
.el-table__body-wrapper
::-webkit-scrollbar-track
{
/*滚动条里面轨道*/
border-radius
:
20px
;
background
:
#ffff
;
width
:
10px
;
/*滚动条里面轨道*/
border-radius
:
20px
;
background
:
#ffff
;
width
:
10px
;
}
.outClinicalpathway
{
//
height
:
calc
(
100%
-
50px
);
//
background-color
:
white
;
//
padding
:
20px
;
//
position
:
relative
;
//
overflow
:
hidden
;
height
:
900px
;
//
height
:
calc
(
100%
-
50px
);
//
background-color
:
white
;
//
padding
:
20px
;
//
position
:
relative
;
//
overflow
:
hidden
;
height
:
900px
;
background-color
:
#f0f0f0
;
//
padding
:
10px
;
overflow
:
hidden
;
position
:
relative
;
&_top
{
width
:
100%
;
height
:
12%
;
margin-bottom
:
5px
;
background-color
:
#f0f0f0
;
//
padding
:
10px
;
overflow
:
hidden
;
position
:
relative
;
&_top
{
display
:
flex
;
flex-direction
:
column
;
&_bg
{
width
:
100%
;
height
:
15%
;
background-color
:
#0283bb
;
}
&
_coent
{
width
:
100%
;
height
:
50%
;
background-color
:
#ffff
;
display
:
flex
;
margin-bottom
:
5px
;
&_left
{
height
:
100%
;
width
:
100%
;
height
:
12%
;
margin-bottom
:
5px
;
background-color
:
#f0f0f0
;
display
:
flex
;
flex-direction
:
column
;
&_bg
{
width
:
100%
;
height
:
15%
;
background-color
:
#0283bb
;
}
&
_coent
{
width
:
100%
;
height
:
50%
;
justify-content
:
center
;
align-items
:
center
;
&_one
{
width
:
98%
;
height
:
80%
;
background-color
:
#f2fafd
;
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
10px
;
span
{
width
:
3%
;
height
:
100%
;
font-size
:
14px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
&
_t1
{
width
:
24%
;
height
:
80%
;
margin-right
:
5px
;
background-color
:
#ffff
;
display
:
flex
;
margin-bottom
:
5px
;
&_left
{
height
:
100%
;
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
&_one
{
width
:
98%
;
height
:
80%
;
background-color
:
#f2fafd
;
margin-bottom
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
10px
;
span
{
width
:
3%
;
height
:
100%
;
font-size
:
14px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
&
_t1
{
width
:
24%
;
height
:
80%
;
margin-right
:
5px
;
background-color
:
#ffff
;
display
:
flex
;
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
margin-left
:
10px
;
span
{
width
:
80%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
&
_t2
{
width
:
24%
;
height
:
80%
;
margin-right
:
5px
;
background-color
:
#ffff
;
display
:
flex
;
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
span
{
width
:
80%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
&
_t3
{
width
:
24%
;
height
:
80%
;
margin-right
:
5px
;
background-color
:
#ffff
;
margin-right
:
10px
;
display
:
flex
;
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
span
{
width
:
80%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
&
_t4
{
width
:
24%
;
height
:
80%
;
background-color
:
#ffff
;
margin-right
:
5px
;
display
:
flex
;
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
span
{
width
:
60%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
}
}
&
_right
{
height
:
100%
;
width
:
20%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
&_btn
{
height
:
50%
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
margin-left
:
10px
;
span
{
width
:
80%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
&
_time
{
width
:
100%
;
height
:
35%
;
background
:
#ffff
;
}
&
_t2
{
width
:
24%
;
height
:
80%
;
margin-right
:
5px
;
background-color
:
#ffff
;
display
:
flex
;
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
span
{
width
:
80%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
&
_t3
{
width
:
24%
;
height
:
80%
;
margin-right
:
5px
;
background-color
:
#ffff
;
margin-right
:
10px
;
display
:
flex
;
align-items
:
center
;
&_timespan
{
max-width
:
200px
;
/* height: 20px; */
display
:
flex
;
background-color
:
#0283bb
;
border-radius
:
20px
;
margin-right
:
10px
;
span
{
color
:
#ffff
;
}
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
span
{
width
:
80%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
&
_timespan2
{
max-width
:
200px
;
/* height: 20px; */
display
:
flex
;
}
&
_t4
{
width
:
24%
;
height
:
80%
;
background-color
:
#ffff
;
margin-right
:
5px
;
display
:
flex
;
align-items
:
center
;
color
:
#acacac
;
font-weight
:
400
;
padding-left
:
20px
;
span
{
width
:
60%
;
height
:
80%
;
color
:
#181617
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
}
}
}
}
&
_table
{
height
:
84
%
;
width
:
10
0%
;
}
&
_right
{
height
:
100
%
;
width
:
2
0%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
&_btn
{
height
:
50%
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
}
}
&
_time
{
width
:
100%
;
height
:
35%
;
background
:
#ffff
;
padding-left
:
20px
;
display
:
flex
;
align-items
:
center
;
&_right
{
width
:
100%
;
height
:
100%
;
&_radio
{
width
:
100%
;
height
:
8%
;
background
:
#ffff
;
display
:
flex
;
align-items
:
center
;
padding-left
:
10px
;
}
&_timespan
{
max-width
:
200px
;
/* height: 20px; */
display
:
flex
;
background-color
:
#0283bb
;
border-radius
:
20px
;
margin-right
:
10px
;
span
{
color
:
#ffff
;
}
}
&
_timespan2
{
max-width
:
200px
;
/* height: 20px; */
display
:
flex
;
}
}
}
&
_table
{
height
:
84%
;
width
:
100%
;
display
:
flex
;
&_right
{
width
:
100%
;
height
:
100%
;
&_radio
{
width
:
100%
;
height
:
8%
;
background
:
#ffff
;
display
:
flex
;
align-items
:
center
;
padding-left
:
10px
;
}
}
/* .el-form-item {
}
/* .el-form-item {
margin: 0;
} */
}
...
...
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