Browse Source

表单修改

x-emr
bianyaqi 2 years ago
parent
commit
f5f0bd0c50
  1. 2
      src/components/360View/medicalRecord/index.vue
  2. 5
      src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue

2
src/components/360View/medicalRecord/index.vue

@ -9,7 +9,7 @@
ref="leftFormList" ref="leftFormList"
:patient-id="patientId" :patient-id="patientId"
:is-search="isSearch" :is-search="isSearch"
:only-read="onlyRead || !isCreator"
:only-read="onlyRead"
:is-platform="isPlatform" :is-platform="isPlatform"
:form-list="formList" :form-list="formList"
:cur-index="curIndex" :cur-index="curIndex"

5
src/components/360View/medicalRecord/outPatientRecord/leftFormList.vue

@ -8,7 +8,7 @@
{{ item.name }} {{ item.name }}
</p> </p>
</div> </div>
<i v-if="index === curIndex && !onlyRead && item.name !== '门急诊电子病历'" style="margin-top: 28px;color: rgb(199,5,5)" class="el-icon-delete" @click.stop="deleteForm()" />
<i v-if="index === curIndex && !onlyRead && item.name !== '门急诊电子病历'&& !isCreate" style="margin-top: 28px;color: rgb(199,5,5)" class="el-icon-delete" @click.stop="deleteForm()" />
</div> </div>
<img v-if="!formList.length" src="@/assets/img/nodata.png" alt="" class="nodata"> <img v-if="!formList.length" src="@/assets/img/nodata.png" alt="" class="nodata">
<!-- <div class="button"><i class="el-icon-plus" /> 新建表单</div> --> <!-- <div class="button"><i class="el-icon-plus" /> 新建表单</div> -->
@ -54,6 +54,7 @@ export default {
return { return {
formType: '治疗', formType: '治疗',
defaultChecked: true, defaultChecked: true,
isCreate: true,
formTypeList: [ formTypeList: [
{ {
type: '治疗', type: '治疗',
@ -80,6 +81,8 @@ export default {
this.$emit('addRecord', name) this.$emit('addRecord', name)
}, },
handleForm(index, item) { handleForm(index, item) {
const user = JSON.parse(window.sessionStorage.getItem('qg-userData'))
this.isCreator = item.doctorCode === user.employeeId
this.$emit('handleForm', { index, item }) this.$emit('handleForm', { index, item })
}, },
deleteForm() { deleteForm() {

Loading…
Cancel
Save