From c59da684032e6e3eab33d8363bde3f4b85b30f50 Mon Sep 17 00:00:00 2001 From: luobinjie Date: Thu, 27 Nov 2025 18:35:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerReport/combinationDetails.vue | 67 ++++++++----------- 1 file changed, 29 insertions(+), 38 deletions(-) diff --git a/src/views/customerReport/combinationDetails.vue b/src/views/customerReport/combinationDetails.vue index 396a5fd..a4cbb63 100644 --- a/src/views/customerReport/combinationDetails.vue +++ b/src/views/customerReport/combinationDetails.vue @@ -127,11 +127,11 @@ - @@ -438,14 +438,14 @@ page-break-before: avoid;}}`, // 去除页眉页脚 body.completeFlag = this.patientRegister.query.checkCompleteFlag; //console.log('/api/app/peisreport/getpatientregisterreport',body) - postapi("/api/customerreport/getasbitemspecificresultreport", body).then( + postapi("/api/customerreport/getasbitemspecificresultreport", body).then( (res) => { if (res.code != -1) { let bodys = res.data; let that = this; let template = { prop: "", - lable: "", + label: "", }; that.columnData = []; that.category = []; @@ -459,46 +459,40 @@ page-break-before: avoid;}}`, // 去除页眉页脚 for (let i = 0; i < bodys.length; i++) { for (let k = 0; k < bodys[i].registerChecks.length; k++) { if(that.summary=="Y"){ - this.$set( - bodys[i], - // bodys[i].registerChecks[k].registerCheckId + - bodys[i].registerChecks[k].checkName + - "小结", - bodys[i].registerChecks[k].registerCheckSummarys - ); + this.$set( + bodys[i], + bodys[i].registerChecks[k].checkName + "小结", + bodys[i].registerChecks[k].registerCheckSummarys + ); } if(this.combinationDetails=="Y"){ - if (bodys[i].registerChecks[k].checkName == that.category[m]) { - for (let j = 0;j < bodys[i].registerChecks[k].registerCheckItems.length;j++) { - let templatess = JSON.parse(JSON.stringify(template)); - templatess.prop = - // bodys[i].registerChecks[k].registerCheckId + - bodys[i].registerChecks[k].checkName + - bodys[i].registerChecks[k].registerCheckItems[j] - .itemName; - templatess.lable = - // bodys[i].registerChecks[k].checkName + - // "/" + - bodys[i].registerChecks[k].registerCheckItems[j] - .itemName; - that.columnData.push(templatess); - this.$set( - bodys[i], - // bodys[i].registerChecks[k].registerCheckId + - bodys[i].registerChecks[k].checkName + + if (bodys[i].registerChecks[k].checkName == that.category[m]) { + for (let j = 0;j < bodys[i].registerChecks[k].registerCheckItems.length;j++) { + let templatess = Object.assign({}, template); + templatess.prop = + bodys[i].registerChecks[k].checkName + bodys[i].registerChecks[k].registerCheckItems[j] - .itemName, - bodys[i].registerChecks[k].registerCheckItems[j].result - ) + .itemName; + templatess.label = + bodys[i].registerChecks[k].registerCheckItems[j] + .itemName; + that.columnData.push(templatess); + this.$set( + bodys[i], + bodys[i].registerChecks[k].checkName + + bodys[i].registerChecks[k].registerCheckItems[j] + .itemName, + bodys[i].registerChecks[k].registerCheckItems[j].result + ) + } } } - } } } if(that.summary=="Y"){ - let templates = JSON.parse(JSON.stringify(template)); + let templates = Object.assign({}, template); templates.prop =that.category[m] +"小结"; - templates.lable = that.category[m] + "小结"; + templates.label = that.category[m] + "小结"; that.columnData.push(templates); } } @@ -510,9 +504,6 @@ page-break-before: avoid;}}`, // 去除页眉页脚 let qc = this.columnData.filter( (key) => !map.has(key.prop) && map.set(key.prop, 1) ); - // qc.sort(function (a, b) { - // return a.lable < b.lable ? -1 : 1; //根据名称属性进行排序 - // }) this.columnData = qc; this.dataList = bodys;