su
su1124
2024-01-25 3435a2b1b3e237ee53c98ae7c044d0e84cfa521c
src/views/sampling/sampling/index.vue
@@ -15,7 +15,7 @@
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @blur="handleQuery"
          @blur="hb"
          style="width: 170px"
        />
      </el-form-item>
@@ -128,10 +128,13 @@
            prop="customer.cusSex"
            width="60px"
          >
            <template slot-scope="scope">
              <!-- {{scope.row.customer.cusSex}} -->
            <!-- <template slot-scope="scope">
              {{ scope.row.customer.cusSex === 0 ? "男" : "女" }}
              <!-- <dict-tag :options="dict.type.sys_user_sex" :value="scope.row.cusSex " /> -->
            </template> -->
              <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>
            </template>
          </el-table-column>
          <el-table-column
@@ -452,6 +455,12 @@
      };
      this.resetForm("form");
    },
    hb(){
      console.log(this.queryParams.tjNum);
       if (this.queryParams.tjNum != null) {
        this.handleQuery();
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;