| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -94,7 +94,8 @@ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  : window.pageHeight - 185 - 20 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                : '' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                " :data="standardTableData" id="standardTableData" ref="standardTableData" style="width: 100%" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                :header-cell-class-name="headerStyle" :cell-style="tableRowClassName"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                :header-cell-class-name="headerStyle" :cell-style="tableRowClassName" :summary-method="getSummaries" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    show-summary> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                <el-table-column label="科室工作量统计"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                  <el-table-column :label="'时间:' + startDate + '至' + endDate"> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    <el-table-column prop="itemTypeName" label="科室"></el-table-column> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -246,6 +247,59 @@ export default { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  methods: { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          getSummaries(param) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        const { columns, data } = param; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        const sums = []; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        console.log(param) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let asbitemCount=0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let checkAsbitemCount=0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let avgStandardPrice=0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let avgChargePrice=0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let sumStandardPrice=0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        let sumChargePrice=0 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        data.forEach((column, index) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if(column.asbitemName==='合计'){ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            asbitemCount+=column.asbitemCount | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            checkAsbitemCount+=column.checkAsbitemCount | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            avgStandardPrice=(Number(avgStandardPrice) + Number(column.avgStandardPrice)).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            avgChargePrice=(Number(avgChargePrice) + Number(column.avgChargePrice)).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sumStandardPrice=(Number(sumStandardPrice) + Number(column.sumStandardPrice)).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sumChargePrice=(Number(sumChargePrice) + Number(column.sumChargePrice)).toFixed(2) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        columns.forEach((column, index) => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 0) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = '总计'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 2) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = asbitemCount+'人'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 3) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = checkAsbitemCount+'人'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 4) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = avgStandardPrice+'元'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 5) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = avgChargePrice+'元'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 6) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = sumStandardPrice+'元'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          if (index === 7) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            sums[index] = sumChargePrice+'元'; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return sums; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    dictInit() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      //体检类别 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      getapi("/api/app/medical-type/in-filter").then((res) => { | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -946,9 +1000,9 @@ page-break-before: avoid;}}`, // 去除页眉页脚 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    ...mapState(["window", "dict", "patientRegister", "report"]), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  updated() { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // this.$nextTick(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    //   this.$refs.table.doLayout(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.$nextTick(() => { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.$refs.standardTableData.doLayout(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    }); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  }, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					}; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					</script> | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |