luolei 4 年之前
父节点
当前提交
6ae49023b1

+ 9 - 0
src/api/config.js

@@ -556,6 +556,15 @@ export default {
     'getBaseRecordById':'/api/cdssman/kl/conceptInfo/getRecordById',
     'saveBaseOrUpdateRecord':'/api/cdssman/kl/conceptInfo/saveOrUpdateRecord',
     'staticKnowledgeBaseInfo':'/api/cdssman/kl/conceptInfo/staticKnowledgeIndexWithoutInfo',
+    //规则测试相关
+    'allRuleTest':'/api/cdssman/test/rule/allRuleTest',
+    // 'autoExportExcel':'/api/cdssman/test/rule/exportExcel',
+    'autoExportExcel':'http://192.168.2.121:88/api/cdssman/test/rule/exportExcel',
+    'autoGetCaseResultList':'/api/cdssman/test/rule/getCaseResultList',
+    'getDroplistData':'/api/cdssman/test/rule/getDroplistData',
+    'getResultRulePage':'/api/cdssman/test/rule/getResultRulePage',
+    'ruleExportExcel':'/api/cdssman/test/rule/ruleExportExcel',
+    'autoRuleTest':'/api/cdssman/test/rule/ruleTest',
   },
   menuIconList: { //菜单对应图标
     'YH-KZT': 'el-icon-menu',

+ 2 - 2
src/api/index.js

@@ -3,8 +3,8 @@ import config from './config.js';
 
 axios.default.timeout = 500000;
 axios.defaults.headers.post['Content-Type'] = "application/json;charset=utf-8";
-// axios.defaults.baseURL = 'http://192.168.2.236';
-axios.defaults.baseURL = 'http://192.168.2.241';
+axios.defaults.baseURL = 'http://192.168.2.236';
+// axios.defaults.baseURL = 'http://192.168.2.241';
 // axios.defaults.baseURL = 'http://192.168.3.117:5050';
 
 const urls = config.urls;

+ 30 - 10
src/api/knowledgeTree.js

@@ -1,16 +1,6 @@
 import axios from 'axios';
 import config from '@api/config.js';
 const urls = config.urls;
-function request(config) {
-  const instance = axios.create({
-    baseURL: "http://192.168.2.121:7010",
-    timeout: 500000,
-    headers: {
-      'Content-Type': "application/json;charset=utf-8"
-    }
-  })
-  return instance(config)
-}
 
 export default {
   addTreeRelation(param) {
@@ -82,4 +72,34 @@ export default {
   clearConceptInfo(param) {//删除同义词
     return axios.post(urls.clearConceptInfo, param);
   },
+  allRuleTest(param) {
+    return axios.post(urls.allRuleTest, param);
+  },
+  autoExportExcel(param) {
+    return axios.post(urls.autoExportExcel, param);
+  },
+  autoGetCaseResultList(param) {
+    return axios.post(urls.autoGetCaseResultList, param);
+  },
+  getDroplistData(param) {
+    return axios.post(urls.getDroplistData, param);
+  },
+  getResultRulePage(param) {
+    return axios.post(urls.getResultRulePage, param);
+  },
+  ruleExportExcel(param) {
+    return axios.post(urls.ruleExportExcel, param);
+  },
+  autoRuleTest(param) {
+    return axios.post(urls.autoRuleTest, param);
+  },
+  getRecordHopitalList(param) {
+    return axios.post(urls.getRecordHopitalList, param);
+  },
+  getRunningStatusByHospitalId(param) {
+    return axios.post(urls.getRunningStatusByHospitalId, param);
+  },
+  updateRunningStatus(param) {
+    return axios.post(urls.updateRunningStatus, param);
+  },
 };

+ 2 - 1
src/components/autoTest/AutoBillCommonTest.vue

@@ -115,10 +115,11 @@
 </template>
 
 <script>
-import api from '@api/cdss.js';
+import api from '@api/knowledgeTree.js';
 import config from '@api/config.js';
 import utils from '@api/utils.js';
 export default {
+  name:'AutoBillCommonTest',
   data() {
     return {
       list: [],

+ 49 - 49
src/components/autoTest/AutoKnowledgeMapRuleTest.vue

@@ -76,11 +76,11 @@
 </template>
 
 <script>
-import api from '@api/cdss.js';
+import api from '@api/knowledgeTree.js';
 import config from '@api/config.js';
 import utils from '@api/utils.js';
 export default {
-  name: 'KnowledgeMapRuleTest',
+  name: 'AutoKnowledgeMapRuleTest',
   data() {
     return {
       list: [],
@@ -167,50 +167,50 @@ export default {
         caseId,
         hospitalId: this.hospitalId
       };
-      let requestAjax;
-      let billType; // 开单合理性规则类型  1  通用  2 输血
-      let criticalType; //危急值测试规则类型(1:检验,2:检查)
-      let highriskType; //高危测试规则类型(1:药品,2:手术)
-      let otherType; // 其他提醒测试规则类型(1:化验,2:辅检,3:输血)
-      if (caseName === '开单合理性提醒_通用规则') {
-        billType = 1;
-        params = { ...params, billType };
-        requestAjax = 'billRuleTest';
-      } else if (caseName === '开单类型提醒_输血规则') {
-        billType = 2;
-        params = { ...params, billType };
-        requestAjax = 'billRuleTest';
-      } else if (caseName === '危机值提醒_实验室检查规则') {
-        criticalType = 1;
-        params = { ...params, criticalType };
-        requestAjax = 'criticalRuleTest';
-      } else if (caseName === '危机值提醒_辅助检查规则') {
-        criticalType = 2;
-        params = { ...params, criticalType };
-        requestAjax = 'criticalRuleTest';
-      } else if (caseName === '高风险提醒_高危药品规则') {
-        highriskType = 1;
-        params = { ...params, highriskType };
-        requestAjax = 'highRiskRuleTest';
-      } else if (caseName === '高风险提醒_高危手术规则') {
-        highriskType = 2;
-        params = { ...params, highriskType };
-        requestAjax = 'highRiskRuleTest';
-      } else if (caseName === '其他提醒_化验规则') {
-        otherType = 1;
-        params = { ...params, otherType };
-        requestAjax = 'otherRuleTest';
-      } else if (caseName === '其他提醒_输血规则') {
-        otherType = 3;
-        params = { ...params, otherType };
-        requestAjax = 'otherRuleTest';
-      } else if (caseName === '其他提醒_辅检规则') {
-        otherType = 2;
-        params = { ...params, otherType };
-        requestAjax = 'otherRuleTest';
-      }
+      // let requestAjax;
+      // let billType; // 开单合理性规则类型  1  通用  2 输血
+      // let criticalType; //危急值测试规则类型(1:检验,2:检查)
+      // let highriskType; //高危测试规则类型(1:药品,2:手术)
+      // let otherType; // 其他提醒测试规则类型(1:化验,2:辅检,3:输血)
+      // if (caseName === '开单合理性提醒_通用规则') {
+      //   billType = 1;
+      //   params = { ...params, billType };
+      //   requestAjax = 'billRuleTest';
+      // } else if (caseName === '开单类型提醒_输血规则') {
+      //   billType = 2;
+      //   params = { ...params, billType };
+      //   requestAjax = 'billRuleTest';
+      // } else if (caseName === '危机值提醒_实验室检查规则') {
+      //   criticalType = 1;
+      //   params = { ...params, criticalType };
+      //   requestAjax = 'criticalRuleTest';
+      // } else if (caseName === '危机值提醒_辅助检查规则') {
+      //   criticalType = 2;
+      //   params = { ...params, criticalType };
+      //   requestAjax = 'criticalRuleTest';
+      // } else if (caseName === '高风险提醒_高危药品规则') {
+      //   highriskType = 1;
+      //   params = { ...params, highriskType };
+      //   requestAjax = 'highRiskRuleTest';
+      // } else if (caseName === '高风险提醒_高危手术规则') {
+      //   highriskType = 2;
+      //   params = { ...params, highriskType };
+      //   requestAjax = 'highRiskRuleTest';
+      // } else if (caseName === '其他提醒_化验规则') {
+      //   otherType = 1;
+      //   params = { ...params, otherType };
+      //   requestAjax = 'otherRuleTest';
+      // } else if (caseName === '其他提醒_输血规则') {
+      //   otherType = 3;
+      //   params = { ...params, otherType };
+      //   requestAjax = 'otherRuleTest';
+      // } else if (caseName === '其他提醒_辅检规则') {
+      //   otherType = 2;
+      //   params = { ...params, otherType };
+      //   requestAjax = 'otherRuleTest';
+      // }
 
-      api[requestAjax](params).then(res => {
+      api.autoRuleTest(params).then(res => {
         if (res.data.code === '0' && res.data.data) {
           this.getDataList(this.hospitalId);
           this.$message({
@@ -234,7 +234,7 @@ export default {
         return;
       }
       this.runningStatusArr = [1, 1, 1, 1, 1, 1, 1, 1, 1];
-      api.ruleAllTest({ hospitalId: this.hospitalId }).then(res => {
+      api.allRuleTest({ hospitalId: this.hospitalId }).then(res => {
         this.runningStatusArr = [0, 0, 0, 0, 0, 0, 0, 0, 0];
         if (res.data.code === '0' && res.data.data) {
           this.getDataList(this.hospitalId);
@@ -294,7 +294,7 @@ export default {
 
     // 获取医院信息
     _getHospitalInfoCDSS() {
-      api.getHospitalInfo().then(res => {
+      api.getRecordHopitalList().then(res => {
         if (res.data.code === '0') {
           this.hospitalData = res.data && res.data.data;
         }
@@ -320,7 +320,7 @@ export default {
         spinner: 'el-icon-loading',
         background: 'rgba(0, 0, 0, 0.7)'
       });
-      api.getCaseResultList(params).then(res => {
+      api.autoGetCaseResultList(params).then(res => {
         loading.close();
         if (res.data.code === '0') {
           this.list = res.data && res.data.data;
@@ -342,7 +342,7 @@ export default {
         type: 'warning'
       })
         .then(() => {
-          api.exportRuleExcel({ hospitalId: this.hospitalId }).then(res => {
+          api.autoExportExcel({ hospitalId: this.hospitalId }).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '规则未使用映射关系.xls');