| | |
| | | <el-col v-show="baogaoqian"> |
| | | <template> |
| | | <el-tabs v-model="radio" type="border-card" @tab-click="handleTabClick" style="margin-left: 10px"> |
| | | <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index" :lazy="false"> |
| | | <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index" |
| | | :lazy="false"> |
| | | <el-table class="bgc" v-loading="loading" :data="proParentList.sons" border height="460px" |
| | | style="width: 96%; margin: 10px 10px" :row-class-name="tableRowClassName"> |
| | | <el-table-column prop="project.proName" label="检测项目" width="150"> |
| | | </el-table-column> |
| | | <el-table-column prop="proResult" label="检测结果" width="150"> |
| | | |
| | | |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-item${index}-row${$index}`" |
| | | @keydown.enter.native="keyInputConfirm($event,index,$index)" @focus="handleFocus(row)" |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" |
| | | :ref="`input-item${index}-row${$index}`" |
| | | @keydown.enter.native="keyInputConfirm($event, index, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" @input="vale"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="exceptionDesc" label="异常" width="55px" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)"></el-checkbox> |
| | | <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)" |
| | | :disabled="scope.row.project.sfcyyc === 1"></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="规则" width="70"> |
| | |
| | | <el-col :span="18" v-show="baogaohou"> |
| | | <template> |
| | | <el-tabs v-model="radio" type="border-card" @tab-click="handleTabClick" style="margin-left: 10px"> |
| | | <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index" :lazy="false"> |
| | | <el-tab-pane :label="item.proName" :name="item.proId" v-for="(item, index) in Parent" :key="index" |
| | | :lazy="false"> |
| | | <el-table class="bgc" v-loading="loading" :data="proParentList.sons" border height="460px" |
| | | style="width: 96%; margin: 10px 10px" :row-class-name="tableRowClassName"> |
| | | <el-table-column prop="project.proName" label="检测项目" width="100"> |
| | |
| | | <el-table-column prop="proResult" label="检测结果" width="150"> |
| | | <!-- slot-scope="scope" --> |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-item${index}-row${$index}`" |
| | | @keydown.enter.native="keyInputConfirm($event,index,$index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" ></el-input> |
| | | <!-- @input="vale" --> |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" |
| | | :ref="`input-item${index}-row${$index}`" |
| | | @keydown.enter.native="keyInputConfirm($event, index, $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') |
| | |
| | | |
| | | <el-table-column prop="exceptionDesc" label="异常" width="55px" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox> |
| | | <el-checkbox v-model="scope.row.exceptionDesc" :disabled="scope.row.project.sfcyyc === 1" |
| | | @change="changDesc(scope.row)"></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="isReturn" label="复诊" width="55px" align="center"> |
| | |
| | | methods: { |
| | | handleFocus(row) { |
| | | this.autorule = []; |
| | | if (!row.resultType || row.resultType == 2 ) { |
| | | 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.proId = row.proId; |
| | | this.$refs.bbb.open = true; |
| | | this.$refs.bbb.getList(this.curindex); |
| | | } else { |
| | | this.$refs.bbb.open = false; |
| | | } |
| | | }); |
| | | |
| | | 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) { |
| | |
| | | this.inputDoms = inputDoms |
| | | // console.log(this.inputDoms) |
| | | }, |
| | | keyInputConfirm(event,index, currentRowIndex) { |
| | | keyInputConfirm(event, index, currentRowIndex) { |
| | | // 阻止默认回车行为,比如提交表单 |
| | | event.preventDefault(); |
| | | event.stopPropagation() |
| | | event.stopPropagation() |
| | | const nextRowIndex = currentRowIndex + 1; // 计算下一行索引 |
| | | // 如果下一行存在,则聚焦该行的输入框 |
| | | if (nextRowIndex < this.proParentList.sons.length) { |
| | |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = res.data; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | if (row.project.sfcyyc == 1) { |
| | | return |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | } |
| | | } |
| | | if(this.autorule.length != 0){ |
| | | if( this.autorule[0]||this.autorule[0].nr){ |
| | | this.focusrow.proAdvice = this.autorule[0].nr; |
| | | if (this.autorule.length != 0) { |
| | | if (this.autorule[0] || this.autorule[0].nr) { |
| | | this.focusrow.proAdvice = this.autorule[0].nr; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bz; |
| | |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = res.data; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | if (row.project.sfcyyc == 1) { |
| | | return |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | if (res.data.length > 0) { |
| | | const conditions = ["正常", "未见异常", "阴性", "未见明显异常"]; |
| | | this.focusrow.exceptionDesc = !conditions.some((condition) => |
| | | this.autorule[0].bz.includes(condition) |
| | | ); |
| | | } else { |
| | | this.focusrow.exceptionDesc = false; |
| | | } |
| | | } |
| | | if(this.autorule.length != 0){ |
| | | if( this.autorule[0]||this.autorule[0].nr){ |
| | | this.focusrow.proAdvice = this.autorule[0].nr; |
| | | if (this.autorule.length != 0) { |
| | | if (this.autorule[0] || this.autorule[0].nr) { |
| | | this.focusrow.proAdvice = this.autorule[0].nr; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | this.autorule.forEach((item) => { |
| | | if (this.focusrow.conclusion) { |
| | | this.focusrow.conclusion += item.bz; |
| | |
| | | // } |
| | | this.tjNumber = row.tjNumber; |
| | | let num = 0; |
| | | getParentList(this.tjNumber).then((response) => { |
| | | let data = { |
| | | type: this.tjStatus, |
| | | tjNumber: this.tjNumber |
| | | } |
| | | getParentList(data).then((response) => { |
| | | if (response.data) { |
| | | this.loading = false; |
| | | this.Parent = response.data; |
| | |
| | | |
| | | // 点击确认 |
| | | determine() { |
| | | // 体检号 |
| | | // 清空数组 |
| | | this.tjOrderDetail = []; |
| | | |
| | | // 原有代码 |
| | | let tjNumber = this.tableAll.tjNumber; |
| | | this.userList.forEach((item) => { |
| | | if (this.doctorName == item.nickName) { |