qinxianzhangyao
2024-03-25 c2943d4c365e6a4719fbd5fedf89f8c2232cf88e
src/views/count/disease/index.vue
@@ -65,6 +65,10 @@
<script>
import { illness } from "@/api/count/disease";
import {
  getNewDateList,
} from "@/api/hosp/order";
import moment from "moment";
export default {
  name: "disease",
@@ -139,7 +143,18 @@
    };
  },
  created() {
    this.getdate();
  },
  methods: {
    getdate() {
      getNewDateList().then((res) => {
        this.value1 = [
            moment(res.data).format("YYYY-MM-DD 00:00:00"),
            moment(res.data).format("YYYY-MM-DD 23:59:00")
          ];;
      });
    },
    // 根据疾病名称查询相关人员信息
    // 时间
@@ -149,8 +164,17 @@
    // 搜索
    submitForm() {
      this.queryParams.pageNum = 1;
       this.queryParams.beginTime = this.startTime[0];
      this.queryParams.endTime = this.startTime[1];
      if(this.value1){
        this.queryParams.beginTime = this.value1[0];
      this.queryParams.endTime = this.value1[1];
      }else if(this.value1 == null){
        this.queryParams.beginTime = null;
      this.queryParams.endTime = null;
      } else {
        this.queryParams.beginTime = this.startTime[0];
       this.queryParams.endTime = this.startTime[1];
      }
      let disesseName = this.queryParams.disesseName;
      if (disesseName) {
         illness(this.queryParams).then(response => {