|
@@ -52,6 +52,7 @@
|
|
<template>
|
|
<template>
|
|
<!-- :prop="`klRuleInfoSaveSub[${scope.$index}].subDescription`" -->
|
|
<!-- :prop="`klRuleInfoSaveSub[${scope.$index}].subDescription`" -->
|
|
<div class="AddNewRuleTable">
|
|
<div class="AddNewRuleTable">
|
|
|
|
+ <h4 style="marginBottom:20px">规则内容</h4>
|
|
<el-table
|
|
<el-table
|
|
border
|
|
border
|
|
:data="klRuleInfoSaveSub"
|
|
:data="klRuleInfoSaveSub"
|
|
@@ -83,7 +84,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
width="80px"
|
|
width="80px"
|
|
- v-if="maxNum"
|
|
|
|
|
|
+ v-if="maxNum && maxNum > 1"
|
|
label="基础规则"
|
|
label="基础规则"
|
|
prop="groupType"
|
|
prop="groupType"
|
|
>
|
|
>
|
|
@@ -139,7 +140,7 @@
|
|
@change="subTypeChange($event, scope.$index)"
|
|
@change="subTypeChange($event, scope.$index)"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in baseTypes"
|
|
|
|
|
|
+ v-for="item in scope.row.baseTypes"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.type"
|
|
:value="item.type"
|
|
@@ -156,9 +157,13 @@
|
|
:prop="`klRuleInfoSaveSub[${scope.$index}].subLenCode`"
|
|
:prop="`klRuleInfoSaveSub[${scope.$index}].subLenCode`"
|
|
:rules="rules.subLenCode"
|
|
:rules="rules.subLenCode"
|
|
>
|
|
>
|
|
- <el-select v-model="scope.row.subLenCode" placeholder="请选择">
|
|
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="scope.row.subLenCode"
|
|
|
|
+ placeholder="请选择"
|
|
|
|
+ @change="subCodeChange($event, scope.$index)"
|
|
|
|
+ >
|
|
<el-option
|
|
<el-option
|
|
- v-for="item in baseTermTypeList"
|
|
|
|
|
|
+ v-for="item in scope.row.baseTermTypeList"
|
|
:key="item.id"
|
|
:key="item.id"
|
|
:label="item.name"
|
|
:label="item.name"
|
|
:value="item.code"
|
|
:value="item.code"
|
|
@@ -194,12 +199,12 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="规则具体内容" width="800px" prop="">
|
|
|
|
|
|
+ <el-table-column label="规则具体内容" min-width="800px" prop="">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div class="type_content">
|
|
<div class="type_content">
|
|
<el-form-item
|
|
<el-form-item
|
|
class="type_content_item"
|
|
class="type_content_item"
|
|
- style="flex: 1.5"
|
|
|
|
|
|
+ style="width:240px;marginRight:20px"
|
|
label="选择类型:"
|
|
label="选择类型:"
|
|
label-width="100px"
|
|
label-width="100px"
|
|
:prop="`klRuleInfoSaveSub[${scope.$index}].dataType`"
|
|
:prop="`klRuleInfoSaveSub[${scope.$index}].dataType`"
|
|
@@ -498,6 +503,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
conceptList: [],
|
|
conceptList: [],
|
|
|
|
+ numTypes: "",
|
|
subConceptIdIndex: "",
|
|
subConceptIdIndex: "",
|
|
operMaxList: [
|
|
operMaxList: [
|
|
{ name: "<=", key: "<=" },
|
|
{ name: "<=", key: "<=" },
|
|
@@ -529,6 +535,31 @@ export default {
|
|
subTypeChange(e, index) {
|
|
subTypeChange(e, index) {
|
|
this.$emit("subTypeChange", e, index);
|
|
this.$emit("subTypeChange", e, index);
|
|
},
|
|
},
|
|
|
|
+ // 规则术语类型
|
|
|
|
+ subCodeChange(val, index) {
|
|
|
|
+ //基础规则术语类型修改
|
|
|
|
+ if ((this.numTypes + ",").indexOf(val + ",") > -1) {
|
|
|
|
+ this.klRuleInfoSaveSub[index].dataType = "1";
|
|
|
|
+ } else {
|
|
|
|
+ this.klRuleInfoSaveSub[index].dataType = "";
|
|
|
|
+ }
|
|
|
|
+ this.clearConcept(index);
|
|
|
|
+ this.clearNumText(index);
|
|
|
|
+ },
|
|
|
|
+ clearConcept(index) {
|
|
|
|
+ this.klRuleInfoSaveSub[index].subConceptId = "";
|
|
|
|
+ this.conceptList = [];
|
|
|
|
+ },
|
|
|
|
+ clearNumText(index) {
|
|
|
|
+ this.klRuleInfoSaveSub[index].subMaxOperator = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subMaxValue = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subMaxUnit = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subMinOperator = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subMinValue = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subMinUnit = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subEqValue = "";
|
|
|
|
+ this.klRuleInfoSaveSub[index].subEqOperator = "";
|
|
|
|
+ },
|
|
//医学标准术语change
|
|
//医学标准术语change
|
|
subConceptIdfocus(index) {
|
|
subConceptIdfocus(index) {
|
|
this.subConceptIdIndex = "";
|
|
this.subConceptIdIndex = "";
|
|
@@ -612,7 +643,9 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+ this.numTypes = localStorage.getItem("zskNumDict");
|
|
this.getSpanArr(this.klRuleInfoSaveSub);
|
|
this.getSpanArr(this.klRuleInfoSaveSub);
|
|
|
|
+ console.log("maxNum", this.maxNum);
|
|
},
|
|
},
|
|
beforeUpdate() {
|
|
beforeUpdate() {
|
|
this.getSpanArr(this.klRuleInfoSaveSub);
|
|
this.getSpanArr(this.klRuleInfoSaveSub);
|
|
@@ -635,10 +668,10 @@ export default {
|
|
// subLenCode: "",
|
|
// subLenCode: "",
|
|
// dataType: ""
|
|
// dataType: ""
|
|
},
|
|
},
|
|
- baseTypes: {
|
|
|
|
- type: Array,
|
|
|
|
- default: []
|
|
|
|
- },
|
|
|
|
|
|
+ // baseTypes: {
|
|
|
|
+ // type: Array,
|
|
|
|
+ // default: []
|
|
|
|
+ // },
|
|
baseTermTypeList: {
|
|
baseTermTypeList: {
|
|
type: Array,
|
|
type: Array,
|
|
default: []
|
|
default: []
|