| | |
| | | } |
| | | // 删除问卷模板 |
| | | 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, |
| | |
| | | }); |
| | | } |
| | | |
| | | 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", |
| | |
| | | // 获取基础信息 |
| | | getuserinfo() { |
| | | const queryParams = { |
| | | pid: Number(this.id), |
| | | pid: Number(this.patid), |
| | | allhosp: "0", |
| | | pageNum: 1, |
| | | }; |
| | |
| | | }).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 { |
| | |
| | | }, |
| | | 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; |
| | |
| | | getQtemplateclassify, |
| | | taskdepthospgetsondel, |
| | | taskdepthospgetsonlist, |
| | | taskdiaggetlist, |
| | | taskopergetlist, |
| | | } from "@/api/AiCentre/index"; |
| | | |
| | | import SFtable from "@/components/SFtable"; //表格组件 |
| | |
| | | }, |
| | | ]; |
| | | 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; |
| | |
| | | this.$modal.msgError("请选择服务类型"); |
| | | return; |
| | | } |
| | | console.log(this.operationcodes[0]); |
| | | console.log(this.operationcodes); |
| | | |
| | | if ( |
| | |
| | | this.operationcodes[0] |
| | | ) { |
| | | } else { |
| | | this.$modal.msgError("请选择科室或病区"); |
| | | this.$modal.msgError("请选择任务关联条件"); |
| | | return; |
| | | } |
| | | |
| | |
| | | this.time3 = ""; //晚上时间段 |
| | | this.time4 = ""; //晚上时间段 |
| | | }, |
| | | // 获取任务科室列表 |
| | | // 获取各类 |
| | | listDept() { |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.deptcodesWards = []; |
| | |
| | | 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); |
| | | }); |
| | | } |
| | | }); |
| | |
| | | }, |
| | | // 院区删除删除触发 |
| | | 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) => { |