操作时间:
@@ -188,11 +184,10 @@ export default {
jzNumber: '',
diagnostic: '',
idList: [],
- eyeType: '',
+ eyeType: 'OD',
// 治疗前
zlqSl: '',
zlqJbfq: '',
- operationDate: '',
operateSign: '',
operateDate: '',
jgzlCount: '',
@@ -212,14 +207,6 @@ export default {
}]
}
},
- computed: {
- operator: {
- get() {
- return this.$store.getters.operator
- },
- set(val) {}
- }
- },
watch: {
caseId(val) {
if (val) {
@@ -278,24 +265,24 @@ export default {
caseId: this.caseId
}}).then(data => {
const detail = data.data.data
- this.confirmData = { ...detail }
- 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.$store.commit('operator', detail.operateSign)
+ if (detail.jzNumber) {
+ this.confirmData = { ...detail }
+ } else {
+ 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()
+ }
+ const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
+ this.confirmData.operateSign = userData.signImgBase
})
},
- // 保存传值处理
- handleConfirmData() {
- },
// 保存
handleSaveTable() {
this.confirmData.jzNumber = window.localStorage.getItem('jzNumber')
- this.handleConfirmData()
- this.confirmData.operateSign = this.operator
this.$http.post('/mzbl/saveMzblJgshzl', {
caseId: this.caseId,
...this.confirmData
diff --git a/src/page-subspecialty/views/modules/formList/reportForm.vue b/src/page-subspecialty/views/modules/formList/reportForm.vue
index ec89493..a506591 100644
--- a/src/page-subspecialty/views/modules/formList/reportForm.vue
+++ b/src/page-subspecialty/views/modules/formList/reportForm.vue
@@ -45,7 +45,7 @@
- 操作者:
+ 操作者:
|
@@ -144,6 +144,8 @@ export default {
created() {
this.origin = JSON.parse(JSON.stringify(this.formData))
this.confirmData.patientName = this.patientDetail.patientName
+ const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
+ this.confirmData.operator = userData.signImgBase
this.getReportInfo()
},
methods: {