lkk
2024-12-17 6bf0b65995f54e9ee85b9d6823b77fb355b2a47c
异常结果
4个文件已修改
85 ■■■■ 已修改文件
src/api/doctor/examination.js 补丁 | 查看 | 原始文档 | blame | 历史
src/api/hosp/order.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/examination/index.vue 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/biol/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/doctor/examination.js
src/api/hosp/order.js
@@ -369,3 +369,12 @@
    data:data
  })
}
// 撤销报告
export function getChexiao(data) {
  return request({
    url: '/hosp/order/heshouchexiao',
    method: 'post',
    data:data
  })
}
src/views/doctor/examination/index.vue
@@ -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' }"
          >
@@ -347,25 +346,24 @@
          <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>
@@ -491,10 +489,13 @@
    });
  },
  methods: {
    red() {
    changRed({ row }) {
      if (row.ycbz != "" && row.ycbz != null && row.ycbz === "1") {
        // 变颜色的条件
      return {
        color: "red",
          color: "red", // 这个return的就是样式 可以是color 也可以是backgroundColor
      };
      }
    },
    getdate() {
      getConfigKey("tj_confirm").then((res) => {
@@ -791,6 +792,7 @@
    handleRowClick(row, column, event) {
      console.log(row, 2323);
      this.name = row.proName;
      console.log(this.name, 99999);
    },
    queryResultone(row) {
      // 打开抽屉
@@ -798,7 +800,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;
@@ -877,6 +893,9 @@
  display: flex;
  justify-content: center;
}
.red-text {
  color: red !important;
}
.pag1 {
  width: 30%;
src/views/system/biol/index.vue
@@ -142,6 +142,15 @@
        >
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="primary"
          size="mini"
          :disabled="single"
          @click="chexiao"
          >撤销报告</el-button
        >
      </el-col>
      <el-col :span="1.5">
        <div id="main111">
          <el-input style="width: 920px" v-model="form.name"></el-input>
        </div>
@@ -541,6 +550,7 @@
  hasPrintCode,
  getOrderListOO,
  getNewDateList,
  getChexiao
} from "@/api/hosp/order";
import moment from "moment";
import ViewPdf from "@/components/ViewPdf";
@@ -674,6 +684,7 @@
      open: false,
      // 日期范围
      datetimerange: [],
      seleList:[],
      // 查询参数
      queryParams: {
        pageNum: 1,
@@ -804,6 +815,8 @@
    },
    baogaoyulan() {
      const tjNumber = this.report[0];
      console.log(tjNumber,5555);
      isPdfOrJimu(tjNumber).then((response) => {
        if (response.data.flag == "0") {
          const flag = true;
@@ -840,6 +853,19 @@
          );
        }
      });
    },
    // 撤销打印
    chexiao(){
      const tjNUms = this.seleList.map((item) => item.tjNumber);
      getChexiao(tjNUms).then((res)=>{
        console.log(res,6666);
        if(res.code === 200){
          this.$modal.msgSuccess('撤销成功!')
          this.getList()
        }else{
          this.$modal.msgError('撤销失败!')
        }
      })
    },
    //打印小票
    printHandle() {
@@ -1222,6 +1248,9 @@
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map((item) => item.orderId);
      this.seleList = selection;
      console.log(this.seleList,222333);
      this.DataList1 = this.$refs.multipleTable.selection;
      this.DataList1.forEach((item) => {
        this.barcode = item.tjNumber;