|
@ -1,12 +1,12 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="corneal"> |
|
|
<div class="corneal"> |
|
|
<head-template> |
|
|
<head-template> |
|
|
<el-button type="primary" size="small" @click="saveCheckData()">保存</el-button> |
|
|
|
|
|
<el-button v-print="'cornealPrint'" size="small">打印</el-button> |
|
|
|
|
|
|
|
|
<el-button type="primary" size="small" @click="handleSaveTable()">保存</el-button> |
|
|
|
|
|
<el-button v-print="'secondPrint'" size="small">打印</el-button> |
|
|
</head-template> |
|
|
</head-template> |
|
|
<div class="notice-content"> |
|
|
<div class="notice-content"> |
|
|
<div class="notice-box"> |
|
|
<div class="notice-box"> |
|
|
<div id="cornealPrint" class="notice_tip" style="page-break-after:always"> |
|
|
|
|
|
|
|
|
<div id="secondPrint" class="notice_tip" style="page-break-after:always"> |
|
|
<h2 style="text-align: center;margin-bottom: 32px;"> |
|
|
<h2 style="text-align: center;margin-bottom: 32px;"> |
|
|
角膜塑形镜复查单 |
|
|
角膜塑形镜复查单 |
|
|
</h2> |
|
|
</h2> |
|
@ -17,22 +17,19 @@ |
|
|
<div class="tdItem"> |
|
|
<div class="tdItem"> |
|
|
<span style="word-break: keep-all">检查日期</span> |
|
|
<span style="word-break: keep-all">检查日期</span> |
|
|
<el-date-picker |
|
|
<el-date-picker |
|
|
v-model="formData.patientCheckDate" |
|
|
|
|
|
|
|
|
v-model="formData.checkDate" |
|
|
type="date" |
|
|
type="date" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
<td colspan="2"><div class="tdItem">已戴镜时间 <el-input v-model="formData.patientWearTime" style="flex: 1" placeholder="" /></div></td> |
|
|
|
|
|
|
|
|
<td colspan="2"><div class="tdItem">已戴镜时间 <el-input v-model="formData.djTime" style="flex: 1" placeholder="" /></div></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="6"> |
|
|
<td colspan="6"> |
|
|
<div style="display: flex;flex-wrap: wrap"> |
|
|
<div style="display: flex;flex-wrap: wrap"> |
|
|
<el-select v-model="formData.check" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
<el-option v-for="(item,index) in cornealList " :key="index" :value="item.id" :label="item.name" /> |
|
|
|
|
|
|
|
|
<el-select v-model="formData.checkResult" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
<el-option v-for="(item,index) in cornealList " :key="item.id" :value="item.id" :label="item.name" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
<!-- <div v-for="(item,index) in formData.checkList" :key="index" class="checkItem" @click="item.isSelect=!item.isSelect">--> |
|
|
|
|
|
<!-- <input type="checkbox" :checked="item.isSelect">{{ item.name }}--> |
|
|
|
|
|
<!-- </div>--> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
@ -41,49 +38,59 @@ |
|
|
<td colspan="2">右眼</td> |
|
|
<td colspan="2">右眼</td> |
|
|
<td colspan="2">左眼</td> |
|
|
<td colspan="2">左眼</td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr v-for="(item,index) in formData.projectList" :key="`${index}_${index}`"> |
|
|
|
|
|
<template v-if="index<4"> |
|
|
|
|
|
<template v-if="item.name === '角膜地形图'"> |
|
|
|
|
|
<td colspan="2">{{ item.name }}</td> |
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
<td colspan="2">视力</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.vaOs" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.vaOd" /></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td colspan="2">眼压</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.iolOs" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.iolOd" /></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td colspan="2">角膜地形图</td> |
|
|
<td colspan="2"> |
|
|
<td colspan="2"> |
|
|
<el-select v-model="item.os" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
<el-option v-for="(item,index) in cornealList " :key="index" :value="item.id" :label="item.name" /> |
|
|
|
|
|
|
|
|
<el-select v-model="formData.jmdxtOs" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
<el-option v-for="(item,index) in cornealList " :key="item.id" :value="item.id" :label="item.name" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</td> |
|
|
</td> |
|
|
<td colspan="2"> |
|
|
<td colspan="2"> |
|
|
<el-select v-model="item.od" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
<el-option v-for="(item,index) in cornealList " :key="index" :value="item.id" :label="item.name" /> |
|
|
|
|
|
|
|
|
<el-select v-model="formData.jmdxtOd" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
<el-option v-for="(item,index) in cornealList " :key="item.id" :value="item.id" :label="item.name" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</td> |
|
|
</td> |
|
|
</template> |
|
|
|
|
|
<template v-else> |
|
|
|
|
|
<td colspan="2">{{ item.name }}</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="item.os" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="item.od" /></td> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td rowspan="4">{{ formData.projectList[4].name }}</td> |
|
|
|
|
|
|
|
|
<td rowspan="4">眼表</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>角膜</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.corneaOs" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.corneaOd" /></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr v-for="(item,idx) in formData.projectList[4].areaList" :key="`${item}_${idx}`"> |
|
|
|
|
|
<td>{{ item.name }}</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="item.os" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="item.od" /></td> |
|
|
|
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>结膜</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.conjunctivaOs" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.conjunctivaOd" /></td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="2">{{ formData.projectList[5].name }}</td> |
|
|
|
|
|
|
|
|
<td>其他</td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.otherOs" /></td> |
|
|
|
|
|
<td colspan="2"><el-input v-model="formData.otherOd" /></td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td colspan="2">镜片</td> |
|
|
<td colspan="2"> |
|
|
<td colspan="2"> |
|
|
<div style="display: flex;flex-wrap: wrap"> |
|
|
<div style="display: flex;flex-wrap: wrap"> |
|
|
<el-select v-model="formData.lensOD" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
|
|
|
<el-select v-model="formData.mirrorOs" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
<el-option v-for="(item,index) in lensList " :key="index" :value="item.id" :label="item.name" /> |
|
|
<el-option v-for="(item,index) in lensList " :key="index" :value="item.id" :label="item.name" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
|
<td colspan="2"> |
|
|
<td colspan="2"> |
|
|
<div style="display: flex;flex-wrap: wrap"> |
|
|
<div style="display: flex;flex-wrap: wrap"> |
|
|
<el-select v-model="formData.lensOS" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
|
|
|
|
|
|
<el-select v-model="formData.mirrorOd" placeholder="" clearable multiple filterable allow-create style="width: 100%"> |
|
|
<el-option v-for="(item,index) in lensList " :key="index" :value="item.id" :label="item.name" /> |
|
|
<el-option v-for="(item,index) in lensList " :key="index" :value="item.id" :label="item.name" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
@ -98,11 +105,16 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="6" style="padding: 0"> |
|
|
<td colspan="6" style="padding: 0"> |
|
|
<div style="display: flex"> |
|
|
<div style="display: flex"> |
|
|
<div style="flex: 1;padding: 5px 10px;display: flex;align-items: center"> |
|
|
|
|
|
<span style="word-break: keep-all">检查人签字</span> <el-input v-model="formData.patientSign" /> |
|
|
|
|
|
|
|
|
<div style="flex: 1;padding: 5px 10px;display: flex;align-items: center" @click="signClick(16)"> |
|
|
|
|
|
<span style="word-break: keep-all">检查人签字:</span> |
|
|
|
|
|
<img v-if="!formData.checkSign" :src="require('@/assets/img/signature.png')" alt="" style="margin-left: 12px"> |
|
|
|
|
|
<img v-else style="width: 80px;height: 40px;" :src="formData.checkSign"> |
|
|
|
|
|
<!-- <el-input v-model="formData.checkSign" />--> |
|
|
</div> |
|
|
</div> |
|
|
<div style="flex: 1;border-left: 1px solid #ccc;padding: 5px 10px;display: flex;align-items: center"> |
|
|
<div style="flex: 1;border-left: 1px solid #ccc;padding: 5px 10px;display: flex;align-items: center"> |
|
|
<span style="word-break: keep-all">医生签字</span><el-input v-model="formData.docSign" /> |
|
|
|
|
|
|
|
|
<span style="word-break: keep-all">医生签字:</span> |
|
|
|
|
|
<img v-if="formData.doctorSign" :src="formData.doctorSign" alt="" style="width: 80px;height: 50px;border-style:none;margin-left: 12px"> |
|
|
|
|
|
<!-- <el-input v-model="formData.doctorSign" />--> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</td> |
|
@ -121,188 +133,261 @@ export default { |
|
|
components: { |
|
|
components: { |
|
|
headTemplate |
|
|
headTemplate |
|
|
}, |
|
|
}, |
|
|
|
|
|
props: { |
|
|
|
|
|
caseId: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: '' |
|
|
|
|
|
}, |
|
|
|
|
|
patientId: { |
|
|
|
|
|
type: String, |
|
|
|
|
|
default: '' |
|
|
|
|
|
}, |
|
|
|
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
cornealList: [ |
|
|
cornealList: [ |
|
|
{ |
|
|
{ |
|
|
name: '居中', |
|
|
name: '居中', |
|
|
id: 1 |
|
|
|
|
|
|
|
|
id: '1' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '大致居中', |
|
|
name: '大致居中', |
|
|
id: 2 |
|
|
|
|
|
|
|
|
id: '2' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏上', |
|
|
name: '偏上', |
|
|
id: 3 |
|
|
|
|
|
|
|
|
id: '3' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏下', |
|
|
name: '偏下', |
|
|
id: 4 |
|
|
|
|
|
|
|
|
id: '4' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏左', |
|
|
name: '偏左', |
|
|
id: 5 |
|
|
|
|
|
|
|
|
id: '5' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏右', |
|
|
name: '偏右', |
|
|
id: 6 |
|
|
|
|
|
|
|
|
id: '6' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏颞上', |
|
|
name: '偏颞上', |
|
|
id: 7 |
|
|
|
|
|
|
|
|
id: '7' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏颞下', |
|
|
name: '偏颞下', |
|
|
id: 8 |
|
|
|
|
|
|
|
|
id: '8' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏鼻上', |
|
|
name: '偏鼻上', |
|
|
id: 9 |
|
|
|
|
|
|
|
|
id: '9' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '偏鼻下', |
|
|
name: '偏鼻下', |
|
|
id: 10 |
|
|
|
|
|
|
|
|
id: '10' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍上', |
|
|
name: '稍上', |
|
|
id: 11 |
|
|
|
|
|
|
|
|
id: '11' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍下', |
|
|
name: '稍下', |
|
|
id: 12 |
|
|
|
|
|
|
|
|
id: '12' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍左', |
|
|
name: '稍左', |
|
|
id: 13 |
|
|
|
|
|
|
|
|
id: '13' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍右', |
|
|
name: '稍右', |
|
|
id: 14 |
|
|
|
|
|
|
|
|
id: '14' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍颞上', |
|
|
name: '稍颞上', |
|
|
id: 15 |
|
|
|
|
|
|
|
|
id: '15' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍颞下', |
|
|
name: '稍颞下', |
|
|
id: 16 |
|
|
|
|
|
|
|
|
id: '16' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍鼻上', |
|
|
name: '稍鼻上', |
|
|
id: 17 |
|
|
|
|
|
|
|
|
id: '17' |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
name: '稍鼻下', |
|
|
name: '稍鼻下', |
|
|
id: 18 |
|
|
|
|
|
|
|
|
id: '18' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
checkList: [ |
|
|
checkList: [ |
|
|
{ |
|
|
{ |
|
|
name: '正常', |
|
|
name: '正常', |
|
|
id: 1 |
|
|
|
|
|
|
|
|
id: '1' |
|
|
}, { |
|
|
}, { |
|
|
name: '重影', |
|
|
name: '重影', |
|
|
id: 2 |
|
|
|
|
|
|
|
|
id: '2' |
|
|
}, { |
|
|
}, { |
|
|
name: '视力波动', |
|
|
name: '视力波动', |
|
|
id: 3 |
|
|
|
|
|
|
|
|
id: '3' |
|
|
}, { |
|
|
}, { |
|
|
name: '异物感', |
|
|
name: '异物感', |
|
|
id: 4 |
|
|
|
|
|
|
|
|
id: '4' |
|
|
}, { |
|
|
}, { |
|
|
name: '镜片难摘', |
|
|
name: '镜片难摘', |
|
|
id: 5 |
|
|
|
|
|
|
|
|
id: '5' |
|
|
}, { |
|
|
}, { |
|
|
name: '眼红', |
|
|
name: '眼红', |
|
|
id: 6 |
|
|
|
|
|
|
|
|
id: '6' |
|
|
}, { |
|
|
}, { |
|
|
name: '眼痛', |
|
|
name: '眼痛', |
|
|
id: 7 |
|
|
|
|
|
|
|
|
id: '7' |
|
|
}, { |
|
|
}, { |
|
|
name: '眩光', |
|
|
name: '眩光', |
|
|
id: 8 |
|
|
|
|
|
|
|
|
id: '8' |
|
|
}, { |
|
|
}, { |
|
|
name: '视力不佳', |
|
|
name: '视力不佳', |
|
|
id: 9 |
|
|
|
|
|
|
|
|
id: '9' |
|
|
}, { |
|
|
}, { |
|
|
name: '其他', |
|
|
name: '其他', |
|
|
id: 10 |
|
|
|
|
|
|
|
|
id: '10' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
lensList: [ |
|
|
lensList: [ |
|
|
{ |
|
|
{ |
|
|
name: '正常', |
|
|
name: '正常', |
|
|
id: 1 |
|
|
|
|
|
|
|
|
id: '1' |
|
|
}, { |
|
|
}, { |
|
|
name: '划痕', |
|
|
name: '划痕', |
|
|
id: 2 |
|
|
|
|
|
|
|
|
id: '2' |
|
|
}, { |
|
|
}, { |
|
|
name: '污染', |
|
|
name: '污染', |
|
|
id: 3 |
|
|
|
|
|
|
|
|
id: '3' |
|
|
}, { |
|
|
}, { |
|
|
name: '破损', |
|
|
name: '破损', |
|
|
id: 4 |
|
|
|
|
|
|
|
|
id: '4' |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
formData: { |
|
|
formData: { |
|
|
patientName: '', |
|
|
|
|
|
patientCheckDate: '', |
|
|
|
|
|
patientWearTime: '', |
|
|
|
|
|
check: '', |
|
|
|
|
|
projectList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
name: '视力', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '眼压', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '角膜地形图', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '眼轴', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '眼表', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '', |
|
|
|
|
|
areaList: [ |
|
|
|
|
|
{ |
|
|
|
|
|
name: '角膜', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '结膜', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '其他', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '' |
|
|
|
|
|
|
|
|
checkResult: [], // 检查结果,多个用逗号分割 |
|
|
|
|
|
checkSign: '', // 检查者签名 |
|
|
|
|
|
conjunctivaOd: '', // 右眼结膜 |
|
|
|
|
|
conjunctivaOs: '', // 左眼结膜 |
|
|
|
|
|
corneaOd: '', // 右眼角膜 |
|
|
|
|
|
corneaOs: '', // 左眼角膜 |
|
|
|
|
|
djTime: '', // 戴镜时间 |
|
|
|
|
|
doctorSign: '', // 医生签名 |
|
|
|
|
|
iolOd: '', // 右眼眼压 |
|
|
|
|
|
iolOs: '', // 左眼眼压 |
|
|
|
|
|
iopOd: '', // 右眼眼轴 |
|
|
|
|
|
iopOs: '', // 左眼眼轴 |
|
|
|
|
|
jmdxtOd: [], // 右眼角膜地形图 |
|
|
|
|
|
jmdxtOs: [], // 左眼角膜地形图 |
|
|
|
|
|
mirrorOd: [], // 右眼镜片状态 |
|
|
|
|
|
mirrorOs: [], // 左眼镜片状态 |
|
|
|
|
|
otherOd: '', // 右眼其他 |
|
|
|
|
|
otherOs: '', // 左眼其他 |
|
|
|
|
|
patientName: '', // 患者名称 |
|
|
|
|
|
patientAddress: '', // 地址 |
|
|
|
|
|
patientBirthday: '', // 生日 |
|
|
|
|
|
patientId: '', // 患者id |
|
|
|
|
|
patientPhone: '', // 手机 |
|
|
|
|
|
patientSex: '', // 性别 |
|
|
|
|
|
remark: '', // 备注 |
|
|
|
|
|
vaOd: '', // 右眼视力 |
|
|
|
|
|
vaOs: '', // 左眼视力 |
|
|
|
|
|
checkDate: '' // 检查日期 |
|
|
} |
|
|
} |
|
|
] |
|
|
|
|
|
}, { |
|
|
|
|
|
name: '镜片', |
|
|
|
|
|
os: '', |
|
|
|
|
|
od: '', |
|
|
|
|
|
} |
|
|
} |
|
|
], |
|
|
|
|
|
remark: '', |
|
|
|
|
|
patientSign: '', |
|
|
|
|
|
lensOD: '', |
|
|
|
|
|
lensOS: '', |
|
|
|
|
|
docSign: '' |
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
watch: { |
|
|
|
|
|
caseId(val) { |
|
|
|
|
|
this.querySecondVisit() |
|
|
} |
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
computed: { |
|
|
|
|
|
checkSign: { |
|
|
|
|
|
get() { |
|
|
|
|
|
return this.$store.getters.checkSign |
|
|
|
|
|
}, |
|
|
|
|
|
set(val) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
mounted() { |
|
|
|
|
|
this.$store.commit('initPlugin') |
|
|
|
|
|
this.querySecondVisit() |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
saveCheckData() { |
|
|
|
|
|
console.log(this.formData) |
|
|
|
|
|
|
|
|
signClick(index) { |
|
|
|
|
|
this.$store.commit('beginSign', index) |
|
|
|
|
|
}, |
|
|
|
|
|
setSign() { |
|
|
|
|
|
const userData = window.sessionStorage.getItem('qg-userData') |
|
|
|
|
|
const date = this.$moment().format('YYYY-MM-DD') |
|
|
|
|
|
this.formData.doctorSign = JSON.parse(userData).signImgBase |
|
|
|
|
|
this.formData.checkDate = date |
|
|
|
|
|
}, |
|
|
|
|
|
async querySecondVisit() { |
|
|
|
|
|
const params = { |
|
|
|
|
|
caseId: this.caseId |
|
|
|
|
|
} |
|
|
|
|
|
const { data: res } = await this.$http.get('/hospital/notice/getSecondDiagnosis', { |
|
|
|
|
|
params: params |
|
|
|
|
|
}) |
|
|
|
|
|
if (res.code === 0) { |
|
|
|
|
|
this.formData = res.data |
|
|
|
|
|
this.formData.checkResult = this.formData.checkResult ? this.formData.checkResult.split(',') : [] |
|
|
|
|
|
this.formData.jmdxtOd = this.formData.jmdxtOd ? this.formData.jmdxtOd.split(',') : [] |
|
|
|
|
|
this.formData.jmdxtOs = this.formData.jmdxtOs ? this.formData.jmdxtOs.split(',') : [] |
|
|
|
|
|
this.formData.mirrorOd = this.formData.mirrorOd ? this.formData.mirrorOd.split(',') : [] |
|
|
|
|
|
this.formData.mirrorOs = this.formData.mirrorOs ? this.formData.mirrorOs.split(',') : [] |
|
|
|
|
|
if (this.formData.isChange === 0) { |
|
|
|
|
|
this.$store.commit('checkSign', '') |
|
|
|
|
|
await this.getPatientData() |
|
|
|
|
|
this.setSign() |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$store.commit('checkSign', res.data.checkSign) |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
// 获取患者信息 |
|
|
|
|
|
async getPatientData() { |
|
|
|
|
|
const { data: res } = await this.$http.get( |
|
|
|
|
|
'/patient/view/getPatientData', |
|
|
|
|
|
{ |
|
|
|
|
|
params: { |
|
|
|
|
|
patientId: this.patientId |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
) |
|
|
|
|
|
if (res.code === 0) { |
|
|
|
|
|
this.formData.patientId = res.data.patientId |
|
|
|
|
|
this.formData.patientName = res.data.patientName |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
async handleSaveTable() { |
|
|
|
|
|
this.formData.checkResult = this.formData.checkResult.length ? this.formData.checkResult.join(',') : '' |
|
|
|
|
|
this.formData.jmdxtOd = this.formData.jmdxtOd.length ? this.formData.jmdxtOd.join(',') : '' |
|
|
|
|
|
this.formData.jmdxtOs = this.formData.jmdxtOs.length ? this.formData.jmdxtOs.join(',') : '' |
|
|
|
|
|
this.formData.mirrorOd = this.formData.mirrorOd.length ? this.formData.mirrorOd.join(',') : '' |
|
|
|
|
|
this.formData.mirrorOs = this.formData.mirrorOs.length ? this.formData.mirrorOs.join(',') : '' |
|
|
|
|
|
this.formData.checkSign = this.checkSign ? this.checkSign : '' |
|
|
|
|
|
const data = JSON.parse(JSON.stringify(this.formData)) |
|
|
|
|
|
const params = { |
|
|
|
|
|
...data |
|
|
|
|
|
} |
|
|
|
|
|
const { data: res } = await this.$http.post('/hospital/notice/saveOrUpdateSecondDiagnosis', params) |
|
|
|
|
|
if (res.code === 0) { |
|
|
|
|
|
await this.querySecondVisit() |
|
|
|
|
|
this.$message.success('保存成功') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message.error(res.msg) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -344,6 +429,9 @@ input{ |
|
|
word-break: keep-all; |
|
|
word-break: keep-all; |
|
|
margin-right: 20px; |
|
|
margin-right: 20px; |
|
|
} |
|
|
} |
|
|
|
|
|
::v-deep .el-icon-arrow-up{ |
|
|
|
|
|
display: none; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.corneal{ |
|
|
.corneal{ |
|
|