qinxianzhangyao
2024-03-08 2d1cc07e5be9d226d23dc172031a3971ea43528f
src/views/doctor/check/index.vue
@@ -22,7 +22,8 @@
          v-model="queryParams.tjNumber"
          style="width: 240px"
          placeholder="请输入体检号"
          @blur="submitForm"
          clearable
          @blur="hb"
          @keyup.enter.native="submitForm"
        ></el-input>
      </el-form-item>
@@ -406,9 +407,9 @@
        <table
          style="
            width: 96%;
            height:70px
            height:70px;
            margin: 10px 10px;
            margin-bottom:10px
            margin-bottom:10px;
            border: 1px solid #dfe6ec;
            border-collapse: collapse;
            font-size:16px
@@ -1105,6 +1106,11 @@
        type: "",
        name: null,
      },
      queryParam: {
        page: 1,
        pageSize: 1000,
      },
      rules: {
        hzType: [
          { required: true, message: "会诊科室为必填项", trigger: "change" },
@@ -1140,7 +1146,7 @@
  methods: {
    /** 查询用户列表 */
    getListUser() {
      listUser(this.addDateRange(this.queryParams, this.dateRange)).then(
      listUser(this.addDateRange(this.queryParam, this.dateRange)).then(
        (response) => {
          this.userList = response.rows;
          this.userList.forEach((element) => {
@@ -1315,11 +1321,36 @@
        }
      });
    },
    hb() {
      if (this.queryParams.tjNumber != "") {
        this.submitForm();
      }
    },
    // 搜索
    submitForm() {
      this.queryParams.page = 1;
      this.getList();
      this.loading = true;
      this.queryParams.type = this.tjStatus;
      getProList(this.queryParams).then((response) => {
        if (response.code == 200) {
          this.loading = false;
          if (response.data) {
            if (response.data.date) {
              this.tableList = response.data.date;
              this.queryParams.tjNumber =""
            } else {
              this.tableList = response.data.customers;
              this.queryParams.tjNumber =""
            }
            this.total = response.data.total;
          } else {
            this.tableList = [];
          }
        }
      });
      // this.loading = true;
      // (this.queryParams = {
      //   page: 1,
@@ -1351,6 +1382,9 @@
    resetQuery() {
      this.resetForm("tableList");
      this.submitForm();
      this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
    },
    Changeapplyfor(row) {