WXL
2024-09-04 7eaee92ee52e1501480adbbe8a1af9ddecc04275
src/api/AiCentre/external.js
@@ -1,9 +1,55 @@
import request from "@/utils/request";
// 随访模版详情
export function getExternalfollowup(taskid,patid) {
// 外链获取随访
export function getExternalfollowup(data) {
  return request({
    url: "/smartor/ivrtask/getScriptInfoByCondition/" + taskid+'/'+patid,
    method: "get",
    url: "/smartor/servicetask/getScriptInfoByCondition",
    // url: "/smartor/servicetask/getScriptInfoByCondition",
    method: "post",
    data: data
  });
}
// 提交、随访
export function SetsaveQuestionAnswer(data) {
  return request({
    // url: "/smartor/ivrtaskcalldetail/saveQuestionAnswer",
    url: "/smartor/serviceSubtask/saveQuestionAnswer",
    method: "post",
    data: data
  });
}
// 缓存问卷
export function Cachequestionnaire(data) {
  return request({
    url: "/smartor/subtaskAnswer/saveQuestionCache",
    method: "post",
    data: data
  });
}
// 拿缓存问卷
export function getCachequestionnaire(data) {
  return request({
    url: "/smartor/subtaskAnswer/getQuestionCache",
    method: "post",
    data: data
  });
}
// 提交问卷
export function Submitaquestionnaire(data) {
  return request({
    url: "/smartor/subtaskAnswer/saveQuestionAnswer",
    method: "post",
    data: data
  });
}
// 提交问卷
export function getsearchrResult(data) {
  return request({
    url: "/smartor/subtaskAnswer/selectPatQuestionResult",
    method: "post",
    data: data
  });
}