Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
accbf4c831
  1. 57
      src/components/360View/commonForm/eyesVision.vue

57
src/components/360View/commonForm/eyesVision.vue

@ -186,7 +186,7 @@
</div> </div>
<div v-if="scope.row.name == '眼位'"> <div v-if="scope.row.name == '眼位'">
<div class="width-180 center"> <div class="width-180 center">
<el-input v-model="formData.ywFar" placeholder="">
<el-input v-model="formData.ywYuan" placeholder="">
<template slot="prepend">:</template> <template slot="prepend">:</template>
</el-input> </el-input>
</div> </div>
@ -326,7 +326,7 @@
</div> </div>
</div> </div>
<div style="display: flex"> <div style="display: flex">
<span style="width: 160px;"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<span style="width: 160px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
<div style="width: 100%;display: flex;flex-wrap: wrap;"> <div style="width: 100%;display: flex;flex-wrap: wrap;">
<div v-for="(item,index) in strabismusList" :key="index" class="check" style="margin-left: 22px;font-size: 14px" @click="item.isSelect = !item.isSelect"> <div v-for="(item,index) in strabismusList" :key="index" class="check" style="margin-left: 22px;font-size: 14px" @click="item.isSelect = !item.isSelect">
<input type="checkbox" :checked="item.isSelect"> <input type="checkbox" :checked="item.isSelect">
@ -503,6 +503,7 @@ export default {
data() { data() {
return { return {
formData: { formData: {
idList: [],
patientId: '', patientId: '',
patientName: '', patientName: '',
patientSex: '', patientSex: '',
@ -701,7 +702,7 @@ export default {
name: '散开过度', name: '散开过度',
isSelect: false isSelect: false
}, { }, {
name: `内隐科`,
name: '内隐科',
isSelect: false isSelect: false
}, { }, {
name: '外隐科', name: '外隐科',
@ -814,6 +815,7 @@ export default {
const form = data.data.data const form = data.data.data
this.formData = form this.formData = form
if (!this.formData.id) { if (!this.formData.id) {
this.queryProject()
this.formData.ctYuan = this.formData.ctJin = '正位' this.formData.ctYuan = this.formData.ctJin = '正位'
this.formData.ctYqyd = '正常' this.formData.ctYqyd = '正常'
this.formData.worth1 = this.formData.worth3 = '4个' this.formData.worth1 = this.formData.worth3 = '4个'
@ -859,6 +861,35 @@ export default {
this.$message.error(res.msg) this.$message.error(res.msg)
} }
}, },
// id
async queryProject() {
const project = window.localStorage.getItem('projectItem') ? JSON.parse(window.localStorage.getItem('projectItem')) : []
const { data: res } = await this.$http.get(
'/patient/getZlItemDict',
{
params: {
caseName: '双眼视功能检查报告单'
}
}
)
if (res.code === 0) {
const data = res.data || []
const list = []
if (data.length) {
for (let i = 0; i < data.length; i++) {
for (let j = 0; j < project.length; j++) {
if (data[i].itemId === project[j].porjectCode) {
list.push(project[j].id)
}
}
}
console.log('list', list)
this.formData.idList = list
}
} else {
this.$message.error(res.msg)
}
},
// //
handleStr(string, array) { handleStr(string, array) {
if (string) { if (string) {
@ -1001,7 +1032,7 @@ export default {
} }
} }
.center { .center {
text-align: center;
text-align: left;
} }
.left { .left {
text-align: left; text-align: left;
@ -1034,7 +1065,23 @@ export default {
} }
</style> </style>
<style lang="scss"> <style lang="scss">
#operation-record{
#eyesFunc{
.operation-record-table{
.center {
text-align: left;
}
}
.el-table th {
border-color: #8e8c8c !important;
}
.el-table td {
border-color: #8e8c8c !important;
}
.el-table--group,
.el-table--border {
border: 1px solid #8e8c8c !important;
border-bottom: none !important;
}
.el-icon-arrow-up{ .el-icon-arrow-up{
display: none; display: none;
} }

Loading…
Cancel
Save