lkk
2024-12-12 a55722601ade8cbd4e7129eaf6de3ed2690a12ef
src/views/doctor/examination/index.vue
@@ -199,7 +199,7 @@
          ref="tab1"
          :data="xiangmuList"
          highlight-current-row
          @row-click="handleRowClick"
          @row-click="handleRowClick"
        >
          <!-- <el-table-column type="selection" width="40" align="center" /> -->
          <el-table-column
@@ -285,7 +285,10 @@
                @click="qijian(scope.row)"
                >弃检</el-button
              >
              <el-button size="mini" type="text"  @click="queryResult(scope.row)"
              <el-button
                size="mini"
                type="text"
                @click="queryResultone(scope.row)"
                >结果查询</el-button
              >
              <!--  @click="chaxun(scope.row) " -->
@@ -297,77 +300,77 @@
    <!-- <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
      <div class="rightbox">
          <div class="right">
            <template>
              <div v-for="(item, index) in xiangmuList" :key="index">
                <div
                  style="
                    text-align: center;
                    background-color: #FDE2E2;
                    margin-top: 10px;
                  "
                >
                  {{ item.proName || "" }}
                </div>
                <el-table
                  :stripe="true"
                  :row-style="red"
                  :data="item.sone"
                  border
                  style="width: 100%"
                  :header-cell-style="{ background: 'Transparent' }"
                >
                  <el-table-column type="expand">
                    <template slot-scope="props">
                      <div
                        v-if="props.row.advices && props.row.advices.length > 0"
                      >
                        <div
                          v-for="(jianyi, index1) in props.row.advices"
                          :key="index1"
                          style="padding: 0 10px; margin-bottom: 10px"
                        >
                          <div>标题:{{ jianyi.bt || "" }}</div>
                          <div>内容:{{ jianyi.nr || "" }}</div>
                        </div>
                      </div>
                    </template>
                  </el-table-column>
                  <el-table-column align="center" label="检测项目" width="335">
                    <template slot-scope="scope">
                      <div>{{ scope.row.proName }}</div>
                    </template>
                  </el-table-column>
                  <el-table-column
                    align="center"
                    prop="proResult"
                    label="检测结果"
                    width="85"
                  >
                  </el-table-column>
                  <el-table-column
                    align="center"
                    prop="stanId"
                    label=" 参考范围"
                    width="117"
                  >
                  </el-table-column>
                  <el-table-column
                    align="center"
                    prop="proAdvice"
                    label="单位"
                    width="78"
                  >
                  </el-table-column>
                </el-table>
        <div class="right">
          <template>
            <div v-for="(item, index) in xiangmuList" :key="index">
              <div
                style="
                  text-align: center;
                  background-color: #fde2e2;
                  margin-top: 10px;
                "
              >
                {{ item.proName || "" }}
              </div>
            </template>
          </div>
              <el-table
                :stripe="true"
                :row-style="red"
                :data="item.sone"
                border
                style="width: 100%"
                :header-cell-style="{ background: 'Transparent' }"
              >
                <el-table-column type="expand">
                  <template slot-scope="props">
                    <div
                      v-if="props.row.advices && props.row.advices.length > 0"
                    >
                      <div
                        v-for="(jianyi, index1) in props.row.advices"
                        :key="index1"
                        style="padding: 0 10px; margin-bottom: 10px"
                      >
                        <div>标题:{{ jianyi.bt || "" }}</div>
                        <div>内容:{{ jianyi.nr || "" }}</div>
                      </div>
                    </div>
                  </template>
                </el-table-column>
                <el-table-column align="center" label="检测项目" width="335">
                  <template slot-scope="scope">
                    <div>{{ scope.row.proName }}</div>
                  </template>
                </el-table-column>
                <el-table-column
                  align="center"
                  prop="proResult"
                  label="检测结果"
                  width="85"
                >
                </el-table-column>
                <el-table-column
                  align="center"
                  prop="stanId"
                  label=" 参考范围"
                  width="117"
                >
                </el-table-column>
                <el-table-column
                  align="center"
                  prop="proAdvice"
                  label="单位"
                  width="78"
                >
                </el-table-column>
              </el-table>
            </div>
          </template>
        </div>
      </div>
    </el-drawer> -->
    <div class="pag">
@@ -395,6 +398,7 @@
  confirmOrder,
  cSWebGetPro,
  dataSynchronization,
  qijian,
} from "@/api/doctor/examination";
import { getNewDateList } from "@/api/hosp/order";
import moment from "moment";
@@ -405,8 +409,10 @@
    return {
      dis: false,
      createTimeList: "",
      currentRow: null,
      total: 0,
      loading: true,
      selectedTjNumber: "",
      drawer: false,
      // 查询参数
      queryParams: {
@@ -639,6 +645,9 @@
    handleCurrentChange(val) {
      this.currentRow = val;
      let tjNumber = val.tjNumber;
      this.selectedTjNumber = val.tjNumber;
      console.log(this.currentRow, 4455);
      cSWebGetPro(tjNumber).then((res) => {
        this.xiangmuList = res.data;
        this.xiangmuList.forEach((item) => {
@@ -673,16 +682,32 @@
        });
      });
    },
    qijian(row) {},
    // 弃检按钮
    qijian(row) {
      const tjNUm = this.selectedTjNumber;
      const proId = row.proId;
      qijian(tjNUm, proId).then((res) => {
        if (res.code == 200) {
          cSWebGetPro(tjNUm).then((res) => {
            if (res.code === 200) {
              // 更新右边表格的数据
              this.xiangmuList = res.data;
            }
          });
        }
      });
    },
    chaxun() {},
    handleRowClick(row, column, event) {
      console.log(row); //
      console.log(row); //
    },
    queryResult(row) {
    queryResultone(row) {
      // 将当前行的数据存储到 currentRow
      this.currentRow = row;
      console.log(this.currentRow,999555);
      // this.currentRow = row;
      // console.log(this.currentRow, 999555);
      // 打开抽屉
      this.drawer = true;
    },