Browse Source

sum seo

master
pengjun 1 year ago
parent
commit
f742b7eda1
  1. 35
      src/components/sumDoctorCheck/SumSug.vue

35
src/components/sumDoctorCheck/SumSug.vue

@ -65,7 +65,7 @@
<el-button style="height: 28px;" class="commonbutton" @click="btnCollapseAll" <el-button style="height: 28px;" class="commonbutton" @click="btnCollapseAll"
:disabled="sumBtnDisabled('collapse')">{{ :disabled="sumBtnDisabled('collapse')">{{
collapse ? collapse ?
'展开' : '折叠' }}全部建议</el-button>
'展开' : '折叠' }}全部建议</el-button>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> <div v-show="checkPagePriv(pagePriv.privs, '新增建议')">
<el-button style="height: 28px;" class="commonbutton" @click="addSuggtion" <el-button style="height: 28px;" class="commonbutton" @click="addSuggtion"
@ -73,8 +73,8 @@
</div> </div>
</div> </div>
<div style="width:50%;"> <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"> <el-table-column width="30" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-tag class="moveTag" style="cursor: move;background-color: #EEEEEE;"> <el-tag class="moveTag" style="cursor: move;background-color: #EEEEEE;">
@ -149,8 +149,8 @@
<template slot-scope="scope2"> <template slot-scope="scope2">
<el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger" <el-button v-show="checkPagePriv(pagePriv.privs, '删除医学解释')" type="danger"
style="min-width:21px;height:21px;padding:2px;" icon="el-icon-delete" 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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -469,7 +469,7 @@ 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 || []
this.disabledDiagnosisIds = [] this.disabledDiagnosisIds = []
this.sumDoctorCheck.suggestionList.forEach((e, i) => { this.sumDoctorCheck.suggestionList.forEach((e, i) => {
@ -483,9 +483,9 @@ export default {
this.diagnosises.forEach(e => { this.diagnosises.forEach(e => {
if (e.id && this.disabledDiagnosisIds.indexOf(e.id) == -1) { 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) { 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) if (this.diagnosisesFilter.length < 20) this.diagnosisesFilter.push(e)
} else { } else {
this.diagnosisesChoosed.push(e) this.diagnosisesChoosed.push(e)
@ -567,7 +567,7 @@ export default {
} }
postapi('/api/app/sumsummaryheader/getsumsummarylist', body) postapi('/api/app/sumsummaryheader/getsumsummarylist', body)
.then((res) => { .then((res) => {
console.log("summaryList", res.data);
// console.log("summaryList", res.data);
if (res.code > -1) { if (res.code > -1) {
let summaryList = [] let summaryList = []
res.data.forEach((e, i) => { res.data.forEach((e, i) => {
@ -615,35 +615,45 @@ export default {
postapi('/api/app/sumsuggestionheader/getsumsuggestionlist', body) postapi('/api/app/sumsuggestionheader/getsumsuggestionlist', body)
.then((res) => { .then((res) => {
console.log("suggestionList", res.data);
// console.log("suggestionList", res.data);
if (res.code > -1) { if (res.code > -1) {
// 使 // 使
let suggestionList = []
res.data.forEach((e, i) => { res.data.forEach((e, i) => {
e.id = `suggestion_${i}` e.id = `suggestion_${i}`
e.collapse = this.collapse e.collapse = this.collapse
let medicalInterpretations = []
if (e.medicalInterpretations) { if (e.medicalInterpretations) {
e.medicalInterpretations.forEach((e0, i0) => { e.medicalInterpretations.forEach((e0, i0) => {
e0.sumSuggestionHeaderId = `suggestion_${i}` e0.sumSuggestionHeaderId = `suggestion_${i}`
e0.id = `medicalInterpretations_${i0}` e0.id = `medicalInterpretations_${i0}`
medicalInterpretations.push(Object.assign({}, e0, { suggestionContent: '' }))
}); });
} }
let commonReasons = []
if (e.commonReasons) { if (e.commonReasons) {
e.commonReasons.forEach((e0, i0) => { e.commonReasons.forEach((e0, i0) => {
e0.sumSuggestionHeaderId = `suggestion_${i}` e0.sumSuggestionHeaderId = `suggestion_${i}`
e0.id = `commonReasons_${i0}` e0.id = `commonReasons_${i0}`
commonReasons.push(Object.assign({}, e0, { suggestionContent: '' }))
}); });
} }
let healthGuidances = []
if (e.healthGuidances) { if (e.healthGuidances) {
e.healthGuidances.forEach((e0, i0) => { e.healthGuidances.forEach((e0, i0) => {
e0.sumSuggestionHeaderId = `suggestion_${i}` e0.sumSuggestionHeaderId = `suggestion_${i}`
e0.id = `healthGuidances_${i0}` 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);
} }
}); });
}, },
// //
@ -1137,4 +1147,3 @@ export default {
max-height: 288px; max-height: 288px;
} }
</style> </style>
Loading…
Cancel
Save