Commit 1fecaefe by tangyufeng

修改保存医嘱的接口链接

parent 9c1ea2ce
...@@ -95,10 +95,9 @@ export default { ...@@ -95,10 +95,9 @@ export default {
//医院的接口数据用 //医院的接口数据用
postFn(url, params, option) { postFn(url, params, option) {
loadingInstance = Vue.prototype.$loading(loadingOption); loadingInstance = Vue.prototype.$loading(loadingOption);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
axios axios
.post(domain + url, params, { ...{ headers: createHeader() }, ...option }) .post(url, params, { ...{ headers: createHeader() }, ...option })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
if (res.status !== 200) { if (res.status !== 200) {
......
...@@ -814,7 +814,8 @@ export default { ...@@ -814,7 +814,8 @@ export default {
http.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${route.value.query.pid}`, state.objtable) http.post(`/ClinicalRoute/ClinicalRoute/SetPatientRoutes?pid=${route.value.query.pid}`, state.objtable)
.then(async (data) => { .then(async (data) => {
// console.log("data.hisUrl", data.hisUrl); // 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);
// console.log("state.hisUrl", state.hisUrl); // console.log("state.hisUrl", state.hisUrl);
//临时西药 //临时西药
...@@ -835,7 +836,7 @@ export default { ...@@ -835,7 +836,7 @@ export default {
}; };
// 调用his接口 临时西药 // 调用his接口 临时西药
const posttempMedicalDrug = () => { const posttempMedicalDrug = () => {
http.postFn(`/${state.hisUrl}`, { http.postFn(state.hisUrl, {
method: "tempMedical", method: "tempMedical",
type: 1, type: 1,
data: state.tempMedicalDrug, data: state.tempMedicalDrug,
...@@ -861,7 +862,7 @@ export default { ...@@ -861,7 +862,7 @@ export default {
}; };
// 调用his接口 临时检查 // 调用his接口 临时检查
const posttempMedicalcheck = () => { const posttempMedicalcheck = () => {
http.postFn(`/${state.hisUrl}`, { http.postFn(state.hisUrl, {
method: "tempMedical", method: "tempMedical",
type: 3, type: 3,
data: state.tempMedicalcheck, data: state.tempMedicalcheck,
...@@ -883,7 +884,7 @@ export default { ...@@ -883,7 +884,7 @@ export default {
}; };
// 调用his接口 临时检验 // 调用his接口 临时检验
const posttempMedicalCheckout = () => { const posttempMedicalCheckout = () => {
http.postFn(`/${state.hisUrl}`, { http.postFn(state.hisUrl, {
method: "tempMedical", method: "tempMedical",
type: 4, type: 4,
data: state.tempMedicalCheckout, data: state.tempMedicalCheckout,
...@@ -905,7 +906,7 @@ export default { ...@@ -905,7 +906,7 @@ export default {
}; };
// 调用his接口 长期西药 // 调用his接口 长期西药
const postlongMedical = () => { const postlongMedical = () => {
http.postFn(`/${state.hisUrl}`, { http.postFn(state.hisUrl, {
method: "longMedical", method: "longMedical",
type: 1, type: 1,
data: state.longMedical, 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