You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

748 lines
25 KiB

2 years ago
<template>
<div id="operation-record" style=" background: #fff; padding: 10px 20px 50px 20px;page-break-after:always">
2 years ago
<div v-if="!onlyRead" class="btnBox">
2 years ago
<el-button v-print="'#eyesFunc'" size="small">打印</el-button>
<el-button type="primary" size="small" @click="handleSaveTable">保存</el-button>
<el-button type="danger" size="small" @click="handleDelete">删除</el-button>
</div>
2 years ago
<div id="eyesFunc" style="width: 840px;padding-right: 8px" class="printBox">
<div class="flex j-c">
<img width="450" src="@/assets/img/xianganlogo.png">
</div>
2 years ago
<p style="color:#000000;font-size:32px;margin:16px 0;text-align:center;">
2 years ago
双眼视功能检查报告单
</p>
<div style="display: flex;justify-content: space-around">
<span class="bold">登记号<el-input v-model="formData.patientId" style="width: 120px" size="small" clearable placeholder="" /></span>
<span class="bold">姓名<el-input v-model="formData.patientName" style="width: 120px" size="small" clearable placeholder="" /></span>
<span class="bold">性别<el-input v-model="formData.patientSex" style="width: 120px" size="small" clearable placeholder="" /></span>
<span class="bold">年龄<el-input v-model="formData.patientAge" style="width: 120px" size="small" clearable placeholder="" /></span>
2 years ago
</div>
<div class="operation-record-table eyesTable">
2 years ago
<el-table :data="tableData" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px">
<el-table-column label="" width="" align="center" :resizable="false">
<template slot-scope="scope">
<div v-if="scope.row.name == 1">
<div class="width-180 center">
<el-input v-model="formData.qgztOs" placeholder="">
2 years ago
<template slot="prepend">OS:</template>
</el-input>
2 years ago
</div>
</div>
<div v-else-if="scope.row.name == 'FV'">
<div class="width-180 center">
<el-input v-model="formData.fvYuanBi" placeholder="">
2 years ago
<template slot="prepend">远BO:</template>
</el-input>
2 years ago
</div>
</div>
<div v-else-if="scope.row.name == '建议'">
<div class="width-180" style="text-align: left">
<el-input v-model="formData.jianYi" placeholder="" style="width: 640px">
2 years ago
<template slot="prepend">建议:</template>
</el-input>
2 years ago
</div>
</div>
<div v-else-if="scope.row.name == '签名'" style="display: flex;justify-content: space-between">
<div class="width-180" style="text-align: left">
2 years ago
<span style="display: inline-block;margin-top: 16px">视光师:</span>
<img v-if="formData.ygsSign" :src="formData.ygsSign" alt="" style="width: 80px;height: 50px;border-style:none;">
2 years ago
</div>
2 years ago
<div class="width-180" style="text-align: left;margin-top: 12px">
<el-input v-model="formData.ysSign" placeholder="">
2 years ago
<template slot="prepend">医师:</template>
</el-input>
2 years ago
</div>
2 years ago
<div class="width-180" style="text-align: left;margin-top: 12px">
2 years ago
日期<el-date-picker
v-model="formData.riQi"
2 years ago
type="date"
placeholder="选择日期"
/>
</div>
</div>
<p v-else>{{ scope.row.name }}</p>
</template>
</el-table-column>
<el-table-column label="" width="" :resizable="false" prop="type">
<template slot-scope="scope">
<div v-if="scope.row.name == '1'">
<div class="width-180 center">
<el-input v-model="formData.qgztOdVa" placeholder="">
2 years ago
<template slot="prepend">VA:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '屈光状态'">
<div class="width-180 center">
<el-input v-model="formData.qgztOd" placeholder="">
2 years ago
<template slot="prepend">OD:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '交替遮盖试验(CT)'">
<div class="width-180 center">
2 years ago
<p>
<el-input v-model="formData.ctYuan" placeholder="">
2 years ago
<template slot="prepend">:</template>
</el-input>
</p>
<p>
<el-input v-model="formData.jtzgsyFront" placeholder="">
2 years ago
<template slot="prepend">:</template>
</el-input>
</p>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '集合近点(NPC)'">
<div class="width-180 center">
<el-input v-model="formData.npcPld" placeholder="">
2 years ago
<template slot="prepend">破裂点:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == 'Worth-4-dot'">
<div class="width-180 center">
<el-input v-model="formData.worth1" placeholder="" style="width: 100px" />
2 years ago
@D(
<el-input v-model="formData.worth2" placeholder="" style="width: 100px" />
2 years ago
)
</div>
</div>
<div v-if="scope.row.name == '立体视(stereo)'">
<div class="width-180 center">
<el-input v-model="formData.stereoRdd" placeholder="">
2 years ago
<template slot="prepend">RDD():</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '眼位'">
<div class="width-180 center">
<el-input v-model="formData.ywFar" placeholder="">
2 years ago
<template slot="prepend">:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '梯度性AC/A'">
<div class="width-180 center">
<el-input v-model="formData.aca1" placeholder="" />
2 years ago
</div>
</div>
<div v-if="scope.row.name == '融像性聚散(FV)'">
<div class="width-180 center">
<el-input v-model="formData.fvJinBi" placeholder="">
2 years ago
<template slot="prepend">远BI:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == 'FV'">
<div class="width-180 center">
<el-input v-model="formData.fvYuanBo" placeholder="">
2 years ago
<template slot="prepend">近BO:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '相对调节(RA)'">
<div class="width-180 center">
<el-input v-model="formData.raNar" placeholder="">
2 years ago
<template slot="prepend">NRA:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '调节幅度(AMP)'">
<div class="width-180 center">
<div>
<el-input v-model="formData.ampOd" placeholder="">
2 years ago
<template slot="prepend">OD:</template>
</el-input>
2 years ago
</div>
<el-input v-model="formData.ampOs" placeholder="">
2 years ago
<template slot="prepend">OS:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '调节灵活度(AF)'">
<div class="width-180 center">
<div>
<el-input v-model="formData.afOd" placeholder="">
2 years ago
<template slot="prepend">OD:</template>
</el-input>
2 years ago
</div>
<el-input v-model="formData.afOs" placeholder="">
2 years ago
<template slot="prepend">OS:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '调节反应(FCC)'">
<div class="width-180 center">
<div>
<el-input v-model="formData.fccOd" placeholder="">
2 years ago
<template slot="prepend">OD:</template>
</el-input>
2 years ago
</div>
<el-input v-model="formData.fccOs" placeholder="">
2 years ago
<template slot="prepend">OS:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '初步诊断'">
2 years ago
<div>
<div style="display:flex;margin-bottom: 8px">
<div class="check" style="margin-left: 0" @click="formData.cbzdCheck=!formData.cbzdCheck">
<input type="checkbox" :checked="formData.cbzdCheck">正常
2 years ago
</div>
<div class="check" style="margin-left: 16px" @click="formData.cbzdCheck=!formData.cbzdCheck">
<input type="checkbox" :checked="!formData.cbzdCheck">异常
</div>
2 years ago
</div>
<div v-if="!formData.cbzdCheck">
2 years ago
<div v-if="scope.row.a.length" style="display: flex">
<div style="width: 200px;">聚散功能异常</div>
<div style="width: 100%">
<el-select v-model="formData.cbzdJsgnyc" multiple placeholder="请选择" style="width: 100%">
2 years ago
<el-option
v-for="item in scope.row.a"
:key="item.id"
:label="item.name"
:value="item.name"
/>
</el-select>
</div>
</div>
2 years ago
<div style="display: flex">
<div style="width: 160px;">调节功能异常</div>
<div style="width: 100%">
<el-select v-model="formData.cbzdTjgnyc" multiple placeholder="请选择" style="width: 100%">
2 years ago
<el-option
v-for="item in scope.row.b"
:key="item.id"
:label="item.name"
:value="item.name"
/>
</el-select>
</div>
</div>
2 years ago
<div style="display: flex">
<span style="width: 160px;">斜视</span>
<div style="width: 100%">
<el-select v-model="formData.cbzdXs" multiple placeholder="请选择" style="width: 100%">
2 years ago
<el-option
v-for="item in scope.row.c"
:key="item.id"
:label="item.name"
:value="item.name"
/>
</el-select>
</div>
</div>
2 years ago
</div>
</div>
</div>
</template>
</el-table-column>
<el-table-column label="" width="" :resizable="false">
<template slot-scope="scope">
<div v-if="scope.row.name == '屈光状态'">
<div class="width-180 center">
<el-input v-model="formData.qgztOsVa" placeholder="">
2 years ago
<template slot="prepend">VA:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '交替遮盖试验(CT)'">
<div class="width-180 center">
<el-input v-model="formData.ctYqyd" placeholder="">
2 years ago
<template slot="prepend">眼球运动:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '集合近点(NPC)'">
<div class="width-180 center">
<el-input v-model="formData.npcHfd" placeholder="">
2 years ago
<template slot="prepend">恢复点:</template>
</el-input>
2 years ago
</div>
</div>
2 years ago
<div v-if="scope.row.name == 'Worth-4-dot'">
<div class="width-180 center">
<!-- <el-input v-model="scope.row.b" placeholder="">-->
<!-- <template slot="prepend">:</template>-->
<!-- </el-input>-->
<el-input v-model="formData.worth3" placeholder="" style="width: 100px" />
2 years ago
@N(
<el-input v-model="formData.worth4" placeholder="" style="width: 100px" />
2 years ago
)
</div>
</div>
2 years ago
<div v-if="scope.row.name == '立体视(stereo)'">
<div class="width-180 center">
<el-input v-model="formData.stereoTno" placeholder="">
2 years ago
<template slot="prepend">TNO():</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '眼位'">
<div class="width-180 center">
<el-input v-model="formData.ywJin" placeholder="">
2 years ago
<template slot="prepend">:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '梯度性AC/A'">
<div class="width-180 center">
<el-input v-model="formData.aca2" placeholder="">
2 years ago
<template slot="prepend">计算性AC/A:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '融像性聚散(FV)'">
<div class="width-180 center">
<el-input v-model="formData.fvJinBo" placeholder="">
2 years ago
<template slot="prepend">近BI:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '相对调节(RA)'">
<div class="width-180 center">
<el-input v-model="formData.raPra" placeholder="">
2 years ago
<template slot="prepend">PRA:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '调节幅度(AMP)'">
<div class="width-180 center">
<el-input v-model="formData.ampOu" placeholder="">
2 years ago
<template slot="prepend">OU:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '调节灵活度(AF)'">
<div class="width-180 center">
<el-input v-model="formData.afOu" placeholder="">
2 years ago
<template slot="prepend">OU:</template>
</el-input>
2 years ago
</div>
</div>
<div v-if="scope.row.name == '调节反应(FCC)'">
<div class="width-180 center">
<el-input v-model="formData.fccOu" placeholder="">
2 years ago
<template slot="prepend">OU:</template>
</el-input>
2 years ago
</div>
</div>
</template>
</el-table-column>
</el-table>
</div>
</div>
</div>
</template>
<script>
export default {
props: {
2 years ago
patientId: {
type: String,
default: ''
},
2 years ago
onlyRead: {
type: Boolean,
default: false
},
caseId: {
type: String,
default: ''
2 years ago
}
},
data() {
return {
formData: {
2 years ago
patientId: '',
patientName: '',
patientSex: '',
patientAge: '',
// 屈光状态
qgztOs: '',
qgztOd: '',
qgztOsVa: '',
qgztOdVa: '',
// 交替遮盖实验
ctYuan: '',
jtzgsyFront: '',
ctYqyd: '',
// 集合近点
npcPld: '',
npcHfd: '',
// worth-4-dot
worth1: '',
worth2: '',
worth3: '',
worth4: '',
// 立体视
stereoRdd: '',
stereoTno: '',
// 眼位
ywYuan: '',
ywJin: '',
// 梯度性AC/A
aca1: '',
aca2: '',
// 融像性聚散
fvJinBi: '',
fvJinBo: '',
fvYuanBi: '',
fvYuanBo: '',
// 相对调节
raNar: '',
raPra: '',
// 调节幅度
ampOd: '',
ampOs: '',
ampOu: '',
// 调节灵活度
afOd: '',
afOs: '',
afOu: '',
// 调节反应
fccOd: '',
fccOs: '',
fccOu: '',
// 初步诊断
cbzdCheck: true,
cbzdJsgnyc: [],
cbzdTjgnyc: [],
cbzdXs: [],
// 建议
jianYi: '',
// 签名
ygsSign: '',
ysSign: '',
riQi: ''
2 years ago
},
tableData: [
{
name: '屈光状态',
type: ''
}, {
name: '1',
type: ''
}, {
name: '交替遮盖试验(CT)',
type: ''
}, {
name: '集合近点(NPC)',
a: '',
b: '',
type: ''
}, {
name: 'Worth-4-dot',
a: '',
b: '',
2 years ago
c: '',
d: '',
2 years ago
type: ''
}, {
name: '立体视(stereo)',
a: '',
b: ''
}, {
name: '眼位',
a: '',
b: ''
}, {
name: '梯度性AC/A',
a: '',
b: ''
}, {
name: '融像性聚散(FV)',
a: '',
b: ''
}, {
name: 'FV',
a: '',
b: '',
type: ''
}, {
name: '相对调节(RA)',
a: '',
2 years ago
b: ''
2 years ago
}, {
name: '调节幅度(AMP)',
a: '',
b: '',
c: ''
}, {
name: '调节灵活度(AF)',
a: '',
b: '',
c: ''
}, {
name: '调节反应(FCC)',
a: '',
b: '',
c: ''
}, {
name: '初步诊断',
a: [
{
name: '集合不足',
id: '1'
}, {
name: '集合过度',
id: '2'
}, {
name: '散开不足',
id: '3'
}, {
name: '散开过度',
id: '4'
}, {
name: '内隐科',
id: '5'
}, {
name: '外隐科',
id: '6'
}, {
name: '假性集合不足',
id: '7'
}, {
name: '融像性聚散功能异常',
id: '8'
}
],
b: [
{
name: '调节灵敏度下降',
id: '1'
}, {
name: '调节不能持久',
id: '2'
}, {
name: '调节不足',
id: '3'
}, {
name: '调节过度',
id: '4'
}, {
name: '调节麻痹',
id: '5'
}
],
c: [
{
name: '内斜视',
id: '1'
}, {
name: '外斜视',
id: '2'
}, {
name: '间歇性外斜视',
id: '3'
}, {
name: '垂直斜',
id: '4'
}
]
2 years ago
}, {
name: '建议',
value: ''
}, {
name: '签名',
a: '',
b: '',
c: ''
}]
}
},
watch: {
caseId(val) {
if (val) {
this.getSysgnjc()
}
}
2 years ago
},
mounted() {
this.getPatientData()
this.getSysgnjc()
2 years ago
},
methods: {
// 获取签名
2 years ago
setSign() {
const userData = JSON.parse(window.localStorage.getItem('qg-userData'))
const date = this.$moment().format('YYYY-MM-DD')
const mzName = window.localStorage.getItem('mzDoctorName')
this.formData.ygsSign = userData.signImgBase
this.formData.ysSign = mzName
this.formData.riQi = date
2 years ago
},
getSysgnjc() {
this.$http.get('/sysgnjc/getSysgnjc', { params: {
caseId: this.caseId,
patientId: this.patientId
}}).then(data => {
const form = data.data.data
form.cbzdCheck = form.cbzdCheck ? JSON.parse(form.cbzdCheck) : true
form.cbzdJsgnyc = form.cbzdJsgnyc ? form.cbzdJsgnyc.split(',') : []
form.cbzdTjgnyc = form.cbzdTjgnyc ? form.cbzdTjgnyc.split(',') : []
form.cbzdXs = form.cbzdXs ? form.cbzdXs.split(',') : []
this.formData = form
this.setSign()
})
2 years ago
},
// 获取患者信息
2 years ago
async getPatientData() {
const { data: res } = await this.$http.get(
'/patient/view/getPatientData',
{
params: {
patientId: this.patientId
2 years ago
}
}
2 years ago
)
if (res.code === 0) {
this.formData.patientId = res.data.patientId
this.formData.patientAge = res.data.patientAge
this.formData.patientSex = res.data.patientSex
this.formData.patientName = res.data.patientName
2 years ago
} else {
this.$message.error(res.msg)
}
2 years ago
},
// 保存
async handleSaveTable() {
const data = JSON.parse(JSON.stringify(this.formData))
data.cbzdJsgnyc = data.cbzdJsgnyc.length ? data.cbzdJsgnyc.join(',') : ''
data.cbzdTjgnyc = data.cbzdTjgnyc.length ? data.cbzdTjgnyc.join(',') : ''
data.cbzdXs = data.cbzdXs.length ? data.cbzdXs.join(',') : ''
const params = {
caseId: this.caseId,
...data
}
const { data: res } = await this.$http.post('/sysgnjc/saveSysgnjc', params)
if (res.code === 0) {
this.$message.success('保存成功')
} else {
this.$message.error(res.msg)
2 years ago
}
},
// 删除
2 years ago
handleDelete() {
this.$emit('del')
},
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
if (columnIndex === 0) {
if (rowIndex === 0 || rowIndex === 8) {
return {
rowspan: 2,
colspan: 1
}
} else if (rowIndex === 15 || rowIndex === 16) {
return {
rowspan: 1,
colspan: 3
}
}
} else if (rowIndex === 14) {
if (columnIndex === 1) {
return {
rowspan: 1,
colspan: 2
}
}
}
}
}
}
</script>
2 years ago
<style lang="scss" scoped>
.flex{
display: flex;
}
.j-c{
justify-content: center;
}
.check {
cursor: pointer;
user-select: none;
display: flex;
margin-left: 15px;
input{
-webkit-appearance: checkbox !important;
margin-right: 5px !important;
}
}
2 years ago
.bold{
font-weight: 700;
}
2 years ago
.printBox{
.el-input__inner {
border: none;
height: 26px !important;
line-height: 26px !important;
text-align: center;
border-bottom: 1px solid #ccc;
border-radius: 0;
padding: 0;
}
.el-table tr{
page-break-inside: avoid;
}
}
2 years ago
#operation-record {
height: 100%;
overflow: auto;
2 years ago
2 years ago
.operation-record-table {
width: 100%;
.operation-text {
font-weight: 700;
}
.text {
font-weight: 700;
}
.sign {
cursor: pointer;
color: #46a1ff;
font-weight: 400;
}
}
.center {
text-align: center;
}
.left {
text-align: left;
}
.width-50 {
.el-input {
width: 50px;
}
}
.width-70 {
.el-input {
width: 70px;
}
}
.width-100 {
.el-input {
width: 100px;
}
}
.width-120 {
.el-input {
width: 120px;
}
}
.width-180 {
.el-input {
width: 180px;
}
}
}
</style>
2 years ago
<style lang="scss">
.eyesTable{
.el-table__cell{
padding: 7px 0 !important;
}
}
</style>