qinxianzhangyao
2024-03-15 ac6766c11f8a2b8de903b58c13a8f206fa01dccd
src/views/system/biol/index.vue
@@ -8,10 +8,12 @@
        <el-input style="width: 170px" v-model="queryParams.tjNum" placeholder="请输入体检号" clearable
          @keyup.enter.native="handleQuery" ref="inputName" @blur="hb" />
      </el-form-item>
      <el-form-item label="报告时间" prop="reportTimeList">
        <el-date-picker clearable v-model="queryParams.reportTimeList" type="daterange" range-separator="-"
          start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" value-format="yyyy-MM-dd"
          placeholder="请选择出报告时间" style="width: 240px">
      <el-form-item label="报告时间" prop="createTimeList">
        <el-date-picker clearable v-model="createTimeList" type="daterange" range-separator="-"
          start-placeholder="开始日期" end-placeholder="结束日期" :picker-options="pickerOptions" :default-time="['00:00:00', '23:00:00']"
              format="yyyy-MM-dd HH:mm:ss"
              value-format="yyyy-MM-dd HH:mm:ss"
          placeholder="请选择出报告时间"  @change="dateChangebirthday1">
        </el-date-picker>
      </el-form-item>
      <!-- <el-form-item label="单位名称" prop="firmId">
@@ -287,7 +289,9 @@
  hasReport,
  hasPrintCode,
  getOrderListOO,
  getNewDateList
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
import { SubmitCompany, getCompany, queryCompany } from "@/api/team/tuanti";
import { chownSync } from "fs";
@@ -460,9 +464,10 @@
    };
  },
  created() {
    this.getNowTime();
    this.getList();
    // this.getNowTime();
    this.Company();
    this.getdate();
  },
  mounted() {
    this.$nextTick(() => {
@@ -470,6 +475,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();
      });
    },
    // / 处理默认选中当前日期
    getNowTime() {
      var curDate = new Date().getTime();
@@ -749,8 +763,9 @@
    },
    /** 查询体检记录列表 */
    getList() {
      this.queryParams.djbeginTime = this.startTime[0];
      this.queryParams.djendTime = this.startTime[1];
      console.log(this.queryParams)
      this.queryParams.djbeginTime = this.createTimeList[0];
      this.queryParams.djendTime = this.createTimeList[1];
      this.loading = true;
      getInfo().then((response) => {
        this.userIds = response.user.userId;
@@ -795,6 +810,7 @@
    },
    // 表单重置
    reset() {
      this.form = {
        orderId: null,
        tjType: null,
@@ -828,6 +844,7 @@
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList =[]
      this.resetForm("queryForm");
      this.handleQuery();
    },