import request from "@/utils/request"; // 查询宣教任务列表 export function gethetasklist(data) { return request({ url: "/smartor/hetask/getPatHeTaskList", method: "post", data: data, }); } // 删除宣教任务 export function delhetaskinfo(Id) { return request({ url: "/smartor/hetask/remove/" + Id, method: "get", }); } // 查询宣教任务详情列表 export function gethetaskinfo(Id) { return request({ url: "/smartor/hetask/getInfo/" + Id, method: "get", }); } // 新增模版 export function addhetask(data) { return request({ url: "/smartor/hetask/add", method: "post", data: data, }); } // 修改宣教任务 export function edithetask(data) { return request({ url: "/smartor/hetask/edit", method: "post", data: data, }); } // 获取患者信息 export function getTaskpatient(data) { return request({ url: "/smartor/hetask/getPatientInfo", method: "post", data: data, }); } // 新增或修改任务 export function Editsingletask(data) { return request({ url: "/smartor/tasksingle/insertOrUpdateTask", method: "post", data: data, }); } // 删除任务并删除关联的患者服务 export function delTaskInfo(data) { return request({ url: "/smartor/ivrtask/remove/"+id, method: "get", }); } // 查询任务列表 export function getTasklist(data) { return request({ url: "/smartor/ivrtask/list", method: "post", data: data, }); } // 查询任务详情 export function getTaskInfo(data) { return request({ url: "/smartor/tasksingle/queryTaskByCondition", method: "post", data: data, }); } // 查询门诊出院服务列表 export function getTaskservelist(data) { return request({ url: "/smartor/tasksingle/patItem", method: "post", data: data, }); } // 任务立即执行 export function GoheTaskSend(data) { return request({ url: "/smartor/tasksingle/heTaskSend", method: "post", data: data, }); } // 获取任务模版详情 export function TaskTemplategetinfo(id) { return request({ url: "/smartor/ivrTaskTemplate/getInfo/"+id, method: "get", }); } // 任务模版新增修改 export function TaskTemplatecomit(data) { return request({ url: "/smartor/ivrTaskTemplate/saveOrUpdateTempScript", method: "post", data: data, }); } // 任务发送,执行 export function TaskTemplateSendExecution(data) { return request({ url: "/dev-api/smartor/tasksingle/taskSend", method: "post", data: data, }); }