|
@@ -56,13 +56,12 @@
|
|
|
</el-tooltip>
|
|
|
</td>
|
|
|
<td class="FeatureRelate">
|
|
|
- <el-tooltip :disabled="!item.verifyRelation" class="item" effect="dark" :content="item.verifyRelation" placement="top">
|
|
|
- <input class="groupInput" :class="{borderRed:item.verifyRelation}" :title="item.relation" type="text" v-model.trim="item.relation" @input="handleInp(index,$event,'FeatureRelate')" @click="clickItem(index,'FeatureRelate')">
|
|
|
+ <el-tooltip :disabled="!item.verifyRelation&&!item.relationNull" class="item" effect="dark" :content="item.verifyRelation||item.relationNull" placement="top">
|
|
|
+ <input class="groupInput" :class="{borderRed:item.verifyRelation|| item.relationNull}" :title="item.relation" type="text" v-model.trim="item.relation" @input="handleInp(index,$event,'FeatureRelate',item.type)" @click="clickItem(index,'FeatureRelate')">
|
|
|
</el-tooltip>
|
|
|
</td>
|
|
|
<td class="FeatureResult">
|
|
|
<el-tooltip :disabled="!item.verifyResult" class="item" effect="dark" :content="item.verifyResult" placement="top">
|
|
|
- <!-- <el-input :disabled="item.type!=3" size="mini" v-model="item.result" placeholder="诊断名称" clearable></el-input> -->
|
|
|
<input :readonly="item.type!=3" class="groupInput" :class="{borderRed:item.verifyResult, inpDisabled:item.type!=3}" :title="item.result" type="text" v-model.trim="item.result" @input="handleInp(index,$event,'FeatureResult')" @click="clickItem(index,'FeatureResult')">
|
|
|
</el-tooltip>
|
|
|
</td>
|
|
@@ -73,6 +72,7 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
<p class="moduleTitle">诊断公式:</p>
|
|
|
+ <p class="inpTips">可输入数字(0~9)规定内汉字:任、一、二、三、四、五、六、七、八、九、十,其余汉字不可输入;可输入的符号:“、”“\”“()”</p>
|
|
|
<table class="diagTable">
|
|
|
<tr class="tableTitle">
|
|
|
<td class="FormulaSort">排序</td>
|
|
@@ -358,6 +358,11 @@
|
|
|
const errStr = "第" + (i+ 1) +"行必填项未填写"
|
|
|
errStrList.push(errStr)
|
|
|
}
|
|
|
+ if(disFeatureList[i].type == '3' && disFeatureList[i].result && !disFeatureList[i].relation) {
|
|
|
+ disFeatureList[i].relationNull = "未填写关联词"
|
|
|
+ const errStr = "第" + (i+ 1) +"行化验项数据填写不完整"
|
|
|
+ errStrList.push(errStr)
|
|
|
+ }
|
|
|
let regex =new RegExp(`${disFeatureList[i].type}\\.[1-9]\\d?`)
|
|
|
if(disFeatureList[i].code &&!regex.test(disFeatureList[i].code)) {
|
|
|
codeErrorNum++
|
|
@@ -460,15 +465,19 @@
|
|
|
duration:time || '3000'
|
|
|
})
|
|
|
},
|
|
|
- handleInp(index,e,type){ //分组不能输入负数
|
|
|
+ handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
|
const value = e.target.value;
|
|
|
- if(type === 'FeatureNumber') {
|
|
|
+ if(type === 'FeatureNumber') { //序号只能输入数字和.
|
|
|
this.disFeatureList[index].code = value.replace(/[^\d.]/g,'')
|
|
|
- } else if(type==='FeatureStand') {
|
|
|
+ } else if(type==='FeatureStand') { //关联词不能输入顿号
|
|
|
this.disFeatureList[index].standard = value.replace(/、/g,'')
|
|
|
} else if ( type === 'FormulaNumber') {
|
|
|
- //计算公式只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十
|
|
|
+ //计算公式只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、0-9、/、.、(、)、(、)
|
|
|
this.disFormulaList[index].formula = value.replace(/[^\u4EFB\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D\u53410-9\/\.+\(\)\(\)]/g,'').replace(/[\(]/g, '(').replace(/[\)]/g, ')').replace(/' '/g, '')
|
|
|
+ } else if ( type === 'FeatureRelate') {
|
|
|
+ if(itemType == 3) {
|
|
|
+ this.disFeatureList[index].relation = value.replace(/、/g,'')
|
|
|
+ }
|
|
|
}
|
|
|
// const item = this.selectedIndexList[index].indexDesc;
|
|
|
// e.target.value = value.replace(/[^\d]/g,'');
|
|
@@ -478,6 +487,7 @@
|
|
|
switch(type) {
|
|
|
case 'FeatureType':
|
|
|
this.disFeatureList[index].typeNull = ''
|
|
|
+ this.disFeatureList[index].code = ''
|
|
|
this.disFeatureList[index].standard = ''
|
|
|
this.disFeatureList[index].relation = ''
|
|
|
this.disFeatureList[index].result = ''
|
|
@@ -723,6 +733,11 @@
|
|
|
border: none;
|
|
|
cursor: not-allowed;
|
|
|
}
|
|
|
+ .inpTips {
|
|
|
+ font-size: 13px;
|
|
|
+ color: red;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
</style>
|