|
|
@ -14,18 +14,18 @@ |
|
|
|
眼科激光手术治疗 |
|
|
|
</p> |
|
|
|
<!--患者信息--> |
|
|
|
<div v-if="formData.patient"> |
|
|
|
<div> |
|
|
|
<div class="flex"> |
|
|
|
<div class="flex a-c item">姓名:<el-input v-model="formData.patient.patientName" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">年龄:<el-input v-model="formData.patient.age" style="flex: 1" />岁</div> |
|
|
|
<div class="flex a-c item">性别:<el-input v-model="formData.patient.sex" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">病例号:<el-input v-model="formData.patient.patientId" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">姓名:<el-input v-model="formData.patientName" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">年龄:<el-input v-model="formData.patientAge" style="flex: 1" />岁</div> |
|
|
|
<div class="flex a-c item">性别:<el-input v-model="formData.patientSex" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">病例号:<el-input v-model="formData.patientId" style="flex: 1" /></div> |
|
|
|
</div> |
|
|
|
<div class="flex"> |
|
|
|
<div class="flex a-c">联系电话:<el-input v-model="formData.patient.phone" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">家庭住址:<el-input v-model="formData.patient.address" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">联系电话:<el-input v-model="formData.patientPhone" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">家庭住址:<el-input v-model="formData.patientAddress" style="flex: 1" /></div> |
|
|
|
</div> |
|
|
|
<div class="flex a-c item">诊断:<el-input v-model="formData.patient.diagnose" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c item">诊断:<el-input v-model="formData.patientDiagnose" style="flex: 1" /></div> |
|
|
|
</div> |
|
|
|
<!-- 治疗前--> |
|
|
|
<div class="subTitle">治疗前</div> |
|
|
@ -37,25 +37,25 @@ |
|
|
|
</tr> |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<tr v-if="formData.beforeTreat"> |
|
|
|
<tr> |
|
|
|
<td> |
|
|
|
<div class="flex a-c">{{ formData.beforeTreat.OD.eye.name }}:<el-input v-model="formData.beforeTreat.OD.eye.level" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">{{ formData.beforeTreat.OD.illness.name }}:<el-input v-model="formData.beforeTreat.OD.illness.desc" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">视力1:<el-input v-model="formData.btOdVision" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">疾病分期:<el-input v-model="formData.btOdIllness" style="flex: 1" /></div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div class="descImg" @click="editImg('OD')"> |
|
|
|
<div>示意图</div> |
|
|
|
<img v-if="formData.beforeTreat.OD.imgSrc" :src="formData.beforeTreat.OD.imgSrc"> |
|
|
|
<img v-if="formData.btOdImgSrc" :src="formData.btOdImgSrc"> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div class="flex a-c">{{ formData.beforeTreat.OS.eye.name }}:<el-input v-model="formData.beforeTreat.OS.eye.level" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">{{ formData.beforeTreat.OS.illness.name }}:<el-input v-model="formData.beforeTreat.OS.illness.desc" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">视力2:<el-input v-model="formData.btOsVision" style="flex: 1" /></div> |
|
|
|
<div class="flex a-c">疾病分期:<el-input v-model="formData.btOsIllness" style="flex: 1" /></div> |
|
|
|
</td> |
|
|
|
<td> |
|
|
|
<div class="descImg" @click="editImg('OS')"> |
|
|
|
<div>示意图</div> |
|
|
|
<img v-if="formData.beforeTreat.OS.imgSrc" :src="formData.beforeTreat.OS.imgSrc"> |
|
|
|
<img v-if="formData.btOsImgSrc" :src="formData.btOsImgSrc"> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
@ -134,39 +134,22 @@ export default { |
|
|
|
origin: '', |
|
|
|
// 患者信息 |
|
|
|
formData: { |
|
|
|
patient: { |
|
|
|
patientName: '', |
|
|
|
age: '', |
|
|
|
sex: '', |
|
|
|
patientAge: '', |
|
|
|
patientSex: '', |
|
|
|
patientId: '', |
|
|
|
phone: '', |
|
|
|
address: '', |
|
|
|
diagnose: '' |
|
|
|
}, |
|
|
|
beforeTreat: { |
|
|
|
OD: { |
|
|
|
eye: { |
|
|
|
name: '视力1', |
|
|
|
level: '' |
|
|
|
}, |
|
|
|
illness: { |
|
|
|
name: '疾病分期', |
|
|
|
desc: '' |
|
|
|
}, |
|
|
|
imgSrc: '' |
|
|
|
}, |
|
|
|
OS: { |
|
|
|
eye: { |
|
|
|
name: '视力2', |
|
|
|
level: '' |
|
|
|
}, |
|
|
|
illness: { |
|
|
|
name: '疾病分期', |
|
|
|
desc: '' |
|
|
|
}, |
|
|
|
imgSrc: '' |
|
|
|
} |
|
|
|
}, |
|
|
|
patientPhone: '', |
|
|
|
patientAddress: '', |
|
|
|
patientDiagnose: '', |
|
|
|
// od治疗前 |
|
|
|
btOdVision: '', |
|
|
|
btOdIllness: '', |
|
|
|
btOdImgSrc: '', |
|
|
|
// os治疗前 |
|
|
|
btOsVision: '', |
|
|
|
btOsIllness: '', |
|
|
|
btOsImgSrc: '', |
|
|
|
// 治疗后 |
|
|
|
treatData: [ |
|
|
|
{ |
|
|
|
OD: { |
|
|
@ -244,12 +227,12 @@ export default { |
|
|
|
created() { |
|
|
|
this.origin = JSON.parse(JSON.stringify(this.formData)) |
|
|
|
// 患者信息带入 |
|
|
|
this.formData.patient.patientName = this.patientDetail.patientName |
|
|
|
this.formData.patient.age = this.patientDetail.patientAge |
|
|
|
this.formData.patient.sex = this.patientDetail.patientSex |
|
|
|
this.formData.patient.patientId = this.patientDetail.patientId |
|
|
|
this.formData.patient.address = this.patientDetail.patientAddress |
|
|
|
this.formData.patient.phone = this.patientDetail.patientPhone |
|
|
|
this.formData.patientName = this.patientDetail.patientName |
|
|
|
this.formData.patientAge = this.patientDetail.patientAge |
|
|
|
this.formData.patientSex = this.patientDetail.patientSex |
|
|
|
this.formData.patientId = this.patientDetail.patientId |
|
|
|
this.formData.patientAddress = this.patientDetail.patientAddress |
|
|
|
this.formData.patientPhone = this.patientDetail.patientPhone |
|
|
|
if (this.jsonText) { |
|
|
|
this.formData = JSON.parse(this.jsonText) |
|
|
|
} |
|
|
@ -263,10 +246,10 @@ export default { |
|
|
|
fullImgBack(val) { |
|
|
|
switch (this.curType) { |
|
|
|
case 'OD': |
|
|
|
this.formData.beforeTreat.OD.imgSrc = val |
|
|
|
this.formData.btOdImgSrc = val |
|
|
|
break |
|
|
|
case 'OS': |
|
|
|
this.formData.beforeTreat.OS.imgSrc = val |
|
|
|
this.formData.btOsImgSrc = val |
|
|
|
break |
|
|
|
case 'treat-OD': |
|
|
|
this.formData.treatData[this.curIndex].OD.imgSrc = val |
|
|
@ -308,7 +291,7 @@ export default { |
|
|
|
text-align: center; |
|
|
|
font-size: 16px; |
|
|
|
font-weight: 500; |
|
|
|
margin-top: 30px; |
|
|
|
margin: 30px 0 10px 0; |
|
|
|
} |
|
|
|
.descImg{ |
|
|
|
font-size: 12px; |
|
|
|