|
@@ -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');
|