| | |
| | | // 以下为其他方法,未做修改,仅保留必要部分,其余省略以保持简洁 |
| | | 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.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) { |