| | |
| | | placeholder="请输入检测结果" |
| | | @blur="handleInputConfirm(scope.row)" |
| | | @input="vale" |
| | | @focus="handleInConfirm(scope.row)" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | placeholder="请输入检测结果" |
| | | @blur="handleInputConfirm(scope.row)" |
| | | @input="vale" |
| | | @focus="handleInConfirm(scope.row)" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | console.log("输入内容:", value); |
| | | }, |
| | | handleInputConfirm(datas) { |
| | | this.focusrow = datas; |
| | | this.proResult = datas; |
| | | var pattern3 = new RegExp("[0-9]+"); |
| | | if (pattern3.test(this.proResult)) { |
| | |
| | | cusId: this.tableAll.cusId, |
| | | keyNum: this.proResult, |
| | | tjNum: this.tableAll.tjNumber, |
| | | keyNum: this.proResult.proResult |
| | | keyNum: this.proResult.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.focusrow.rulesList = res.data; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | } |
| | | |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } |
| | | }); |
| | | // this.rows.push(this.focusrow); |
| | | // this.rows.push(this.focusrow); |
| | | // console.log(this.rows,5522); |
| | | |
| | | } |
| | | }); |
| | | } else { |
| | |
| | | cusId: this.tableAll.cusId, |
| | | keyWord: this.proResult, |
| | | tjNum: this.tableAll.tjNumber, |
| | | keyNum: this.proResult.proResult |
| | | |
| | | keyNum: this.proResult.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.focusrow.rulesList = res.data; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | } |
| | | |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | this.focusrow.conclusion += item.bz; |
| | | } |
| | | }); |
| | | // this.rows.push(this.focusrow); |
| | | // this.rows.push(this.focusrow); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | this.rows.push(datas); |
| | | console.log(this.rows,5522) |
| | | |
| | | // this.$refs.aaa.open = true; |
| | | // this.$refs.aaa.getList(); |
| | | console.log(this.rows, 5522); |
| | | }, |
| | | |
| | | /* vale(datas) { |
| | | this.proResult = datas; |
| | | var pattern3 = new RegExp("[0-9]+"); |
| | | if (pattern3.test(this.proResult)) { |
| | | let data = { |
| | | proId: this.focusrow.proId, |
| | | cusId: this.tableAll.cusId, |
| | | keyNum: this.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } else { |
| | | let data = { |
| | | proId: this.focusrow.proId, |
| | | cusId: this.tableAll.cusId, |
| | | keyWord: this.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = this.autorule; |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bingzhong; |
| | | } else { |
| | | this.focusrow.conclusion = item.bingzhong; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // this.$refs.aaa.open = true; |
| | | // this.$refs.aaa.getList(); |
| | | }, */ |
| | | // 规则 |
| | | handleguize(row) { |
| | | this.row = row; |
| | | this.$refs.aaa.open = true; |
| | |
| | | this.getbzlist(); |
| | | }); |
| | | }, |
| | | handleInConfirm(row) { |
| | | this.focusrow = row; |
| | | }, |
| | | |
| | | // 点击确认 |
| | | determine() { |
| | |
| | | } |
| | | |
| | | .el-button--medium { |
| | | padding: 4px 14px; |
| | | font-size: 14px; |
| | | } |
| | | |