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
1fecaefe
Commit
1fecaefe
authored
Mar 07, 2023
by
tangyufeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改保存医嘱的接口链接
parent
9c1ea2ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
src/utils/http.js
+1
-2
src/views/outClinicalpathway.vue
+6
-5
No files found.
src/utils/http.js
View file @
1fecaefe
...
...
@@ -95,10 +95,9 @@ export default {
//医院的接口数据用
postFn
(
url
,
params
,
option
)
{
loadingInstance
=
Vue
.
prototype
.
$loading
(
loadingOption
);
return
new
Promise
((
resolve
,
reject
)
=>
{
axios
.
post
(
domain
+
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
.
post
(
url
,
params
,
{
...{
headers
:
createHeader
()
},
...
option
})
.
then
((
res
)
=>
{
console
.
log
(
res
);
if
(
res
.
status
!==
200
)
{
...
...
src/views/outClinicalpathway.vue
View file @
1fecaefe
...
...
@@ -814,7 +814,8 @@ export default {
http
.
post
(
`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=
${
route
.
value
.
query
.
pid
}
`
,
state
.
objtable
)
.
then
(
async
(
data
)
=>
{
// console.log("data.hisUrl", data.hisUrl);
state
.
hisUrl
=
data
.
hisUrl
.
split
(
"api/"
)[
2
];
// state.hisUrl = data.hisUrl.split("api/")[2];
state
.
hisUrl
=
data
.
hisUrl
;
console
.
log
(
state
.
hisUrl
);
// console.log("state.hisUrl", state.hisUrl);
//临时西药
...
...
@@ -835,7 +836,7 @@ export default {
};
// 调用his接口 临时西药
const
posttempMedicalDrug
=
()
=>
{
http
.
postFn
(
`/
${
state
.
hisUrl
}
`
,
{
http
.
postFn
(
state
.
hisUrl
,
{
method
:
"tempMedical"
,
type
:
1
,
data
:
state
.
tempMedicalDrug
,
...
...
@@ -861,7 +862,7 @@ export default {
};
// 调用his接口 临时检查
const
posttempMedicalcheck
=
()
=>
{
http
.
postFn
(
`/
${
state
.
hisUrl
}
`
,
{
http
.
postFn
(
state
.
hisUrl
,
{
method
:
"tempMedical"
,
type
:
3
,
data
:
state
.
tempMedicalcheck
,
...
...
@@ -883,7 +884,7 @@ export default {
};
// 调用his接口 临时检验
const
posttempMedicalCheckout
=
()
=>
{
http
.
postFn
(
`/
${
state
.
hisUrl
}
`
,
{
http
.
postFn
(
state
.
hisUrl
,
{
method
:
"tempMedical"
,
type
:
4
,
data
:
state
.
tempMedicalCheckout
,
...
...
@@ -905,7 +906,7 @@ export default {
};
// 调用his接口 长期西药
const
postlongMedical
=
()
=>
{
http
.
postFn
(
`/
${
state
.
hisUrl
}
`
,
{
http
.
postFn
(
state
.
hisUrl
,
{
method
:
"longMedical"
,
type
:
1
,
data
:
state
.
longMedical
,
...
...
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