From 5b1d2078e9d7e2a8993d1484400e91041a6a9a11 Mon Sep 17 00:00:00 2001 From: liuzhipeng <1747191978@qq.com> Date: Thu, 19 Jun 2025 23:51:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E8=AF=8A=E7=96=97=E6=A1=A3?= =?UTF-8?q?=E6=A1=88=E6=B7=BB=E5=8A=A0=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-后台/src/api/medicalFile.js | 8 +++++ .../src/views/medicalFile/index.vue | 29 ++++++++----------- 2 files changed, 20 insertions(+), 17 deletions(-) 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();