pengjun 3 weeks ago
parent
commit
c64fe663aa
  1. 48
      src/components/doctorCheck/CheckSumSug.vue
  2. 45
      src/components/doctorCheck/PatientRegisterBase.vue
  3. 1
      src/views/fee-settings/Asbitem.vue

48
src/components/doctorCheck/CheckSumSug.vue

@ -1,7 +1,7 @@
<template> <template>
<div> <div>
<div style="display: flex;">
<div :style="`width:${sumWidth}px;`" @dblclick.prevent="blClick">
<div style="display: flex;" @contextmenu="onContextmenu">
<div :style="`width:${sumWidth}px;`" @dblclick="blClick">
<el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight" <el-table id="tableSummary" row-key="id" :data="doctorCheck.checkSummaryList" size="samll" :height="sumHeight"
width="100%" border> width="100%" border>
<el-table-column width="30" align="center"> <el-table-column width="30" align="center">
@ -193,6 +193,14 @@ export default {
// //
mounted() { mounted() {
// Electron
if (this.$peisAPI) {
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
});
}
this.rowDrop(); this.rowDrop();
if(this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion() if(this.doctor_check_disp_suggestion == 'Y') this.rowDropSuggestion()
@ -409,6 +417,42 @@ export default {
} }
this.btnMakeDiagnosis() this.btnMakeDiagnosis()
}, },
//
onContextmenu(event) {
if (!this.$peisAPI) {
return
}
let menus = [
// { type: 'separator' },
// { label: '', itemId: '', enabled: true },
// {
// label: '',
// submenu: [
// { label: '', itemId: '', enabled: true }
// ]
// }
]
this.$peisAPI.showContextMenu(menus)
.then(res => {
console.log('res', res)
})
.catch(err => {
console.log('err', err)
})
.finally(() => {
console.log('finally')
})
},
//
onContextMenuDIY(data){
this.$message({showClose:true,message:data})
}
}, },
// //

45
src/components/doctorCheck/PatientRegisterBase.vue

@ -1,5 +1,5 @@
<template> <template>
<div>
<div @contextmenu="onContextmenu">
<div style="display: flex; flex-wrap: wrap;height:70px; width: 100%;overflow-y: auto;"> <div style="display: flex; flex-wrap: wrap;height:70px; width: 100%;overflow-y: auto;">
<div> <div>
<span class="query">条码号</span> <span class="query">条码号</span>
@ -156,6 +156,13 @@ export default {
// //
mounted() { mounted() {
// Electron
if (this.$peisAPI) {
this.$peisAPI.onContextMenuAction((data) => {
this.onContextMenuDIY(data)
});
}
// //
this.enterToQuery() this.enterToQuery()
@ -476,6 +483,42 @@ export default {
}); });
}, },
//
onContextmenu(event) {
if (!this.$peisAPI) {
return
}
let menus = [
// { type: 'separator' },
// { label: '', itemId: '', enabled: true },
// {
// label: '',
// submenu: [
// { label: '', itemId: '', enabled: true }
// ]
// }
]
this.$peisAPI.showContextMenu(menus)
.then(res => {
console.log('res', res)
})
.catch(err => {
console.log('err', err)
})
.finally(() => {
console.log('finally')
})
},
//
onContextMenuDIY(data){
this.$message({showClose:true,message:data})
}
}, },
watch: { watch: {

1
src/views/fee-settings/Asbitem.vue

@ -544,6 +544,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
<el-row>
<el-col :span="5"> <el-col :span="5">
<el-form-item label="疾病筛查类别" prop="" label-width="100px"> <el-form-item label="疾病筛查类别" prop="" label-width="100px">
<el-select v-model="form.diseaseScreeningTypeId" placeholder="请选择" size="small" @change="quckRusetform"> <el-select v-model="form.diseaseScreeningTypeId" placeholder="请选择" size="small" @change="quckRusetform">

Loading…
Cancel
Save