|
|
@ -11,7 +11,7 @@ |
|
|
|
<img v-if="!formList.length" src="@/assets/img/nodata.png" alt="" class="nodata"> |
|
|
|
<!-- <div class="button"><i class="el-icon-plus" /> 新建表单</div> --> |
|
|
|
</div> |
|
|
|
<div class="content-left-bottom" v-if="isSearch === '3'"> |
|
|
|
<div v-if="isSearch === '3'" class="content-left-bottom"> |
|
|
|
<div class="commonForm-text"> |
|
|
|
<span>常用表单</span> |
|
|
|
<span class="line" /> |
|
|
@ -51,22 +51,41 @@ |
|
|
|
v-if="name === '双眼视功能检查报告单'" |
|
|
|
ref="eyesVis" |
|
|
|
:case-id="id" |
|
|
|
:only-read="onlyRead" |
|
|
|
:only-read="onlyRead || !isCreator" |
|
|
|
:is-platform="isPlatform" |
|
|
|
:patient-id="patientId" |
|
|
|
@del="deleteForm" |
|
|
|
/> |
|
|
|
<optometryForm v-if="name === '验光报告单'" ref="optome" :case-id="id" :is-platform="isPlatform" :only-read="onlyRead" :patient-id="patientId" :is-search="isSearch" @del="deleteForm" /> |
|
|
|
<optometryForm |
|
|
|
v-if="name === '验光报告单'" |
|
|
|
ref="optome" |
|
|
|
:case-id="id" |
|
|
|
:is-platform="isPlatform" |
|
|
|
:only-read="onlyRead || !isCreator" |
|
|
|
:patient-id="patientId" |
|
|
|
:is-search="isSearch" |
|
|
|
@del="deleteForm" |
|
|
|
/> |
|
|
|
<threeVision |
|
|
|
v-if="name === '三级视功能检查报告单'" |
|
|
|
ref="threeVis" |
|
|
|
:only-read="onlyRead" |
|
|
|
:only-read="onlyRead || !isCreator" |
|
|
|
:is-platform="isPlatform" |
|
|
|
:case-id="id" |
|
|
|
:patient-id="patientId" |
|
|
|
@del="deleteForm" |
|
|
|
/> |
|
|
|
<deveopmentFile |
|
|
|
v-if="name === '屈光发育档案'" |
|
|
|
ref="deveope" |
|
|
|
:is-platform="isPlatform" |
|
|
|
:case-id="id" |
|
|
|
:only-read="onlyRead || !isCreator" |
|
|
|
:patient-id="patientId" |
|
|
|
:is-search="isSearch" |
|
|
|
:form-content="deveopData" |
|
|
|
@del="deleteForm" |
|
|
|
/> |
|
|
|
<deveopmentFile v-if="name === '屈光发育档案'" ref="deveope" :is-platform="isPlatform" :case-id="id" :only-read="onlyRead" :patient-id="patientId" :is-search="isSearch" :form-content="deveopData" @del="deleteForm" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -109,6 +128,7 @@ export default { |
|
|
|
return { |
|
|
|
id: '', |
|
|
|
name: '', |
|
|
|
isCreator: true, |
|
|
|
isPlatform: true, |
|
|
|
defaultChecked: [], |
|
|
|
curIndex: 0, |
|
|
@ -125,6 +145,8 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
handleForm(index, item) { |
|
|
|
const user = JSON.parse(window.sessionStorage.getItem('qg-userData')) |
|
|
|
this.isCreator = item.doctorCode === user.employeeId |
|
|
|
// 点击自身不保存 |
|
|
|
if (this.curIndex === index) { |
|
|
|
return |
|
|
@ -216,8 +238,9 @@ export default { |
|
|
|
this.curIndex = 0 |
|
|
|
this.id = this.formList[0].id |
|
|
|
this.name = this.formList[0].name |
|
|
|
const item = this.formList[0] |
|
|
|
this.isPlatform = this.isSearch === this.formList[0].platform |
|
|
|
this.handleForm(this.curIndex, { name: this.name, id: this.id }) |
|
|
|
this.handleForm(this.curIndex, item) |
|
|
|
} else { |
|
|
|
this.id = '' |
|
|
|
this.name = '' |
|
|
|