|
|
@ -235,7 +235,7 @@ |
|
|
<el-dialog title="选择诊断" :visible.sync="dialogDiagnosises" width="800px" :close-on-click-modal="false"> |
|
|
<el-dialog title="选择诊断" :visible.sync="dialogDiagnosises" width="800px" :close-on-click-modal="false"> |
|
|
<div style="height: 320px;"> |
|
|
<div style="height: 320px;"> |
|
|
<el-select v-model="choosedDiagnosisIds" multiple placeholder="请选择" style="width: 100%;" filterable |
|
|
<el-select v-model="choosedDiagnosisIds" multiple placeholder="请选择" style="width: 100%;" filterable |
|
|
popper-class="diagnosisSelect" :popper-append-to-body="false"> |
|
|
|
|
|
|
|
|
:filter-method="filterMethod" popper-class="diagnosisSelect" :popper-append-to-body="false"> |
|
|
<el-option v-for="item in diagnosisesFilter" :key="item.id" :value="item.id" :label="item.displayName" /> |
|
|
<el-option v-for="item in diagnosisesFilter" :key="item.id" :value="item.id" :label="item.displayName" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
@ -266,7 +266,10 @@ export default { |
|
|
dialogDiagnosises: false, // 诊断选择窗口 |
|
|
dialogDiagnosises: false, // 诊断选择窗口 |
|
|
diagnosises: [], // 诊断 |
|
|
diagnosises: [], // 诊断 |
|
|
diagnosisesFilter: [], // 可选的诊断 |
|
|
diagnosisesFilter: [], // 可选的诊断 |
|
|
choosedDiagnosisIds: [], // 已选的诊断集合 |
|
|
|
|
|
|
|
|
choosedDiagnosisIds: [], // 已选的诊断 id 集合 |
|
|
|
|
|
disabledDiagnosisIds: [], // 不可选的诊断 id 集合 |
|
|
|
|
|
diagnosisesChoosed:[], // 已选的诊断集合 |
|
|
|
|
|
|
|
|
collapse: false, // 折叠/展开全部建议 |
|
|
collapse: false, // 折叠/展开全部建议 |
|
|
|
|
|
|
|
|
dispTermReason: 'N', // 显示医学解释与常见原因 |
|
|
dispTermReason: 'N', // 显示医学解释与常见原因 |
|
|
@ -409,23 +412,50 @@ export default { |
|
|
btnChooseDiagnosis(index) { |
|
|
btnChooseDiagnosis(index) { |
|
|
this.suggestionCurRow = index |
|
|
this.suggestionCurRow = index |
|
|
this.choosedDiagnosisIds = this.sumDoctorCheck.suggestionList[index].diagnosisIds |
|
|
this.choosedDiagnosisIds = this.sumDoctorCheck.suggestionList[index].diagnosisIds |
|
|
let diagnosisIds = [] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.disabledDiagnosisIds = [] |
|
|
this.sumDoctorCheck.suggestionList.forEach((e, i) => { |
|
|
this.sumDoctorCheck.suggestionList.forEach((e, i) => { |
|
|
if (i != index) { |
|
|
if (i != index) { |
|
|
if (e.diagnosisIds) diagnosisIds = diagnosisIds.concat(e.diagnosisIds) |
|
|
|
|
|
|
|
|
if (e.diagnosisIds) this.disabledDiagnosisIds = this.disabledDiagnosisIds.concat(e.diagnosisIds) |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
this.diagnosisesFilter = this.diagnosises.filter(e => { |
|
|
|
|
|
return diagnosisIds.indexOf(e.id) == -1 |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.diagnosisesFilter = [] |
|
|
|
|
|
this.diagnosisesChoosed = [] |
|
|
|
|
|
|
|
|
|
|
|
this.diagnosises.forEach(e => { |
|
|
|
|
|
if(this.disabledDiagnosisIds.indexOf(e.id) == -1){ |
|
|
|
|
|
if(this.choosedDiagnosisIds.indexOf(e.id) == -1){ |
|
|
|
|
|
if(this.diagnosisesFilter.length < 20) this.diagnosisesFilter.push(e) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.diagnosisesChoosed.push(e) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
this.diagnosisesFilter = this.diagnosisesFilter.concat(this.diagnosisesChoosed) |
|
|
this.dialogDiagnosises = true |
|
|
this.dialogDiagnosises = true |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//快速选择组合项目时,调整可按拼间简码及简称查找 |
|
|
|
|
|
filterMethod(keyWords) { |
|
|
|
|
|
if (keyWords) { |
|
|
|
|
|
let diagnosisesFilter = [] |
|
|
|
|
|
this.diagnosises.forEach(e => { |
|
|
|
|
|
if(this.disabledDiagnosisIds.indexOf(e.id) == -1){ |
|
|
|
|
|
if(this.choosedDiagnosisIds.indexOf(e.id) == -1){ |
|
|
|
|
|
if(e.displayName.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1 || e.simpleCode.toLowerCase().indexOf(keyWords.toLowerCase()) > - 1){ |
|
|
|
|
|
if(diagnosisesFilter.length < 20) diagnosisesFilter.push(e) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
this.diagnosisesFilter = diagnosisesFilter.concat(this.diagnosisesChoosed) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
btnOkDiagnosis() { |
|
|
btnOkDiagnosis() { |
|
|
this.changeDiagnosis(this.choosedDiagnosisIds) |
|
|
this.changeDiagnosis(this.choosedDiagnosisIds) |
|
|
this.dialogDiagnosises = false |
|
|
this.dialogDiagnosises = false |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 获取人员是否已总检过 |
|
|
// 获取人员是否已总检过 |
|
|
|