diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue index cade6b0..772cc7e 100644 --- a/src/components/doctorCheck/CheckSumSug.vue +++ b/src/components/doctorCheck/CheckSumSug.vue @@ -1,7 +1,7 @@ @@ -228,8 +227,8 @@ @@ -309,6 +308,7 @@ import { mapState } from 'vuex'; import Sortable from "sortablejs"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getPagePriv, checkPagePriv, deepCopy, arrayExistObj } from '../../utlis/proFunc'; + export default { components: {}, props: ["patientRegisterId", "tabChoosed"], @@ -329,7 +329,8 @@ export default { collapse: false, // 折叠/展开全部建议 - dispTermReason: 'N', // 显示医学解释与常见原因 + dispTermReason: 'Y', // 显示医学解释与常见原因 + dispDiagnsis:'Y', // 显示诊断 dialogWinSymbols: false, selection: { // 光标位置 @@ -361,19 +362,35 @@ export default { if (userPriv) this.pagePriv.privs = deepCopy(getPagePriv(this.pagePriv.routeUrlorPageName)) // 获取是否显示医学解释与常见原因 - // 获取系统参数(医生诊台侧边项目归类模式 0-检检类别,1-指引类别,2-报告类别) + // 获取系统参数(获取是否显示医学解释与常见原因) postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'summary_check_disp_reas' }) .then(res => { if (res.code > -1) { this.dispTermReason = res.data || "Y" } }) + + // 获取系统参数(获取是否显示诊断) + postapi('/api/app/SysParmValue/GetSysParmValueBySysParmId', { sysParmId: 'summary_check_disp_diagnsis' }) + .then(res => { + if (res.code > -1) { + this.dispDiagnsis = res.data || "Y" + } + }) + this.AI.height = this.frameHeight }, //挂载完成 async mounted() { + // 监听来自 Electron 的调用 + if (this.$peisAPI) { + this.$peisAPI.onContextMenuAction((data) => { + this.onContextMenuDIY(data) + }); + } + // this.rowDrop(); (综述取消拖拽) this.rowDropSuggestion(); @@ -405,7 +422,52 @@ export default { // AIdiagnosisHeight AIDH() { return Math.floor((this.AI.height - 24 - 42 - 4) / 21.5) - } + }, + + sumBtnDisabled(){ + let patientRegister = this.dataTransOpts.tableS.patient_register + let ret = true + + //' 请选择体检人员' + if (!patientRegister.id) return ret + // '人员已锁定,不可执行此操作' + if (patientRegister?.isLock == 'Y') return ret + + // console.log('btnType', btnType, this.summary_check_default_summay_modifiable) + if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false + + return ret + }, + + sumBtnDisabledAddSummary(){ + let patientRegister = this.dataTransOpts.tableS.patient_register + let ret = true + + //' 请选择体检人员' + if (!patientRegister.id) return ret + // '人员已锁定,不可执行此操作' + if (patientRegister?.isLock == 'Y') return ret + + if (patientRegister.completeFlag && patientRegister.completeFlag != '3' && this.summary_check_default_summay_modifiable == 'Y') { + return false; + } else { + return true; + } + + }, + + sumBtnDisabledCollapse(){ + let patientRegister = this.dataTransOpts.tableS.patient_register + let ret = true + + //' 请选择体检人员' + if (!patientRegister.id) return ret + // '人员已锁定,不可执行此操作' + if (patientRegister?.isLock == 'Y') return ret + + return false + + }, }, methods: { @@ -417,6 +479,12 @@ export default { // e.style.height = 'auto'; // 重置高度 // }); // }, + + // 自定义右击事件 + onContextMenuDIY(data){ + this.$message({showClose:true,message:data}) + }, + // 获取诊断数据 async dictInit() { @@ -470,6 +538,7 @@ export default { let pojo = { id, patientRegisterId: this.dataTransOpts.tableS.patient_register.id, + suggestionTitle: '', diagnosisIds: [], medicalInterpretations: [ { @@ -744,37 +813,7 @@ export default { } }); }, - - // 按钮可用 - sumBtnDisabled(btnType) { - let patientRegister = this.dataTransOpts.tableS.patient_register - let ret = true - - //' 请选择体检人员' - if (!patientRegister.id) return ret - // '人员已锁定,不可执行此操作' - if (patientRegister.isLock && patientRegister.isLock == 'Y') return ret - - // console.log('btnType', btnType, this.summary_check_default_summay_modifiable) - - switch (btnType) { - case 'collapse': - return false; - case 'addSummary': - if (patientRegister.completeFlag && patientRegister.completeFlag != '3' && this.summary_check_default_summay_modifiable == 'Y') { - return false; - } else { - return true; - } - default: - break; - } - - if (patientRegister.completeFlag && patientRegister.completeFlag != '3') ret = false - - return ret - }, - + // 诊断选择 changeDiagnosis(v) { // console.log('changeDiagnosis', v) @@ -1197,7 +1236,24 @@ export default { return } - console.log('this.$peisAPI.contextMenuForPeis()') + /* + let menus = [ + { label: '测试菜单', itemId: '测试菜单', enabled: true } + ] + + this.$peisAPI.showContextMenu(menus) + .then(res => { + console.log('res', res) + }) + .catch(err => { + console.log('err', err) + }) + .finally(() => { + console.log('finally') + }) + */ + + // console.log('this.$peisAPI.contextMenuForPeis()') this.$peisAPI.contextMenuForPeis() .then(res => { console.log('res', res) @@ -1361,5 +1417,6 @@ export default { ::v-deep .diagnosisSelect .el-select-dropdown__wrap { background-color: #FFF; max-height: 288px; + max-width: 780px; } diff --git a/src/views/diagnosis/diagnosis.vue b/src/views/diagnosis/diagnosis.vue index 18ca2c3..e6455d0 100644 --- a/src/views/diagnosis/diagnosis.vue +++ b/src/views/diagnosis/diagnosis.vue @@ -2,65 +2,59 @@
-
- 基础资料 / - 诊断建议设置 -
-
- - - - - - -
-
+ + + + +
+
-
- +
+
-
+
-
+
- +
- - -