| | |
| | | <el-table-column prop="project.proName" label="检测项目" width="150"> |
| | | </el-table-column> |
| | | <el-table-column prop="proResult" label="检测结果" width="150"> |
| | | <!-- <template slot-scope="scope"> |
| | | <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off" |
| | | placeholder="请输入检测结果" @keyup.enter.native=" |
| | | keyInputConfirm($event,scope.$index,'proResult') |
| | | " @focus="handleFocus(scope.row)" @blur="handleInputConfirm(scope.row)" |
| | | @input="vale"></el-input> --> |
| | | |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input v-model="row.name" :ref="`input-${$index}`" |
| | | @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" |
| | | @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" @input="vale"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-table-column prop="proResult" label="检测结果" width="150"> |
| | | <!-- slot-scope="scope" --> |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input v-model="row.name" :ref="`input-${$index}`" |
| | | @keyup.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" @input="vale"></el-input> |
| | | |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" |
| | | @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"], |
| | |
| | | radio: "", |
| | | nums: "", |
| | | proParentList: [], |
| | | inputDoms: [], |
| | | tjNumber: "", |
| | | // 全部小结 |
| | | DeptadviceAll: [], |
| | |
| | | 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) { |
| | |
| | | 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; |