lkk
2024-12-16 c7b33db117fd2893d7d1c93bf5d46e87d33e44d0
src/views/doctor/bgsh/index.vue
@@ -1,35 +1,89 @@
<template>
  <div>
    <el-form :model="queryParams" ref="tableList" :inline="true" label-width="76px" style="margin-top: 10px">
    <el-form
      :model="queryParams"
      ref="tableList"
      :inline="true"
      label-width="76px"
      style="margin-top: 10px"
    >
      <el-form-item label="姓名" prop="name">
        <el-input v-model="queryParams.name" style="width: 120px" placeholder="请输入姓名" clearable @keyup.enter.native="handleQuery"></el-input>
        <el-input
          v-model="queryParams.name"
          style="width: 120px"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
        ></el-input>
      </el-form-item>
      <el-form-item label="体检号" prop="tjNumber">
        <el-input ref="inputName" v-model="queryParams.tjNumber" style="width: 180px" placeholder="请输入体检号" clearable @keyup.enter.native="handleQuery"></el-input>
        <el-input
          ref="inputName"
          v-model="queryParams.tjNumber"
          style="width: 180px"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="submitForm"
          @blur="hb"
        ></el-input>
      </el-form-item>
      <el-form-item label="体检时间" prop="tjTime">
        <el-date-picker v-model="startTime" type="datetimerange" align="right" :picker-options="pickerOptions" style="width: 310px" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:00:00']" format="yyyy-MM-dd HH:mm"
          value-format="yyyy-MM-dd HH:mm" @change="dateChangebirthday1">
        </el-date-picker> </el-form-item>
      <el-form-item label="单位名称" prop="tjCompName" style="margin-left: 20px;">
        <el-select  :remote-method="getRemoteData" v-model="queryParams.tjCompName" value-key="drugManufacturerId" style="width: 180px" remote filterable placeholder="请选择单位名称" clearable @change="searchSelect">
          <el-option v-for="dict in CompanyList" :key="dict.drugManufacturerId" :label="dict.cnName" :value="dict"/>
        <el-date-picker
          v-model="startTime"
          type="datetimerange"
          align="right"
          :picker-options="pickerOptions"
          style="width: 310px"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
          :default-time="['00:00:00', '23:00:00']"
          format="yyyy-MM-dd HH:mm"
          value-format="yyyy-MM-dd HH:mm"
          @change="dateChangebirthday1"
        >
        </el-date-picker>
      </el-form-item>
      <el-form-item
        label="单位名称"
        prop="tjCompName"
        style="margin-left: 20px"
      >
        <el-select
          :remote-method="getRemoteData"
          v-model="queryParams.tjCompName"
          value-key="drugManufacturerId"
          style="width: 180px"
          remote
          filterable
          placeholder="请选择单位名称"
          clearable
          @change="searchSelect"
        >
          <el-option
            v-for="dict in CompanyList"
            :key="dict.drugManufacturerId"
            :label="dict.cnName"
            :value="dict"
          />
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini" @click="submitForm">搜索</el-button>
        <el-button  size="mini" @click="resetQuery">重置</el-button>
        <el-button
          type="primary"
          size="mini"
          @click="submitForm"
          style="margin-right: 15px"
          >搜索</el-button
        >
        <el-button size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>
    <el-row :gutter="10" class="mb8" style="margin-left:14px ;">
    <el-row :gutter="10" class="mb8" style="margin-left: 14px">
      <el-col :span="1.5">
        <el-button type="primary"
          size="mini"
          @click="radioChange"
          v-hasPermi="['system:notice:add']"
        >核收</el-button>
        <el-button type="primary" size="mini" @click="radioChange"
          >核收</el-button
        >
      </el-col>
    </el-row>
@@ -42,7 +96,12 @@
        @selection-change="handleSelectionChange"
        style="margin: 20px; width: 98%"
      >
      <el-table-column type="selection" width="40px" align="center" fixed="left" />
        <el-table-column
          type="selection"
          width="40px"
          align="center"
          fixed="left"
        />
        <!-- <template slot="empty">数据正在加载中</template> -->
        <el-table-column
          label="体检号"
@@ -60,7 +119,7 @@
          width="100px"
          fixed="left"
        />
        <el-table-column
          label="性别"
          align="center"
@@ -89,7 +148,7 @@
          :show-overflow-tooltip="true"
          width="130px"
        />
        <el-table-column
          label="体检时间"
          align="center"
@@ -120,7 +179,7 @@
          align="center"
          prop="tjCompName"
          :show-overflow-tooltip="true"
        />
        />
      </el-table>
      <div class="pag">
@@ -140,9 +199,11 @@
  
<script>
import {getcheckList,heXiaoByIds} from "@/api/doctor/checkAll";
import { getBghsList, heXiaoByIds } from "@/api/doctor/checkAll";
import { getCompany, queryCompany } from "@/api/team/tuanti";
import ViewPdf from "@/components/ViewPdf";
import { getNewDateList } from "@/api/hosp/order";
import moment from "moment";
export default {
  components: {
@@ -208,14 +269,15 @@
        endTime: null,
        compId: null,
        name: null,
        checkStatus:null,
        checkStatus: null,
      },
    };
  },
  created() {
    this.getNowTime();
    this.getList();
    // this.getNowTime();
    this.getdate();
  },
  mounted() {
@@ -224,6 +286,15 @@
    });
  },
  methods: {
    getdate() {
      getNewDateList().then((res) => {
        this.startTime = [
          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();
@@ -268,17 +339,20 @@
      }
      // 页面数据
      getcheckList(this.queryParams).then((response) => {
        if (response.data) {
          if (response.data.date) {
            this.checkList = response.data.date;
          } else {
            this.checkList = response.data.customers;
          }
      getBghsList(this.queryParams).then((response) => {
        if (response.code == 200) {
          this.loading = false;
          this.total = response.data.total;
        } else {
          this.checkList = [];
          if (response.data) {
            if (response.data.date) {
              this.checkList = response.data.date;
            } else {
              this.checkList = response.data.customers;
            }
            this.total = response.data.total;
          } else {
            this.checkList = [];
          }
        }
      }),
        // 获取单位信息集合
@@ -295,8 +369,12 @@
    // 单选按钮
    radioChange() {
      this.loading = true;
      heXiaoByIds(this.orderIds).then((response) => {
        this.$modal.msgSuccess("报告已核收!请前往体检记录页面查看!");
        if (response.code == 200) {
          this.$modal.msgSuccess("报告已核收!请前往报告打印页面查看!");
          this.getList();
        }
      });
    },
@@ -319,6 +397,12 @@
    dateChangebirthday1(val) {
      this.startTime = val;
    },
    hb() {
      console.log(this.queryParams.tjNumber);
      if (this.queryParams.tjNumber != "") {
        this.submitForm();
      }
    },
    // 搜索
    submitForm() {
@@ -333,7 +417,7 @@
      }
      // 页面数据
      getcheckList(this.queryParams).then((response) => {
      getBghsList(this.queryParams).then((response) => {
        if (response.data.customers != null) {
          this.checkList = response.data.customers;
          this.checkList.forEach((item) => {
@@ -348,10 +432,11 @@
    },
    // 重置
    resetQuery() {
      this.startTime = [];
      this.resetForm("tableList");
      this.submitForm();
    },
    change(vale) {
      // console.log(this.changedate[index].remark);
    },