| | |
| | | }); |
| | | } |
| | | |
| | | |
| | | // 新增问卷模板分类 |
| | | export function addQtemplateclassify(data) { |
| | | return request({ |
| | |
| | | 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"; //表格组件 |
| | |
| | | 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) |