qx
qx
2025-03-18 7f6ec112b1295e6edd669a1592a596e904c930b5
src/views/doctor/check/index.vue
@@ -1096,17 +1096,24 @@
    // 以下为其他方法,未做修改,仅保留必要部分,其余省略以保持简洁
    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) {
@@ -1303,21 +1310,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) {