|
|
|
@ -30,12 +30,28 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div style="position: absolute; top: 0px; right: 2px; display: flex;z-index: 3;"> |
|
|
|
<div style="margin-right: 5px;"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="btnCollapseAll" :disabled="sumBtnDisabled()">{{ collapse ? |
|
|
|
'展开' : '折叠' }}全部建议</el-button> |
|
|
|
</div> |
|
|
|
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')"> |
|
|
|
<el-button style="height: 28px;" class="commonbutton" @click="addSuggtion" :disabled="sumBtnDisabled()">新增建议</el-button> |
|
|
|
</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-column type="index" width="20" align="center"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="suggestionTitle" label="建议"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="display: flex;justify-content:space-between;"> |
|
|
|
<div>建议</div> |
|
|
|
<div></div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<div style="display: flex;"> |
|
|
|
@ -179,6 +195,7 @@ export default { |
|
|
|
sumDetails: [], |
|
|
|
suggestionCurRow: 0, //当前操作建议的行 |
|
|
|
diagnosises: [], // 诊断 |
|
|
|
collapse: true, // 折叠/展开全部建议 |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
@ -236,6 +253,49 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//增加建议 |
|
|
|
addSuggtion() { |
|
|
|
let id = String(new Date().getTime()) |
|
|
|
let pojo = { |
|
|
|
id, |
|
|
|
patientRegisterId: this.dataTransOpts.tableS.patient_register.id, |
|
|
|
diagnosisIds: [], |
|
|
|
medicalInterpretations: [ |
|
|
|
{ |
|
|
|
sumSuggestionHeaderId: id, // 拖拽用到 |
|
|
|
diagnosisId: '', // 关联诊断用到 |
|
|
|
suggestionContent: '', |
|
|
|
} |
|
|
|
], |
|
|
|
commonReasons: [ |
|
|
|
{ |
|
|
|
sumSuggestionHeaderId: id, // 拖拽用到 |
|
|
|
diagnosisId: '', |
|
|
|
suggestionContent: '', |
|
|
|
} |
|
|
|
], |
|
|
|
healthGuidances: [ |
|
|
|
{ |
|
|
|
sumSuggestionHeaderId: id, // 拖拽用到 |
|
|
|
diagnosisId: '', |
|
|
|
suggestionContent: '', |
|
|
|
} |
|
|
|
], |
|
|
|
} |
|
|
|
|
|
|
|
this.sumDoctorCheck.suggestionList.push(pojo); |
|
|
|
this.$refs[id].focus(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 单个折叠展开建议 |
|
|
|
btnCollapseAll() { |
|
|
|
this.collapse = !this.collapse |
|
|
|
this.sumDoctorCheck.suggestionList.forEach(e => { |
|
|
|
e.collapse = this.collapse |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
// 单个折叠展开建议 |
|
|
|
btnCollapse(index) { |
|
|
|
this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse'] |
|
|
|
this.$nextTick(() => { |
|
|
|
@ -682,19 +742,6 @@ export default { |
|
|
|
this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 新增时,光标定位 |
|
|
|
"curGetFocusSuggestionId": { |
|
|
|
immediate: true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch curGetFocusSuggestionId newVal: ${newVal}, oldVal: ${oldVal}`); |
|
|
|
if (newVal) { |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$refs[newVal].focus(); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|