|
@@ -11,6 +11,40 @@
|
|
linkTo="AutoKnowledgeMapRuleTest"
|
|
linkTo="AutoKnowledgeMapRuleTest"
|
|
>
|
|
>
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
<el-form :inline="true" class="demo-form-inline">
|
|
|
|
+ <el-form-item label="规则术语类型:">
|
|
|
|
+ <el-select v-model="autoType" clearable filterable placeholder="请选择" size="mini">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in typeAutoList"
|
|
|
|
+ :key="item.libType"
|
|
|
|
+ :label="item.libTypeName"
|
|
|
|
+ :value="item.libType"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="规则医学标准术语:">
|
|
|
|
+ <el-input size="mini" v-model="autoRule" placeholder="请输入"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="基础规则术语类型:">
|
|
|
|
+ <el-select v-model="baseType" clearable filterable placeholder="请选择" size="mini">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in typeBaseList"
|
|
|
|
+ :key="item.libType"
|
|
|
|
+ :label="item.libTypeName"
|
|
|
|
+ :value="item.libType"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ <el-form :inline="true" class="demo-form-inline btmAction">
|
|
|
|
+ <el-form-item label="基础规则医学标准术语:">
|
|
|
|
+ <el-input size="mini" v-model="baseHosTxt" placeholder="请输入"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="失败原因:">
|
|
|
|
+ <el-input size="mini" v-model="whyTxt" placeholder="请输入"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button size="mini" @click="filterDatas">确认</el-button>
|
|
|
|
+ </el-form-item>
|
|
<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>
|
|
@@ -32,49 +66,84 @@
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
- prop="billItemType"
|
|
|
|
- label="开单项类型"
|
|
|
|
|
|
+ prop="ruleLibTypeName"
|
|
|
|
+ label="规则术语类型"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
- prop="billItemName"
|
|
|
|
- label="开单项(标准术语)"
|
|
|
|
|
|
+ prop="ruleLibName"
|
|
|
|
+ label="规则医学标准术语"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
- prop="billItemHisName"
|
|
|
|
- label="开单项(医院术语)"
|
|
|
|
|
|
+ prop="ruleHisName"
|
|
|
|
+ label="规则医院术语"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
- prop="conflictItemType"
|
|
|
|
- label="禁忌项类型"
|
|
|
|
|
|
+ prop="ruleHisDetailName"
|
|
|
|
+ label="规则医院术语"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
- prop="conflictItemName"
|
|
|
|
- label="禁忌项(标准术语)"
|
|
|
|
|
|
+ prop="groupType"
|
|
|
|
+ label="规则组别"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
prop="conflictItemHisName"
|
|
prop="conflictItemHisName"
|
|
- label="禁忌项(医院术语)"
|
|
|
|
|
|
+ label="基础规则类型"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
- ></el-table-column>
|
|
|
|
|
|
+ className="collectTwo"
|
|
|
|
+ >
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-html="returnDom(scope.row.baseRules,'ruleBaseLibName')"></div>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
prop="inputValue"
|
|
prop="inputValue"
|
|
- label="禁忌项输入值/结果"
|
|
|
|
|
|
+ label="基础规则术语类型"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
:resizable="false"
|
|
:resizable="false"
|
|
prop="output"
|
|
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
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="expectedOutput"
|
|
|
|
+ label="基础规则医院术语细则"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="expectedOutput"
|
|
|
|
+ label="基础规则输入值"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="expectedOutput"
|
|
|
|
+ label="基础规则参考值"
|
|
|
|
+ show-overflow-tooltip
|
|
|
|
+ ></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ :resizable="false"
|
|
|
|
+ prop="expectedOutput"
|
|
label="实际结果"
|
|
label="实际结果"
|
|
show-overflow-tooltip
|
|
show-overflow-tooltip
|
|
></el-table-column>
|
|
></el-table-column>
|
|
@@ -129,11 +198,19 @@ export default {
|
|
pageLayout: config.pageLayout,
|
|
pageLayout: config.pageLayout,
|
|
total: 0,
|
|
total: 0,
|
|
type: '',
|
|
type: '',
|
|
|
|
+ autoType:'',//规则术语类型
|
|
|
|
+ typeAutoList:[],
|
|
|
|
+ autoRule:'',//规则医学标准术语
|
|
|
|
+ baseType:'',
|
|
|
|
+ typeBaseList:[],
|
|
|
|
+ baseHosTxt:'',
|
|
|
|
+ whyTxt:''
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
const params = this.handleInitData();
|
|
const params = this.handleInitData();
|
|
this.getDataList();
|
|
this.getDataList();
|
|
|
|
+ this.getDroplistData(params);
|
|
// 非首页 编辑页返回 设置 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;
|
|
@@ -147,21 +224,44 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ returnDom(list,name){
|
|
|
|
+ let str = ''
|
|
|
|
+ for(let i = 0;i < list.length;i++){
|
|
|
|
+ str += `<p>
|
|
|
|
+ ${list[i][name]}
|
|
|
|
+ </p>`
|
|
|
|
+ }
|
|
|
|
+ return str
|
|
|
|
+ },
|
|
|
|
+ getDroplistData(params){
|
|
|
|
+ let param = {
|
|
|
|
+ success:params.success,
|
|
|
|
+ resultId:params.resultId
|
|
|
|
+ }
|
|
|
|
+ api.getDroplistData(param).then((res)=>{
|
|
|
|
+ const result = res.data
|
|
|
|
+ if(result.code == 0){
|
|
|
|
+ this.typeAutoList = result.data.ruleLibType||[]
|
|
|
|
+ this.typeBaseList = result.data.ruleBaseLibType||[]
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ filterDatas(){
|
|
|
|
+ this.getDataList();
|
|
|
|
+ },
|
|
handleInitData() {
|
|
handleInitData() {
|
|
const { data, type } = this.$route.params;
|
|
const { data, type } = this.$route.params;
|
|
this.type = type;
|
|
this.type = type;
|
|
- let billType; // 开单合理性规则类型 1 通用 2 输血
|
|
|
|
- if (data && data.caseName === '开单合理性提醒_通用规则') {
|
|
|
|
- billType = 1;
|
|
|
|
- } else if (data && data.caseName === '开单类型提醒_输血规则') {
|
|
|
|
- billType = 2;
|
|
|
|
- }
|
|
|
|
return {
|
|
return {
|
|
current: this.inCurrentPage || this.currentPage,
|
|
current: this.inCurrentPage || this.currentPage,
|
|
size: this.pageSize,
|
|
size: this.pageSize,
|
|
- billType,
|
|
|
|
resultId: data && data.resultId,
|
|
resultId: data && data.resultId,
|
|
success: type === 'success' ? 1 : 0,
|
|
success: type === 'success' ? 1 : 0,
|
|
|
|
+ ruleLibType:this.autoType||null,//规则术语类型
|
|
|
|
+ ruleLibName:this.autoRule,//规则医学标准术语(模糊查询)
|
|
|
|
+ ruleBaseLibType:this.baseType,//基础规则术语类型
|
|
|
|
+ ruleBaseLibName:this.baseHosTxt,//基础规则医学标准术语(模糊查询)
|
|
|
|
+ message:this.whyTxt,//失败原因(模糊查询
|
|
};
|
|
};
|
|
},
|
|
},
|
|
indexMethod(index) {
|
|
indexMethod(index) {
|
|
@@ -216,7 +316,7 @@ export default {
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- api.billExportExcel(params).then((res) => {
|
|
|
|
|
|
+ api.ruleExportExcel(params).then((res) => {
|
|
if (res.status === 200) {
|
|
if (res.status === 200) {
|
|
this.$message({ message: '导出成功', type: 'success' });
|
|
this.$message({ message: '导出成功', type: 'success' });
|
|
utils.downloadExportedData(
|
|
utils.downloadExportedData(
|
|
@@ -234,4 +334,33 @@ export default {
|
|
|
|
|
|
<style lang="less" scored>
|
|
<style lang="less" scored>
|
|
@import '../../less/admin.less';
|
|
@import '../../less/admin.less';
|
|
|
|
+.topBack {
|
|
|
|
+ height:80px !important;
|
|
|
|
+ .el-form-item {
|
|
|
|
+ margin-bottom:0;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.contents {
|
|
|
|
+ display:inline-block !important;
|
|
|
|
+}
|
|
|
|
+.btmAction {
|
|
|
|
+ position:relative;
|
|
|
|
+ bottom:12px;
|
|
|
|
+ float:right;
|
|
|
|
+}
|
|
|
|
+.collectTwo {
|
|
|
|
+ .cell.el-tooltip {
|
|
|
|
+ padding:0;
|
|
|
|
+ p {
|
|
|
|
+ padding:0 10px;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ border-bottom:1px solid #EBEEF5;
|
|
|
|
+ &:last-child{
|
|
|
|
+ border-bottom:0;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|
|
</style>
|
|
</style>
|