| | |
| | | |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" |
| | | @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" @input="vale"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <!-- slot-scope="scope" --> |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" |
| | | @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" @input="vale"></el-input> |
| | | |
| | | @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" ></el-input> |
| | | <!-- @input="vale" --> |
| | | <!-- <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off" :ref="`input-${scope.$index}-${scope.row.proResult}`" |
| | | placeholder="请输入检测结果" @keyup=" |
| | | keyInputConfirm($event,scope.$index,'proResult') |
| | |
| | | import { getlistUser } from "@/api/system/user"; |
| | | import { getChildList } from "@/api/system/dept"; |
| | | import { resultList } from "@/api/doctor/examination"; |
| | | import { selectZT } from "@/api/system/package"; |
| | | import { get } from "sortablejs"; |
| | | export default { |
| | | dicts: ["sys_user_sex", "sys_yes_no", "tj_result_type", "lj_positive"], |
| | |
| | | methods: { |
| | | handleFocus(row) { |
| | | this.autorule = []; |
| | | |
| | | if (!row.resultType || row.resultType == 2) { |
| | | if (!row.resultType || row.resultType == 2 ) { |
| | | return; |
| | | } else { |
| | | this.curindex = row; |
| | | this.$refs.bbb.title = "选择检测结果"; |
| | | selectZT({ |
| | | proId: row.proId, |
| | | }).then((res) => { |
| | | if (res.data.length > 0) { |
| | | this.$refs.bbb.title = "选择检测结果"; |
| | | // 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) { |
| | | console.log(params) |
| | | this.curindex.proResult = params.map((item) => item.ruleStr).join(","); |
| | | console.log(this.curindex.proResult) |
| | | this.handleInputConfirm(this.curindex, params); |
| | | }, |
| | | tableRowClassName({ row }) { |
| | |
| | | const proId = row.proId; |
| | | resultList(tjNum, proId).then((res) => { |
| | | this.jieguoList = res.data; |
| | | console.log(this.jieguoList, 998877); |
| | | |
| | | this.jyjc = this.jieguoList[0].jyjc; |
| | | const ycbz = this.jieguoList[0].ycbz; |
| | |
| | | }, |
| | | |
| | | changDesc(item) { |
| | | console.log(item) |
| | | if (item.exceptionDesc == true) { |
| | | item.conclusion = "异常" |
| | | } else { |
| | |
| | | keyInputConfirm(event, currentRowIndex) { |
| | | // 阻止默认回车行为,比如提交表单 |
| | | event.preventDefault(); |
| | | event.stopPropagation() |
| | | const nextRowIndex = currentRowIndex + 1; // 计算下一行索引 |
| | | |
| | | // 如果下一行存在,则聚焦该行的输入框 |
| | |
| | | // 处理 ref 可能为数组的情况(如动态渲染) |
| | | const target = Array.isArray(nextInput) ? nextInput[0] : nextInput; |
| | | target.focus(); // 聚焦输入框 |
| | | target.select(); // 可选:选中文本 |
| | | // target.select(); // 可选:选中文本 |
| | | } |
| | | }); |
| | | } |
| | | |
| | | }, |
| | | handleInputConfirm(datas, params) { |
| | | |
| | | if (params && params.length === 0) { |
| | | // 如果没有选中任何项目,取消异常复选框的选中状态 |
| | | this.curindex.exceptionDesc = false; |