Browse Source

视光权限修改

x-emr
bianyaqi 2 years ago
parent
commit
239eb86a3a
  1. 33
      src/components/360View/commonForm/deveopmentFIle.vue
  2. 34
      src/components/360View/commonForm/eyesVision.vue
  3. 36
      src/components/360View/commonForm/optometryForm.vue
  4. 34
      src/components/360View/commonForm/threeVision.vue
  5. 21
      src/components/360View/opticalFile/index.vue

33
src/components/360View/commonForm/deveopmentFIle.vue

@ -1,9 +1,21 @@
<template>
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always">
<div v-if="!onlyRead && isPlatform" style="position: fixed;z-index: 999;right: 90px;">
<el-button v-print="printObj" size="small">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
<div style="position: fixed;z-index: 999;right: 90px;">
<div v-if="!onlyRead && isPlatform">
<el-button v-print="printObj" size="small" @click="handlePrint">打印</el-button>
<template v-if="isCreator">
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
</template>
</div>
<div v-if="creator" style="margin: 10px 0;text-align: left;color: #409EFF">
<div>
操作员{{ creator.doctorName }}
</div>
<div>
工号{{ creator.doctorCode }}
</div>
</div>
</div>
<div id="threeFunc" style="width: 840px;padding-right: 8px">
<div v-if="!isDev" class="flex j-c">
@ -323,6 +335,14 @@ export default {
onlyRead: {
type: Boolean,
default: false
},
isCreator: {
type: Boolean,
default: true
},
//
creator: {
type: Object
}
},
data() {
@ -661,7 +681,10 @@ export default {
}
},
handlePrint() {
this.printPage('threeFunc')
if (!this.isCreator) {
return
}
this.handleSaveTable()
},
handleSaveTable() {
this.$http.post('/qgfyda/saveQgfyda', this.dataForm).then(({ data: res }) => {

34
src/components/360View/commonForm/eyesVision.vue

@ -1,9 +1,21 @@
<template>
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always">
<div v-if="!onlyRead && isPlatform" style="position: fixed;z-index: 999;right: 90px;">
<el-button v-print="'#eyesFunc'" size="small" @click="handleSaveTable">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
<div style="position: fixed;z-index: 999;right: 90px;">
<div v-if="!onlyRead && isPlatform">
<el-button v-print="'#eyesFunc'" size="small" @click="handlePrint">打印</el-button>
<template v-if="isCreator">
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
</template>
</div>
<div v-if="creator" style="margin: 10px 0;text-align: left;color: #409EFF">
<div>
操作员{{ creator.doctorName }}
</div>
<div>
工号{{ creator.doctorCode }}
</div>
</div>
</div>
<div id="eyesFunc" style="width: 840px;padding-right: 8px" class="printBox">
<div v-if="!isDev" class="flex j-c">
@ -584,6 +596,14 @@ export default {
caseId: {
type: String,
default: ''
},
isCreator: {
type: Boolean,
default: true
},
//
creator: {
type: Object
}
},
data() {
@ -1032,6 +1052,12 @@ export default {
return temp.join(',')
}
},
handlePrint() {
if (!this.isCreator) {
return
}
this.handleSaveTable()
},
//
async handleSaveTable() {
const data = JSON.parse(JSON.stringify(this.formData))

36
src/components/360View/commonForm/optometryForm.vue

@ -1,7 +1,7 @@
<template>
<div id="operation-record" style="background: #fff; padding: 10px 20px 50px 20px;page-break-after:always">
<div v-if="!onlyRead && isPlatform" style="display: flex;justify-content: space-between">
<div>
<div class="flex">
<div v-if="!onlyRead && isPlatform" style="display: flex">
<el-switch
v-model="connectFlag"
disabled
@ -12,9 +12,21 @@
/>
</div>
<div style="position: fixed;z-index: 999;right: 90px;">
<el-button v-print="print" size="small" @click="handleSaveTable">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
<div v-if="!onlyRead && isPlatform">
<el-button v-print="print" size="small" @click="handlePrint">打印</el-button>
<template v-if="isCreator">
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
</template>
</div>
<div v-if="creator" style="margin: 10px 0;text-align: left;color: #409EFF">
<div>
操作员{{ creator.doctorName }}
</div>
<div>
工号{{ creator.doctorCode }}
</div>
</div>
</div>
</div>
<div id="optomeFunc" style="width: 840px;padding-right: 8px" class="printBox">
@ -392,6 +404,14 @@ export default {
onlyRead: {
type: Boolean,
default: false
},
isCreator: {
type: Boolean,
default: true
},
//
creator: {
type: Object
}
},
data() {
@ -806,6 +826,12 @@ export default {
return temp.join(',')
}
},
handlePrint() {
if (!this.isCreator) {
return
}
this.handleSaveTable()
},
handleSaveTable() {
this.dataForm.pjyjCheck = this.handleCheck(this.suggest)
this.dataForm.zzcfCheck = this.handleCheck(this.remoteUse)

34
src/components/360View/commonForm/threeVision.vue

@ -1,9 +1,21 @@
<template>
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always">
<div v-if="!onlyRead && isPlatform" class="btnBox">
<el-button v-print="'#threeFunc'" size="small" @click="handleSaveTable">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
<div style="position: fixed;z-index: 999;right: 90px;">
<div v-if="!onlyRead && isPlatform">
<el-button v-print="'#threeFunc'" size="small" @click="handlePrint">打印</el-button>
<template v-if="isCreator">
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
</template>
</div>
<div v-if="creator" style="margin: 10px 0;text-align: left;color: #409EFF">
<div>
操作员{{ creator.doctorName }}
</div>
<div>
工号{{ creator.doctorCode }}
</div>
</div>
</div>
<div id="threeFunc" style="width: 840px;padding-right: 8px" class="printBox">
<div v-if="!isDev" class="flex j-c">
@ -779,6 +791,14 @@ export default {
caseId: {
type: String,
default: ''
},
isCreator: {
type: Boolean,
default: true
},
//
creator: {
type: Object
}
},
data() {
@ -1305,6 +1325,12 @@ export default {
type === 'od' ? this.dataForm.worth2 = '左眼抑制' : this.dataForm.worth4 = '左眼抑制'
}
},
handlePrint() {
if (!this.isCreator) {
return
}
this.handleSaveTable()
},
//
async handleSaveTable() {
const R = /ᴿ\/ʟ/g

21
src/components/360View/opticalFile/index.vue

@ -52,9 +52,11 @@
ref="eyesVis"
:is-dev="isDev"
:case-id="id"
:only-read="onlyRead || !isCreator"
:only-read="onlyRead"
:is-platform="isPlatform"
:patient-id="patientId"
:is-creator="isCreator"
:creator="creator"
@del="deleteForm"
/>
<optometryForm
@ -63,19 +65,23 @@
:is-dev="isDev"
:case-id="id"
:is-platform="isPlatform"
:only-read="onlyRead || !isCreator"
:only-read="onlyRead"
:patient-id="patientId"
:is-search="isSearch"
:is-creator="isCreator"
:creator="creator"
@del="deleteForm"
/>
<threeVision
v-if="name === '三级视功能检查报告单'"
ref="threeVis"
:is-dev="isDev"
:only-read="onlyRead || !isCreator"
:only-read="onlyRead"
:is-platform="isPlatform"
:case-id="id"
:patient-id="patientId"
:is-creator="isCreator"
:creator="creator"
@del="deleteForm"
/>
<deveopmentFile
@ -84,10 +90,12 @@
:is-dev="isDev"
:is-platform="isPlatform"
:case-id="id"
:only-read="onlyRead || !isCreator"
:only-read="onlyRead"
:patient-id="patientId"
:is-search="isSearch"
:form-content="deveopData"
:is-creator="isCreator"
:creator="creator"
@del="deleteForm"
/>
</div>
@ -140,6 +148,7 @@ export default {
id: '',
name: '',
isCreator: true,
creator: null,
isPlatform: true,
defaultChecked: [],
curIndex: 0,
@ -158,6 +167,10 @@ export default {
handleForm(index, item) {
const user = JSON.parse(window.sessionStorage.getItem('qg-userData'))
this.isCreator = item.doctorCode === user.employeeId
this.creator = {
doctorCode: item.doctorCode,
doctorName: item.doctorName
}
//
if (this.curIndex === index) {
return

Loading…
Cancel
Save