Browse Source

离焦眼镜出诊接口修改

x-emr
bianyaqi 2 years ago
parent
commit
9905515239
  1. 27
      src/page-subspecialty/views/modules/optometryManagement/outFocusEye/outDetail.vue

27
src/page-subspecialty/views/modules/optometryManagement/outFocusEye/outDetail.vue

@ -129,7 +129,10 @@
align="center"
>
<template slot-scope="scope">
<el-select v-model="scope.row.otherOd" placeholder="" clearable filterable allow-create style="flex: 1">
<el-select v-if="scope.row.brand1 === '右眼'" v-model="firstForm.brandOd1" placeholder="" clearable filterable allow-create style="flex: 1">
<el-option v-for="item in brandList" :key="item.label" :value="item.value" :label="item.label" />
</el-select>
<el-select v-if="scope.row.brand1 === '左眼'" v-model="firstForm.brandOs1" placeholder="" clearable filterable allow-create style="flex: 1">
<el-option v-for="item in brandList" :key="item.label" :value="item.value" :label="item.label" />
</el-select>
</template>
@ -138,8 +141,8 @@
align="center"
>
<template slot-scope="scope">
<el-input v-if="scope.row.iol === '右眼'" v-model="firstForm.iolOd" placeholder="" />
<el-input v-if="scope.row.iol === '左眼'" v-model="firstForm.iolOs" placeholder="" />
<el-input v-if="scope.row.brand2 === '右眼'" v-model="firstForm.brandOd2" placeholder="" />
<el-input v-if="scope.row.brand2 === '左眼'" v-model="firstForm.brandOs2" placeholder="" />
</template>
</el-table-column>
</el-table>
@ -222,8 +225,8 @@ export default {
ds: '左眼',
dc: '左眼',
iol: '左眼',
brand1: '眼',
brand2: '眼',
brand1: '眼',
brand2: '眼',
pd: '左眼',
ph: '左眼',
va: '左眼',
@ -260,7 +263,11 @@ export default {
vaOd: '',
vaOs: '',
aod: '',
aos: ''
aos: '',
brandOd1: '',
brandOs1: '',
brandOd2: '',
brandOs2: ''
},
patientInfoObj: {},
activeName: '1'
@ -269,6 +276,7 @@ export default {
mounted() {
},
created() {
console.log(this.patientId)
this.getFirstForm()
this.getPatientInfo()
},
@ -329,7 +337,12 @@ export default {
}).catch(() => {})
},
saveFirstForm() {
this.$http.post('/defocused/saveOrUpdateFirstDefocused', this.firstForm).then(({ data: res }) => {
const params = {
...this.firstForm
}
params.patientId = this.patientId
// console.log(params)
this.$http.post('/defocused/saveOrUpdateFirstDefocused', params).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}

Loading…
Cancel
Save