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
08b47a3e
Commit
08b47a3e
authored
Mar 03, 2023
by
tangyufeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.滚动条
2.修复锁定状态栏 3.修复页面跳转
parent
cc1f20bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
82 additions
and
370 deletions
+82
-370
src/views/outClinicalpathway.vue
+82
-370
No files found.
src/views/outClinicalpathway.vue
View file @
08b47a3e
...
@@ -32,29 +32,15 @@
...
@@ -32,29 +32,15 @@
</div>
</div>
<div
class=
"outClinicalpathway_top_coent_right"
>
<div
class=
"outClinicalpathway_top_coent_right"
>
<div
class=
"outClinicalpathway_top_coent_right_btn"
>
<div
class=
"outClinicalpathway_top_coent_right_btn"
>
<el-button
<el-button
icon=
"el-icon-user"
style=
"background-color: #0283bb; color: #ffff"
@
click=
"joinorder()"
>
保存医嘱
</el-button>
icon=
"el-icon-user"
<el-button
icon=
"el-icon-s-tools"
style=
"background-color: #0283bb; color: #ffff"
@
click=
"variation()"
>
病情变异
</el-button>
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>
</div>
</div>
<div
class=
"outClinicalpathway_top_time"
>
<div
class=
"outClinicalpathway_top_time"
>
<el-timeline
style=
"display: flex; width: 25%; padding: 0 10px"
>
<el-timeline
style=
"display: flex; width: 25%; padding: 0 10px"
>
<el-timeline-item
<el-timeline-item
:class=
"
:class=
"timeindex == activity.inhosdays ? 'outClinicalpathway_top_time_timespan' : 'outClinicalpathway_top_time_timespan2'"
timeindex == activity.inhosdays
? 'outClinicalpathway_top_time_timespan'
: 'outClinicalpathway_top_time_timespan2'
"
v-for=
"(activity, index) in activities"
v-for=
"(activity, index) in activities"
:key=
"index"
:key=
"index"
:type=
"activity.type"
:type=
"activity.type"
...
@@ -70,60 +56,27 @@
...
@@ -70,60 +56,27 @@
</div>
</div>
<!--病情变异弹框开始 -->
<!--病情变异弹框开始 -->
<el-dialog
:visible
.
sync=
"editdialogFormVisible"
width=
"30%"
@
close=
"close"
>
<el-dialog
:visible
.
sync=
"editdialogFormVisible"
width=
"30%"
@
close=
"close"
>
<el-form
<el-form
ref=
"fromRef"
:model=
"form"
:label-position=
"labelPosition"
label-width=
"100px"
>
ref=
"fromRef"
:model=
"form"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"路径天数:"
>
<el-form-item
label=
"路径天数:"
>
<!--
<el-input
v-model=
"form.inhosdays"
/>
-->
<!--
<el-input
v-model=
"form.inhosdays"
/>
-->
<el-select
<el-select
v-model=
"form.inhosdays"
class=
"m-2"
placeholder=
"请选择"
size=
"mini"
>
v-model=
"form.inhosdays"
<el-option
v-for=
"item in options"
:key=
"item.inhosdays"
:label=
"item.inhosdays"
:value=
"item.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-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"变异原因:"
>
<el-form-item
label=
"变异原因:"
>
<el-select
<el-select
v-model=
"form.reason"
class=
"m-2"
placeholder=
"请选择"
size=
"mini"
:title=
"getTitle(form.reason)"
>
v-model=
"form.reason"
<el-option
v-for=
"item in reasonoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
:title=
"item.describe"
>
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>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-form-item
label=
"备注:"
>
<el-input
<el-input
v-model=
"form.remarks"
:autosize=
"
{ minRows: 4, maxRows: 10 }" type="textarea" />
v-model=
"form.remarks"
:autosize=
"
{ minRows: 4, maxRows: 10 }"
type="textarea"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<template
#
footer
>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<span
class=
"dialog-footer"
>
<el-button
size=
"mini"
@
click=
"close()"
>
取消
</el-button>
<el-button
size=
"mini"
@
click=
"close()"
>
取消
</el-button>
<el-button
size=
"mini"
type=
"primary"
@
click=
"fromOKbtn()"
<el-button
size=
"mini"
type=
"primary"
@
click=
"fromOKbtn()"
>
确定
</el-button>
>
确定
</el-button>
</span>
</span>
</
template
>
</
template
>
</el-dialog>
</el-dialog>
...
@@ -142,6 +95,8 @@
...
@@ -142,6 +95,8 @@
ref=
"multipleTable"
ref=
"multipleTable"
row-key=
"id"
row-key=
"id"
:data=
"tableData"
:data=
"tableData"
height=
"100%"
style=
"width: 100%"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:tree-props=
"{ children: 'children', hasChildren: 'hasChildren' }"
:select-on-indeterminate=
"true"
:select-on-indeterminate=
"true"
@
selection-change=
"SelectionChange"
@
selection-change=
"SelectionChange"
...
@@ -151,99 +106,32 @@
...
@@ -151,99 +106,32 @@
size=
"mini"
size=
"mini"
:row-class-name=
"rowClass"
:row-class-name=
"rowClass"
>
>
<el-table-column
<el-table-column
type=
"selection"
:selectable=
"selectEnable"
width=
"55"
/>
type=
"selection"
:selectable=
"selectEnable"
width=
"55"
/>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"advice_name"
label=
"路径名称"
width=
"150"
/>
show-overflow-tooltip
<el-table-column
show-overflow-tooltip
property=
"tickTime"
label=
"当前时间"
width=
"145"
>
property=
"advice_name"
label=
"路径名称"
width=
"150"
/>
<el-table-column
show-overflow-tooltip
property=
"tickTime"
label=
"当前时间"
width=
"145"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span
<span
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
>
{{
scope
.
row
.
tickTime
}}
</span>
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
>
{{
scope
.
row
.
tickTime
}}
</span
>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"orderType"
label=
"类型"
width=
"60"
/>
show-overflow-tooltip
property=
"orderType"
label=
"类型"
width=
"60"
/>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"project_name"
label=
"医院项目名称"
width=
"220"
/>
show-overflow-tooltip
property=
"project_name"
label=
"医院项目名称"
width=
"120"
/>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"specifications"
label=
"规格说明"
width=
"80"
/>
show-overflow-tooltip
<el-table-column
show-overflow-tooltip
property=
"dosage"
label=
"药品剂型"
width=
"80"
/>
property=
"specifications"
<el-table-column
show-overflow-tooltip
property=
"isAntibiotic"
label=
"抗生素"
width=
"85"
>
label=
"规格说明"
width=
"80"
/>
<el-table-column
show-overflow-tooltip
property=
"dosage"
label=
"药品剂型"
width=
"80"
/>
<el-table-column
show-overflow-tooltip
property=
"isAntibiotic"
label=
"抗生素"
width=
"85"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-select
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.isAntibiotic"
>
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
<el-option
v-for=
"item in chargeTypeoptions"
:key=
"item.label"
:label=
"item.label"
:value=
"item.label"
>
</el-option>
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>
</el-select>
<span
v-else
>
{{
scope
.
row
.
isAntibiotic
}}
</span>
<span
v-else
>
{{
scope
.
row
.
isAntibiotic
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"medicalPurpose"
label=
"用药目的"
width=
"135"
>
show-overflow-tooltip
property=
"medicalPurpose"
label=
"用药目的"
width=
"135"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-select
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicalPurpose"
>
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
<el-option
v-for=
"item in medicalPurposeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
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>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicalPurpose
}}
</span>
<span
v-else
>
{{
scope
.
row
.
medicalPurpose
}}
</span>
</
template
>
</
template
>
...
@@ -258,54 +146,19 @@
...
@@ -258,54 +146,19 @@
<span
v-else
>
{{
scope
.
row
.
medicUseQuantity
}}
</span>
<span
v-else
>
{{
scope
.
row
.
medicUseQuantity
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"medicUseUnit"
label=
"单位"
width=
"50"
/>
show-overflow-tooltip
<el-table-column
show-overflow-tooltip
property=
"medicUseMode"
label=
"途径"
width=
"110"
>
property=
"medicUseUnit"
label=
"单位"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"medicUseMode"
label=
"途径"
width=
"110"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-select
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicUseMode"
>
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
<el-option
v-for=
"item in medicUseModeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
size=
"mini"
v-model=
"scope.row.medicUseMode"
>
<el-option
v-for=
"item in medicUseModeoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
</el-select>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicUseMode
}}
</span>
<span
v-else
>
{{
scope
.
row
.
medicUseMode
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"medicUsePlan"
label=
"频率"
width=
"100"
>
show-overflow-tooltip
property=
"medicUsePlan"
label=
"频率"
width=
"100"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-select
<el-select
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
size=
"mini"
v-model=
"scope.row.medicUsePlan"
>
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
<el-option
v-for=
"item in medicUsePlanoptions"
:key=
"item.id"
:label=
"item.describe"
:value=
"item.describe"
>
</el-option>
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>
</el-select>
<span
v-else
>
{{
scope
.
row
.
medicUsePlan
}}
</span>
<span
v-else
>
{{
scope
.
row
.
medicUsePlan
}}
</span>
</
template
>
</
template
>
...
@@ -313,26 +166,12 @@
...
@@ -313,26 +166,12 @@
<el-table-column
prop=
"medicQuantity"
label=
"用药总量"
width=
"80"
>
<el-table-column
prop=
"medicQuantity"
label=
"用药总量"
width=
"80"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-input
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-model=
"scope.row.medicQuantity"
size=
"mini"
></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>
<span
v-else
>
{{
scope
.
row
.
medicQuantity
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
show-overflow-tooltip
property=
"medicUnit"
label=
"单位"
width=
"50"
/>
show-overflow-tooltip
<el-table-column
show-overflow-tooltip
property=
"remark"
label=
"嘱托"
width=
"150'"
>
property=
"medicUnit"
label=
"单位"
width=
"50"
/>
<el-table-column
show-overflow-tooltip
property=
"remark"
label=
"嘱托"
width=
"150'"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-input
<el-input
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
...
@@ -348,46 +187,21 @@
...
@@ -348,46 +187,21 @@
<el-table-column
prop=
"description"
label=
"诊断描述"
width=
"150"
>
<el-table-column
prop=
"description"
label=
"诊断描述"
width=
"150"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<div
<div
style=
"display: flex; height: 100%; flex-direction: column; justify-content: center; align-items: center"
>
style=
"
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
"
>
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
<span
<span
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type == 2"
style=
"color: red"
>
*
</span>
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2
"
style=
"color: red"
>
*
</span
>
<el-input
<el-input
size=
"mini"
size=
"mini"
type=
"textarea"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
placeholder="请输入内容"
v-if="
v-if="scope.row.advice_name == null
&&
scope.row.ischeck == 1
&&
scope.row.type != 1"
scope.row.advice_name == null
&&
scope.row.ischeck == 1
&&
scope.row.type != 1
"
v-model="scope.row.description"
v-model="scope.row.description"
>
</el-input>
>
</el-input>
</div>
</div>
<span
<span
style=
"font-size: 12px; color: red"
style=
"font-size: 12px; color: red"
v-if=
"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type == 2 && scope.row.description == ''"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2 &&
scope.row.description == ''
"
>
请输入内容
</span
>
请输入内容
</span
>
>
</div>
</div>
...
@@ -395,46 +209,21 @@
...
@@ -395,46 +209,21 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"symptom"
label=
"症状及体征"
width=
"150"
>
<el-table-column
prop=
"symptom"
label=
"症状及体征"
width=
"150"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<div
<div
style=
"display: flex; height: 100%; flex-direction: column; justify-content: center; align-items: center"
>
style=
"
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
"
>
<div
style=
"display: flex"
>
<div
style=
"display: flex"
>
<span
<span
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type == 2"
style=
"color: red"
>
*
</span>
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2
"
style=
"color: red"
>
*
</span
>
<el-input
<el-input
size=
"mini"
size=
"mini"
type=
"textarea"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
placeholder="请输入内容"
v-if="
v-if="scope.row.advice_name == null
&&
scope.row.ischeck == 1
&&
scope.row.type != 1"
scope.row.advice_name == null
&&
scope.row.ischeck == 1
&&
scope.row.type != 1
"
v-model="scope.row.symptom"
v-model="scope.row.symptom"
>
</el-input>
>
</el-input>
</div>
</div>
<span
<span
style=
"font-size: 12px; color: red"
style=
"font-size: 12px; color: red"
v-if=
"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type == 2 && scope.row.symptom == ''"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2 &&
scope.row.symptom == ''
"
>
请输入内容
</span
>
请输入内容
</span
>
>
</div>
</div>
...
@@ -444,11 +233,7 @@
...
@@ -444,11 +233,7 @@
<el-table-column
label=
"操作"
width=
"80"
>
<el-table-column
label=
"操作"
width=
"80"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<el-button
<el-button
v-if=
"
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1 && scope.row.type != 1"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type != 1
"
size=
"mini"
size=
"mini"
type=
"primary"
type=
"primary"
@
click=
"goSeeScore(scope.row, scope.$index, scope)"
@
click=
"goSeeScore(scope.row, scope.$index, scope)"
...
@@ -461,19 +246,9 @@
...
@@ -461,19 +246,9 @@
</div>
</div>
<!-- 更多弹框开始 -->
<!-- 更多弹框开始 -->
<el-dialog
:visible
.
sync=
"goSeeScoredialogFormVisible"
width=
"30%"
>
<el-dialog
:visible
.
sync=
"goSeeScoredialogFormVisible"
width=
"30%"
>
<el-form
<el-form
ref=
"goSeefromRef"
:model=
"goSeeform"
:label-position=
"labelPosition"
label-width=
"100px"
>
ref=
"goSeefromRef"
:model=
"goSeeform"
:label-position=
"labelPosition"
label-width=
"100px"
>
<el-form-item
label=
"主诉:"
>
<el-form-item
label=
"主诉:"
>
<el-input
<el-input
v-model=
"goSeeform.chiefComplaint"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
v-model=
"goSeeform.chiefComplaint"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"检查目的:"
>
<el-form-item
label=
"检查目的:"
>
<el-input
<el-input
...
@@ -485,12 +260,7 @@
...
@@ -485,12 +260,7 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"既往史:"
>
<el-form-item
label=
"既往史:"
>
<el-input
<el-input
v-model=
"goSeeform.pastHistory"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
v-model=
"goSeeform.pastHistory"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"其他辅助项目:"
>
<el-form-item
label=
"其他辅助项目:"
>
<el-input
<el-input
...
@@ -502,12 +272,7 @@
...
@@ -502,12 +272,7 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注:"
>
<el-form-item
label=
"备注:"
>
<el-input
<el-input
v-model=
"goSeeform.inspectRemarks"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
v-model=
"goSeeform.inspectRemarks"
:autosize=
"{ minRows: 2 }"
type=
"textarea"
placeholder=
"请输入内容"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<
template
#
footer
>
<
template
#
footer
>
...
@@ -522,14 +287,7 @@
...
@@ -522,14 +287,7 @@
</template>
</template>
<
script
>
<
script
>
import
http
from
"../utils/http"
;
import
http
from
"../utils/http"
;
import
{
import
{
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
,
ref
}
from
"@vue/composition-api"
;
reactive
,
toRefs
,
onMounted
,
nextTick
,
computed
,
ref
,
}
from
"@vue/composition-api"
;
import
{
decimal
}
from
"../utils/decimal"
;
import
{
decimal
}
from
"../utils/decimal"
;
import
{
img
}
from
"../assets/img/zu.png"
;
import
{
img
}
from
"../assets/img/zu.png"
;
import
{
Message
}
from
"element-ui"
;
import
{
Message
}
from
"element-ui"
;
...
@@ -676,11 +434,7 @@ export default {
...
@@ -676,11 +434,7 @@ export default {
};
};
//获取途径,频率的下拉数据
//获取途径,频率的下拉数据
const
gemedicUseModeoptions
=
()
=>
{
const
gemedicUseModeoptions
=
()
=>
{
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{})
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=1`
,
{}
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
medicUseModeoptions
=
data
;
state
.
medicUseModeoptions
=
data
;
})
})
...
@@ -689,11 +443,7 @@ export default {
...
@@ -689,11 +443,7 @@ export default {
//获取频率,频率的下拉数据
//获取频率,频率的下拉数据
const
gemedicUsePlanoptions
=
()
=>
{
const
gemedicUsePlanoptions
=
()
=>
{
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{})
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=2`
,
{}
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
medicUsePlanoptions
=
data
;
state
.
medicUsePlanoptions
=
data
;
})
})
...
@@ -701,11 +451,7 @@ export default {
...
@@ -701,11 +451,7 @@ export default {
};
};
//获取用要目的下拉数据
//获取用要目的下拉数据
const
getmedicalPurposeoptions
=
()
=>
{
const
getmedicalPurposeoptions
=
()
=>
{
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{})
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStaCRParametersByType?type=3`
,
{}
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
medicalPurposeoptions
=
data
;
state
.
medicalPurposeoptions
=
data
;
})
})
...
@@ -714,11 +460,7 @@ export default {
...
@@ -714,11 +460,7 @@ export default {
//获取患者信息
//获取患者信息
const
gettopdata
=
()
=>
{
const
gettopdata
=
()
=>
{
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=
${
route
.
value
.
query
.
pid
}
`
,
{})
.
post
(
`/ClinicalRoute/ClinicalRoute/GetPatientInfo?pid=
${
route
.
value
.
query
.
pid
}
`
,
{}
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
topdata
=
data
;
state
.
topdata
=
data
;
state
.
crid
=
data
.
crid
;
state
.
crid
=
data
.
crid
;
...
@@ -742,6 +484,11 @@ export default {
...
@@ -742,6 +484,11 @@ export default {
console
.
log
(
"row--父节点"
,
row
);
console
.
log
(
"row--父节点"
,
row
);
row
.
tickTime
=
transformTimestampnow
();
row
.
tickTime
=
transformTimestampnow
();
// 选中
// 选中
console
.
log
(
selection
.
some
((
el
)
=>
{
return
row
.
id
===
el
.
id
;
})
);
if
(
if
(
selection
.
some
((
el
)
=>
{
selection
.
some
((
el
)
=>
{
return
row
.
id
===
el
.
id
;
return
row
.
id
===
el
.
id
;
...
@@ -770,12 +517,12 @@ export default {
...
@@ -770,12 +517,12 @@ export default {
};
};
// 控制选框是否被选中
// 控制选框是否被选中
const
toggleSelection
=
(
row
,
select
)
=>
{
const
toggleSelection
=
(
row
,
select
)
=>
{
console
.
log
(
row
,
select
);
if
(
row
)
{
if
(
row
)
{
// console.log("row-亮", row);
// console.log("row-亮", row);
nextTick
(()
=>
{
nextTick
(()
=>
{
multipleTable
.
value
&&
multipleTable
.
value
&&
multipleTable
.
value
.
toggleRowSelection
(
row
,
select
);
multipleTable
.
value
.
toggleRowSelection
(
row
,
select
);
});
});
if
(
select
==
true
)
{
if
(
select
==
true
)
{
row
.
ischeck
=
1
;
row
.
ischeck
=
1
;
...
@@ -825,56 +572,34 @@ export default {
...
@@ -825,56 +572,34 @@ export default {
//获取左侧时间线数据
//获取左侧时间线数据
const
getlefttime
=
()
=>
{
const
getlefttime
=
()
=>
{
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=
${
route
.
value
.
query
.
pid
}
`
,
{})
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesLeft?pid=
${
route
.
value
.
query
.
pid
}
`
,
{}
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
activities
=
data
;
state
.
activities
=
data
;
state
.
options
=
data
;
state
.
options
=
data
;
if
(
state
.
activities
.
filter
((
item
)
=>
item
.
flag
).
length
==
state
.
activities
.
length
)
{
state
.
activities
.
every
((
item
)
=>
{
state
.
timeindex
=
state
.
activities
[
state
.
activities
.
length
-
1
].
inhosdays
;
//如果都为true高亮最后一个
if
(
item
.
flag
==
true
)
{
for
(
let
i
=
0
;
i
<
state
.
activities
.
length
;
i
++
)
{
state
.
timeindex
=
state
.
activities
[
state
.
activities
.
length
-
1
].
inhosdays
;
timeclick
(
state
.
activities
[
state
.
activities
.
length
-
1
]);
timeclick
(
state
.
activities
[
state
.
activities
.
length
-
1
]);
console
.
log
(
"state.activities[state.activities.length-1]"
,
state
.
activities
[
state
.
activities
.
length
-
1
]
);
}
}
//如果都为false高亮第一个
if
(
state
.
activities
.
filter
((
item
)
=>
!
item
.
flag
).
length
==
state
.
activities
.
length
)
{
}
else
if
(
item
.
flag
==
false
)
{
for
(
let
i
=
0
;
i
<
state
.
activities
.
length
;
i
++
)
{
state
.
timeindex
=
state
.
activities
[
0
].
inhosdays
;
state
.
timeindex
=
state
.
activities
[
0
].
inhosdays
;
timeclick
(
state
.
activities
[
0
]);
timeclick
(
state
.
activities
[
0
]);
console
.
log
(
"state.activities[0]"
,
state
.
activities
[
0
]);
}
//truehe和false都有高亮第一个false
}
else
{
}
else
{
let
obj
=
null
;
state
.
timeindex
=
state
.
activities
.
filter
((
item
)
=>
!
item
.
flag
)[
0
].
inhosdays
;
timeclick
(
state
.
activities
.
filter
((
item
)
=>
!
item
.
flag
)[
0
]);
//find返回数组中符合条件的第一个元素 有false
state
.
activities
.
find
((
item
)
=>
{
if
(
item
.
flag
==
false
)
{
obj
=
item
;
state
.
timeindex
=
obj
.
inhosdays
;
timeclick
(
obj
);
console
.
log
(
"item--false"
,
item
);
}
}
})
.
catch
((
error
)
=>
{
router
.
push
({
path
:
"Entrypath"
,
query
:
{
pid
:
route
.
value
.
query
.
pid
,
},
});
});
}
});
});
})
.
catch
((
error
)
=>
{});
};
};
//单选
//单选
const
radiochange
=
()
=>
{
const
radiochange
=
()
=>
{
http
http
.
post
(
.
post
(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=
${
route
.
value
.
query
.
pid
}
&case_routeid=
${
state
.
case_routeid
}
&searchQuery=
${
state
.
inhosdays
}
`
,
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=
${
route
.
value
.
query
.
pid
}
&case_routeid=
${
state
.
case_routeid
}
&searchQuery=
${
state
.
inhosdays
}
`
,
{}
{}
)
)
...
@@ -922,11 +647,7 @@ export default {
...
@@ -922,11 +647,7 @@ export default {
const
joinorder
=
()
=>
{
const
joinorder
=
()
=>
{
state
.
objtable
.
route1
=
state
.
newtable1
;
state
.
objtable
.
route1
=
state
.
newtable1
;
state
.
objtable
.
route2
=
state
.
newtable2
;
state
.
objtable
.
route2
=
state
.
newtable2
;
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
route
.
value
.
query
.
pid
}
`
,
state
.
objtable
)
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
route
.
value
.
query
.
pid
}
`
,
state
.
objtable
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
// console.log("data.hisUrl", data.hisUrl);
// console.log("data.hisUrl", data.hisUrl);
state
.
hisUrl
=
data
.
hisUrl
.
split
(
"api/"
)[
2
];
state
.
hisUrl
=
data
.
hisUrl
.
split
(
"api/"
)[
2
];
...
@@ -941,8 +662,7 @@ export default {
...
@@ -941,8 +662,7 @@ export default {
state
.
longMedical
=
data
.
longMedical
;
state
.
longMedical
=
data
.
longMedical
;
// 调用his接口 临时西药
// 调用his接口 临时西药
http
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"tempMedical"
,
method
:
"tempMedical"
,
type
:
1
,
type
:
1
,
data
:
state
.
tempMedicalDrug
,
data
:
state
.
tempMedicalDrug
,
...
@@ -970,8 +690,7 @@ export default {
...
@@ -970,8 +690,7 @@ export default {
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
// 调用his接口 临时检查
// 调用his接口 临时检查
http
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"tempMedical"
,
method
:
"tempMedical"
,
type
:
3
,
type
:
3
,
data
:
state
.
tempMedicalcheck
,
data
:
state
.
tempMedicalcheck
,
...
@@ -993,8 +712,7 @@ export default {
...
@@ -993,8 +712,7 @@ export default {
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
// 调用his接口 临时检验
// 调用his接口 临时检验
http
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"tempMedical"
,
method
:
"tempMedical"
,
type
:
4
,
type
:
4
,
data
:
state
.
tempMedicalCheckout
,
data
:
state
.
tempMedicalCheckout
,
...
@@ -1016,8 +734,7 @@ export default {
...
@@ -1016,8 +734,7 @@ export default {
.
catch
((
error
)
=>
{});
.
catch
((
error
)
=>
{});
// 调用his接口 长期西药
// 调用his接口 长期西药
http
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"longMedical"
,
method
:
"longMedical"
,
type
:
1
,
type
:
1
,
data
:
state
.
longMedical
,
data
:
state
.
longMedical
,
...
@@ -1043,11 +760,7 @@ export default {
...
@@ -1043,11 +760,7 @@ export default {
};
};
//获取病情变异--变异原因下拉框
//获取病情变异--变异原因下拉框
const
getreasonoptions
=
()
=>
{
const
getreasonoptions
=
()
=>
{
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=
${
state
.
crid
}
`
,
{})
.
post
(
`/ClinicalRoute/ClinicalRoute/GetStandardByType?crid=
${
state
.
crid
}
`
,
{}
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
state
.
reasonoptions
=
data
;
state
.
reasonoptions
=
data
;
})
})
...
@@ -1068,8 +781,7 @@ export default {
...
@@ -1068,8 +781,7 @@ export default {
remarks
:
state
.
form
.
remarks
,
remarks
:
state
.
form
.
remarks
,
};
};
http
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetVariation`
,
prome
)
.
post
(
`/ClinicalRoute/ClinicalRoute/SetVariation`
,
prome
)
.
then
((
data
)
=>
{
.
then
((
data
)
=>
{
Message
({
Message
({
message
:
data
.
message
,
message
:
data
.
message
,
...
...
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