diff --git a/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue b/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue index 383e768..ef13a9f 100644 --- a/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue +++ b/src/page-subspecialty/views/modules/optometryManagement/dioptric/index.vue @@ -304,7 +304,9 @@ export default { list.push({ id: item.id, porjectCode: item.porjectCode }) }) } - this.receiveTreat(scopeRow) + if (index === 1) { + this.receiveTreat(scopeRow) + } this.onlyRead = index !== 1 this.detailViewVisible = true this.patientId = scopeRow.patientId diff --git a/src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue b/src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue index 76c1ef6..8098370 100644 --- a/src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue +++ b/src/page-subspecialty/views/modules/outpatientManagement/treat/index.vue @@ -261,8 +261,25 @@ export default { this.dataForm.patientStatus = value this.getDataListInitial() }, + async receiveTreat(item) { + const { data: res } = await this.$http.get('/patient/updateSGDoctorAndJzStatus', { + params: { + isAppoint: item.isAppoint, + patientId: item.patientId, + jzNumber: item.jzNumber, + platform: 2 + } + }) + if (res.code === 0) { + } else { + this.$message.error(res.msg) + } + }, // 查看详情 showDetail(scopeRow, index) { + if (index === 1) { + this.receiveTreat(scopeRow) + } this.onlyRead = index !== 1 this.detailViewVisible = true this.patientId = scopeRow.patientId