From f5f0bd0c506120c1cf8f5dd8c9d80cc960be93f3 Mon Sep 17 00:00:00 2001
From: bianyaqi
Date: Fri, 4 Aug 2023 14:59:32 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/360View/medicalRecord/index.vue | 2 +-
.../360View/medicalRecord/outPatientRecord/leftFormList.vue | 5 ++++-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/360View/medicalRecord/index.vue b/src/components/360View/medicalRecord/index.vue
index 4879674..8e2a810 100644
--- a/src/components/360View/medicalRecord/index.vue
+++ b/src/components/360View/medicalRecord/index.vue
@@ -9,7 +9,7 @@
ref="leftFormList"
:patient-id="patientId"
:is-search="isSearch"
- :only-read="onlyRead || !isCreator"
+ :only-read="onlyRead"
:is-platform="isPlatform"
:form-list="formList"
:cur-index="curIndex"
diff --git a/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue b/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue
index 36ee660..ae4b878 100644
--- a/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue
+++ b/src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue
@@ -8,7 +8,7 @@
{{ item.name }}
-
+
@@ -54,6 +54,7 @@ export default {
return {
formType: '治疗',
defaultChecked: true,
+ isCreate: true,
formTypeList: [
{
type: '治疗',
@@ -80,6 +81,8 @@ export default {
this.$emit('addRecord', name)
},
handleForm(index, item) {
+ const user = JSON.parse(window.sessionStorage.getItem('qg-userData'))
+ this.isCreator = item.doctorCode === user.employeeId
this.$emit('handleForm', { index, item })
},
deleteForm() {