Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
b5772c0756
  1. 51
      src/page-subspecialty/views/modules/optometryManagement/outFocusEye/index.vue
  2. 2
      src/page-subspecialty/views/modules/optometryManagement/outFocusEye/outDetail.vue
  3. 3
      src/page-subspecialty/views/modules/optometryManagement/outFocusEye/reviewForm.vue

51
src/page-subspecialty/views/modules/optometryManagement/outFocusEye/index.vue

@ -54,16 +54,16 @@
<el-table-column prop="brand" label="品牌" header-align="center" align="center">
<template slot-scope="scope">
<div v-if="scope.row.brandEyeTypeList && scope.row.brandEyeTypeList.length">
<span class="odType">{{ scope.row.brandEyeTypeList[0]. brand }}</span>/
<span class="osType">{{ scope.row.brandEyeTypeList[1].brand }}</span>
<span class="odType">{{ scope.row.brandEyeTypeList[0]. brand }}</span>
<span class="osType">{{ scope.row.brandEyeTypeList[1] ? '/' + scope.row.brandEyeTypeList[1].brand : '' }}</span>
</div>
</template>
</el-table-column>
<el-table-column prop="eyeType" label="眼别" header-align="center" align="center">
<template slot-scope="scope">
<div v-if="scope.row.brandEyeTypeList && scope.row.brandEyeTypeList.length">
<span class="odType">{{ scope.row.brandEyeTypeList[0].eyeType }}</span>/
<span class="osType">{{ scope.row.brandEyeTypeList[1].eyeType }}</span>
<span class="odType">{{ scope.row.brandEyeTypeList[0].eyeType }}</span>
<span class="osType">{{ scope.row.brandEyeTypeList[1] ? '/' + scope.row.brandEyeTypeList[1].eyeType : ''}}</span>
</div>
</template>
</el-table-column>
@ -100,10 +100,15 @@
<el-table-column prop="operation" label="操作" header-align="center" align="center">
<template slot-scope="scope">
<span
style="color: #1890ff; padding-right: 8px"
style="color: #1890ff; padding-right: 16px"
class="operation-details"
@click="browseClick(scope.row)"
>离焦眼镜</span>
<span
style="color: #ff183b;"
class="operation-details"
@click="handleDel(scope.row)"
>删除</span>
</template>
</el-table-column>
</el-table>
@ -186,21 +191,39 @@ export default {
this.detailViewVisible = true
this.patientId = scopeRow.patientId
this.patientIdNumber = scopeRow.patientIdNumber
// this.$router.push({
// path: '/patientInfo',
// query: {
// info: this.$Base64.encode(JSON.stringify({
// patientIdNumber: scopeRow.patientIdNumber,
// patientId: scopeRow.patientId
// }))
// }
// })
},
handleType(value, index) {
this.curIndex = index
this.dataForm.nextCheckFlag = value
this.getDataListInitial()
},
//
handleDel(row) {
this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.deletePatient(row.id)
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
},
async deletePatient(id) {
const params = {
id: id
}
const { data: res } = await this.$http.post('/defocused/delPatientInfo', params)
if (res.code === 0) {
this.$message.success('删除成功')
await this.pageCurrentChangeHandle(this.page)
} else {
this.$message.error(res.msg)
}
},
//
changeDoctor(value, scopeRow, type) {
const params = {}

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

@ -255,7 +255,6 @@ export default {
}).catch(() => {})
},
async getFirstForm() {
this.firstForm.patientId = this.patientId
this.$http.get('/defocused/getFirstDefocused', {
params: {
patientId: this.patientId
@ -265,6 +264,7 @@ export default {
return this.$message.error(res.msg)
} else {
this.firstForm = res.data
this.firstForm.patientId = this.patientId
}
}).catch(() => {})
},

3
src/page-subspecialty/views/modules/optometryManagement/outFocusEye/reviewForm.vue

@ -266,6 +266,7 @@ export default {
if (res.code === 0) {
this.formList = res.data || []
if (this.formList.length) {
this.curIndex = 0
this.id = this.formList[0].id
this.secondForm = this.formList[0]
}
@ -371,7 +372,7 @@ export default {
color: #D9D9D9;
}
.nodata {
width: 200px;
width: 180px;
margin-top: 50px;
}
}

Loading…
Cancel
Save