yxh
20 小时以前 3873d3c350c8c1edd7bfdc8afe08c9e78f56d968
src/views/project/statistics/caseStatistics/index.vue
@@ -2,6 +2,7 @@
<template>
  <div class="app-container">
    <el-form
      class="opo-query-form"
      :model="queryParams"
      ref="queryForm"
      :inline="true"
@@ -11,7 +12,7 @@
        <el-col :span="6">
          <el-form-item label="业务人员" prop="name">
            <el-input
              v-model="queryParams.name"
              v-model="queryParams.pausername"
              placeholder="请输入姓名"
              clearable
              size="small"
@@ -102,7 +103,7 @@
      <el-table-column label="业务组" align="center" prop="deptname">
      </el-table-column>
      <el-table-column label="专职人员" align="center" prop="age" />
      <el-table-column label="专职人员" align="center" prop="reportername" />
      <el-table-column label="案例数量" align="center" prop="casesum" />
@@ -170,7 +171,7 @@
      reportervalue: "",
      reportlist: [
        { label: "正常", value: "0" },
        { label: "中止", value: "1" }
        { label: "终止", value: "1" }
      ],
      //省市区
      //默认值设置,可为空
@@ -271,48 +272,14 @@
        this.queryParams.pabegtime = this.selecttime[0];
        this.queryParams.paendtime = this.selecttime[1];
        // if (this.queryParams.paendtime == this.queryParams.pabegtime) {
        let num = Number(this.queryParams.paendtime.slice(5, 7));
        if (num < 9) {
          let mon = Number(this.queryParams.paendtime.slice(6, 7));
          this.queryParams.paendtime =
            this.queryParams.paendtime.slice(0, 5) +
            "0" +
            (mon + 1) +
            "-" +
            "01" +
            " " +
            "00" +
            ":" +
            "00" +
            ":" +
            "00";
        }
        // this.queryParams.paendtime=this.queryParams.paendtime.slice(0,5)年
        else if (num >= 10) {
          this.queryParams.paendtime =
            this.queryParams.paendtime.slice(0, 5) +
            (num + 1) +
            "-" +
            "01" +
            " " +
            "00" +
            ":" +
            "00" +
            ":" +
            "00";
        } else {
          this.queryParams.paendtime =
            this.queryParams.paendtime.slice(0, 5) +
            "10" +
            "-" +
            "01" +
            " " +
            "00" +
            ":" +
            "00" +
            ":" +
            "00";
        }
        // 结束时间取"所选结束月的次月 1 号",以包含整个结束月。
        // 原实现把月份 +1 后直接拼字符串,12 月会得到 13 月(2026-13-01),
        // MySQL 报 Incorrect datetime value,存储过程直接 500。
        this.queryParams.paendtime = this.$moment(this.queryParams.paendtime)
          .startOf("month")
          .add(1, "month")
          .format("YYYY-MM")
          .concat("-01 00:00:00");
        this.queryParams.pabegtime =
          this.queryParams.pabegtime + " " + "00" + ":" + "00" + ":" + "00";
        // }
@@ -398,7 +365,9 @@
      this.form.treatmenthospitalno = "";
      this.queryParams = {};
      this.queryParams = {
        pacasestate: "0"
      };
      this.selecttime = [];
      this.getTimeList();
      this.searchAddress = {