| | |
| | | selectTimelyRate(row, queryParams) { |
| | | console.log(row, queryParams, 88); |
| | | |
| | | // const params = { |
| | | // ...this.patientqueryParams, |
| | | // starttime: this.parseTime(dateRange[0]), |
| | | // endtime: this.parseTime(dateRange[1]), |
| | | // deptcode: row.deptcode, |
| | | // }; |
| | | this.patientqueryParams.starttime = this.parseTime( |
| | | queryParams.dateRange[0] |
| | | ); |
| | | this.patientqueryParams.endtime = this.parseTime( |
| | | queryParams.dateRange[1] |
| | | ); |
| | | this.patientqueryParams.deptcode = row.deptcode; |
| | | console.log(1); |
| | | // 应随访时间范围 |
| | | if (queryParams.endTime) { |
| | | this.patientqueryParams.starttime = queryParams.startTime; |
| | | this.patientqueryParams.endtime = queryParams.endTime; |
| | | } else { |
| | | this.patientqueryParams.starttime = this.parseTime( |
| | | queryParams.dateRange[0] |
| | | ); |
| | | this.patientqueryParams.endtime = this.parseTime( |
| | | queryParams.dateRange[1] |
| | | ); |
| | | } |
| | | // 出院时间范围 |
| | | if (queryParams.hospitalEndTime) { |
| | | this.patientqueryParams.hospitalstarttime = |
| | | queryParams.hospitalStartTime; |
| | | this.patientqueryParams.hospitalendtime = queryParams.hospitalEndTime; |
| | | } else { |
| | | this.patientqueryParams.hospitalstarttime = this.parseTime( |
| | | queryParams.dateRangecy[0] |
| | | ); |
| | | this.patientqueryParams.hospitalendtime = this.parseTime( |
| | | queryParams.dateRangecy[1] |
| | | ); |
| | | } |
| | | // 统计类型:病区统计(1)传病区code,科室统计(2)传科室code |
| | | if (queryParams.statisticaltype == 1) { |
| | | this.patientqueryParams.leavehospitaldistrictcode = |
| | | row.leavehospitaldistrictcode; |
| | | this.patientqueryParams.deptcode = null; |
| | | } else { |
| | | this.patientqueryParams.deptcode = row.deptcode; |
| | | this.patientqueryParams.leavehospitaldistrictcode = null; |
| | | } |
| | | |
| | | this.patientqueryParams.serviceTypes = queryParams.serviceType |
| | | ? Array.isArray(queryParams.serviceType) |