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"> <el-table-column prop="brand" label="品牌" header-align="center" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.brandEyeTypeList && scope.row.brandEyeTypeList.length"> <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> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="eyeType" label="眼别" header-align="center" align="center"> <el-table-column prop="eyeType" label="眼别" header-align="center" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.brandEyeTypeList && scope.row.brandEyeTypeList.length"> <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> </div>
</template> </template>
</el-table-column> </el-table-column>
@ -100,10 +100,15 @@
<el-table-column prop="operation" label="操作" header-align="center" align="center"> <el-table-column prop="operation" label="操作" header-align="center" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<span <span
style="color: #1890ff; padding-right: 8px"
style="color: #1890ff; padding-right: 16px"
class="operation-details" class="operation-details"
@click="browseClick(scope.row)" @click="browseClick(scope.row)"
>离焦眼镜</span> >离焦眼镜</span>
<span
style="color: #ff183b;"
class="operation-details"
@click="handleDel(scope.row)"
>删除</span>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -186,21 +191,39 @@ export default {
this.detailViewVisible = true this.detailViewVisible = true
this.patientId = scopeRow.patientId this.patientId = scopeRow.patientId
this.patientIdNumber = scopeRow.patientIdNumber 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) { handleType(value, index) {
this.curIndex = index this.curIndex = index
this.dataForm.nextCheckFlag = value this.dataForm.nextCheckFlag = value
this.getDataListInitial() 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) { changeDoctor(value, scopeRow, type) {
const params = {} const params = {}

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

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

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

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

Loading…
Cancel
Save