qinxianzhangyao
2024-03-26 0303c170c6ff96ad5b2da77e54d6f9c8fd461470
src/views/system/visit/index.vue
@@ -258,9 +258,10 @@
  getPdf,
  getOrderList,
  printCode,
  getNewDateList
} from "@/api/hosp/order";
import { getsendEmail, getsendMessage } from "@/api/hosp/order";
import moment from "moment";
import { addSurveyRecord } from "@/api/hosp/surveyRecord";
import { getDictEmerList, listEmer } from "@/api/system/emer";
import ViewPdf from "@/components/ViewPdf";
@@ -427,10 +428,11 @@
    },
  },
  created() {
    this.getNowTime();
    this.getList();
    // this.getNowTime();
    this.Company();
    this.getListEmer();
    this.getdate();
  },
  mounted() {
    this.$nextTick(() => {
@@ -438,6 +440,15 @@
    });
  },
  methods: {
    getdate() {
      getNewDateList().then((res) => {
        this.createTimeList = [
            moment(res.data).format("YYYY-MM-DD 00:00:00"),
            moment(res.data).format("YYYY-MM-DD 23:59:00")
          ];;
          this.getList();
      });
    },
    dialogVisibles() {
      this.$message.error("请连接拨号器!");
    },
@@ -506,8 +517,15 @@
    },
    /** 查询体检记录列表 */
    getList() {
      this.queryParams.djbeginTime = this.createTimeList[0];
      if( this.createTimeList){
        this.queryParams.djbeginTime = this.createTimeList[0];
      this.queryParams.djendTime = this.createTimeList[1];
      }else if(this.createTimeList == null){
        this.queryParams.djbeginTime = null;
      this.queryParams.djendTime = null;
      }
      this.loading = true;
      getOrderList(this.queryParams).then((response) => {
        this.orderList = response.data.list;
@@ -605,6 +623,7 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = []
      this.resetForm("queryForm");
      this.handleQuery();
    },