qx
2025-03-26 155a30a172e4cf04838dcf7c8bb73ce6b200e574
src/views/doctor/check/index.vue
@@ -1096,22 +1096,41 @@
    // 以下为其他方法,未做修改,仅保留必要部分,其余省略以保持简洁
    handleFocus(row) {
      this.autorule = [];
      if (!row.resultType || row.resultType == 2) return;
      this.curindex = row;
      selectZT({ proId: row.proId }).then((res) => {
      if (!row.resultType || row.resultType == 2 ) {
        return;
      } else {
        this.curindex = row;
      selectZT({
        proId: row.proId,
      }).then((res) => {
        if (res.data.length > 0) {
          this.$refs.bbb.title = "选择检测结果";
          this.$refs.bbb.open = true;
          this.$refs.bbb.getList(this.curindex);
        // this.$refs.bbb.proId = row.proId;
        this.$refs.bbb.open = true;
        this.$refs.bbb.getList(this.curindex);
        } else {
          this.$refs.bbb.open = false;
        }
      });
      }
    },
    handleChangesZt(params) {
      this.curindex.proResult = params.map((item) => item.ruleStr).join(",");
      this.handleInputConfirm(this.curindex, params);
    },
      handleChanges(param1, param2) {
      this.row.conclusion = param1;
      this.row.rulesList = param2;
    },
    handleguize(row) {
      this.row = row;
      this.$refs.aaa.open = true;
      this.$refs.aaa.title = "诊断结果结论";
      this.$refs.aaa.getList(this.row);
    },
    tableRowClassName({ row }) {
@@ -1303,21 +1322,7 @@
      this.inputDoms = inputDoms;
    },
    keyInputConfirm(event, currentRowIndex) {
      event.preventDefault();
      event.stopPropagation();
      const nextRowIndex = currentRowIndex + 1;
      if (nextRowIndex < this.proParentList.sons.length) {
        this.$nextTick(() => {
          const nextInputRef = `input-${nextRowIndex}`;
          const nextInput = this.$refs[nextInputRef];
          if (nextInput) {
            const target = Array.isArray(nextInput) ? nextInput[0] : nextInput;
            target.focus();
          }
        });
      }
    },
    keyInputConfirm(event,index, currentRowIndex) {