|
@@ -109,7 +109,7 @@
|
|
</td>
|
|
</td>
|
|
<td class="FeatureResult">
|
|
<td class="FeatureResult">
|
|
<el-tooltip :disabled="!item.verifyResult" class="item" effect="dark" :content="item.verifyResult" placement="top">
|
|
<el-tooltip :disabled="!item.verifyResult" class="item" effect="dark" :content="item.verifyResult" placement="top">
|
|
- <!-- <el-input class="groupTextarea"
|
|
|
|
|
|
+ <el-input class="groupTextarea"
|
|
type="textarea"
|
|
type="textarea"
|
|
:autosize="{ minRows: 1}"
|
|
:autosize="{ minRows: 1}"
|
|
:readonly="item.type!=3"
|
|
:readonly="item.type!=3"
|
|
@@ -118,13 +118,13 @@
|
|
v-model.trim="item.midResult"
|
|
v-model.trim="item.midResult"
|
|
@input="handleInp(index,$event,'FeatureResult')"
|
|
@input="handleInp(index,$event,'FeatureResult')"
|
|
@focus="clickItem(index,'FeatureResult')">
|
|
@focus="clickItem(index,'FeatureResult')">
|
|
- </el-input> -->
|
|
|
|
- <Textarea
|
|
|
|
- :value = "item.uniqueName"
|
|
|
|
- :readonly = "item.type!=3"
|
|
|
|
|
|
+ </el-input>
|
|
|
|
+ <!-- <Textarea
|
|
|
|
+ :value = "item.midResult"
|
|
|
|
+ :readonly = "item.type==3"
|
|
:borderRed = 'item.verifyResult'
|
|
:borderRed = 'item.verifyResult'
|
|
- @handleInp="handleInp"
|
|
|
|
- ></Textarea>
|
|
|
|
|
|
+ @handleInp="handleInp(index,$event,'FeatureResult')"
|
|
|
|
+ ></Textarea> -->
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</td>
|
|
</td>
|
|
<td class="FeatureOpera">
|
|
<td class="FeatureOpera">
|
|
@@ -476,14 +476,16 @@
|
|
exportDiagnosticAll(){
|
|
exportDiagnosticAll(){
|
|
this.submitForm('export').then(() => {
|
|
this.submitForm('export').then(() => {
|
|
if(this.hasQuestion == 0) {
|
|
if(this.hasQuestion == 0) {
|
|
- const param = {
|
|
|
|
|
|
+ const param = {
|
|
diagnoseId: this.id
|
|
diagnoseId: this.id
|
|
}
|
|
}
|
|
api.exportDiagnosticAll(param).then((res) => {
|
|
api.exportDiagnosticAll(param).then((res) => {
|
|
utils.downloadExportedData(res.data,'诊断依据.xls');
|
|
utils.downloadExportedData(res.data,'诊断依据.xls');
|
|
})
|
|
})
|
|
}else {
|
|
}else {
|
|
- this.warning('导出失败');
|
|
|
|
|
|
+ if(!this.hasNoUniqueName) {
|
|
|
|
+ this.warning('导出失败');
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
})
|
|
})
|
|
@@ -549,7 +551,8 @@
|
|
return this.labVerifyData(labArr, loading,type).then(() =>{
|
|
return this.labVerifyData(labArr, loading,type).then(() =>{
|
|
if(this.hasNoUniqueName) {
|
|
if(this.hasNoUniqueName) {
|
|
loading.close()
|
|
loading.close()
|
|
- return
|
|
|
|
|
|
+ return
|
|
|
|
+
|
|
}else {
|
|
}else {
|
|
this.verifyDiagBase(loading,type)
|
|
this.verifyDiagBase(loading,type)
|
|
}
|
|
}
|
|
@@ -719,6 +722,7 @@
|
|
this.disFeatureList = JSON.parse(JSON.stringify(disFeatureList))
|
|
this.disFeatureList = JSON.parse(JSON.stringify(disFeatureList))
|
|
this.errorTips(errorStr)
|
|
this.errorTips(errorStr)
|
|
loading.close()
|
|
loading.close()
|
|
|
|
+ this.isReady=false
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
return true
|
|
@@ -757,7 +761,8 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(errorStr) {
|
|
if(errorStr) {
|
|
- this.errorTips(errorStr)
|
|
|
|
|
|
+ return this.errorTips(errorStr);
|
|
|
|
+
|
|
}
|
|
}
|
|
this.disFeatureList = JSON.parse(JSON.stringify(this.disFeatureListResult))
|
|
this.disFeatureList = JSON.parse(JSON.stringify(this.disFeatureListResult))
|
|
this.disFeatureListResult = JSON.parse(JSON.stringify(this.disFeatureListResult))
|
|
this.disFeatureListResult = JSON.parse(JSON.stringify(this.disFeatureListResult))
|
|
@@ -834,41 +839,40 @@
|
|
},
|
|
},
|
|
|
|
|
|
// handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
// handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
- handleInp(e){ //分组不能输入负数
|
|
|
|
- console.log(e)
|
|
|
|
|
|
+ handleInp(index,e,type,itemType){ //分组不能输入负数
|
|
|
|
|
|
- // const value = e
|
|
|
|
- // if(type === 'FeatureNumber') { //序号只能输入数字和.
|
|
|
|
- // this.$nextTick(() => {
|
|
|
|
- // this.disFeatureList[index].code = value.replace(/[^\d.]/g,'')
|
|
|
|
- // })
|
|
|
|
- // } else if(type==='FeatureStand') { //标准词不能输入顿号
|
|
|
|
- // this.$nextTick(() => {
|
|
|
|
- // this.disFeatureList[index].standard = value.replace(/、/g,'')
|
|
|
|
- // })
|
|
|
|
- // // this.disFeatureList[index].standard = value.replace(/、/g,'')
|
|
|
|
- // } else if ( type === 'FormulaNumber') {
|
|
|
|
- // //计算公式确诊只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、拟、诊、0-9、/、.、(、)、(、)
|
|
|
|
- // if(itemType == 91) {
|
|
|
|
- // this.$nextTick(() => {
|
|
|
|
|
|
+ const value = e
|
|
|
|
+ if(type === 'FeatureNumber') { //序号只能输入数字和.
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.disFeatureList[index].code = value.replace(/[^\d.]/g,'')
|
|
|
|
+ })
|
|
|
|
+ } else if(type==='FeatureStand') { //标准词不能输入顿号
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.disFeatureList[index].standard = value.replace(/、/g,'')
|
|
|
|
+ })
|
|
|
|
+ // this.disFeatureList[index].standard = value.replace(/、/g,'')
|
|
|
|
+ } else if ( type === 'FormulaNumber') {
|
|
|
|
+ //计算公式确诊只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、拟、诊、0-9、/、.、(、)、(、)
|
|
|
|
+ if(itemType == 91) {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
|
- // this.disFormulaList[index].formula = value.replace(/[^\u4EFB\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D\u5341\u62df\u8bca0-9\/\.+\(\)\(\)]/g,'').replace(/[\(]/g, '(').replace(/[\)]/g, ')').replace(/' '/g, '')
|
|
|
|
- // })
|
|
|
|
- // } else { //计算公式其他只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、0-9、/、.、(、)、(、)
|
|
|
|
- // //计算公式只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、0-9、/、.、(、)、(、)
|
|
|
|
- // this.$nextTick(() => {
|
|
|
|
- // 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, '')
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
|
|
+ this.disFormulaList[index].formula = value.replace(/[^\u4EFB\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D\u5341\u62df\u8bca0-9\/\.+\(\)\(\)]/g,'').replace(/[\(]/g, '(').replace(/[\)]/g, ')').replace(/' '/g, '')
|
|
|
|
+ })
|
|
|
|
+ } else { //计算公式其他只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、0-9、/、.、(、)、(、)
|
|
|
|
+ //计算公式只能输入以下内容: 任、一、二、三、四、五、六、七、八、九、十、0-9、/、.、(、)、(、)
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ 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.$nextTick(() => {
|
|
|
|
- // this.disFeatureList[index].relation = value.replace(/、/g,'')
|
|
|
|
- // })
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ } else if ( type === 'FeatureRelate') {
|
|
|
|
+ if(itemType == 3) {
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.disFeatureList[index].relation = value.replace(/、/g,'')
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
// const item = this.selectedIndexList[index].indexDesc;
|
|
// const item = this.selectedIndexList[index].indexDesc;
|
|
// e.target.value = value.replace(/[^\d]/g,'');
|
|
// e.target.value = value.replace(/[^\d]/g,'');
|
|
// this.selectedIndexList[index].indexDesc = item.replace(/[^\d]/g,'');
|
|
// this.selectedIndexList[index].indexDesc = item.replace(/[^\d]/g,'');
|