pengjun 2 years ago
parent
commit
9609655d9d
  1. 40
      src/components/sumDoctorCheck/ButtonList.vue
  2. 73
      src/components/sumDoctorCheck/SumSug.vue
  3. 10
      src/views/doctorCheck/sumDoctorCheck.vue

40
src/components/sumDoctorCheck/ButtonList.vue

@ -22,16 +22,13 @@
<div v-show="checkPagePriv(pagePriv.privs, '取消审核')" class="listBtn"> <div v-show="checkPagePriv(pagePriv.privs, '取消审核')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="unAudit" :disabled="sumBtnDisabled('unAudit')">取消审核</el-button> <el-button type="primary" class="commonbutton" @click="unAudit" :disabled="sumBtnDisabled('unAudit')">取消审核</el-button>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '新增建议')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="addSuggtion" :disabled="sumBtnDisabled('addSuggtion')">新增建议</el-button>
</div>
<!-- 直接放在 建议旁边 <!-- 直接放在 建议旁边
<div class="listBtn"> <div class="listBtn">
<el-button type="primary" class="btnClass" @click="addDiagnosis">疾病诊断</el-button> <el-button type="primary" class="btnClass" @click="addDiagnosis">疾病诊断</el-button>
</div> </div>
--> -->
<div v-show="checkPagePriv(pagePriv.privs, '体检报告')" class="listBtn"> <div v-show="checkPagePriv(pagePriv.privs, '体检报告')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="report" :disabled="sumBtnDisabled('report')">体检报告</el-button>
<el-button type="primary" class="commonbutton" @click="btnReport" :disabled="sumBtnDisabled('report')">体检报告</el-button>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '复查')" class="listBtn"> <div v-show="checkPagePriv(pagePriv.privs, '复查')" class="listBtn">
<el-button type="primary" class="commonbutton" @click="reCheck" :disabled="sumBtnDisabled('reCheck')">复查</el-button> <el-button type="primary" class="commonbutton" @click="reCheck" :disabled="sumBtnDisabled('reCheck')">复查</el-button>
@ -75,7 +72,6 @@ export default {
PatientRegisterList, PatientRegisterList,
SumDiagnosis, SumDiagnosis,
}, },
props: ["fnSetSuggestionFocus"],
data() { data() {
return { return {
pagePriv: { pagePriv: {
@ -288,7 +284,7 @@ export default {
}, },
// //
report() {
btnReport() {
if (!this.$peisAPI) { if (!this.$peisAPI) {
this.$message.info("此功能,需要在壳客户端才可运行!") this.$message.info("此功能,需要在壳客户端才可运行!")
@ -326,39 +322,7 @@ 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.fnSetSuggestionFocus(id)
},
// //
reCheck() { reCheck() {

73
src/components/sumDoctorCheck/SumSug.vue

@ -30,12 +30,28 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </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%;"> <div style="width:50%;">
<el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" :height="sumHeight" <el-table id="tableSuggestion" row-key="id" :data="sumDoctorCheck.suggestionList" width="100%" :height="sumHeight"
border size="small" ref="tableSuggestion"> border size="small" ref="tableSuggestion">
<el-table-column type="index" width="20" align="center"> <el-table-column type="index" width="20" align="center">
</el-table-column> </el-table-column>
<el-table-column prop="suggestionTitle" label="建议"> <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"> <template slot-scope="scope">
<div> <div>
<div style="display: flex;"> <div style="display: flex;">
@ -179,6 +195,7 @@ export default {
sumDetails: [], sumDetails: [],
suggestionCurRow: 0, // suggestionCurRow: 0, //
diagnosises: [], // 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) { btnCollapse(index) {
this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse'] this.sumDoctorCheck.suggestionList[index]['collapse'] = !this.sumDoctorCheck.suggestionList[index]['collapse']
this.$nextTick(() => { this.$nextTick(() => {
@ -682,19 +742,6 @@ export default {
this.getHaveSumData(this.dataTransOpts.tableS.patient_register.id) 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> </script>

10
src/views/doctorCheck/sumDoctorCheck.vue

@ -15,8 +15,7 @@
<div style="display: flex;"> <div style="display: flex;">
<!-- 综述建议 --> <!-- 综述建议 -->
<div :style="'width:' + (window.pageWidth - 110 - 15) + 'px;'"> <div :style="'width:' + (window.pageWidth - 110 - 15) + 'px;'">
<SumSug :patientRegisterId="dataTransOpts.tableS.patient_register.id"
:curGetFocusSuggestionId="curGetFocusSuggestionId" />
<SumSug :patientRegisterId="dataTransOpts.tableS.patient_register.id"/>
</div> </div>
<!-- 诊断 width:200px; --> <!-- 诊断 width:200px; -->
<div v-show="false" style="width:200px;"> <div v-show="false" style="width:200px;">
@ -49,7 +48,7 @@
</div> </div>
</div> </div>
<div style="width: 110px"> <div style="width: 110px">
<ButtonList :fnSetSuggestionFocus="fnSetSuggestionFocus" />
<ButtonList/>
</div> </div>
</div> </div>
</div> </div>
@ -86,7 +85,6 @@ export default {
data() { data() {
return { return {
tabChoosed: "1", tabChoosed: "1",
curGetFocusSuggestionId: "",
}; };
}, },
@ -215,10 +213,6 @@ export default {
console.log("dict", this.dict); console.log("dict", this.dict);
}, },
fnSetSuggestionFocus(id) {
console.log('in fnSetSuggestionFocus')
this.curGetFocusSuggestionId = id
},
}, },
//() //()

Loading…
Cancel
Save