|
@@ -46,7 +46,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="groupData.basType===2&&!onlyNum" label="选择类型:" :prop="ruleLine+ind+'.dataType'">
|
|
|
+ <el-form-item v-if="groupData.basType===2&&!onlyNum&&!onlyTxt" label="选择类型:" :prop="ruleLine+ind+'.dataType'">
|
|
|
<el-select v-model="groupData.dataType"
|
|
|
placeholder="请选择"
|
|
|
size="small" @change="dataTypeChange">
|
|
@@ -114,7 +114,7 @@
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item v-if="!onlyNum&&!showRegx&&groupData.basType===2&&groupData.dataType==='2'" label="医学内容:" :prop="ruleLine+ind+'.eqValue'" class="discDesc is-required">
|
|
|
+ <el-form-item v-if="(!onlyNum&&!showRegx&&groupData.basType===2&&groupData.dataType==='2')||onlyTxt" label="医学内容:" :prop="ruleLine+ind+'.eqValue'" class="discDesc is-required">
|
|
|
<el-input type="textarea" rows="3" placeholder="请输入医学内容" v-model.trim="groupData.eqValue"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-if="showRegx" label="正则表达式:" :prop="ruleLine+ind+'.eqValue'" class="discDesc is-required">
|
|
@@ -135,6 +135,7 @@
|
|
|
props:['groupData','ind','isLast','baseTypes','parInx','inx','len'],
|
|
|
data(){
|
|
|
return {
|
|
|
+ dicts:{},
|
|
|
baseTermTypeList:[],
|
|
|
typeList:[],
|
|
|
numTypes:'', //只有数值类型的类型id
|
|
@@ -159,6 +160,7 @@
|
|
|
},
|
|
|
},
|
|
|
created(){
|
|
|
+ this.dicts=JSON.parse(localStorage.getItem("zskDiagDicts")||'{}');
|
|
|
if(this.groupData.maxOperator||this.groupData.minOperator){
|
|
|
this.groupData.dataType='1';
|
|
|
}else if(this.groupData.eqValue){
|
|
@@ -176,7 +178,14 @@
|
|
|
return (this.baseTypes.find((it)=>it.type===this.groupData.basType)||{}).name;
|
|
|
},
|
|
|
onlyNum:function(){
|
|
|
- const codes=localStorage.getItem("zskDiagDicts")+',';
|
|
|
+ const onlyNum =this.dicts['onlyNum']||'&';
|
|
|
+ const codes=onlyNum+',';
|
|
|
+ const type=this.groupData.basLibType;
|
|
|
+ return type&&codes.indexOf(this.groupData.basLibType+',')>-1;
|
|
|
+ },
|
|
|
+ onlyTxt:function(){
|
|
|
+ const onlyTxt =this.dicts['onlyTxt']||'&';
|
|
|
+ const codes=onlyTxt+',';
|
|
|
const type=this.groupData.basLibType;
|
|
|
return type&&codes.indexOf(this.groupData.basLibType+',')>-1;
|
|
|
},
|
|
@@ -286,7 +295,7 @@
|
|
|
}
|
|
|
}
|
|
|
.inner-oper{
|
|
|
- padding: 15px 0 15px 21px;
|
|
|
+ padding: 10px 0 10px 21px;
|
|
|
.add-btn {
|
|
|
cursor: pointer;
|
|
|
img {
|
|
@@ -295,7 +304,7 @@
|
|
|
}
|
|
|
}
|
|
|
.sub-condition-form{
|
|
|
- padding: 20px;
|
|
|
+ padding:10px 20px 9px;
|
|
|
position: relative;
|
|
|
border-bottom:1px solid #F5F5F5;
|
|
|
.del-btn{
|
|
@@ -348,16 +357,22 @@
|
|
|
overflow-y: auto;
|
|
|
}
|
|
|
.el-form-item{
|
|
|
- margin-bottom: 22px;
|
|
|
+ margin-bottom: 6px;
|
|
|
&.min-margin{
|
|
|
margin-bottom: 0;
|
|
|
+ position: relative;
|
|
|
+ .el-form-item__content{
|
|
|
+ position: unset;
|
|
|
+ }
|
|
|
+ .el-form-item__error{
|
|
|
+ top:10px;
|
|
|
+ left: 460px;
|
|
|
+ white-space: normal;
|
|
|
+ width: 260px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- .el-form-item__error{
|
|
|
- top: auto;
|
|
|
- white-space: nowrap;
|
|
|
- background: #fff;
|
|
|
- }
|
|
|
+
|
|
|
.el-input-number{
|
|
|
width: 95px;
|
|
|
}
|