|
@@ -20,6 +20,7 @@
|
|
|
:value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <span class="tip-text">注:更改术语类型,将会清空已填写的规则内容~</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="规则术语类型:" prop="parLenCode">
|
|
|
<el-select v-model="form.parLenCode"
|
|
@@ -32,6 +33,7 @@
|
|
|
:value="item.code">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
+ <span class="tip-text">注:更改规则术语类型,将会清空已填写的规则内容~</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="addDepartFormItem" label="医学标准术语:" prop="parConceptId">
|
|
|
<el-select clearable filterable remote :remote-method="searchConcept" v-model="form.parConceptId">
|
|
@@ -43,7 +45,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="有无子条件:" prop="parHasSub">
|
|
|
+ <!--<el-form-item label="有无子条件:" prop="parHasSub">
|
|
|
<el-select v-model="form.parHasSub"
|
|
|
placeholder="请选择"
|
|
|
size="small">
|
|
@@ -54,13 +56,14 @@
|
|
|
:value="item.id">
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item>-->
|
|
|
<el-form-item label="附加信息:" prop="remind" class="parMsg">
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入附加信息" v-model="form.parMsg" maxlength="121"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="form.parHasSub===1" label="规则内容:" prop="remind" class="discDesc">
|
|
|
<SubRulesGroup v-for="(group,i) in subGroups"
|
|
|
:data="group"
|
|
|
+ :firstPlace="firstPlace"
|
|
|
:baseTypes="baseTypeList"
|
|
|
:inx="i"
|
|
|
:isLast="subGroups.length===1"
|
|
@@ -89,6 +92,8 @@
|
|
|
conceptList:[],
|
|
|
baseTypeList:[],
|
|
|
conceptName:'',
|
|
|
+ firstPlace:null,
|
|
|
+ checkFirstPlace:false,
|
|
|
subGroups:[[{
|
|
|
subDescription:'',
|
|
|
parRuleType:'',
|
|
@@ -123,7 +128,7 @@
|
|
|
}],
|
|
|
parRuleType:[{ required: true, message: '请选择规则类型',trigger: ['blur'] }],
|
|
|
parLenCode:[{ required: true, message: '请选择规则术语类型',trigger: ['blur'] }],
|
|
|
- parlibName:[{ required: true, message: '请输入医学标准术语',trigger: ['blur'] }],
|
|
|
+ parConceptId:[{ required: true, message: '请输入医学标准术语',trigger: ['blur'] }],
|
|
|
parHasSub:[{ required: true, message: '请选择有无子条件',trigger: ['blur'] }],
|
|
|
parMsg:[{
|
|
|
validator: (rule,value,callback)=>{
|
|
@@ -158,8 +163,19 @@
|
|
|
this.ruleTermTypeList = obj.subMenuList;
|
|
|
},
|
|
|
'form.parLenCode':function(val){
|
|
|
+ if(!val){
|
|
|
+ this.baseTypeList = [];
|
|
|
+ return ;
|
|
|
+ }
|
|
|
const obj = this.ruleTermTypeList.find((it)=>it.code===val);
|
|
|
this.baseTypeList = obj.subMenuList;
|
|
|
+ },
|
|
|
+ 'form.parConceptId':function(val){
|
|
|
+ if(this.checkFirstPlace) {
|
|
|
+ this.firstPlace = this.conceptList.find((it) => it.conceptId === val);
|
|
|
+ }else{
|
|
|
+ this.firstPlace =null;
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
components:{
|
|
@@ -198,21 +214,23 @@
|
|
|
});
|
|
|
},
|
|
|
ruleTypeChange(val){ //规则类型选中
|
|
|
- //this.showConfirmDialog('确定要修改规则类型吗?修改后规则内容将被清空',function(){
|
|
|
- this.form.parRuleType=val;
|
|
|
- this.form.parLenCode='';
|
|
|
- const obj = this.ruleTypeList.find((it)=>it.id===val);//console.log(val)
|
|
|
- this.ruleTermTypeList = obj.subMenuList;
|
|
|
- this.setInitGroupData();
|
|
|
- //});
|
|
|
+ this.form.parRuleType=val;
|
|
|
+ this.form.parLenCode='';
|
|
|
+ const obj = this.ruleTypeList.find((it)=>it.id===val);//console.log(val)
|
|
|
+ this.ruleTermTypeList = obj.subMenuList;
|
|
|
+ this.setInitGroupData();
|
|
|
},
|
|
|
ruleTermChange(val){ //规则术语类型选中
|
|
|
- //this.showConfirmDialog('确定要修改规则术语类型吗?修改后规则内容将被清空',function(){
|
|
|
- this.form.parLenCode=val;
|
|
|
- const obj = this.ruleTermTypeList.find((it)=>it.code===val);
|
|
|
- this.baseTypeList = obj.subMenuList;
|
|
|
- this.setInitGroupData();
|
|
|
- //});
|
|
|
+ this.form.parLenCode=val;
|
|
|
+ const obj = this.ruleTermTypeList.find((it)=>it.code===val);
|
|
|
+ this.baseTypeList = obj.subMenuList;
|
|
|
+ this.setInitGroupData();
|
|
|
+ this.form.parHasSub=obj.subMenuList.length?1:0;
|
|
|
+ if(obj.firstPlace===1){
|
|
|
+ this.checkFirstPlace=true;
|
|
|
+ }else{
|
|
|
+ this.checkFirstPlace=false;
|
|
|
+ }
|
|
|
},
|
|
|
getTypeList(){
|
|
|
const typeListData = JSON.parse(localStorage.getItem("zskTypesList"));
|
|
@@ -231,7 +249,7 @@
|
|
|
subMinUnit:'',
|
|
|
subMinValue:''
|
|
|
}]];
|
|
|
- this.form.parlibName='';//医学标准术语清空
|
|
|
+ this.form.parConceptId='';//医学标准术语清空
|
|
|
this.conceptList=[]; //下拉列表清空
|
|
|
},
|
|
|
getDetail(){
|
|
@@ -287,7 +305,9 @@
|
|
|
confirm(){
|
|
|
this.$refs['form'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ this.form.klRuleByIdSub=undefined;
|
|
|
this.form.klRuleInfoSaveSub = this.form.parHasSub?this.formatGroups():undefined;
|
|
|
+ this.form.parConceptId = this.form.parConceptId.conceptId;
|
|
|
let params = this.form;
|
|
|
if(this.parId){//修改/复制
|
|
|
params = Object.assign({},this.form,{id:this.isCopy?undefined:this.parId})
|
|
@@ -310,6 +330,10 @@
|
|
|
color: #545455;
|
|
|
min-width: 980px;
|
|
|
position: relative;
|
|
|
+ .tip-text{
|
|
|
+ color:#F56C6C;
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
.conceptItem{
|
|
|
padding: 0 10px;
|
|
|
cursor: pointer;
|