Browse Source

治疗表单修改

360view
bianyaqi 2 years ago
parent
commit
8a96b489c0
  1. 2
      src/page-subspecialty/views/modules/formList/InformedConsent.vue
  2. 24
      src/page-subspecialty/views/modules/formList/laserSurgery.vue

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

@ -165,6 +165,7 @@ export default {
}, },
data() { data() {
return { return {
origin: '',
confirmData: { confirmData: {
bnz: '', bnz: '',
coats: '', coats: '',
@ -368,6 +369,7 @@ export default {
} }
}, },
created() { created() {
this.origin = JSON.parse(JSON.stringify(this.confirmData))
// //
this.confirmData.patientName = this.patientDetail.patientName this.confirmData.patientName = this.patientDetail.patientName
this.confirmData.patientAge = this.patientDetail.patientAge this.confirmData.patientAge = this.patientDetail.patientAge

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

@ -286,8 +286,14 @@ export default {
} }
}, },
created() { created() {
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.confirmData.patientAddress = this.patientDetail.patientAddress
this.confirmData.patientPhone = this.patientDetail.patientPhone
this.confirmData.operateDate = new Date()
// //
this.origin = JSON.parse(JSON.stringify(this.confirmData))
this.getConfirmDetail() this.getConfirmDetail()
this.queryProject() this.queryProject()
this.$store.commit('initPlugin') this.$store.commit('initPlugin')
@ -365,19 +371,9 @@ export default {
caseId: this.caseId caseId: this.caseId
}}).then(data => { }}).then(data => {
const detail = data.data.data const detail = data.data.data
if (detail.jzNumber) {
this.confirmData = { ...detail }
} else {
this.confirmData = this.origin
this.queryDiagnostic()
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.confirmData.patientAddress = this.patientDetail.patientAddress
this.confirmData.patientPhone = this.patientDetail.patientPhone
this.confirmData.operateDate = new Date()
this.confirmData.jzNumber = ''
this.confirmData = { ...detail }
this.queryDiagnostic()
if (!detail.jzNumber) {
if (this.confirmData.eyeType === 'OD') { if (this.confirmData.eyeType === 'OD') {
this.confirmData.jgzlSyt = odOrOs.od this.confirmData.jgzlSyt = odOrOs.od
} else { } else {

Loading…
Cancel
Save