1
lkk
2025-06-05 8925a21e020cdaee64924f3243898c4d86038fa2
src/views/doctor/pacsCheck/index.vue
@@ -16,6 +16,7 @@
          clearable
          @keyup.enter.native="handleQuery"
          style="width: 170px"
          @input="onInput"
        />
      </el-form-item>
      <!--  <el-form-item label="姓名" prop="name">
@@ -89,7 +90,7 @@
      :data="exaLists"
      v-loading="loading"
      border
      max-height="350"
      height="350"
      @current-change="handleCurrentChange"
      @selection-change="handleSelectionChange"
      :row-class-name="tableRowClassName"
@@ -126,12 +127,13 @@
        prop="checkParts"
        width="150px"
      />
      <!--   :formatter="formatDate" -->
      <el-table-column
        label="报告时间"
        align="center"
        prop="examinationDate"
        width="150px"
        :formatter="formatDate"
        width="153px"
      />
      <el-table-column label="门诊号" align="center" prop="mzh" width="140px" />
@@ -331,6 +333,9 @@
    });
  },
  methods: {
    onInput(val) {
      this.inputVal = val.replace(/\s+/g, ""); // 清除所有空格
    },
    handleDateChange(val) {
      if (val && val.length === 2) {
        this.queryParams.start = val[0]; // 设置开始时间
@@ -360,24 +365,17 @@
    },
    handleSelectionChange(val) {
      console.log(val);
     /*  console.log(val);
      if (val.length > 1) {
        let del_row = val.shift();
        this.$refs.tb.toggleRowSelection(del_row, false); //设置这一行取消选中
      }
      // console.log(val, 999);
      } */
      if (val.length > 0) {
        const selectedRow = val[0];
        // console.log(val[0], 555);
        /*  if (!selectedRow.mzh) {
          this.$refs.tb.toggleRowSelection(selectedRow, false);
          this.$message.warning("当前行无有效门诊号,不能选中");
          return;
        } */
        // const selectedRow = val[0];
        this.selectedFirstTable = selectedRow;
        console.log("当前选中的行数据:", this.selectedFirstTable);
        this.selectedFirstTable = val;
        // console.log("当前选中的行数据:", this.selectedFirstTable);
        const code = this.queryParams.tjNum;
        if (!code) {
          this.$message.warning("体检号不能为空!");
@@ -388,7 +386,6 @@
          this.checkList = response.data;
          this.loading = false;
        });
        // this.fetchRightTableData(selectedRow);
      } else {
        this.selectedFirstTable = null;
        this.checkList = [];
@@ -474,10 +471,14 @@
    tongbu(row) {
      this.$modal.loading("正在同步,请稍候...");
      this.setTime();
      // console.log(val, 66);
      this.selectedFirstTable.tjnum = this.queryParams.tjNum;
      console.log(this.selectedFirstTable,this.selectedSecondTable[0],455555);
      const requestData = {
        pacs: this.selectedFirstTable, // 左侧表格选中数据
        pacs: this.selectedFirstTable.map((item) => ({
          ...item,
          tjNum: this.queryParams.tjNum,
        })),// 左侧表格选中数据
        tj: this.selectedSecondTable[0], // 右侧表格选中数据
      };