Commit 1fecaefe by tangyufeng

修改保存医嘱的接口链接

parent 9c1ea2ce
......@@ -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) {
......
......@@ -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,
......
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