Browse Source

签字bug修复

360view
bianyaqi 2 years ago
parent
commit
f9e869a92d
  1. 4
      public/index.html
  2. 4
      src/components/360View/index.vue
  3. 4
      src/components/360View/special/index.vue
  4. 121
      src/mixins/styeFormSign.js
  5. 43
      src/page-subspecialty/views/modules/formList/DrugInjection.vue
  6. 30
      src/page-subspecialty/views/modules/formList/InformedConsent.vue
  7. 43
      src/page-subspecialty/views/modules/formList/InjectionTherapy.vue
  8. 49
      src/page-subspecialty/views/modules/formList/MinorOperation.vue
  9. 45
      src/page-subspecialty/views/modules/formList/StyeForm.vue
  10. 27
      src/page-subspecialty/views/modules/formList/childrenLacrimal.vue
  11. 43
      src/page-subspecialty/views/modules/formList/conjunctivalOperation.vue
  12. 43
      src/page-subspecialty/views/modules/formList/cornealForeign.vue
  13. 4
      src/page-subspecialty/views/modules/formList/laserSurgery.vue
  14. 85
      src/page-subspecialty/views/modules/formList/mraForm.vue
  15. 45
      src/page-subspecialty/views/modules/formList/puncture.vue
  16. 32
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/CornealReview.vue
  17. 105
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/notice-book.vue
  18. 103
      src/page-subspecialty/views/modules/optometryManagement/seeDoctor/informBook/rgp-book.vue

4
public/index.html

@ -53,8 +53,8 @@
<!-- 生产环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
<script>
// window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://10.80.5.32:8031/xiangan-crf';
window.SITE_CONFIG['apiURL'] = 'http://47.110.224.240:8036/xiangan-crf';
// window.SITE_CONFIG['apiURL'] = 'http://10.80.5.32:8031/xiangan-crf';
</script>
<% } %>
</head>

4
src/components/360View/index.vue

@ -408,8 +408,8 @@ export default {
// 360
handlePacs() {
// const baseUrl = 'http://z1.huimucloud.com:8085'
const baseUrl = 'http://10.80.5.32:8026'
// const baseUrl = 'http://192.168.0.85:8001'
// const baseUrl = 'http://10.80.5.32:8026'
const baseUrl = 'http://192.168.0.85:8001'
const href = `${baseUrl}/EXAMINE_Report/InterFace?PatID=${this.patientId}&DoctorID=${this.employeeId}&PatIdKey=&ExamNo=`
window.open(href, '_blank')
// const { href } = this.$router.resolve({

4
src/components/360View/special/index.vue

@ -213,8 +213,8 @@ export default {
// }
// })
// const baseUrl = 'http://z1.huimucloud.com:8085'
const baseUrl = 'http://10.80.5.32:8026'
// const baseUrl = 'http://192.168.0.85:8001'
// const baseUrl = 'http://10.80.5.32:8026'
const baseUrl = 'http://192.168.0.85:8001'
const href = `${baseUrl}/EXAMINE_Report/InterFace?PatID=${this.patientId}&DoctorID=${this.employeeId}&PatIdKey=&ExamNo=`
window.open(href, '_blank')
},

121
src/mixins/styeFormSign.js

@ -0,0 +1,121 @@
import { Notification } from 'element-ui'
import emptySign from '@static/js/emptySign'
export default {
data() {
return {
plugin: null,
optomFlag: true,
wearerFlag: true,
guardianFlag: true,
readFlag: true,
currentSignText: ''
}
},
methods: {
// 销毁签字笔
destroyPlugin(state) {
console.log(this.plugin)
if (this.plugin) {
console.log('--------3333-------')
this.plugin.DestroyPlugin()
}
},
initPlugin(text) {
// console.log(JSON.parse(window.sessionStorage.getItem('signPlugin')))
// if (this.plugin) {
// this.plugin.DestroyPlugin()
// }
this.plugin = new PluginNSV()
// window.sessionStorage.setItem('signPlugin', JSON.stringify(this.plugin))
const that = this
console.log('plugin', this.plugin)
this.plugin.InitPlugin(function(state) {
if (state === 1) {
// set pen size
that.plugin.setPenSizeRange(1, 5, null)
// set pen color
that.plugin.setPenColor(0, 0, 0, null)
that.plugin.setDisplayMapMode(1, 0, 0, null)
console.log('succeeded')
that.beginSign(text)
} else {
console.log('fails')
}
})
/* confirm event*/
this.plugin.onConfirm = function() {
that.saveSignToBase64()
that.endSign()
}
// /*clear event*/
this.plugin.onClear = function() {
this.clearSign()
}
/* cancel event*/
this.plugin.onCancel = function() {
this.endSign()
}
this.plugin.onStateChange = function(state) {}
this.plugin.onDevNotifyEvent = function(state) {
if (state === 1) {
Notification.success({
title: '成功',
message: '签字笔已插入',
showClose: false,
duration: 800
})
} else {
Notification.error({
title: '提示',
message: '签字笔已拔出',
showClose: false,
duration: 800
})
}
}
},
beginSign(text) {
const that = this
that.currentSignText = text
console.log(that.plugin)
if (this.plugin) {
console.log(123)
this.plugin.beginSign(function(state, args) {
})
}
// document.getElementById('img_sign_result').src = '';
},
clearSign() {
if (this.plugin) {
this.plugin.clearSign(function(state, args) {})
}
},
endSign() {
if (this.plugin) {
/* plugin.endSign(null);*/
this.plugin.endSign(function(state, args) {})
}
},
saveSignToBase64() {
if (this.plugin) {
// Get the plugin's signature image data.
this.plugin.saveSignToBase64(/* 615, 272*/0, 0, (state, args) => {
if (state) {
const img_base64_data = args[0]
const img_base64 = 'data:image/png;base64,' + img_base64_data
this.formListValue[this.currentSignText] = img_base64
if (this.formListValue[this.currentSignText] === emptySign) {
this.$message.error('签字未成功请重新签字')
}
this.destroyPlugin()
} else {
// debugPrint("saveSignToBase64 error,description:" + args[0]);
}
})
}
}
}
}

43
src/page-subspecialty/views/modules/formList/DrugInjection.vue

@ -88,12 +88,12 @@
<div class="flex j-b" style="margin-top: 20px">
<div class="flex a-c">
<span style="word-break: keep-all;font-weight: bold">患者签名</span>
<div style="margin-left:10px" @click="signClick('M')">
<span v-if="!minorPatientSignM">
<div style="margin-left:10px" @click="signClick('minorPatientSignM')">
<span v-if="!formListValue.minorPatientSignM">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="minorPatientSignM">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.minorPatientSignM">
</div>
</div>
<div style="margin-left: 100px">
@ -113,12 +113,12 @@
<div class="flex j-b">
<div class="flex a-c">
<div style="font-weight: bold">患者授权亲属签名</div>
<div style="margin-left:10px" @click="signClick('MM')">
<span v-if="!minorKinSignM">
<div style="margin-left:10px" @click="signClick('minorKinSignM')">
<span v-if="!formListValue.minorKinSignM">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="minorKinSignM">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.minorKinSignM">
</div>
<span>与患者关系</span>
<el-input v-model="confirmData.relation" style="width: 100px" />
@ -161,9 +161,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'DrugInjection',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -266,17 +268,13 @@ export default {
patientDate: new Date(),
kinDate: new Date(),
operateDate: new Date()
},
formListValue: {
minorPatientSignM: '',
minorKinSignM: ''
}
}
},
computed: {
minorPatientSignM() {
return this.$store.getters.minorPatientSignM
},
minorKinSignM() {
return this.$store.getters.minorKinSignM
}
},
watch: {
caseId(val) {
if (val) {
@ -287,11 +285,10 @@ export default {
created() {
this.orgin = JSON.parse(JSON.stringify(this.confirmData))
this.queryFormData()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
this.initPlugin(index)
},
handlePrint() {
this.printHidden = false
@ -299,12 +296,12 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSignM === emptySign || this.minorKinSignM === emptySign) {
if (this.formListValue.minorPatientSignM === emptySign || this.formListValue.minorKinSignM === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSignM
this.confirmData.familySign = this.minorKinSignM
this.confirmData.patientSign = this.formListValue.minorPatientSignM
this.confirmData.familySign = this.formListValue.minorKinSignM
const data = JSON.stringify(this.confirmData)
this.$emit('handleSaveTable', data)
},
@ -316,8 +313,8 @@ export default {
const detail = data.data.data
if (detail.jsonText) {
this.confirmData = JSON.parse(detail.jsonText)
this.$store.commit('minorPatientSignM', this.confirmData.patientSign)
this.$store.commit('minorKinSignM', this.confirmData.familySign)
this.formListValue.minorKinSignM = this.confirmData.familySign
this.formListValue.minorPatientSignM = this.confirmData.patientSign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.orgin))
const userData = JSON.parse(window.sessionStorage.getItem('qg-userData'))
@ -326,8 +323,8 @@ export default {
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.confirmData.patientId = this.patientDetail.patientId
this.$store.commit('minorPatientSignM', this.confirmData.patientSign)
this.$store.commit('minorKinSignM', this.confirmData.familySign)
this.formListValue.minorKinSignM = this.confirmData.familySign
this.formListValue.minorPatientSignM = this.confirmData.patientSign
}
})
},

30
src/page-subspecialty/views/modules/formList/InformedConsent.vue

@ -130,10 +130,10 @@
<div>
<div class="flex a-c">
<div>患者或直系亲属签名</div>
<div @click="signClick(11)">
<img v-if="!informPatientSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="informPatientSign" style="width: 80px;height: 40px;" :src="informPatientSign">
<el-input v-if="!informPatientSign&&!printHidden" style="width: 80px" />
<div @click="signClick('informPatientSign')">
<img v-if="!formListValue.informPatientSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.informPatientSign" style="width: 80px;height: 40px;" :src="formListValue.informPatientSign">
<el-input v-if="!formListValue.informPatientSign&&!printHidden" style="width: 80px" />
</div>
<div class="flex a-c">日期
<el-date-picker
@ -152,9 +152,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'InformedConsent',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -365,19 +367,14 @@ export default {
isSelected: false
}
],
formListValue: {
informPatientSign: ''
},
//
intraoperation: ['麻醉意外:需进行抢救或暂停手术', '出血:需要压迫止血,推迟或暂停手术', '其他无法预计的并发症', '术中可能会根据具体情况变更手术方式'],
postoperative: ['暂时性眼压升高', '损伤人工晶体', '角膜内皮损伤', '虹膜炎症反应', '玻璃体前界膜破裂', '视功能损伤', '渗出性视网膜脱离', '黄斑水肿', '脉络膜脱离', '虹膜(视网膜、脉络膜)出血', '其他']
}
},
computed: {
informPatientSign: {
get() {
return this.$store.getters.informPatientSign
},
set(val) {}
}
},
watch: {
caseId(val) {
if (val) {
@ -389,11 +386,10 @@ export default {
this.origin = JSON.parse(JSON.stringify(this.confirmData))
this.getInfoDetail()
this.queryProject()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
this.initPlugin(index)
},
getInfoDetail() {
this.$http.get('/mzbl/getMzblJgshzqtysInfo', { params: {
@ -411,7 +407,7 @@ export default {
const jgshAreaList = detail.jgshArea && detail.jgshArea.split('/') || []
this.handleDetail(bnzList, qgyList, ydbList, swmList, detail.coats, mzfsList, jgshList, jgshAreaList)
this.confirmData.other = detail.other || ''
this.$store.commit('informPatientSign', detail.patientSign)
this.formListValue.informPatientSign = detail.patientSign
if (!detail.jzNumber) {
//
this.confirmData.patientName = this.patientDetail.patientName
@ -579,7 +575,7 @@ export default {
},
//
handleSaveTable() {
if (this.informPatientSign === emptySign) {
if (this.formListValue.informPatientSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
@ -591,7 +587,7 @@ export default {
this.handleList()
this.handleNarcotism()
this.handleMode()
this.confirmData.patientSign = this.informPatientSign
this.confirmData.patientSign = this.formListValue.informPatientSign
this.confirmData.jzNumber = window.sessionStorage.getItem('jzNumber')
this.$http.post('/mzbl/saveMzblJgshzqtys', {
caseId: this.caseId,

43
src/page-subspecialty/views/modules/formList/InjectionTherapy.vue

@ -60,22 +60,22 @@
<div class="flex j-b" style="margin-top: 20px">
<div class="flex a-c">
<span style="word-break: keep-all;font-weight: bold">本人签名</span>
<div style="margin-left:10px" @click="signClick('M')">
<span v-if="!minorPatientSignM">
<div style="margin-left:10px" @click="signClick('injectionPatient')">
<span v-if="!formListValue.injectionPatient">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="minorPatientSignM">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.injectionPatient">
</div>
</div>
<div class="flex a-c">
<div style="font-weight: bold">或家属签名</div>
<div style="margin-left:10px" @click="signClick('MM')">
<span v-if="!minorKinSignM">
<div style="margin-left:10px" @click="signClick('injectionKin')">
<span v-if="!formListValue.injectionKin">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="minorKinSignM">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.injectionKin">
</div>
</div>
<div class="flex a-c" style="margin-left: 10px">
@ -98,9 +98,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'InjectionTherapy',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -149,17 +151,13 @@ export default {
familySign: '',
operator: '',
operateDate: new Date()
},
formListValue: {
injectionPatient: '',
injectionKin: ''
}
}
},
computed: {
minorPatientSignM() {
return this.$store.getters.minorPatientSignM
},
minorKinSignM() {
return this.$store.getters.minorKinSignM
}
},
watch: {
caseId(val) {
if (val) {
@ -170,11 +168,10 @@ export default {
created() {
this.orgin = JSON.parse(JSON.stringify(this.confirmData))
this.queryFormData()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
this.initPlugin(index)
},
handlePrint() {
this.printHidden = false
@ -182,12 +179,12 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSignM === emptySign || this.minorKinSignM === emptySign) {
if (this.formListValue.injectionPatient === emptySign || this.formListValue.injectionKin === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSignM
this.confirmData.familySign = this.minorKinSignM
this.confirmData.patientSign = this.formListValue.injectionPatient
this.confirmData.familySign = this.formListValue.injectionKin
const data = JSON.stringify(this.confirmData)
this.$emit('handleSaveTable', data)
},
@ -199,8 +196,8 @@ export default {
const detail = data.data.data
if (detail.jsonText) {
this.confirmData = JSON.parse(detail.jsonText)
this.$store.commit('minorPatientSignM', this.confirmData.patientSign)
this.$store.commit('minorKinSignM', this.confirmData.familySign)
this.formListValue.injectionPatient = this.confirmData.patientSign
this.formListValue.injectionKin = this.confirmData.familySign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.orgin))
const userData = JSON.parse(window.sessionStorage.getItem('qg-userData'))
@ -209,8 +206,8 @@ export default {
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.queryDiagnostic()
this.$store.commit('minorPatientSignM', this.confirmData.patientSign)
this.$store.commit('minorKinSignM', this.confirmData.familySign)
this.formListValue.injectionPatient = this.confirmData.patientSign
this.formListValue.injectionKin = this.confirmData.familySign
}
})
},

49
src/page-subspecialty/views/modules/formList/MinorOperation.vue

@ -99,10 +99,10 @@
<div class="flex j-b" style="margin-top: 20px">
<div class="flex a-c">
<span style="word-break: keep-all;font-weight: bold">患者签名</span>
<div style="margin-left:10px" @click="signClick('M')">
<img v-if="!minorPatientSignM&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="minorPatientSignM" style="width: 80px;height: 40px;" :src="minorPatientSignM">
<el-input v-if="!minorPatientSignM&&!printHidden" style="width: 80px" />
<div style="margin-left:10px" @click="signClick('minPatSign')">
<img v-if="!formListValue.minPatSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.minPatSign" style="width: 80px;height: 40px;" :src="formListValue.minPatSign">
<el-input v-if="!formListValue.minPatSign&&!printHidden" style="width: 80px" />
</div>
</div>
<div style="margin-left: 100px">
@ -122,10 +122,10 @@
<div class="flex j-b">
<div class="flex a-c">
<div style="font-weight: bold">患者授权亲属签名</div>
<div style="margin-left:10px" @click="signClick('MM')">
<img v-if="!minorKinSignM&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="minorKinSignM" style="width: 80px;height: 40px;" :src="minorKinSignM">
<el-input v-if="!minorKinSignM&&!printHidden" style="width: 80px" />
<div style="margin-left:10px" @click="signClick('minKinSign')">
<img v-if="!formListValue.minKinSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.minKinSign" style="width: 80px;height: 40px;" :src="formListValue.minKinSign">
<el-input v-if="!formListValue.minKinSign&&!printHidden" style="width: 80px" />
</div>
<span>与患者关系</span>
<el-input v-model="confirmData.relation" style="width: 100px" />
@ -168,9 +168,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'MinorOperation',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -272,17 +274,13 @@ export default {
patientDate: new Date(),
kinDate: new Date(),
operateDate: new Date()
},
formListValue: {
minPatSign: '',
minKinSign: ''
}
}
},
computed: {
minorPatientSignM() {
return this.$store.getters.minorPatientSignM
},
minorKinSignM() {
return this.$store.getters.minorKinSignM
}
},
watch: {
caseId(val) {
if (val) {
@ -293,11 +291,10 @@ export default {
created() {
this.orgin = JSON.parse(JSON.stringify(this.confirmData))
this.queryFormData()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin(text)
},
handlePrint() {
this.printHidden = false
@ -305,12 +302,12 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSignM === emptySign || this.minorKinSignM === emptySign) {
if (this.formListValue.minPatSign === emptySign || this.formListValue.minKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSignM
this.confirmData.familySign = this.minorKinSignM
this.confirmData.patientSign = this.formListValue.minPatSign
this.confirmData.familySign = this.formListValue.minKinSign
const data = JSON.stringify(this.confirmData)
this.$emit('handleSaveTable', data)
},
@ -322,8 +319,8 @@ export default {
const detail = data.data.data
if (detail.jsonText) {
this.confirmData = JSON.parse(detail.jsonText)
this.$store.commit('minorPatientSignM', this.confirmData.patientSign)
this.$store.commit('minorKinSignM', this.confirmData.familySign)
this.formListValue.minPatSign = this.confirmData.patientSign
this.formListValue.minKinSign = this.confirmData.familySign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.orgin))
const userData = JSON.parse(window.sessionStorage.getItem('qg-userData'))
@ -332,8 +329,8 @@ export default {
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.confirmData.patientId = this.patientDetail.patientId
this.$store.commit('minorPatientSignM', this.confirmData.patientSign)
this.$store.commit('minorKinSignM', this.confirmData.familySign)
this.formListValue.minPatSign = this.confirmData.patientSign
this.formListValue.minKinSign = this.confirmData.familySign
}
})
},

45
src/page-subspecialty/views/modules/formList/StyeForm.vue

@ -111,12 +111,12 @@
<div class="flex j-b" style="margin-top: 20px">
<div class="flex a-c">
<span style="word-break: keep-all;font-weight: bold">患者签名</span>
<div style="margin-left:10px" @click="signClick(17)">
<span v-if="!minorPatientSign">
<div style="margin-left:10px" @click="signClick('minorPatientSign')">
<span v-if="!formListValue.minorPatientSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="minorPatientSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.minorPatientSign">
</div>
</div>
<div style="margin-left: 100px">
@ -136,12 +136,12 @@
<div class="flex j-b">
<div class="flex a-c">
<div style="font-weight: bold">患者授权亲属签名</div>
<div style="margin-left:10px" @click="signClick(18)">
<span v-if="!minorKinSign">
<div style="margin-left:10px" @click="signClick('minorKinSign')">
<span v-if="!formListValue.minorKinSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="minorKinSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.minorKinSign">
</div>
<span>与患者关系</span>
<el-input v-model="confirmData.relation" style="width: 100px" />
@ -184,9 +184,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'StyeForm',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -239,6 +241,10 @@ export default {
},
printHidden: true,
orgin: '',
formListValue: {
minorPatientSign: '',
minorKinSign: ''
},
confirmData: {
patientName: '',
patientAge: '',
@ -275,14 +281,6 @@ export default {
}
}
},
computed: {
minorPatientSign() {
return this.$store.getters.minorPatientSign
},
minorKinSign() {
return this.$store.getters.minorKinSign
}
},
watch: {
caseId(val) {
if (val) {
@ -293,11 +291,10 @@ export default {
created() {
this.orgin = JSON.parse(JSON.stringify(this.confirmData))
this.queryFormData()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin(text)
},
queryOperations() {
this.$http.get('mzbl/getMlzZyzqtysProject').then(data => {
@ -317,12 +314,12 @@ export default {
},
//
handleSaveTable() {
if (this.minorPatientSign === emptySign || this.minorKinSign === emptySign) {
if (this.formListValue.minorPatientSign === emptySign || this.formListValue.minorKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.minorPatientSign
this.confirmData.familySign = this.minorKinSign
this.confirmData.patientSign = this.formListValue.minorPatientSign
this.confirmData.familySign = this.formListValue.minorKinSign
const data = JSON.stringify(this.confirmData)
this.$emit('handleSaveTable', data)
},
@ -335,8 +332,8 @@ export default {
const detail = data.data.data
if (detail.jsonText) {
this.confirmData = JSON.parse(detail.jsonText)
this.$store.commit('minorPatientSign', this.confirmData.patientSign)
this.$store.commit('minorKinSign', this.confirmData.familySign)
this.formListValue.minorPatientSign = this.confirmData.patientSign
this.formListValue.minorKinSign = this.confirmData.familySign
} else {
this.queryDiagnostic()
this.confirmData = JSON.parse(JSON.stringify(this.orgin))
@ -346,8 +343,8 @@ export default {
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.confirmData.patientId = this.patientDetail.patientId
this.$store.commit('minorPatientSign', this.confirmData.patientSign)
this.$store.commit('minorKinSign', this.confirmData.familySign)
this.formListValue.minorPatientSign = this.confirmData.patientSign
this.formListValue.minorKinSign = this.confirmData.familySign
}
})
},

27
src/page-subspecialty/views/modules/formList/childrenLacrimal.vue

@ -65,12 +65,12 @@
<div class="flex a-c">
<div style="margin-right: 296px;">
<span style="word-break: keep-all">患儿监护人签名</span>
<span style="margin-left:10px" @click="signClick(25)">
<span v-if="!childrenSign">
<span style="margin-left:10px" @click="signClick('childrenSign')">
<span v-if="!formListValue.childrenSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-right: 12px">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="childrenSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.childrenSign">
</span>
</div>
<div>
@ -111,9 +111,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'Lacrimal',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -178,14 +180,12 @@ export default {
operator: '',
operateDate: '',
operate2Date: ''
},
formListValue: {
childrenSign: ''
}
}
},
computed: {
childrenSign() {
return this.$store.getters.childrenSign
}
},
watch: {
caseId(val) {
if (val) {
@ -196,11 +196,10 @@ export default {
created() {
this.sourceData = JSON.parse(JSON.stringify(this.confirmData))
this.getformList()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
this.initPlugin(index)
},
setData() {
this.queryDiagnostic()
@ -228,14 +227,14 @@ export default {
if (res.data) {
if (res.data.jsonText) {
this.confirmData = JSON.parse(res.data.jsonText)
this.$store.commit('childrenSign', this.confirmData.patientSign)
this.formListValue.childrenSign = this.confirmData.patientSign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.sourceData))
this.confirmData.patientName = this.patientDetail.patientName
this.confirmData.patientAge = this.patientDetail.patientAge
this.confirmData.patientSex = this.patientDetail.patientSex
this.confirmData.patientId = this.patientDetail.patientId
this.$store.commit('childrenSign', '')
this.formListValue.childrenSign = ''
this.setData()
}
}
@ -249,11 +248,11 @@ export default {
},
//
async handleSaveTable() {
if (this.childrenSign === emptySign) {
if (this.formListValue.childrenSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.childrenSign
this.confirmData.patientSign = this.formListValue.childrenSign
const params = {
id: this.caseId,
flag: '8',

43
src/page-subspecialty/views/modules/formList/conjunctivalOperation.vue

@ -48,12 +48,12 @@
<div class="flex a-c">
<div style="margin-right: 296px;">
<span style="word-break: keep-all">患者签名</span>
<span style="margin-left:10px" @click="signClick(19)">
<span v-if="!conPatientSign">
<span style="margin-left:10px" @click="signClick('conPatientSign')">
<span v-if="!formListValue.conPatientSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-right: 12px">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="conPatientSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.conPatientSign">
</span>
</div>
<div>
@ -68,12 +68,12 @@
<div class="flex a-c">
<div>
<span>患者授权亲属签名</span>
<span style="margin-left:10px" @click="signClick(20)">
<span v-if="!conKinSign">
<span style="margin-left:10px" @click="signClick('conKinSign')">
<span v-if="!formListValue.conKinSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-right: 12px">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="conKinSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.conKinSign">
</span>
<span style="margin-left: 15px">与患者关系<el-input v-model="confirmData.relation" style="width: 150px" /></span>
</div>
@ -115,9 +115,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'ConjunctivalOperation',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -217,17 +219,13 @@ export default {
operateDate: '',
operate2Date: '',
operate3Date: ''
},
formListValue: {
conPatientSign: '',
conKinSign: ''
}
}
},
computed: {
conPatientSign() {
return this.$store.getters.conPatientSign
},
conKinSign() {
return this.$store.getters.conKinSign
}
},
watch: {
caseId(val) {
if (val) {
@ -238,11 +236,10 @@ export default {
created() {
this.sourceData = JSON.parse(JSON.stringify(this.confirmData))
this.getformList()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
this.initPlugin(index)
},
setData() {
this.queryDiagnostic()
@ -274,12 +271,12 @@ export default {
if (res.data) {
if (res.data.jsonText) {
this.confirmData = JSON.parse(res.data.jsonText)
this.$store.commit('conPatientSign', this.confirmData.patientSign)
this.$store.commit('conKinSign', this.confirmData.familySign)
this.formListValue.conPatientSign = this.confirmData.patientSign
this.formListValue.conKinSign = this.confirmData.familySign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.sourceData))
this.$store.commit('conPatientSign', '')
this.$store.commit('conKinSign', '')
this.formListValue.conPatientSign = ''
this.formListValue.conKinSign = ''
this.setData()
}
}
@ -293,12 +290,12 @@ export default {
},
//
async handleSaveTable() {
if (this.conPatientSign === emptySign || this.conKinSign === emptySign) {
if (this.formListValue.conPatientSign === emptySign || this.formListValue.conKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.conPatientSign
this.confirmData.familySign = this.conKinSign
this.confirmData.patientSign = this.formListValue.conPatientSign
this.confirmData.familySign = this.formListValue.conKinSign
const params = {
id: this.caseId,
flag: '8',

43
src/page-subspecialty/views/modules/formList/cornealForeign.vue

@ -76,12 +76,12 @@
<div class="flex a-c">
<div style="margin-right: 296px;">
<span style="word-break: keep-all">患者签名</span>
<span style="margin-left:10px" @click="signClick(21)">
<span v-if="!cornealPatientSign">
<span style="margin-left:10px" @click="signClick('cornealPatientSign')">
<span v-if="!formListValue.cornealPatientSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-right: 12px">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="cornealPatientSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.cornealPatientSign">
</span>
</div>
<div>
@ -96,12 +96,12 @@
<div class="flex a-c">
<div>
<span>患者授权亲属签名</span>
<span style="margin-left:10px" @click="signClick(22)">
<span v-if="!cornealKinSign">
<span style="margin-left:10px" @click="signClick('cornealKinSign')">
<span v-if="!formListValue.cornealKinSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="cornealKinSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.cornealKinSign">
</span>
<span style="margin-left: 15px">与患者关系<el-input v-model="confirmData.relation" style="width: 150px" /></span>
</div>
@ -143,9 +143,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'ConjunctivalOperation',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -200,6 +202,10 @@ export default {
printHidden: true,
formId: '',
sourceData: {},
formListValue: {
cornealPatientSign: '',
cornealKinSign: ''
},
confirmData: {
patientName: '',
patientAge: '',
@ -221,14 +227,6 @@ export default {
}
}
},
computed: {
cornealPatientSign() {
return this.$store.getters.cornealPatientSign
},
cornealKinSign() {
return this.$store.getters.cornealKinSign
}
},
watch: {
caseId(val) {
if (val) {
@ -239,11 +237,10 @@ export default {
created() {
this.sourceData = JSON.parse(JSON.stringify(this.confirmData))
this.getformList()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
this.initPlugin(index)
},
setData() {
const date = this.$moment().format('YYYY-MM-DD')
@ -267,12 +264,12 @@ export default {
if (res.data) {
if (res.data.jsonText) {
this.confirmData = JSON.parse(res.data.jsonText)
this.$store.commit('cornealPatientSign', this.confirmData.patientSign)
this.$store.commit('cornealKinSign', this.confirmData.familySign)
this.formListValue.cornealPatientSign = this.confirmData.patientSign
this.formListValue.cornealKinSign = this.confirmData.familySign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.sourceData))
this.$store.commit('cornealPatientSign', '')
this.$store.commit('cornealKinSign', '')
this.formListValue.cornealPatientSign = ''
this.formListValue.cornealKinSign = ''
this.setData()
}
}
@ -286,12 +283,12 @@ export default {
},
//
async handleSaveTable() {
if (this.cornealPatientSign === emptySign || this.cornealKinSign === emptySign) {
if (this.formListValue.cornealPatientSign === emptySign || this.formListValue.cornealKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.cornealPatientSign
this.confirmData.familySign = this.cornealKinSign
this.confirmData.patientSign = this.formListValue.cornealPatientSign
this.confirmData.familySign = this.formListValue.cornealKinSign
const params = {
id: this.caseId,
flag: '8',

4
src/page-subspecialty/views/modules/formList/laserSurgery.vue

@ -291,7 +291,6 @@ export default {
//
this.getConfirmDetail()
this.queryProject()
this.$store.commit('initPlugin')
},
methods: {
changeEyeType(value) {
@ -316,9 +315,6 @@ export default {
this.confirmData.diagnostic = data.data.data
})
},
signClick(index) {
this.$store.commit('beginSign', index)
},
editImg() {
this.editorShow = true
this.$nextTick(() => {

85
src/page-subspecialty/views/modules/formList/mraForm.vue

@ -60,18 +60,18 @@
<div>
<div class="flex">
患者签字:
<div style="margin-left: 10px" @click="signClick(12)">
<img v-if="!fundusDocSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="fundusDocSign" style="width: 80px;height: 40px;" :src="fundusDocSign">
<el-input v-if="!fundusDocSign&&!printHidden" style="width: 80px" />
<div style="margin-left: 10px" @click="signClick('fundusDocSign')">
<img v-if="!formListValue.fundusDocSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.fundusDocSign" style="width: 80px;height: 40px;" :src="formListValue.fundusDocSign">
<el-input v-if="!formListValue.fundusDocSign&&!printHidden" style="width: 80px" />
</div>
</div>
<div class="flex">
<span>或授权亲属签字(关系):</span>
<div style="margin-left: 10px" @click="signClick(13)">
<img v-if="!kinSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="kinSign" style="width: 80px;height: 40px;" :src="kinSign">
<el-input v-if="!kinSign&&printHidden" style="width: 80px" />
<div style="margin-left: 10px" @click="signClick('kinSign')">
<img v-if="!formListValue.kinSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.kinSign" style="width: 80px;height: 40px;" :src="formListValue.kinSign">
<el-input v-if="!formListValue.kinSign&&printHidden" style="width: 80px" />
</div>
<span style="margin-left: 80px">日期:</span>
<el-date-picker
@ -157,19 +157,19 @@
<div>检查前药物过敏试验情况:</div>
<div class="flex">
执行药敏试验者签字:
<div style="margin:0 10px" @click="signClick(14)">
<img v-if="!performerSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="performerSign" style="width: 80px;height: 40px;" :src="performerSign">
<el-input v-if="!performerSign&&!printHidden" style="width: 120px" />
<div style="margin:0 10px" @click="signClick('performerSign')">
<img v-if="!formListValue.performerSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.performerSign" style="width: 80px;height: 40px;" :src="formListValue.performerSign">
<el-input v-if="!formListValue.performerSign&&!printHidden" style="width: 120px" />
</div>
工号:<el-input v-model="formData.performerId" style="width: 240px;margin-left: 15px" />
</div>
<div class="flex">
核对药敏实验者签字:
<div style="margin:0 10px" @click="signClick(15)">
<img v-if="!checkerSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="checkerSign" style="width: 80px;height: 40px;" :src="checkerSign">
<el-input v-if="!checkerSign&&!printHidden" style="width: 80px" />
<div style="margin:0 10px" @click="signClick('checkerSign')">
<img v-if="!formListValue.checkerSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.checkerSign" style="width: 80px;height: 40px;" :src="formListValue.checkerSign">
<el-input v-if="!formListValue.checkerSign&&!printHidden" style="width: 80px" />
</div>
工号:<el-input v-model="formData.checkerId" style="width: 240px" />
</div>
@ -182,9 +182,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'MraForm',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -278,21 +280,13 @@ export default {
title: '造影报告的获取:一般是当日完成,如因病情复杂需专家会诊或需补充相关检查,结果无法当日完成,将另行通知患者取结果时间。'
}
]
}
},
computed: {
fundusDocSign() {
return this.$store.getters.fundusDocSign
},
kinSign() {
return this.$store.getters.kinSign
},
performerSign() {
return this.$store.getters.performerSign
},
checkerSign() {
return this.$store.getters.checkerSign
],
formListValue: {
fundusDocSign: '',
kinSign: '',
performerSign: '',
checkerSign: ''
}
}
},
watch: {
@ -308,7 +302,6 @@ export default {
}
},
created() {
this.$store.commit('initPlugin')
this.getOrderDetail()
},
methods: {
@ -317,10 +310,10 @@ export default {
this.handleSaveTable()
},
handleSaveTable() {
if (this.fundusDocSign === emptySign ||
this.kinSign === emptySign ||
this.performerSign === emptySign ||
this.checkerSign === emptySign
if (this.formListValue.fundusDocSign === emptySign ||
this.formListValue.kinSign === emptySign ||
this.formListValue.performerSign === emptySign ||
this.formListValue.checkerSign === emptySign
) {
this.$message.error('签字未成功请重新签字后再保存')
return
@ -329,10 +322,10 @@ export default {
const end = this.$moment(this.endTime).format('yyyy-MM-DD HH:mm')
this.formData.negativeTime = start + '~' + end
this.formData.jzNumber = window.sessionStorage.getItem('jzNumber') || this.$route.query.jzNumber || ''
this.formData.patientSign = this.fundusDocSign
this.formData.dependantSign = this.kinSign
this.formData.performerSign = this.performerSign
this.formData.checkerSign = this.checkerSign
this.formData.patientSign = this.formListValue.fundusDocSign
this.formData.dependantSign = this.formListValue.kinSign
this.formData.performerSign = this.formListValue.performerSign
this.formData.checkerSign = this.formListValue.checkerSign
console.log(this.formData)
this.$http.post('/mzbl/saveMzblYdxgzyzqtys', {
caseId: this.caseId,
@ -348,10 +341,10 @@ export default {
}}).then(data => {
const detail = data.data.data
this.formData = { ...detail }
this.$store.commit('fundusDocSign', detail.patientSign)
this.$store.commit('kinSign', detail.dependantSign)
this.$store.commit('performerSign', detail.performerSign)
this.$store.commit('checkerSign', detail.checkerSign)
this.formListValue.fundusDocSign = detail.patientSign
this.formListValue.kinSign = detail.dependantSign
this.formListValue.performerSign = detail.performerSign
this.formListValue.checkerSign = detail.checkerSign
if (this.formData.negativeTime) {
const range = this.formData.negativeTime.split('~')
this.startTime = range[0]
@ -370,8 +363,8 @@ export default {
}
})
},
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin((text))
},
formDelete() {
this.$confirmFun('确定删除吗?').then(() => {

45
src/page-subspecialty/views/modules/formList/puncture.vue

@ -52,12 +52,12 @@
<div class="flex a-c">
<div style="margin-right: 296px;">
<span style="word-break: keep-all">患者签名</span>
<span style="margin-left:10px" @click="signClick(23)">
<span v-if="!puncturePatientSign">
<span style="margin-left:10px" @click="signClick('puncturePatientSign')">
<span v-if="!formListValue.puncturePatientSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-right: 12px">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="puncturePatientSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.puncturePatientSign">
</span>
</div>
<div>
@ -73,12 +73,12 @@
<div class="flex a-c">
<div>
<span>患者授权亲属签名</span>
<span style="margin-left:10px" @click="signClick(24)">
<span v-if="!punctureKinSign">
<span style="margin-left:10px" @click="signClick('punctureKinSign')">
<span v-if="!formListValue.punctureKinSign">
<img v-if="printHidden" :src="require('@/assets/img/signature.png')" alt="">
<el-input v-else style="width: 80px" />
</span>
<img v-else style="width: 80px;height: 40px;" :src="punctureKinSign">
<img v-else style="width: 80px;height: 40px;" :src="formListValue.punctureKinSign">
</span>
<span style="margin-left: 15px">与患者关系<el-input v-model="confirmData.relation" style="width: 150px" /></span>
</div>
@ -120,9 +120,11 @@
<script>
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'Puncture',
mixins: [styeFormSign],
props: {
onlyRead: {
type: Boolean,
@ -213,17 +215,13 @@ export default {
operateDate: '',
operate2Date: '',
operate3Date: ''
},
formListValue: {
puncturePatientSign: '',
punctureKinSign: ''
}
}
},
computed: {
puncturePatientSign() {
return this.$store.getters.puncturePatientSign
},
punctureKinSign() {
return this.$store.getters.punctureKinSign
}
},
watch: {
caseId(val) {
if (val) {
@ -234,11 +232,10 @@ export default {
created() {
this.sourceData = JSON.parse(JSON.stringify(this.confirmData))
this.getformList()
this.$store.commit('initPlugin')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin(text)
},
setData() {
const date = this.$moment().format('YYYY-MM-DD')
@ -262,12 +259,12 @@ export default {
if (res.data) {
if (res.data.jsonText) {
this.confirmData = JSON.parse(res.data.jsonText)
this.$store.commit('puncturePatientSign', this.confirmData.patientSign)
this.$store.commit('punctureKinSign', this.confirmData.familySign)
this.formListValue.punctureKinSign = this.confirmData.familySign
this.formListValue.puncturePatientSign = this.confirmData.patientSign
} else {
this.confirmData = JSON.parse(JSON.stringify(this.sourceData))
this.$store.commit('puncturePatientSign', '')
this.$store.commit('punctureKinSign', '')
this.formListValue.punctureKinSign = ''
this.formListValue.puncturePatientSign = ''
this.setData()
}
}
@ -281,12 +278,12 @@ export default {
},
//
async handleSaveTable() {
if (this.puncturePatientSign === emptySign || this.punctureKinSign === emptySign) {
if (this.formListValue.puncturePatientSign === emptySign || this.formListValue.punctureKinSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
this.confirmData.patientSign = this.puncturePatientSign
this.confirmData.familySign = this.punctureKinSign
this.confirmData.patientSign = this.formListValue.puncturePatientSign
this.confirmData.familySign = this.formListValue.punctureKinSign
const params = {
id: this.caseId,
flag: '8',

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

@ -121,10 +121,10 @@
<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">
</div>
<div style="flex: 1;border-left: 1px solid #ccc;padding: 5px 10px;display: flex;align-items: center" @click="signClick(16)">
<div style="flex: 1;border-left: 1px solid #ccc;padding: 5px 10px;display: flex;align-items: center" @click="signClick('checkSign')">
<span style="word-break: keep-all">医生签字:</span>
<img v-if="!checkSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-left: 12px">
<img v-if="checkSign" style="width: 80px;height: 40px;" :src="checkSign">
<img v-if="!formListValue.checkSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="" style="margin-left: 12px">
<img v-if="formListValue.checkSign" style="width: 80px;height: 40px;" :src="formListValue.checkSign">
</div>
</div>
</td>
@ -139,11 +139,13 @@
<script>
import headTemplate from '@/components/head'
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
name: 'CornealReview',
components: {
headTemplate
},
mixins: [styeFormSign],
props: {
caseId: {
type: String,
@ -392,16 +394,9 @@ export default {
vaOd: '', //
vaOs: '', //
checkDate: '' //
}
}
},
computed: {
checkSign: {
get() {
return this.$store.getters.checkSign
},
set(val) {
formListValue: {
checkSign: ''
}
}
},
@ -411,12 +406,11 @@ export default {
}
},
mounted() {
this.$store.commit('initPlugin')
this.querySecondVisit()
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin(text)
},
async querySecondInfo() {
const params = {
@ -457,12 +451,12 @@ export default {
this.formData.mirrorOd = this.formData.mirrorOd ? this.formData.mirrorOd.split(',') : []
this.formData.mirrorOs = this.formData.mirrorOs ? this.formData.mirrorOs.split(',') : []
if (this.formData.isChange === 0) {
this.$store.commit('checkSign', '')
this.formListValue.checkSign = ''
await this.getPatientData()
await this.querySecondInfo()
this.setSign()
} else {
this.$store.commit('checkSign', res.data.checkSign)
this.formListValue.checkSign = res.data.checkSign
}
} else {
this.$message.error(res.msg)
@ -492,7 +486,7 @@ export default {
this.handleSaveTable()
},
async handleSaveTable() {
if (this.checkSign === emptySign) {
if (this.formListValue.checkSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
@ -501,7 +495,7 @@ export default {
this.formData.jmdxtOs = this.formData.jmdxtOs.length ? this.formData.jmdxtOs.join(',') : ''
this.formData.mirrorOd = this.formData.mirrorOd.length ? this.formData.mirrorOd.join(',') : ''
this.formData.mirrorOs = this.formData.mirrorOs.length ? this.formData.mirrorOs.join(',') : ''
this.formData.checkSign = this.checkSign ? this.checkSign : ''
this.formData.checkSign = this.formListValue.checkSign ? this.formListValue.checkSign : ''
const data = JSON.parse(JSON.stringify(this.formData))
const params = {
...data

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

@ -80,15 +80,15 @@
</div>
<div style="width: 100%;display: flex;justify-content: space-around;margin-top: 35px;">
<div>
<div @click="signClick(5)">
<div @click="signClick('optomSign2')">
<span>验配师</span>
<img v-if="!optomSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="optomSign2" style="width: 80px;height: 40px;" :src="optomSign2">
<img v-if="!formListValue.optomSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.optomSign2" style="width: 80px;height: 40px;" :src="formListValue.optomSign2">
</div>
<div @click="signClick(6)">
<div @click="signClick('doctorSign2')">
<span style="margin-left: 16px">医生</span>
<img v-if="!doctorSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="doctorSign2" style="width: 80px;height: 40px;" :src="doctorSign2">
<img v-if="!formListValue.doctorSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.doctorSign2" style="width: 80px;height: 40px;" :src="formListValue.doctorSign2">
</div>
<div style="margin-top: 3px">
<span style="margin-left: 16px">日期</span>
@ -102,15 +102,15 @@
</div>
</div>
<div>
<div @click="signClick(7)">
<div @click="signClick('patientSign2')">
<span style="margin-left: 113px">配戴者签字</span>
<img v-if="!patientSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="patientSign2" style="width: 80px;height: 40px;" :src="patientSign2">
<img v-if="!formListValue.patientSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.patientSign2" style="width: 80px;height: 40px;" :src="formListValue.patientSign2">
</div>
<div @click="signClick(8)">
<div @click="signClick('guardianSign2')">
<span>未满18周岁监护人签字</span>
<img v-if="!guardianSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="guardianSign2" style="width: 80px;height: 40px;" :src="guardianSign2">
<img v-if="!formListValue.guardianSign2&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.guardianSign2" style="width: 80px;height: 40px;" :src="formListValue.guardianSign2">
</div>
<div style="margin-top: 3px;margin-left: 145px">
<span style="margin-left: 16px">日期</span>
@ -133,10 +133,12 @@
<script>
import headTemplate from '@/components/head'
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
components: {
headTemplate
},
mixins: [styeFormSign],
props: {
patientId: {
type: String,
@ -153,54 +155,23 @@ export default {
}
},
doctorSignDate: null,
wearerOrGuardianSignDate: null
}
},
computed: {
optomSign2: {
get() {
return this.$store.getters.optomSign2
},
set(val) {
}
},
doctorSign2: {
get() {
return this.$store.getters.doctorSign2
},
set(val) {
}
},
patientSign2: {
get() {
return this.$store.getters.patientSign2
},
set(val) {
}
},
guardianSign2: {
get() {
return this.$store.getters.guardianSign2
},
set(val) {
wearerOrGuardianSignDate: null,
formListValue: {
optomSign2: '',
doctorSign2: '',
patientSign2: '',
guardianSign2: ''
}
}
},
created() {
},
mounted() {
this.getNoticeName()
this.$store.commit('initPlugin')
this.doctorSignDate = this.$moment().format('YYYY-MM-DD')
this.wearerOrGuardianSignDate = this.$moment().format('YYYY-MM-DD')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin(text)
},
handlePrint() {
this.printHidden = false
@ -218,34 +189,34 @@ export default {
if (res.data) {
this.doctorSignDate = res.data.doctorSignDate
this.wearerOrGuardianSignDate = res.data.wearerOrGuardianSignDate
this.$store.commit('optomSign2', res.data.ygsSign)
this.$store.commit('doctorSign2', res.data.doctorSign)
this.$store.commit('patientSign2', res.data.patientSign)
this.$store.commit('guardianSign2', res.data.guardianSign)
this.formListValue.guardianSign2 = res.data.guardianSign
this.formListValue.patientSign2 = res.data.patientSign
this.formListValue.doctorSign2 = res.data.doctorSign
this.formListValue.optomSign2 = res.data.ygsSign
} else {
this.$store.commit('optomSign2', '')
this.$store.commit('doctorSign2', '')
this.$store.commit('patientSign2', '')
this.$store.commit('guardianSign2', '')
this.formListValue.guardianSign2 = ''
this.formListValue.patientSign2 = ''
this.formListValue.doctorSign2 = ''
this.formListValue.optomSign2 = ''
}
}).catch(() => {})
},
//
saveEditNotice() {
if (this.doctorSign2 === emptySign ||
this.guardianSign2 === emptySign ||
this.patientSign2 === emptySign ||
this.optomSign2 === emptySign) {
if (this.formListValue.doctorSign2 === emptySign ||
this.formListValue.guardianSign2 === emptySign ||
this.formListValue.patientSign2 === emptySign ||
this.formListValue.optomSign2 === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
const params = {
noticeType: 1,
patientId: this.patientId,
doctorSign: this.doctorSign2,
guardianSign: this.guardianSign2,
patientSign: this.patientSign2,
ygsSign: this.optomSign2,
doctorSign: this.formListValue.doctorSign2,
guardianSign: this.formListValue.guardianSign2,
patientSign: this.formListValue.patientSign2,
ygsSign: this.formListValue.optomSign2,
doctorSignDate: this.doctorSignDate,
wearerOrGuardianSignDate: this.wearerOrGuardianSignDate
}

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

@ -68,15 +68,15 @@
</div>
<div style="width: 100%;display: flex;justify-content: space-around;margin-top: 35px;">
<div>
<div @click="signClick(1)">
<div @click="signClick('optomSign')">
<span>验配师</span>
<img v-if="!optomSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="optomSign" style="width: 80px;height: 40px;" :src="optomSign">
<img v-if="!formListValue.optomSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.optomSign" style="width: 80px;height: 40px;" :src="formListValue.optomSign">
</div>
<div @click="signClick(2)">
<div @click="signClick('doctorSign')">
<span style="margin-left: 16px">医生</span>
<img v-if="!doctorSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="doctorSign" style="width: 80px;height: 40px;" :src="doctorSign">
<img v-if="!formListValue.doctorSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.doctorSign" style="width: 80px;height: 40px;" :src="formListValue.doctorSign">
</div>
<div style="margin-top: 3px">
<span style="margin-left: 16px">日期</span>
@ -90,15 +90,15 @@
</div>
</div>
<div>
<div @click="signClick(3)">
<div @click="signClick('patientSign')">
<span style="margin-left: 113px">配戴者签字</span>
<img v-if="!patientSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="patientSign" style="width: 80px;height: 40px;" :src="patientSign">
<img v-if="!formListValue.patientSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.patientSign" style="width: 80px;height: 40px;" :src="formListValue.patientSign">
</div>
<div @click="signClick(4)">
<div @click="signClick('guardianSign')">
<span>未满18周岁监护人签字</span>
<img v-if="!guardianSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="guardianSign" style="width: 80px;height: 40px;" :src="guardianSign">
<img v-if="!formListValue.guardianSign&&printHidden" :src="require('@/assets/img/signature.png')" alt="">
<img v-if="formListValue.guardianSign" style="width: 80px;height: 40px;" :src="formListValue.guardianSign">
</div>
<div style="margin-top: 3px;margin-left: 145px">
<span style="margin-left: 16px">日期</span>
@ -121,10 +121,12 @@
<script>
import headTemplate from '@/components/head'
import emptySign from '@static/js/emptySign'
import styeFormSign from '@/mixins/styeFormSign'
export default {
components: {
headTemplate
},
mixins: [styeFormSign],
props: {
patientId: {
type: String,
@ -141,40 +143,12 @@ export default {
}
},
doctorSignDate: null,
wearerOrGuardianSignDate: null
}
},
computed: {
optomSign: {
get() {
return this.$store.getters.optomSign
},
set(val) {
}
},
doctorSign: {
get() {
return this.$store.getters.doctorSign
},
set(val) {
}
},
patientSign: {
get() {
return this.$store.getters.patientSign
},
set(val) {
}
},
guardianSign: {
get() {
return this.$store.getters.guardianSign
},
set(val) {
wearerOrGuardianSignDate: null,
formListValue: {
optomSign: '',
doctorSign: '',
patientSign: '',
guardianSign: ''
}
}
},
@ -182,13 +156,12 @@ export default {
},
mounted() {
this.getNoticeName()
this.$store.commit('initPlugin')
this.doctorSignDate = this.$moment().format('YYYY-MM-DD')
this.wearerOrGuardianSignDate = this.$moment().format('YYYY-MM-DD')
},
methods: {
signClick(index) {
this.$store.commit('beginSign', index)
signClick(text) {
this.initPlugin(text)
},
handlePrint() {
this.printHidden = false
@ -206,34 +179,34 @@ export default {
if (res.data) {
this.doctorSignDate = res.data.doctorSignDate
this.wearerOrGuardianSignDate = res.data.wearerOrGuardianSignDate
this.$store.commit('optomSign', res.data.ygsSign)
this.$store.commit('doctorSign', res.data.doctorSign)
this.$store.commit('patientSign', res.data.patientSign)
this.$store.commit('guardianSign', res.data.guardianSign)
this.formListValue.optomSign = res.data.ygsSign
this.formListValue.doctorSign = res.data.doctorSign
this.formListValue.patientSign = res.data.patientSign
this.formListValue.guardianSign = res.data.guardianSign
} else {
this.$store.commit('optomSign', '')
this.$store.commit('doctorSign', '')
this.$store.commit('patientSign', '')
this.$store.commit('guardianSign', '')
this.formListValue.optomSign = ''
this.formListValue.doctorSign = ''
this.formListValue.patientSign = ''
this.formListValue.guardianSign = ''
}
}).catch(() => {})
},
//
saveEditNotice() {
if (this.optomSign === emptySign ||
this.doctorSign === emptySign ||
this.patientSign === emptySign ||
this.guardianSign === emptySign) {
if (this.formListValue.optomSign === emptySign ||
this.formListValue.doctorSign === emptySign ||
this.formListValue.patientSign === emptySign ||
this.formListValue.guardianSign === emptySign) {
this.$message.error('签字未成功请重新签字后再保存')
return
}
const params = {
noticeType: 2,
patientId: this.patientId,
doctorSign: this.doctorSign,
guardianSign: this.guardianSign,
patientSign: this.patientSign,
ygsSign: this.optomSign,
doctorSign: this.formListValue.doctorSign,
guardianSign: this.formListValue.guardianSign,
patientSign: this.formListValue.patientSign,
ygsSign: this.formListValue.optomSign,
doctorSignDate: this.doctorSignDate,
wearerOrGuardianSignDate: this.wearerOrGuardianSignDate
}

Loading…
Cancel
Save