su
su1124
2024-01-29 8ebaef8428b67433a95b7c93abe229174145b3c4
src/views/doctor/examination/index.vue
@@ -9,10 +9,12 @@
    >
      <el-form-item label="体检号" prop="tjNumber">
        <el-input
        ref="inputName"
          v-model="queryParams.tjNumber"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @keyup.enter.native="handleQuery"
          @blur="hb"
          style="width: 170px"
        />
      </el-form-item>
@@ -64,7 +66,7 @@
    </el-radio-group>
    <div style="width: 100%; margin-left: 10px; display: flex">
      <div style="width: 40%; margin-right: 20px">
      <div style="width: 40.5%; margin-right: 20px">
        <el-table
          id="ta"
          v-loading="loading"
@@ -92,32 +94,38 @@
            label="性别"
            align="center"
            prop="cusSex"
            width="60px"
            width="50px"
          >
            <template slot-scope="scope">
          <template slot-scope="scope">
            <span v-if="scope.row.cusSex == '0'">男</span>
            <span v-if="scope.row.cusSex == '1'">女</span>
            <span v-if="scope.row.cusSex == '2'">未知</span>
            <span v-if="scope.row.cusSex == '9'">未说明性别</span>
          </template>
            <!-- <template slot-scope="scope"> -->
              <!-- {{scope.row.customer.cusSex}} -->
              {{ scope.row.cusSex === 0 ? "男" : "女" }}
              <!-- {{ scope.row.cusSex === 0 ? "男" : "女" }} -->
              <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
            </template>
            <!-- </template> -->
          </el-table-column>
          <el-table-column
            label="手机号"
            align="center"
            prop="cusPhone"
            width="120px"
            width="100px"
          />
          <el-table-column
            label="登记时间"
            align="center"
            prop="tjTime"
            width="180px"
            width="120px"
          />
          <el-table-column
            v-if="checkStatus == '1'"
            label="审核状态"
            align="center"
            prop="confirmStatus"
            width="110px"
            width="80px"
          >
            <template slot-scope="scope">
              <span
@@ -193,7 +201,8 @@
            label="项目"
            align="center"
            prop="proName"
            width="140"
            width="115"
            :show-overflow-tooltip="true"
          />
          <el-table-column
            label="状态"
@@ -340,6 +349,11 @@
    this.getList();
    // this.getNowTime();
  },
  mounted() {
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
  },
  methods: {
    // / 处理默认选中当前日期
    getNowTime() {
@@ -422,6 +436,13 @@
        }
      });
    },
     hb(){
      console.log(this.queryParams.tjNumber);
       if (this.queryParams.tjNumber != null) {
        this.handleQuery();
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.page = 1;