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
626319c0
Commit
626319c0
authored
Mar 01, 2023
by
wangshuangqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调用his的键入医嘱接口
parent
a70c4882
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
11 deletions
+67
-11
src/views/outClinicalpathway.vue
+67
-11
No files found.
src/views/outClinicalpathway.vue
View file @
626319c0
...
...
@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-0
2-28 23:07:56
* @LastEditTime: 2023-0
3-01 17:39:09
* @Description:
-->
<
template
>
...
...
@@ -534,6 +534,7 @@ import { Loading } from "element-ui";
import
_
from
"lodash"
;
import
{
transformTimestampnow
}
from
"../utils/formatTime"
;
import
{
format
}
from
"echarts"
;
import
M
from
"minimatch"
;
export
default
{
name
:
"outClinicalpathway"
,
setup
()
{
...
...
@@ -610,18 +611,16 @@ export default {
newtable2
:
[],
objtable
:
{
route1
:
[],
route2
:
[]
},
goSeeScoredialogFormVisible
:
false
,
//更多弹框
goSeeform
:
{
//更多表单
// chiefComplaint: "", //主诉
// inspectionPurpose: "",
// pastHistory: "",
// auxiliaryItems: "",
// inspectRemarks: "",
},
goSeeform
:
{},
oldRowObj
:
{},
goSeeIndex
:
""
,
goSeeIndexPid
:
""
,
distype
:
1
,
hisUrl
:
""
,
//his的接口地址
tempMedicalDrug
:
{},
tempMedicalcheck
:
{},
tempMedicalCheckout
:
{},
longMedical
:
{},
});
//更多
const
goSeeScore
=
(
row
)
=>
{
...
...
@@ -723,7 +722,7 @@ export default {
// 选中父节点时,子节点一起选中取消
const
select
=
(
selection
,
row
)
=>
{
console
.
log
(
"row--父节点"
,
row
);
row
.
tickTime
=
transformTimestampnow
();
row
.
tickTime
=
transformTimestampnow
();
// 选中
if
(
selection
.
some
((
el
)
=>
{
...
...
@@ -909,13 +908,70 @@ export default {
state
.
objtable
)
.
then
((
data
)
=>
{
// console.log("data.hisUrl", data.hisUrl);
state
.
hisUrl
=
data
.
hisUrl
.
split
(
"api/"
)[
2
];
// console.log("state.hisUrl", state.hisUrl);
//临时西药
state
.
tempMedicalDrug
=
data
.
tempMedicalDrug
;
//临时检查
state
.
tempMedicalcheck
=
data
.
tempMedicalcheck
;
//临时检验
state
.
tempMedicalCheckout
=
data
.
tempMedicalCheckout
;
//长期西药
state
.
longMedical
=
data
.
longMedical
;
//重新获取左侧时间线数据
getlefttime
();
Message
({
message
:
data
.
message
,
type
:
"success"
,
});
// 调用his接口 临时西药
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"tempMedical"
,
type
:
1
,
data
:
state
.
tempMedicalDrug
,
})
.
then
((
data
)
=>
{
console
.
log
(
"临时西药"
);
})
.
catch
((
error
)
=>
{});
// 调用his接口 临时检查
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"tempMedical"
,
type
:
3
,
data
:
state
.
tempMedicalcheck
,
})
.
then
((
data
)
=>
{
console
.
log
(
"临时检查"
);
})
.
catch
((
error
)
=>
{});
// 调用his接口 临时检验
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"tempMedical"
,
type
:
4
,
data
:
state
.
tempMedicalCheckout
,
})
.
then
((
data
)
=>
{
console
.
log
(
"临时检验"
);
})
.
catch
((
error
)
=>
{});
// 调用his接口 长期西药
http
.
post
(
`/
${
state
.
hisUrl
}
`
,
{
method
:
"longMedical"
,
type
:
1
,
data
:
state
.
longMedical
,
})
.
then
((
data
)
=>
{
console
.
log
(
"长期西药"
);
})
.
catch
((
error
)
=>
{});
})
.
catch
((
error
)
=>
{});
};
...
...
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