From efc94110447c4daa49947ceaa2df694e9b051cea Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Wed, 19 Feb 2025 14:52:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E8=AE=BF=E6=A0=87=E8=AE=B0=E4=B8=BA?= =?UTF-8?q?=E5=BE=85=E9=9A=8F=E8=AE=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-前台/src/api/followupFile.js | 8 ++++++++ acupuncture-前台/src/views/followFile/work.vue | 10 ++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/acupuncture-前台/src/api/followupFile.js b/acupuncture-前台/src/api/followupFile.js index 150b47957..63ebb4891 100644 --- a/acupuncture-前台/src/api/followupFile.js +++ b/acupuncture-前台/src/api/followupFile.js @@ -79,4 +79,12 @@ export function followPatient(data) { method: "post", data: data, }); +} +// 修改随访状态 +export function followStatus(data) { + return request({ + url: "/followup/status", + method: "post", + data: data, + }); } \ No newline at end of file diff --git a/acupuncture-前台/src/views/followFile/work.vue b/acupuncture-前台/src/views/followFile/work.vue index e08e63d11..870c9a46a 100644 --- a/acupuncture-前台/src/views/followFile/work.vue +++ b/acupuncture-前台/src/views/followFile/work.vue @@ -161,7 +161,7 @@ import { queryTask, updStatus, - followPatient + followPatient,followStatus } from "@/api/followupFile"; export default { name: "Notice", @@ -381,12 +381,14 @@ }, // 标记待随访 handleBeFollow(row) { - let form = JSON.parse(JSON.stringify(row)); - form.status = 0; + let data = { + id: row.id, + status:0 + } this.$modal .confirm(`是否确认将该患者(${row.name})标记为待随访?`) .then(function() { - return updStatus(form); + return followStatus(data); }) .then(() => { this.getList();