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();