Commit 626319c0 by wangshuangqing

调用his的键入医嘱接口

parent a70c4882
......@@ -2,7 +2,7 @@
* @Author: wsq
* @Date: 2022-04-22 15:20:58
* @LastEditors: wsq
* @LastEditTime: 2023-02-28 23:07:56
* @LastEditTime: 2023-03-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) => {});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment