Browse Source

签名打印不显示

360view
bianyaqi 2 years ago
parent
commit
8872bc6803
  1. 15
      src/page-subspecialty/views/modules/formList/InformedConsent.vue
  2. 64
      src/page-subspecialty/views/modules/formList/mraForm.vue
  3. 33
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/CornealReview.vue
  4. 26
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/notice-book.vue
  5. 27
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/rgp-book.vue

15
src/page-subspecialty/views/modules/formList/InformedConsent.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" class="btnBox_top">
<el-button v-print="'#informedConsent'" size="small" @click="handleSaveTable">打印</el-button>
<el-button v-print="'#informedConsent'" size="small" @click="handlePrint">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="formDelete">删除</el-button>
</div>
@ -130,7 +130,7 @@
<div>
<div class="flex a-c">
<div>患者或直系亲属签名</div>
<div @click="signClick(11)">
<div v-if="printHidden" @click="signClick(11)">
<img v-if="!informPatientSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="informPatientSign">
</div></div>
@ -171,6 +171,13 @@ export default {
},
data() {
return {
printHidden: true,
print: {
id: 'informedConsent',
closeCallback: () => {
this.printHidden = true
}
},
origin: '',
confirmData: {
bnz: '',
@ -563,6 +570,10 @@ export default {
this.$message.error(res.msg)
}
},
handlePrint() {
this.printHidden = false
this.handleSaveTable()
},
//
handleSaveTable() {
if (!this.confirmData.eyeType) {

64
src/page-subspecialty/views/modules/formList/mraForm.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" class="btnBox">
<el-button v-print="'#mraFunc'" size="small" @click="handleSaveTable">打印</el-button>
<el-button v-print="print" size="small" @click="handlePrint">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="formDelete">删除</el-button>
</div>
@ -60,14 +60,14 @@
<div>
<div class="flex">
患者签字:
<div style="margin-left: 10px" @click="signClick(12)">
<div v-if="printHidden" style="margin-left: 10px" @click="signClick(12)">
<img v-if="!fundusDocSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="fundusDocSign">
</div>
</div>
<div class="flex">
<span>或授权亲属签字(关系):</span>
<div style="margin-left: 10px" @click="signClick(13)">
<div v-if="printHidden" style="margin-left: 10px" @click="signClick(13)">
<img v-if="!kinSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="kinSign">
</div>
@ -121,7 +121,7 @@
<div>检查前药物过敏试验情况:</div>
<div class="flex">
执行药敏试验者签字:
<div style="margin:0 10px" @click="signClick(14)">
<div v-if="printHidden" style="margin:0 10px" @click="signClick(14)">
<img v-if="!performerSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="performerSign">
</div>
@ -129,7 +129,7 @@
</div>
<div class="flex">
核对药敏实验者签字:
<div style="margin:0 10px" @click="signClick(15)">
<div v-if="printHidden" style="margin:0 10px" @click="signClick(15)">
<img v-if="!checkerSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="checkerSign">
</div>
@ -162,7 +162,13 @@ export default {
},
data() {
return {
origin: '',
printHidden: true,
print: {
id: 'mraFunc',
closeCallback: () => {
this.printHidden = true
}
},
formData: {
patientName: '',
patientAge: '',
@ -238,20 +244,48 @@ export default {
return this.$store.getters.checkerSign
}
},
watch: {
caseId(val) {
if (val) {
this.getOrderDetail()
}
}
},
created() {
this.origin = JSON.parse(JSON.stringify(this.formData))
//
this.formData.patientName = this.patientDetail.patientName
this.formData.patientAge = this.patientDetail.patientAge
this.formData.patientSex = this.patientDetail.patientSex
this.formData.patientId = this.patientDetail.patientId
const userData = JSON.parse(window.sessionStorage.getItem('qg-userData'))
this.formData.doctorSign = userData.signImgBase
this.$store.commit('initPlugin')
this.getOrderDetail()
},
methods: {
handlePrint() {
this.printHidden = false
this.handleSaveTable()
},
handleSaveTable() {
this.$emit('handleSaveTable')
this.formData.jzNumber = window.sessionStorage.getItem('jzNumber') || this.$route.query.jzNumber || ''
this.$http.post('/mzbl/saveMzblYdxgzyzqtys', {
caseId: this.caseId,
...this.formData
}).then(() => {
this.$emit('handleSaveTable')
})
},
getOrderDetail() {
this.$http.get('/mzbl/getMzblYdxgzyzqtysInfo', { params: {
caseId: this.caseId,
patientId: this.patientDetail.patientId
}}).then(data => {
const detail = data.data.data
this.formData = { ...detail }
const userData = JSON.parse(window.sessionStorage.getItem('qg-userData'))
this.formData.doctorSign = userData.signImgBase
if (!detail.jzNumber) {
//
this.formData.patientName = this.patientDetail.patientName
this.formData.patientAge = this.patientDetail.patientAge
this.formData.patientSex = this.patientDetail.patientSex
this.formData.patientId = this.patientDetail.patientId
}
})
},
signClick(index) {
this.$store.commit('beginSign', index)

33
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/CornealReview.vue

@ -2,7 +2,7 @@
<div class="corneal">
<head-template>
<el-button type="primary" size="small" @click="handleSaveTable()">保存</el-button>
<el-button v-print="'secondPrint'" size="small">打印</el-button>
<el-button v-print="print" size="small" @click="handlePrint">打印</el-button>
</head-template>
<div class="notice-content">
<div class="notice-box">
@ -107,14 +107,14 @@
<div style="display: flex">
<div style="flex: 1;padding: 5px 10px;display: flex;align-items: center" @click="signClick(16)">
<span style="word-break: keep-all">检查人签字:</span>
<img v-if="!formData.checkSign" :src="require('@/assets/img/signature.png')" alt="" style="margin-left: 12px">
<img v-else style="width: 80px;height: 40px;" :src="formData.checkSign">
<!-- <el-input v-model="formData.checkSign" />-->
<img v-if="!formData.checkSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-left: 12px">
<img v-if="formData.checkSign" style="width: 80px;height: 40px;" :src="formData.checkSign">
<!-- <el-input v-model="formData.checkSign" />-->
</div>
<div style="flex: 1;border-left: 1px solid #ccc;padding: 5px 10px;display: flex;align-items: center">
<span style="word-break: keep-all">医生签字:</span>
<img v-if="formData.doctorSign" :src="formData.doctorSign" alt="" style="width: 80px;height: 50px;border-style:none;margin-left: 12px">
<!-- <el-input v-model="formData.doctorSign" />-->
<!-- <el-input v-model="formData.doctorSign" />-->
</div>
</div>
</td>
@ -141,10 +141,17 @@ export default {
patientId: {
type: String,
default: ''
},
}
},
data() {
return {
printHidden: true,
print: {
id: 'secondPrint',
closeCallback: () => {
this.printHidden = true
}
},
cornealList: [
{
name: '居中',
@ -299,11 +306,6 @@ export default {
}
}
},
watch: {
caseId(val) {
this.querySecondVisit()
}
},
computed: {
checkSign: {
get() {
@ -314,6 +316,11 @@ export default {
}
}
},
watch: {
caseId(val) {
this.querySecondVisit()
}
},
mounted() {
this.$store.commit('initPlugin')
this.querySecondVisit()
@ -391,6 +398,10 @@ export default {
this.$message.error(res.msg)
}
},
handlePrint() {
this.printHidden = false
this.handleSaveTable()
},
async handleSaveTable() {
this.formData.checkResult = this.formData.checkResult.length ? this.formData.checkResult.join(',') : ''
this.formData.jmdxtOd = this.formData.jmdxtOd.length ? this.formData.jmdxtOd.join(',') : ''

26
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/notice-book.vue

@ -3,7 +3,7 @@
<!-- 告知书头部 -->
<head-template head-left="">
<el-button type="primary" size="small" @click="saveEditNotice()">保存</el-button>
<el-button v-print="'#noticePrint'" size="small">打印</el-button>
<el-button v-print="print" size="small" @click="handlePrint">打印</el-button>
</head-template>
<div id="noticePrint" class="notice-content">
<div class="notice-box">
@ -82,13 +82,13 @@
<div>
<div @click="signClick(5)">
<span>验配师</span>
<img v-if="!optomSign2" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="optomSign2">
<img v-if="!optomSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="optomSign2" style="width: 80px;height: 40px;" :src="optomSign2">
</div>
<div @click="signClick(6)">
<span style="margin-left: 16px">医生</span>
<img v-if="!doctorSign2" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="doctorSign2">
<img v-if="!doctorSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="doctorSign2" style="width: 80px;height: 40px;" :src="doctorSign2">
</div>
<div style="margin-top: 3px">
<span style="margin-left: 16px">日期</span>
@ -104,13 +104,13 @@
<div>
<div @click="signClick(7)">
<span style="margin-left: 113px">配戴者签字</span>
<img v-if="!patientSign2" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="patientSign2">
<img v-if="!patientSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="patientSign2" style="width: 80px;height: 40px;" :src="patientSign2">
</div>
<div @click="signClick(8)">
<span>未满18周岁监护人签字</span>
<img v-if="!guardianSign2" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="guardianSign2">
<img v-if="!guardianSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="guardianSign2" style="width: 80px;height: 40px;" :src="guardianSign2">
</div>
<div style="margin-top: 3px;margin-left: 145px">
<span style="margin-left: 16px">日期</span>
@ -144,6 +144,13 @@ export default {
},
data() {
return {
printHidden: true,
print: {
id: 'noticePrint',
closeCallback: () => {
this.printHidden = true
}
},
doctorSignDate: null,
wearerOrGuardianSignDate: null
}
@ -195,6 +202,7 @@ export default {
this.$store.commit('beginSign', index)
},
handlePrint() {
this.printHidden = false
this.printPage('notice-one')
},
//

27
src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/rgp-book.vue

@ -3,7 +3,7 @@
<!-- 告知书头部 -->
<head-template head-left="">
<el-button type="primary" size="small" @click="saveEditNotice()">保存</el-button>
<el-button v-print="'#noticePrint'" size="small">打印</el-button>
<el-button v-print="print" size="small" @click="handlePrint()">打印</el-button>
</head-template>
<div id="noticePrint" class="notice-content">
<div class="notice-box">
@ -70,13 +70,13 @@
<div>
<div @click="signClick(1)">
<span>验配师</span>
<img v-if="!optomSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="optomSign">
<img v-if="!optomSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="optomSign" style="width: 80px;height: 40px;" :src="optomSign">
</div>
<div @click="signClick(2)">
<span style="margin-left: 16px">医生</span>
<img v-if="!doctorSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="doctorSign">
<img v-if="!doctorSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="doctorSign" style="width: 80px;height: 40px;" :src="doctorSign">
</div>
<div style="margin-top: 3px">
<span style="margin-left: 16px">日期</span>
@ -92,13 +92,13 @@
<div>
<div @click="signClick(3)">
<span style="margin-left: 113px">配戴者签字</span>
<img v-if="!patientSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="patientSign">
<img v-if="!patientSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="patientSign" style="width: 80px;height: 40px;" :src="patientSign">
</div>
<div @click="signClick(4)">
<span>未满18周岁监护人签字</span>
<img v-if="!guardianSign" :src="require('@/assets/img/signature.png')" alt="">
<img v-else style="width: 80px;height: 40px;" :src="guardianSign">
<img v-if="!guardianSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="guardianSign" style="width: 80px;height: 40px;" :src="guardianSign">
</div>
<div style="margin-top: 3px;margin-left: 145px">
<span style="margin-left: 16px">日期</span>
@ -132,6 +132,13 @@ export default {
},
data() {
return {
printHidden: true,
print: {
id: 'noticePrint',
closeCallback: () => {
this.printHidden = true
}
},
doctorSignDate: null,
wearerOrGuardianSignDate: null
}
@ -183,7 +190,7 @@ export default {
this.$store.commit('beginSign', index)
},
handlePrint() {
this.printPage('notice-two')
this.printHidden = false
},
//
getNoticeName() {

Loading…
Cancel
Save