|
@@ -36,6 +36,7 @@
|
|
|
<td class="FeatureNumber require">序号</td>
|
|
|
<td class="FeatureStand require">标准词</td>
|
|
|
<td class="FeatureRelate">关联词</td>
|
|
|
+ <td class="FeatureuniqueName">化验公表项</td>
|
|
|
<td class="FeatureResult">结果</td>
|
|
|
<td class="FeatureOpera"></td>
|
|
|
</tr>
|
|
@@ -84,6 +85,20 @@
|
|
|
@focus="clickItem(index,'FeatureRelate')">
|
|
|
</el-input>
|
|
|
</el-tooltip>
|
|
|
+ </td>
|
|
|
+ <td class="FeatureuniqueName">
|
|
|
+ <!-- <el-tooltip :disabled="!item.verifyRelation&&!item.relationNull" class="item" effect="dark" :content="item.verifyRelation||item.relationNull" placement="top">
|
|
|
+ <el-input class="groupTextarea"
|
|
|
+ type="textarea"
|
|
|
+ :autosize="{ minRows: 1}"
|
|
|
+ :class="{borderRed:item.verifyRelation|| item.relationNull}"
|
|
|
+ :title="item.relation"
|
|
|
+ v-model.trim="item.relation"
|
|
|
+ @input="handleInp(index,$event,'FeatureRelate',item.type)"
|
|
|
+ @focus="clickItem(index,'FeatureRelate')">
|
|
|
+ </el-input>
|
|
|
+ </el-tooltip> -->
|
|
|
+ <div>{{item.uniqueName}}</div>
|
|
|
</td>
|
|
|
<td class="FeatureResult">
|
|
|
<el-tooltip :disabled="!item.verifyResult" class="item" effect="dark" :content="item.verifyResult" placement="top">
|
|
@@ -92,8 +107,8 @@
|
|
|
:autosize="{ minRows: 1}"
|
|
|
:readonly="item.type!=3"
|
|
|
:class="{borderRed:item.verifyResult, inpDisabled:item.type!=3}"
|
|
|
- :title="item.result"
|
|
|
- v-model.trim="item.result"
|
|
|
+ :title="item.mid_result"
|
|
|
+ v-model.trim="item.mid_result"
|
|
|
@input="handleInp(index,$event,'FeatureResult')"
|
|
|
@focus="clickItem(index,'FeatureResult')">
|
|
|
</el-input>
|
|
@@ -197,8 +212,10 @@
|
|
|
code:'',
|
|
|
standard:'',
|
|
|
relation:'',
|
|
|
+ mid_result:'',
|
|
|
+ formula:'',
|
|
|
result:'',
|
|
|
- formula:''
|
|
|
+ uniqueName:''
|
|
|
}
|
|
|
], //疾病特征列表
|
|
|
disFeatureListResult:[], //疾病特征列表(保存用)
|
|
@@ -208,8 +225,10 @@
|
|
|
code:'',
|
|
|
standard:'',
|
|
|
relation:'',
|
|
|
+ mid_result:'',
|
|
|
result:'',
|
|
|
- formula:''
|
|
|
+ formula:'',
|
|
|
+ uniqueName:''
|
|
|
}
|
|
|
],
|
|
|
disFormulaListResult:[], //诊断公式列表(保存用)
|
|
@@ -302,7 +321,9 @@
|
|
|
code:'',
|
|
|
standard:'',
|
|
|
relation:'',
|
|
|
+ mid_result:'',
|
|
|
result:'',
|
|
|
+ uniqueName:'1111'
|
|
|
}
|
|
|
this.disFeatureList.splice(index+1, 0, item)
|
|
|
}else if(type == 2) {
|
|
@@ -311,7 +332,9 @@
|
|
|
code:'',
|
|
|
standard:'',
|
|
|
relation:'',
|
|
|
+ mid_result:'',
|
|
|
result:'',
|
|
|
+ uniqueName:'2222'
|
|
|
}
|
|
|
this.disFormulaList.splice(index+1, 0, item)
|
|
|
}
|
|
@@ -363,9 +386,9 @@
|
|
|
// item.standard = feature[i].standard
|
|
|
// item.relation = feature[i].associated
|
|
|
// if(item.type === 4) {
|
|
|
- // item.result = ''
|
|
|
+ // item.mid_result = ''
|
|
|
// } else {
|
|
|
- // item.result = feature[i].result
|
|
|
+ // item.mid_result = feature[i].mid_result
|
|
|
// }
|
|
|
// featureList.push(item)
|
|
|
// }
|
|
@@ -460,7 +483,7 @@
|
|
|
this.disFormulaListResult = []
|
|
|
let errStrList = [];
|
|
|
for(let i = 0; i < this.disFeatureList.length; i++) {
|
|
|
- if(this.disFeatureList[i].type || this.disFeatureList[i].code || this.disFeatureList[i].standard || this.disFeatureList[i].relation || this.disFeatureList[i].result) {
|
|
|
+ if(this.disFeatureList[i].type || this.disFeatureList[i].code || this.disFeatureList[i].standard || this.disFeatureList[i].relation || this.disFeatureList[i].mid_result) {
|
|
|
this.disFeatureListResult.push(this.disFeatureList[i])
|
|
|
}
|
|
|
}
|
|
@@ -479,8 +502,10 @@
|
|
|
code:'',
|
|
|
standard:'',
|
|
|
relation:'',
|
|
|
+ mid_result:'',
|
|
|
result:'',
|
|
|
- formula:''
|
|
|
+ formula:'',
|
|
|
+ uniqueName:''
|
|
|
}
|
|
|
];
|
|
|
}
|
|
@@ -516,7 +541,7 @@
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- if(disFeatureList[i].type == '3' && disFeatureList[i].result && !disFeatureList[i].relation) {
|
|
|
+ if(disFeatureList[i].type == '3' && disFeatureList[i].mid_result && !disFeatureList[i].relation) {
|
|
|
disFeatureList[i].relationNull = "未填写关联词"
|
|
|
const errStr = "第" + (i+ 1) +"行化验项数据填写不完整"
|
|
|
errStrList.push(errStr)
|
|
@@ -538,7 +563,7 @@
|
|
|
//导入后判断
|
|
|
|
|
|
|
|
|
- if(disFeatureList[i].type == '3' && !disFeatureList[i].result ) { //化验项下面诊断公式如果有用到,判断是否填写结果项
|
|
|
+ if(disFeatureList[i].type == '3' && !disFeatureList[i].mid_result ) { //化验项下面诊断公式如果有用到,判断是否填写结果项
|
|
|
const regex2 = new RegExp(`(?<=\\D|\\s?)${disFeatureList[i].code}(?=\\D|\\s?)`)
|
|
|
// const regex2 = new RegExp(`、\\s*、{1,}`)
|
|
|
// const regex2 = new RegExp(`([^0-9]|\\s{0,1})${disFeatureList[i].code}([^0-9]|\\s{0,1})`)
|
|
@@ -568,7 +593,7 @@
|
|
|
const errStr = "疾病特征第" + (i+ 1) +"行数据异常"
|
|
|
errStrList.push(errStr)
|
|
|
}
|
|
|
- if(disFeatureList[i].result &®ex1.test(disFeatureList[i].result)) {
|
|
|
+ if(disFeatureList[i].mid_result &®ex1.test(disFeatureList[i].mid_result)) {
|
|
|
disFeatureList[i].verifyResult ='数据异常'
|
|
|
const errStr = "疾病特征第" + (i+ 1) +"行数据异常"
|
|
|
errStrList.push(errStr)
|
|
@@ -651,6 +676,26 @@
|
|
|
|
|
|
},
|
|
|
diagBaseVerifyData(type) {
|
|
|
+ //判断诊断依据先判断化验有没有公表项
|
|
|
+ const labArr= []
|
|
|
+ for (let i = 0; i < this.disFeatureListResult.length; i++) {
|
|
|
+ if(+this.disFeatureListResult[i].type === 3) {
|
|
|
+ labArr.push({index: i, mealName: this.disFeatureListResult[i].standard, itemName: this.disFeatureListResult[i].relation, uniqueName:''})
|
|
|
+ }
|
|
|
+ }
|
|
|
+ api.getUniqueNameWithList(param).then((res) => {
|
|
|
+ console.log('resss', res)
|
|
|
+ })
|
|
|
+ console.log('labArr', labArr)
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: 'Loading',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
+ setTimeout(function(){
|
|
|
+ loading.close()
|
|
|
+ },1000)
|
|
|
const param = {
|
|
|
disFeature: this.disFeatureListResult,
|
|
|
disName: this.disName,
|
|
@@ -685,7 +730,9 @@
|
|
|
standard:'',
|
|
|
relation:'',
|
|
|
result:'',
|
|
|
- formula:''
|
|
|
+ mid_result,
|
|
|
+ formula:'',
|
|
|
+ uniqueName:''
|
|
|
}
|
|
|
]
|
|
|
}
|
|
@@ -754,8 +801,10 @@
|
|
|
this.disFeatureList[index].code = ''
|
|
|
this.disFeatureList[index].standard = ''
|
|
|
this.disFeatureList[index].relation = ''
|
|
|
+ this.disFeatureList[index].mid_result = ''
|
|
|
this.disFeatureList[index].result = ''
|
|
|
this.disFeatureList[index].formula = ''
|
|
|
+ this.disFeatureList[index].uniqueName = ''
|
|
|
return this.disFeatureList = JSON.parse(JSON.stringify(this.disFeatureList))
|
|
|
case 'FeatureNumber':
|
|
|
this.disFeatureList[index].codeNull = ''
|
|
@@ -957,8 +1006,11 @@
|
|
|
.FeatureRelate {
|
|
|
width: 25%;
|
|
|
}
|
|
|
+ .FeatureuniqueName {
|
|
|
+ width: 10%;
|
|
|
+ }
|
|
|
.FeatureResult {
|
|
|
- width: 20%;
|
|
|
+ width: 10%;
|
|
|
}
|
|
|
.FeatureOpera{
|
|
|
width: 10%;
|