12
wwl
2024-12-20 fe5b83b576a60ab71d599cfdeeae79ea7085ebe3
src/views/doctor/examination/index.vue
@@ -208,7 +208,7 @@
          </el-table-column>
        </el-table>
      </div>
      <div style="width: 38%">
      <div style="width: 40%">
        <el-table
          v-loading="loading"
          border
@@ -321,9 +321,7 @@
    </div>
    <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
      <div
        style="text-align: center; background-color: #aad8df; margin-top: 10px"
      >
      <div style="text-align: center; background-color: #aad8df">
        {{ name || "" }}
      </div>
      <div class="a">
@@ -331,6 +329,7 @@
          <el-table
            :data="jieguoList"
            border
            :row-style="changRed"
            style="width: 100%"
            :header-cell-style="{ background: '#AAD8DF' }"
          >
@@ -343,38 +342,32 @@
        </div>
        <div v-if="jyjc == 1">
          <div
            style="
              text-align: center;
              background-color: #aad8df;
            "
          ></div>
          <div style="text-align: center; background-color: #aad8df"></div>
          <div class="check-result-container">
            <div class="check-item">
              <div class="check-title">检查所见:</div>
              <div class="check-description">
              <div
                class="check-description"
                :style="{ color: isRed ? 'red' : '' }"
              >
                {{ jieguoList[0].pro_result }}
              </div>
            </div>
            <div class="check-item">
              <div class="check-title">检查结论:</div>
              <div class="check-description">
              <div
                class="check-description"
                :style="{ color: isRed ? 'red' : '' }"
              >
                {{ jieguoList[0].yxzd || "暂无结论" }}
              </div>
            </div>
          </div>
          <!-- <div style="padding: 0 10px; margin-bottom: 10px; margin-top: 10px">
            <div style="font-weight: bold">检查所见:</div>
            <div>{{ jieguoList[0].pro_result }}</div>
            <div style="font-weight: bold; margin-top: 10px">检查结论:</div>
            <div>{{ jieguoList[0].yxzd || "暂无结论" }}</div>
          </div> -->
        </div>
      </div>
    </el-drawer>
    <div class="pag">
      <div class="pag1">
        <!-- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :pager-count="5" :current-page.sync="currentPage1" :current-page="page"
@@ -496,21 +489,28 @@
    });
  },
  methods: {
    red() {
      return {
        color: "red",
      };
    changRed({ row }) {
      if (row.ycbz != "" && row.ycbz != null && row.ycbz === "1") {
        // 变颜色的条件
        return {
          color: "red", // 这个return的就是样式 可以是color 也可以是backgroundColor
        };
      }
    },
    getdate() {
      getConfigKey("tj_confirm").then((res) => {
        this.xianshi = res.msg;
        console.log(this.xianshi, 999);
        // console.log(this.xianshi, 999);
      });
      getNewDateList().then((res) => {
        this.createTimeList = [
          moment(res.data).format("YYYY-MM-DD 00:00:00"),
          moment(res.data).format("YYYY-MM-DD 23:59:00"),
        ];
        console.log(res,222);
        // this.createTimeList = [
        //   moment(res.data).format("YYYY-MM-DD 00:00:00"),
        //   moment(res.data).format("YYYY-MM-DD 23:59:00"),
        // ];
        // console.log(this.createTimeList,8855);
        this.getList();
      });
    },
@@ -796,6 +796,7 @@
    handleRowClick(row, column, event) {
      console.log(row, 2323);
      this.name = row.proName;
      console.log(this.name, 99999);
    },
    queryResultone(row) {
      // 打开抽屉
@@ -803,7 +804,21 @@
      const proId = row.proId;
      resultList(tjNum, proId).then((res) => {
        this.jieguoList = res.data;
        console.log(this.jieguoList, 998877);
        this.jyjc = this.jieguoList[0].jyjc;
        const ycbz = this.jieguoList[0].ycbz;
        /* if (ycbz === "" || ycbz === null) {
          return;
        } */
        // 设置是否需要改变颜色
        if (ycbz === "1") {
          this.isRed = true; // 设置标识,改变字体颜色
          console.log(this.isRed, 444);
        } else {
          this.isRed = false; // 恢复默认颜色
        }
        if (res.data.length > 0) {
          this.drawer = true;
@@ -882,6 +897,9 @@
  display: flex;
  justify-content: center;
}
.red-text {
  color: red !important;
}
.pag1 {
  width: 30%;