su
su1124
2023-12-29 d10c7c728234b5a9098b7bd5bb7a914a14e33c20
src/views/sampling/sampling/index.vue
@@ -10,10 +10,12 @@
    >
      <el-form-item label="体检号" prop="tjNum">
        <el-input
        ref="inputName"
          v-model="queryParams.tjNum"
          placeholder="请输入体检号"
          clearable
          @keyup.enter.native="handleQuery"
          @blur="handleQuery"
          style="width: 170px"
        />
      </el-form-item>
@@ -76,8 +78,9 @@
        >
      </el-form-item>
    </el-form>
    <el-radio-group
    <el-row :gutter="10" class="mb8" >
      <el-col :span="10">
        <el-radio-group
      v-model="tjStatus"
      @input="radioChange"
      style="margin: 10px 15px"
@@ -85,6 +88,14 @@
      <el-radio-button label="1">未采样</el-radio-button>
      <el-radio-button label="0">已采样</el-radio-button>
    </el-radio-group>
      </el-col >
            <el-col :span="12" v-if="tableList.length > 1 && tjStatus==0">
                <el-button type="primary" plain
                    v-hasPermi="['hosp:detail:add']">合并样本</el-button>
            </el-col>
        </el-row>
    <div style="width: 100%; margin-left: 10px; display: flex">
      <div style="width: 40%; margin-right: 20px">
@@ -117,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
@@ -142,6 +156,7 @@
        </el-table>
      </div>
      <div style="width: 50%">
        <el-table
          v-loading="loading"
          :data="tableList"
@@ -170,7 +185,7 @@
          </el-table-column>
          <el-table-column label="项目名称" align="center" prop="proName" />
          <el-table-column label="性别" align="center" prop="proSex" width="90" />
          <el-table-column label="空腹" align="center" prop="isEat" width="90" />
          <el-table-column label="空腹" align="center" prop="proCheckMethod" width="90" />
          <el-table-column
            label="采样编号"
            align="center"
@@ -345,6 +360,11 @@
    this.getNowTime();
    this.getList();
  },
  mounted() {
    this.$nextTick(() => {
      this.$refs.inputName.focus();
    });
  },
  methods: {
    handleSizeChange(val) {
      this.size = val;