| | |
| | | </div> |
| | | <el-tag |
| | | v-for="tag in diagglist" |
| | | @close="removediagg(tag.icd10code)" |
| | | @close="removediagg(tag)" |
| | | type="warning" |
| | | closable |
| | | :disable-transitions="false" |
| | |
| | | questionList: [], |
| | | uploadingData: [], |
| | | deptcodesWards: [], //科室数据 |
| | | deptlist: [], |
| | | hosplist: [], |
| | | leavehospitaldistrictcodes: [], //病区数据 |
| | | operationcodes: [], //手术数据 |
| | | illnesscodes: [], //疾病数据 |
| | |
| | | "的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,观看这份宣教资讯。", |
| | | jsy: "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次宣教内容就到这里,祝您身体健康!", |
| | | }, |
| | | queryParamsdept: { |
| | | tempid: "", |
| | | type: 2, |
| | | }, |
| | | taskoptions: [ |
| | | { |
| | | value: "4", |
| | |
| | | this.currenttype = this.$route.query.type; |
| | | this.title = "宣教内容列表"; |
| | | this.tableLabel = this.tableLabelxj; |
| | | if (this.form.serviceType == 4) { |
| | | if (this.form.serviceType == 4 || this.form.serviceType == 17) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "2", |
| | |
| | | }); |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | | if (!html) return html; |
| | | |
| | | // 1. 先修复路径 |
| | | let processedHtml = html.replace( |
| | | /\/aifollowup\/aifollowup\//g, |
| | | "/aifollowup/" |
| | | ); |
| | | |
| | | // 2. 再修复样式 |
| | | processedHtml = processedHtml.replace( |
| | | /<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g, |
| | | '<img$1style="width:100%;height:auto;"$3>' |
| | | ); |
| | | |
| | | return processedHtml; |
| | | }, |
| | | |
| | | // 子任务二级弹框 |
| | |
| | | this.time1 = this.form.showTimeMorn.split(","); |
| | | } |
| | | } |
| | | if (this.form.taskid) { |
| | | this.listDept(); |
| | | } |
| | | if (this.form.showTimeNoon) |
| | | this.time2 = this.form.showTimeNoon.split(","); |
| | | if (this.form.showTimeNight) |
| | |
| | | this.leavehospitaldistrictcodes = []; |
| | | this.deptcodesWards = []; |
| | | this.queryParamsdept.taskId = this.form.taskid; |
| | | console.log(1, this.queryParamsdept); |
| | | |
| | | taskdepthospgetsonlist(this.queryParamsdept).then((res) => { |
| | | if (res.code == 200) { |
| | | let arr = res.rows; |
| | | arr.forEach((item) => { |
| | | if (item.deptType == 1) { |
| | | console.log(1); |
| | | |
| | | this.deptlist.push(item); |
| | | this.deptcodesWards.push(item.deptCode); |
| | | } else if (item.deptType == 2) { |
| | | console.log(2, this.hosplist); |
| | | |
| | | 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) => { |
| | | getillnesslist({ |
| | | icdcode: item.icd10code, |
| | | }).then((res) => { |
| | | item.icdname = res.rows[0].icdname; |
| | | this.diagglist.push(item); |
| | | taskdiaggetlist(this.queryParamsdept).then((res) => { |
| | | if (res.code == 200) { |
| | | let arr = res.rows; |
| | | arr.forEach((item) => { |
| | | if (localStorage.getItem("orgname") == "南华大学附属第一医院") { |
| | | item.icdname = item.icd10name; |
| | | this.diagglist.push(item); |
| | | } else { |
| | | getillnesslist({ icdcode: item.icd10code }).then((res) => { |
| | | item.icdname = res.rows[0].icdname; |
| | | this.diagglist.push(item); |
| | | }); |
| | | } |
| | | this.illnesscodes.push(item.icd10code); |
| | | }); |
| | | this.illnesscodes.push(item.icd10code); |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | taskopergetlist(this.queryParamsdept).then((res) => { |
| | | if (res.code == 200) { |
| | | let arr = res.rows; |
| | |
| | | } |
| | | }, |
| | | // 疾病删除触发 |
| | | removediagg(row) { |
| | | console.log(row, "row"); |
| | | console.log(this.diagglist, "this.diagglist"); |
| | | removediagg(tag) { |
| | | // 任务组:本地删除即可,后端保存时统一更新 |
| | | if (this.form.appltype == 5) { |
| | | this.diagglist = this.diagglist.filter((item) => item != tag); |
| | | return; |
| | | } |
| | | |
| | | let result = this.diagglist |
| | | .filter((item) => item.icd10code == row) |
| | | .map((item) => item.id); |
| | | if (result.length) { |
| | | taskdiaghospgetsondel(result).then((res) => { |
| | | // 普通疾病关联:判断是否有 id(已保存的记录才有 id) |
| | | if (tag.id) { |
| | | // id 存在,调后端接口删除 |
| | | taskdiaghospgetsondel([tag.id]).then((res) => { |
| | | if (res.code) { |
| | | this.diagglist = this.diagglist.filter( |
| | | (item) => item.icd10code != row |
| | | ); |
| | | this.diagglist = this.diagglist.filter((item) => item != tag); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | } |
| | | }); |
| | | } else { |
| | | // id 不存在(未保存的新记录),直接本地删除 |
| | | this.diagglist = this.diagglist.filter((item) => item != tag); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | } |
| | | }, |
| | | /** 导入按钮操作 */ |