diff --git a/acupuncture-后台/src/api/medicalFile.js b/acupuncture-后台/src/api/medicalFile.js index b44674c4..3aa383b2 100644 --- a/acupuncture-后台/src/api/medicalFile.js +++ b/acupuncture-后台/src/api/medicalFile.js @@ -64,3 +64,11 @@ export function exportTreatmentPg(data) { data: data, }); } +// 审核 +export function treatmentAudit(data) { + return request({ + url: "/admin/treatment/aduit", + method: "post", + data: data, + }); +} \ No newline at end of file diff --git a/acupuncture-后台/src/views/medicalFile/index.vue b/acupuncture-后台/src/views/medicalFile/index.vue index c97cba54..c67a1a97 100644 --- a/acupuncture-后台/src/views/medicalFile/index.vue +++ b/acupuncture-后台/src/views/medicalFile/index.vue @@ -389,18 +389,10 @@ - --> - + @@ -703,6 +695,7 @@ import { saveAidRecord, queueAdd, exportTreatmentPg, + treatmentAudit, } from "@/api/medicalFile"; import { managerQuery } from "@/api/report"; import { tenantsList } from "@/api/member"; @@ -1188,15 +1181,17 @@ export default { }, /** 提交审核 */ handleExamine(row, _status) { - let form = JSON.parse(JSON.stringify(row)); - form = { - ...JSON.parse(JSON.stringify(row)), + let params = { + tenantId: row.tenantId, // 租户id + treatmentId: row.id, // 诊疗id + status: _status, // 状态 0:保存 1:待审核 2:通过 3:驳回 }; - form.status = _status; + let title = this.status[_status]; + title = title == "待审核" ? "提交" : title; this.$modal - .confirm(`是否确认提交当前选择的数据(${row.name})?`) + .confirm(`是否确认${title}当前选择的数据(${row.name})?`) .then(function () { - return treatmentUpd(form); + return treatmentAudit(params); }) .then(() => { this.getList();