qinxianzhangyao
2024-06-21 f0ad3b00ae1cdbd12f64d870927f96ec6b7593a3
src/views/doctor/bgsh/index.vue
@@ -7,7 +7,7 @@
      </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="submitForm" @blur="submitForm"></el-input>
          @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"
@@ -21,7 +21,7 @@
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" size="mini" @click="submitForm">搜索</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>
@@ -29,7 +29,7 @@
    <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>
@@ -79,6 +79,8 @@
import { getcheckList, 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: {
@@ -150,8 +152,9 @@
  },
  created() {
    this.getNowTime();
    this.getList();
    // this.getNowTime();
    this.getdate();
  },
  mounted() {
@@ -160,6 +163,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();
@@ -236,7 +248,11 @@
    // 单选按钮
    radioChange() {
      heXiaoByIds(this.orderIds).then((response) => {
        this.$modal.msgSuccess("报告已核收!请前往报告打印页面查看!");
        if(response.code == 200){
          this.$modal.msgSuccess("报告已核收!请前往报告打印页面查看!");
          this.getList();
        }
      });
    },
@@ -258,6 +274,12 @@
    // 时间
    dateChangebirthday1(val) {
      this.startTime = val;
    },
    hb(){
      console.log(this.queryParams.tjNumber);
       if (this.queryParams.tjNumber != "") {
        this.submitForm();
      }
    },
    // 搜索
@@ -288,6 +310,7 @@
    },
    // 重置
    resetQuery() {
      this.startTime=[]
      this.resetForm("tableList");
      this.submitForm();
    },