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
a70c4882
Commit
a70c4882
authored
Feb 28, 2023
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.提交修改的数据
2.修改展示时间
parent
6195faa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
185 additions
and
114 deletions
+185
-114
src/views/outClinicalpathway.vue
+183
-112
vue.config.js
+2
-2
No files found.
src/views/outClinicalpathway.vue
View file @
a70c4882
...
...
@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-02-2
7 16:24:33
* @LastEditTime: 2023-02-2
8 23:07:56
* @Description:
-->
<
template
>
...
...
@@ -156,18 +156,18 @@
show-overflow-tooltip
property=
"advice_name"
label=
"路径名称"
width=
"1
2
0"
width=
"1
5
0"
/>
<el-table-column
show-overflow-tooltip
property=
"tickTime"
label=
"当前时间"
width=
"
90
"
width=
"
145
"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.advice_name == null && scope.row.ischeck == 1"
>
{{
transformTime
()
}}
</span
>
{{
scope
.
row
.
tickTime
}}
</span
>
</
template
>
</el-table-column>
...
...
@@ -224,7 +224,7 @@
show-overflow-tooltip
property=
"medicalPurpose"
label=
"用药目的"
width=
"1
2
5"
width=
"1
3
5"
>
<
template
#
default=
"scope"
>
<el-select
...
...
@@ -306,16 +306,6 @@
</
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
...
...
@@ -336,7 +326,7 @@
show-overflow-tooltip
property=
"remark"
label=
"嘱托"
width=
"
9
0'"
width=
"
15
0'"
>
<
template
#
default=
"scope"
>
<el-input
...
...
@@ -350,91 +340,55 @@
<span
v-else
>
{{
scope
.
row
.
remark
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"chiefComplaint"
label=
"主诉"
width=
"90"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model=
"scope.row.chiefComplaint"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
>
</el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"inspectionPurpose"
label=
"检查目的"
width=
"90"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model=
"scope.row.inspectionPurpose"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
>
</el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"symptom"
label=
"症状及体征"
width=
"100"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model=
"scope.row.symptom"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
>
</el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"pastHistory"
label=
"既往史"
width=
"90"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
"
v-model=
"scope.row.pastHistory"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
>
</el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"auxiliaryItems"
label=
"其他辅助项目"
width=
"110"
>
<el-table-column
prop=
"description"
label=
"诊断描述"
width=
"150"
>
<
template
#
default=
"scope"
>
<el-input
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.isShow == true
<div
style=
"
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
"
v-model=
"scope.row.auxiliaryItems"
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
>
</el-input>
>
<div
style=
"display: flex"
>
<span
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2
"
style=
"color: red"
>
*
</span
>
<el-input
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
v-if="
scope.row.advice_name == null
&&
scope.row.ischeck == 1
&&
scope.row.type != 1
"
v-model="scope.row.description"
>
</el-input>
</div>
<span
style=
"font-size: 12px; color: red"
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.type == 2 &&
scope.row.description == ''
"
>
请输入内容
</span
>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"
description"
label=
"诊断描述"
width=
"10
0"
>
<el-table-column
prop=
"
symptom"
label=
"症状及体征"
width=
"15
0"
>
<
template
#
default=
"scope"
>
<div
style=
"
...
...
@@ -450,7 +404,7 @@
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.
isShow == true
scope.row.
type == 2
"
style=
"color: red"
>
*
</span
...
...
@@ -463,9 +417,9 @@
v-if="
scope.row.advice_name == null
&&
scope.row.ischeck == 1
&&
scope.row.
isShow == true
scope.row.
type != 1
"
v-model="scope.row.
description
"
v-model="scope.row.
symptom
"
>
</el-input>
</div>
<span
...
...
@@ -473,33 +427,92 @@
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.
isShow == true
&&
scope.row.
description
== ''
scope.row.
type == 2
&&
scope.row.
symptom
== ''
"
>
请输入内容
</span
>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"inspectRemarks"
label=
"备注"
width=
"90"
>
<el-table-column
label=
"操作"
width=
"80"
>
<
template
#
default=
"scope"
>
<el-input
size=
"mini"
type=
"textarea"
:autosize=
"
{ minRows: 2 }"
placeholder="请输入内容"
<el-button
v-if=
"
scope.row.advice_name == null &&
scope.row.ischeck == 1 &&
scope.row.
isShow == true
scope.row.
type != 1
"
v-model="scope.row.inspectRemarks"
>
</el-input>
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%"
>
<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=
"请输入内容"
:disabled=
"distype == 3 ? true : false"
/>
</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=
"请输入内容"
:disabled=
"distype == 3 ? true : false"
/>
</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
>
...
...
@@ -520,6 +533,7 @@ import { setItem, getItem } from "../utils/auth";
import
{
Loading
}
from
"element-ui"
;
import
_
from
"lodash"
;
import
{
transformTimestampnow
}
from
"../utils/formatTime"
;
import
{
format
}
from
"echarts"
;
export
default
{
name
:
"outClinicalpathway"
,
setup
()
{
...
...
@@ -527,6 +541,7 @@ export default {
const
route
=
useRoute
();
const
router
=
useRouter
();
const
fromRef
=
ref
();
const
goSeefromRef
=
ref
();
function
tableLayout
()
{
nextTick
(()
=>
{
fromRef
.
value
.
doLayout
();
...
...
@@ -537,6 +552,11 @@ export default {
const
transformTime
=
computed
(()
=>
{
return
transformTimestampnow
;
});
// const transformTime = (row) => {
// console.log(2222);
// row.tickTime = transformTimestampnow();
// console.log(row.tickTime);
// };
let
state
=
reactive
({
//患者信息
topdata
:
{
...
...
@@ -589,7 +609,54 @@ export default {
newtable1
:
[],
newtable2
:
[],
objtable
:
{
route1
:
[],
route2
:
[]
},
goSeeScoredialogFormVisible
:
false
,
//更多弹框
goSeeform
:
{
//更多表单
// chiefComplaint: "", //主诉
// inspectionPurpose: "",
// pastHistory: "",
// auxiliaryItems: "",
// inspectRemarks: "",
},
oldRowObj
:
{},
goSeeIndex
:
""
,
goSeeIndexPid
:
""
,
distype
:
1
,
});
//更多
const
goSeeScore
=
(
row
)
=>
{
console
.
log
(
"state.tableData"
,
state
.
tableData
);
console
.
log
(
"row"
,
row
);
state
.
distype
=
row
.
type
;
state
.
goSeeScoredialogFormVisible
=
true
;
state
.
oldRowObj
=
{
...
row
};
state
.
goSeeform
=
{
...
row
};
state
.
tableData
.
forEach
((
item
,
index
)
=>
{
let
childIndex
=
item
.
children
.
findIndex
((
v
)
=>
v
.
id
==
row
.
id
);
if
(
childIndex
!==
-
1
)
{
state
.
goSeeIndexPid
=
index
;
state
.
goSeeIndex
=
childIndex
;
}
});
};
//更多-取消
const
goSeecolse
=
()
=>
{
state
.
goSeeform
=
{};
let
childrenList
=
[...
state
.
tableData
[
state
.
goSeeIndexPid
].
children
];
childrenList
.
splice
(
state
.
goSeeIndex
,
1
,
state
.
oldRowObj
);
state
.
tableData
[
state
.
goSeeIndexPid
].
children
=
childrenList
;
state
.
goSeeScoredialogFormVisible
=
false
;
toggleSelection
(
state
.
oldRowObj
,
true
);
};
//更多--确定
const
goSeeok
=
()
=>
{
let
childrenList
=
[...
state
.
tableData
[
state
.
goSeeIndexPid
].
children
];
childrenList
.
splice
(
state
.
goSeeIndex
,
1
,
state
.
goSeeform
);
state
.
tableData
[
state
.
goSeeIndexPid
].
children
=
childrenList
;
console
.
log
(
state
.
tableData
,
999
);
state
.
goSeeScoredialogFormVisible
=
false
;
toggleSelection
(
state
.
goSeeform
,
true
);
};
//获取途径,频率的下拉数据
const
gemedicUseModeoptions
=
()
=>
{
http
...
...
@@ -656,6 +723,7 @@ export default {
// 选中父节点时,子节点一起选中取消
const
select
=
(
selection
,
row
)
=>
{
console
.
log
(
"row--父节点"
,
row
);
row
.
tickTime
=
transformTimestampnow
();
// 选中
if
(
selection
.
some
((
el
)
=>
{
...
...
@@ -794,7 +862,6 @@ export default {
.
then
((
data
)
=>
{
if
(
state
.
radio
==
1
)
{
state
.
tableData
=
data
.
route1
;
state
.
tableData
.
map
((
el
)
=>
{
// console.log(" el",el);
if
(
el
.
children
)
{
...
...
@@ -954,6 +1021,10 @@ export default {
radiochange
,
getmedicalPurposeoptions
,
transformTime
,
goSeeok
,
goSeeScore
,
goSeefromRef
,
goSeecolse
,
};
},
};
...
...
vue.config.js
View file @
a70c4882
...
...
@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2022-06-07 00:31:25
* @LastEditors: wsq
* @LastEditTime: 2023-02-2
1 11:11:23
* @LastEditTime: 2023-02-2
8 09:38:48
* @Description:
*/
const
path
=
require
(
'path'
)
...
...
@@ -21,7 +21,7 @@ module.exports = {
proxy
:
{
'/api'
:
{
//target: 'http://192.168.18.166:8099/',
//target: 'http://192.168.18.166:8100/',//drg测试站点
//target: 'http://192.168.18.166:8100/',
//drg测试站点
target
:
'http://192.168.18.166:8033/'
,
//dip测试站点
changeOrigin
:
true
,
pathRewrite
:
{
...
...
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