qinxianzhangyao
2024-02-26 63eccc037b6df07de5470635e084c1d2dc1ef3a7
src/views/system/bill/index.vue
@@ -10,7 +10,6 @@
    >
      <el-form-item label="姓名" prop="name">
        <el-input
          ref="inputName"
          v-model="queryParams.name"
          placeholder="请输入姓名"
          style="width: 100px"
@@ -19,11 +18,13 @@
      </el-form-item>
      <el-form-item label="体检号" prop="tjNum">
        <el-input
         ref="inputName"
          style="width: 170px"
          v-model="queryParams.tjNum"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @blur="hb"
        />
      </el-form-item>
      <el-form-item label="登记时间" prop="createTimeList">
@@ -169,6 +170,7 @@
          <template slot-scope="scope">
            <span v-if="scope.row.tjCustomerSex == '0'">男</span>
            <span v-if="scope.row.tjCustomerSex == '1'">女</span>
            <span v-if="scope.row.tjCustomerSex == '2'">未知</span>
          </template>
        </el-table-column>
        <el-table-column
@@ -634,6 +636,11 @@
    this.getList();
    this.Company();
  },
  mounted() {
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
  },
  methods: {
    // / 处理默认选中当前日期
    getNowTime() {
@@ -871,6 +878,12 @@
      };
      this.resetForm("form");
    },
    hb(){
      console.log(this.queryParams.tjNum);
       if (this.queryParams.tjNum != undefined) {
        this.handleQuery();
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;