|
|
|
@ -65,7 +65,7 @@ |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="btnCollapseAll" |
|
|
|
:disabled="sumBtnDisabled('collapse')">{{ |
|
|
|
collapse ? |
|
|
|
'展开' : '折叠' }}全部建议</el-button> |
|
|
|
'展开' : '折叠' }}全部建议</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="addSuggtion" |
|
|
|
@ -73,8 +73,8 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div style="width:50%;"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" :height="sumHeight" |
|
|
|
border size="small" ref="tableSuggestion"> |
|
|
|
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" |
|
|
|
:height="sumHeight" border size="small" ref="tableSuggestion"> |
|
|
|
<el-table-column width="30" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-tag class="moveTag" style="cursor: move;background-color: #EEEEEE;"> |
|
|
|
@ -149,8 +149,8 @@ |
|
|
|
<template slot-scope="scope2"> |
|
|
|
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger" |
|
|
|
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" |
|
|
|
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" :disabled="sumBtnDisabled()" |
|
|
|
size="small"></el-button> |
|
|
|
@click="delSug(scope.row.medicalInterpretations, scope2.$index)" |
|
|
|
:disabled="sumBtnDisabled()" size="small"></el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -469,7 +469,7 @@ export default { |
|
|
|
//选择诊断 |
|
|
|
btnChooseDiagnosis(index) { |
|
|
|
this.suggestionCurRow = index |
|
|
|
this.choosedDiagnosisIds = this.sumDoctorCheck.suggestionList[index].diagnosisIds||[] |
|
|
|
this.choosedDiagnosisIds = this.sumDoctorCheck.suggestionList[index].diagnosisIds || [] |
|
|
|
|
|
|
|
this.disabledDiagnosisIds = [] |
|
|
|
this.sumDoctorCheck.suggestionList.forEach((e, i) => { |
|
|
|
@ -483,9 +483,9 @@ export default { |
|
|
|
|
|
|
|
this.diagnosises.forEach(e => { |
|
|
|
if (e.id && this.disabledDiagnosisIds.indexOf(e.id) == -1) { |
|
|
|
console.log('this.disabledDiagnosisIds',e.id,this.disabledDiagnosisIds,this.choosedDiagnosisIds) |
|
|
|
console.log('this.disabledDiagnosisIds', e.id, this.disabledDiagnosisIds, this.choosedDiagnosisIds) |
|
|
|
if (this.choosedDiagnosisIds.indexOf(e.id) == -1) { |
|
|
|
console.log('this.diagnosisesFilter',e.id,this.diagnosisesFilter) |
|
|
|
console.log('this.diagnosisesFilter', e.id, this.diagnosisesFilter) |
|
|
|
if (this.diagnosisesFilter.length < 20) this.diagnosisesFilter.push(e) |
|
|
|
} else { |
|
|
|
this.diagnosisesChoosed.push(e) |
|
|
|
@ -567,7 +567,7 @@ export default { |
|
|
|
} |
|
|
|
postapi('/api/app/sumsummaryheader/getsumsummarylist', body) |
|
|
|
.then((res) => { |
|
|
|
console.log("summaryList", res.data); |
|
|
|
// console.log("summaryList", res.data); |
|
|
|
if (res.code > -1) { |
|
|
|
let summaryList = [] |
|
|
|
res.data.forEach((e, i) => { |
|
|
|
@ -615,35 +615,45 @@ export default { |
|
|
|
|
|
|
|
postapi('/api/app/sumsuggestionheader/getsumsuggestionlist', body) |
|
|
|
.then((res) => { |
|
|
|
console.log("suggestionList", res.data); |
|
|
|
// console.log("suggestionList", res.data); |
|
|
|
if (res.code > -1) { |
|
|
|
// 处理拖动排序使用 |
|
|
|
let suggestionList = [] |
|
|
|
res.data.forEach((e, i) => { |
|
|
|
e.id = `suggestion_${i}` |
|
|
|
e.collapse = this.collapse |
|
|
|
let medicalInterpretations = [] |
|
|
|
if (e.medicalInterpretations) { |
|
|
|
e.medicalInterpretations.forEach((e0, i0) => { |
|
|
|
e0.sumSuggestionHeaderId = `suggestion_${i}` |
|
|
|
e0.id = `medicalInterpretations_${i0}` |
|
|
|
medicalInterpretations.push(Object.assign({}, e0, { suggestionContent: '' })) |
|
|
|
}); |
|
|
|
} |
|
|
|
let commonReasons = [] |
|
|
|
if (e.commonReasons) { |
|
|
|
e.commonReasons.forEach((e0, i0) => { |
|
|
|
e0.sumSuggestionHeaderId = `suggestion_${i}` |
|
|
|
e0.id = `commonReasons_${i0}` |
|
|
|
commonReasons.push(Object.assign({}, e0, { suggestionContent: '' })) |
|
|
|
}); |
|
|
|
} |
|
|
|
let healthGuidances = [] |
|
|
|
if (e.healthGuidances) { |
|
|
|
e.healthGuidances.forEach((e0, i0) => { |
|
|
|
e0.sumSuggestionHeaderId = `suggestion_${i}` |
|
|
|
e0.id = `healthGuidances_${i0}` |
|
|
|
healthGuidances.push(Object.assign({}, e0, { suggestionContent: '' })) |
|
|
|
}); |
|
|
|
} |
|
|
|
suggestionList.push(Object.assign({}, e, { medicalInterpretations, commonReasons, healthGuidances })) |
|
|
|
}); |
|
|
|
this.sumDoctorCheck.suggestionList = res.data; |
|
|
|
this.sumDoctorCheck.suggestionList = suggestionList |
|
|
|
setTimeout(() => { |
|
|
|
this.sumDoctorCheck.suggestionList = res.data; |
|
|
|
}, 10); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 按钮可用 |
|
|
|
@ -1072,7 +1082,7 @@ export default { |
|
|
|
if (newVal != oldVal && this.tabChoosed != '1') this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 虚拟表 触发强制刷新 (sumDoctor.M 合并包含:综述、建议、对比、历史等,不包含总检诊断) |
|
|
|
"dataTransOpts.refresh.sumDoctor.M": { |
|
|
|
// immediate:true, |
|
|
|
@ -1137,4 +1147,3 @@ export default { |
|
|
|
max-height: 288px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|