WXL
2025-02-27 355bbb7502f0d61fd6d1f05b461220970f865e0d
测试完成
已修改4个文件
353 ■■■■ 文件已修改
src/api/AiCentre/Qtemplate.js 284 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/record/detailpage/index.vue 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/followvisit/tasklist/index.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/patient/propaganda/QuestionnaireTask.vue 53 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/AiCentre/Qtemplate.js
@@ -26,109 +26,108 @@
}
// 删除问卷模板
export function delQtemplateinfo(Id) {
    return request({
      url: "/smartor/svyLibTemplate/remove/" + Id,
      method: "get",
    });
  }
  return request({
    url: "/smartor/svyLibTemplate/remove/" + Id,
    method: "get",
  });
}
// 新增或修改问卷模板详情
export function compileQtemplate(data) {
    return request({
      url: "/smartor/svyLibTemplate/saveOrUpdateTemplate",
      method: "post",
      data: data,
    });
  }
  return request({
    url: "/smartor/svyLibTemplate/saveOrUpdateTemplate",
    method: "post",
    data: data,
  });
}
  // 新增问卷模板分类
  export function addQtemplateclassify(data) {
    return request({
      url: "/smartor/svyLibTemplateCategory/addtree",
      method: "post",
      data: data,
    });
  }
    // 新增问卷模板分类
    export function editQtemplateclassify(data) {
      return request({
        url: "/smartor/svyLibTemplateCategory/edit",
        method: "post",
        data: data,
      });
    }
  // 删除问卷模板分类
// 新增问卷模板分类
export function addQtemplateclassify(data) {
  return request({
    url: "/smartor/svyLibTemplateCategory/addtree",
    method: "post",
    data: data,
  });
}
// 新增问卷模板分类
export function editQtemplateclassify(data) {
  return request({
    url: "/smartor/svyLibTemplateCategory/edit",
    method: "post",
    data: data,
  });
}
// 删除问卷模板分类
export function delQtemplateclassify(Id) {
  return request({
    url: "/smartor/svyLibTemplateCategory/remove/" + Id,
    method: "get",
  });
}
  // 查询问卷模板分类树
  export function getQtemplateclassify(data) {
    return request({
      url: "/smartor/svyLibTemplateCategory/list",
      method: "post",
      data: data,
    });
  }
  // 查询问卷模板分类树
  export function getQRcode(data) {
    return request({
      url: "/qrcode/getQRcode",
      method: "post",
      data: data,
    });
  }
    // 新增修改问卷任务
    export function Questionnairetaskdetails(data) {
      return request({
        url: "/smartor/svysingle/insertOrUpdateSvyTask",
        method: "post",
        data: data,
      });
    }
    // 查询问卷任务列表
    export function Questionnairetasklist(data) {
      return request({
        url: "/smartor/svytask/list",
        method: "post",
        data: data,
      });
    }
     // 发起问卷任务
     export function Questionnairetasksponsor(data) {
      return request({
        url: "/smartor/svytask/list",
        method: "post",
        data: data,
      });
    }
    // 查询问卷任务详情
    export function Questionnairetaskget(data) {
      return request({
        url: "/smartor/svysingle/queryTaskByCondition",
        method: "post",
        data: data,
      });
    }
      // 查询问卷任务详情
      export function Questionnairetaskgetson(data) {
        return request({
          url: "/smartor/serviceSubtask/queryTaskByCondition",
          method: "post",
          data: data,
        });
      }
    // 问卷任务模板新增修改
   export function TaskQuestioncomit(data) {
    return request({
      url: "/smartor/svytemplateTask/saveOrUpdateTaskTemp",
      method: "post",
      data: data,
    });
  }
    // 删除任务模板
// 查询问卷模板分类树
export function getQtemplateclassify(data) {
  return request({
    url: "/smartor/svyLibTemplateCategory/list",
    method: "post",
    data: data,
  });
}
// 查询问卷模板分类树
export function getQRcode(data) {
  return request({
    url: "/qrcode/getQRcode",
    method: "post",
    data: data,
  });
}
// 新增修改问卷任务
export function Questionnairetaskdetails(data) {
  return request({
    url: "/smartor/svysingle/insertOrUpdateSvyTask",
    method: "post",
    data: data,
  });
}
// 查询问卷任务列表
export function Questionnairetasklist(data) {
  return request({
    url: "/smartor/svytask/list",
    method: "post",
    data: data,
  });
}
// 发起问卷任务
export function Questionnairetasksponsor(data) {
  return request({
    url: "/smartor/svytask/list",
    method: "post",
    data: data,
  });
}
// 查询问卷任务详情
export function Questionnairetaskget(data) {
  return request({
    url: "/smartor/svysingle/queryTaskByCondition",
    method: "post",
    data: data,
  });
}
// 查询问卷任务详情
export function Questionnairetaskgetson(data) {
  return request({
    url: "/smartor/serviceSubtask/queryTaskByCondition",
    method: "post",
    data: data,
  });
}
// 问卷任务模板新增修改
export function TaskQuestioncomit(data) {
  return request({
    url: "/smartor/svytemplateTask/saveOrUpdateTaskTemp",
    method: "post",
    data: data,
  });
}
// 删除任务模板
export function deleteTaskQuestioncomit(svyid) {
  return request({
    url: "/smartor/svytemplateTask/remove/" + svyid,
@@ -136,66 +135,81 @@
  });
}
    export function getTaskQuestioncomit(svyid) {
      return request({
        url: "/smartor/svytemplateTask/" + svyid,
        method: "get",
      });
    }
 //科室病区模板关联新增
 export function depthospgetson(data) {
export function getTaskQuestioncomit(svyid) {
  return request({
    url: "/smartor/svytemplateTask/" + svyid,
    method: "get",
  });
}
//科室病区模板关联新增
export function depthospgetson(data) {
  return request({
    url: "/smartor/td/add",
    method: "post",
    data: data,
  });
}
 //科室病区模板关联查询
 export function depthospgetsonlist(data) {
//科室病区模板关联查询
export function depthospgetsonlist(data) {
  return request({
    url: "/smartor/td/list",
    method: "get",
    params: data,
  });
}
 //任务科室病区模板关联查询
 export function taskdepthospgetsonlist(data) {
//任务科室病区模板关联查询
export function taskdepthospgetsonlist(data) {
  return request({
    url: "/smartor/taskdept/list",
    method: "post",
    data: data,
  });
}
    // 删除科室病区模板分类
    export function depthospgetsondel(id) {
      return request({
        url: "/smartor/td/remove/" + id,
        method: "get",
      });
    }
    // 删除任务科室关联
    export function taskdepthospgetsondel(id) {
      return request({
        url: "/smartor/taskdept/remove/" + id,
        method: "get",
      });
    }
    // 删除任务疾病关联
    export function taskdiaghospgetsondel(id) {
      return request({
        url: "/smartor/taskdiag/remove/" + id,
        method: "get",
      });
    }
    // 删除任务手术关联
    export function taskoperhospgetsondel(id) {
      return request({
        url: "/smartor/taskoper/remove/" + id,
        method: "get",
      });
    }
// 删除科室病区模板分类
export function depthospgetsondel(id) {
  return request({
    url: "/smartor/td/remove/" + id,
    method: "get",
  });
}
// 删除任务科室关联
export function taskdepthospgetsondel(id) {
  return request({
    url: "/smartor/taskdept/remove/" + id,
    method: "get",
  });
}
// 删除任务疾病关联
export function taskdiaghospgetsondel(id) {
  return request({
    url: "/smartor/taskdiag/remove/" + id,
    method: "get",
  });
}
// 删除任务手术关联
export function taskoperhospgetsondel(id) {
  return request({
    url: "/smartor/taskoper/remove/" + id,
    method: "get",
  });
}
// 获取任务疾病关联
export function taskdiaggetlist(data) {
  return request({
    url: "/smartor/taskdiag/list",
    method: "post",
    data: data,
  });
}
// 获取任务手术关联
export function taskopergetlist(data) {
  return request({
    url: "/smartor/taskoper/list",
    method: "post",
    data: data,
  });
}
// 医护保存数据
export function serviceSubtaskDetailedit(data) {
  return request({
    url: "/smartor/serviceSubtaskDetail/editByCondition",
src/views/followvisit/record/detailpage/index.vue
@@ -668,7 +668,7 @@
    // 获取基础信息
    getuserinfo() {
      const queryParams = {
        pid: Number(this.id),
        pid: Number(this.patid),
        allhosp: "0",
        pageNum: 1,
      };
@@ -823,12 +823,10 @@
      }).then((res) => {
        if (res.code == 200) {
          this.form = res.rows[0].serviceSubtaskList[0];
          console.log(this.form, "form3");
          this.logsheetlist = res.rows[0].serviceSubtaskList;
          this.templateid = this.logsheetlist[0].templateid;
          console.log(this.form.serviceType, "serviceType");
        }
this.getuserinfo();
        if (this.Voicetype) {
          this.getPersonVoices();
        } else {
src/views/followvisit/tasklist/index.vue
@@ -657,11 +657,11 @@
  },
  watch: {},
  created() {
    this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
      (obj) => obj.deptCode
    );
    this.topqueryParams.leavehospitaldistrictcodes =
      store.getters.belongWards.map((obj) => obj.districtCode);
    // this.topqueryParams.leaveldeptcodes = store.getters.belongDepts.map(
    //   (obj) => obj.deptCode
    // );
    // this.topqueryParams.leavehospitaldistrictcodes =
    //   store.getters.belongWards.map((obj) => obj.districtCode);
    this.tasktopic = this.$route.query.tasktopic
      ? this.$route.query.tasktopic
      : this.tasktopic;
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -861,6 +861,8 @@
  getQtemplateclassify,
  taskdepthospgetsondel,
  taskdepthospgetsonlist,
  taskdiaggetlist,
  taskopergetlist,
} from "@/api/AiCentre/index";
import SFtable from "@/components/SFtable"; //表格组件
@@ -1359,21 +1361,21 @@
        },
      ];
      if (this.form.appltype == 1) {
        this.leavehospitaldistrictcodes=[];
        this.operationcodes=[];
        this.illnesscodes=[];
        this.leavehospitaldistrictcodes = [];
        this.operationcodes = [];
        this.illnesscodes = [];
      } else if (this.form.appltype == 2) {
        this.deptcodesWards=[];
        this.operationcodes=[];
        this.illnesscodes=[];
        this.deptcodesWards = [];
        this.operationcodes = [];
        this.illnesscodes = [];
      } else if (this.form.appltype == 3) {
        this.deptcodesWards=[];
        this.leavehospitaldistrictcodes=[];
        this.operationcodes=[];
        this.deptcodesWards = [];
        this.leavehospitaldistrictcodes = [];
        this.operationcodes = [];
      } else if (this.form.appltype == 4) {
        this.deptcodesWards=[];
        this.illnesscodes=[];
        this.leavehospitaldistrictcodes=[];
        this.deptcodesWards = [];
        this.illnesscodes = [];
        this.leavehospitaldistrictcodes = [];
      }
      if (this.checkList) {
        this.form.preachform = this.checkList;
@@ -1381,6 +1383,7 @@
        this.$modal.msgError("请选择服务类型");
        return;
      }
      console.log(this.operationcodes[0]);
      console.log(this.operationcodes);
      if (
@@ -1390,7 +1393,7 @@
        this.operationcodes[0]
      ) {
      } else {
        this.$modal.msgError("请选择科室或病区");
        this.$modal.msgError("请选择任务关联条件");
        return;
      }
@@ -1880,7 +1883,7 @@
      this.time3 = ""; //晚上时间段
      this.time4 = ""; //晚上时间段
    },
    // 获取任务科室列表
    // 获取各类
    listDept() {
      this.leavehospitaldistrictcodes = [];
      this.deptcodesWards = [];
@@ -1896,6 +1899,24 @@
              this.hosplist.push(item);
              this.leavehospitaldistrictcodes.push(item.deptCode);
            }
          });
        }
      });
      taskdiaggetlist(this.queryParamsdept).then((res) => {
        if (res.code == 200) {
          let arr = res.rows;
          arr.forEach((item) => {
            this.hosplist.push(item);
            this.illnesscodes.push(item.icdcode);
          });
        }
      });
      taskopergetlist(this.queryParamsdept).then((res) => {
        if (res.code == 200) {
          let arr = res.rows;
          arr.forEach((item) => {
            this.hosplist.push(item);
            this.operationcodes.push(item.opcode);
          });
        }
      });
@@ -1915,12 +1936,12 @@
    },
    // 院区删除删除触发
    removehpsp(row) {
      console.log(this.hosplist,'hhh');
      console.log(this.hosplist, "hhh");
      let result = this.hosplist
        .filter((item) => item.deptCode == row)
        .map((item) => item.id);
        console.log(result);
      console.log(result);
      if (result.length) {
        taskdepthospgetsondel(result).then((res) => {