WXL (wul)
5 天以前 39c8b288ec8294e026459dfb1955f0bbc49ebb52
src/views/sfstatistics/percentage/components/FirstFollowUp.vue
@@ -2050,20 +2050,40 @@
    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,
      // };
      // 应随访时间范围
      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;
      console.log(1);
        this.patientqueryParams.leavehospitaldistrictcode = null;
      }
      this.patientqueryParams.serviceTypes = queryParams.serviceType
        ? Array.isArray(queryParams.serviceType)