|
@@ -1,32 +1,102 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<crumbs
|
|
<crumbs
|
|
- title="开单合理性提醒-通用规则测试-失败条数"
|
|
|
|
|
|
+ :title="
|
|
|
|
+ type === 'success'
|
|
|
|
+ ? '开单合理性提醒-通用规则测试-成功条数'
|
|
|
|
+ : '开单合理性提醒-通用规则测试-失败条数'
|
|
|
|
+ "
|
|
class="topBack"
|
|
class="topBack"
|
|
:param="$route.params"
|
|
:param="$route.params"
|
|
linkTo="KnowledgeMapRuleTest"
|
|
linkTo="KnowledgeMapRuleTest"
|
|
>
|
|
>
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
- <el-form-item style="marginBottom: 0px">
|
|
|
|
|
|
+ <el-form-item style="marginbottom: 0px">
|
|
<el-button size="mini" @click="exportData">导出</el-button>
|
|
<el-button size="mini" @click="exportData">导出</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
</crumbs>
|
|
</crumbs>
|
|
<div style="margin: 60px 20px 0">
|
|
<div style="margin: 60px 20px 0">
|
|
- <el-table :data="list" border >
|
|
|
|
- <el-table-column :resizable="false" type="index" :index="indexMethod" label="编号" width="80"></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="gmtModified" label="测试时间"></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="hisName" label="开单项类型" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="hisDetailName" label="开单项(标准术语)" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="开单项(医院术语)" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="禁忌项类型" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="禁忌项(标准术语)" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="禁忌项(医院术语)" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="禁忌项输入值/结果" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="实际结果" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="预期结果" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="测试结果" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column :resizable="false" prop="uniqueName" label="失败原因" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table :data="list" border>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ type="index"
|
|
|
|
+ :index="indexMethod"
|
|
|
|
+ label="编号"
|
|
|
|
+ width="80"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="gmtModified"
|
|
|
|
+ label="测试时间"
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="billItemType"
|
|
|
|
+ label="开单项类型"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="billItemName"
|
|
|
|
+ label="开单项(标准术语)"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="billItemHisName"
|
|
|
|
+ label="开单项(医院术语)"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="conflictItemType"
|
|
|
|
+ label="禁忌项类型"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="conflictItemName"
|
|
|
|
+ label="禁忌项(标准术语)"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="conflictItemHisName"
|
|
|
|
+ label="禁忌项(医院术语)"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="inputValue"
|
|
|
|
+ label="禁忌项输入值/结果"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="output"
|
|
|
|
+ label="实际结果"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="expectedOutput"
|
|
|
|
+ label="预期结果"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column label="测试结果">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.success === 1 ? '成功' : '失败' }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ v-if="type !== 'success'"
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="message"
|
|
|
|
+ label="失败原因"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
<div class="pagination pagepage">
|
|
<div class="pagination pagepage">
|
|
<el-pagination
|
|
<el-pagination
|
|
@@ -56,24 +126,43 @@ export default {
|
|
pageSize: config.pageSize,
|
|
pageSize: config.pageSize,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageSizeArr: config.pageSizeArr,
|
|
pageLayout: config.pageLayout,
|
|
pageLayout: config.pageLayout,
|
|
- total: 0
|
|
|
|
|
|
+ total: 0,
|
|
|
|
+ type: '',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.getDataList()
|
|
|
|
|
|
+ const params = this.handleInitData();
|
|
|
|
+ this.getDataList();
|
|
// 非首页 编辑页返回 设置 this.currentPage
|
|
// 非首页 编辑页返回 设置 this.currentPage
|
|
if (Object.keys(this.$route.params).length !== 0) {
|
|
if (Object.keys(this.$route.params).length !== 0) {
|
|
this.currentPage = this.$route.params.currentPage;
|
|
this.currentPage = this.$route.params.currentPage;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeRouteEnter(to, from, next) {
|
|
beforeRouteEnter(to, from, next) {
|
|
- next(vm => {
|
|
|
|
|
|
+ next((vm) => {
|
|
//const pm = to.param;
|
|
//const pm = to.param;
|
|
Object.assign(vm, to.params);
|
|
Object.assign(vm, to.params);
|
|
vm.inCurrentPage = to.params.currentPage;
|
|
vm.inCurrentPage = to.params.currentPage;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleInitData() {
|
|
|
|
+ console.log(this.$route.params);
|
|
|
|
+ const { data, type } = this.$route.params;
|
|
|
|
+ this.type = type;
|
|
|
|
+ console.log(this.type, '111');
|
|
|
|
+ let billType; // 开单合理性规则类型 1 通用 2 输血
|
|
|
|
+ if (data && data.caseName === '开单合理性提醒_通用规则') {
|
|
|
|
+ billType = 1;
|
|
|
|
+ } else if (data && data.caseName === '开单类型提醒_输血规则') {
|
|
|
|
+ billType = 2;
|
|
|
|
+ }
|
|
|
|
+ return {
|
|
|
|
+ billType,
|
|
|
|
+ resultId: data && data.resultId,
|
|
|
|
+ success: type === 'success' ? 1 : 0,
|
|
|
|
+ };
|
|
|
|
+ },
|
|
indexMethod(index) {
|
|
indexMethod(index) {
|
|
return (this.currentPage - 1) * this.pageSize + index + 1;
|
|
return (this.currentPage - 1) * this.pageSize + index + 1;
|
|
},
|
|
},
|
|
@@ -91,12 +180,32 @@ export default {
|
|
this.getDataList();
|
|
this.getDataList();
|
|
},
|
|
},
|
|
|
|
|
|
- getDataList(){
|
|
|
|
-
|
|
|
|
|
|
+ getDataList() {
|
|
|
|
+ const params = this.handleInitData();
|
|
|
|
+ this.searched = true;
|
|
|
|
+ const loading = this.$loading({
|
|
|
|
+ lock: true,
|
|
|
|
+ text: 'Loading',
|
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
+ });
|
|
|
|
+ api.getResultBillPage(params).then((res) => {
|
|
|
|
+ loading.close();
|
|
|
|
+ if (res.data.code === '0') {
|
|
|
|
+ this.list = res.data.data && res.data.data.records;
|
|
|
|
+ }
|
|
|
|
+ this.total = res.data.data && res.data.data.total;
|
|
|
|
+ if (this.inCurrentPage !== undefined) {
|
|
|
|
+ this.currentPage = this.inCurrentPage;
|
|
|
|
+ this.inCurrentPage = undefined;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
},
|
|
},
|
|
// 导出
|
|
// 导出
|
|
- exportData() {}
|
|
|
|
- }
|
|
|
|
|
|
+ exportData() {
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|