From 857950aac3233497766024759fdf4eff55d58424 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 13 八月 2025 14:28:22 +0800 Subject: [PATCH] Merge branch 'master' of http://101.42.27.146:5001/r/ltkj_peisweb_region --- src/views/doctor/check/index.vue | 69 +++++++++++++++++++++++----------- 1 files changed, 47 insertions(+), 22 deletions(-) diff --git a/src/views/doctor/check/index.vue b/src/views/doctor/check/index.vue index 42cc11b..0bf9b86 100644 --- a/src/views/doctor/check/index.vue +++ b/src/views/doctor/check/index.vue @@ -1909,23 +1909,40 @@ }, */ bzxz() { this.taocan = true; - this.titles = ""; - var deptAdviceList1 = []; - let data = { proId: this.proId, tjNum: this.tableAll.tjNumber }; - getAdviceByTjNumAndPro(data).then((res) => { - if (res.data) { - this.deptAdviceList3 = res.data; - if (this.proParentList.xiaoJieIds) { - this.proParentList.xiaoJieIds.forEach((item) => { - this.deptAdviceList3.forEach((items) => { - if (item == items.id) { - deptAdviceList1.push(items); - } - }); - }); - this.deptAdviceList1 = [...new Set(deptAdviceList1)]; - } else if(this.proParentList.xiaoJieIds == null){ - this.deptAdviceList1 = []; + var deptAdviceList1 = [] + // let data = { proId: this.proId, tjNum: this.tableAll.tjNumber }; + // getAdviceByTjNumAndPro(data).then((res) => { + // if (res.data) { + // this.deptAdviceList3 = res.data; + if (this.proParentList.xiaoJieIds.length != 0) { + if (this.vaids.length != 0) { + const result = this.vaids.reduce((acc, item) => { + const matches = this.deptAdviceList.filter(items => { + return item == items.id; // 鎴� === 鏍规嵁闇�姹� + }); + return acc.concat(matches); + }, []); + deptAdviceList1 = result; + + return this.deptAdviceList1 = [ + ...new Set(deptAdviceList1), + ]; + } else { + this.proParentList.xiaoJieIds.forEach(item => { + this.deptAdviceList.forEach((items) => { + if (item == items.id) { + deptAdviceList1.push(items) + } + }); + }) + return this.deptAdviceList1 = [ + ...new Set(deptAdviceList1), + ]; + } + + + } else if (this.proParentList.xiaoJieIds == null) { + this.deptAdviceList1 = [] } // this.deptAdviceList1 = [ @@ -1935,8 +1952,8 @@ // this.idss.push(items.id); // this.remakes += items.advice + ","; // }); - } - }); + // } + // }); }, result() { @@ -2004,12 +2021,13 @@ }, quxiao(){ this.taocan = false; - this.deptAdviceList1 = [] + this.deptAdviceList1 = [] }, queding() { if (this.proParentList.xiaoJie.length != 0) { this.remakes = ""; this.titles = ""; + this.vaids = [] this.deptAdviceList1.forEach((item1) => { if (this.proParentList.remark != null) { this.titles += item1.title + ","; @@ -2194,7 +2212,14 @@ eventchange(data) { this.dataText = data; - data.forEach((item) => (this.proParentList.remark += item.advice)); + data.forEach((item) => { + if (item.advice) { + this.proParentList.remark += item.advice + } else if (item.jynr) { + this.proParentList.remark += item.jynr + } + }) + // data.forEach((item) => (this.proParentList.remark += item.jynr)); }, proposalChange() { @@ -2696,7 +2721,7 @@ }); } } - + if (this.minedis == false) { let data = [ { -- Gitblit v1.8.0