| | |
| | | |
| | | <!-- 点击右边弹出层 --> |
| | | <el-drawer :visible.sync="drawer" :with-header="false" size="70%" :before-close="handleClose"> |
| | | <div |
| | | v-loading="isLoading" |
| | | element-loading-text="正在加载数据,请稍候..." |
| | | element-loading-spinner="el-icon-loading" |
| | | element-loading-background="rgba(255, 255, 255, 0.8)" |
| | | style="height: 100%; padding: 20px; position: relative" |
| | | > |
| | | <div style="font-size: 14px"> |
| | | <table style=" |
| | | width: 96%; |
| | |
| | | :disabled="row.project.proName === 'BMI'"></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)" |
| | | :disabled="scope.row.project.sfcyyc === 1 || scope.row.project.proName === 'BMI'" |
| | | ></el-checkbox> |
| | | </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)" |
| | | :disabled="scope.row.project.sfcyyc === 1 || scope.row.project.proName === 'BMI'"></el-checkbox> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="规则" width="70"> |
| | | <template slot-scope="scope"> |
| | | <el-button class="blue-button" @click="handleguize(scope.row)">...</el-button> |
| | |
| | | <Historicalreport v-show="lishi" :reportHistorydata="reportHistorydata"></Historicalreport> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </el-drawer> |
| | | <Public ref="aaa" :row="row" @add="handleChanges" /> |
| | | <jianceResult ref="bbb" @add="handleChangesZt" /> |
| | |
| | | proParentList: [], |
| | | tjNumber: "", |
| | | DeptadviceAll: [], |
| | | isLoading: false, |
| | | project: {}, |
| | | summaryList: [], |
| | | summaryAll: [], |
| | |
| | | |
| | | // 实时更新 BMI |
| | | vale(value, row) { |
| | | console.log(3333) |
| | | if (row.project.proName === '身高' || row.project.proName === '体重') { |
| | | const heightRow = this.proParentList.sons.find( |
| | | item => item.project.proName === '身高' |
| | |
| | | bmiRow.proResult = bmi || ''; // 实时更新BMI值 |
| | | this.getBMIStatus(bmiRow); // 检查BMI状态并更新异常复选框 |
| | | } |
| | | } |
| | | |
| | | // 现有的规则检查逻辑保持不变 |
| | | this.focusrow = row; |
| | | this.proResult = row; |
| | | const pattern3 = new RegExp("[0-9]+"); |
| | | if (row.proResult) { } |
| | | if (pattern3.test(row.proResult)) { |
| | | let data = { |
| | | proId: this.focusrow.proId, |
| | | cusId: this.tableAll.cusId, |
| | | tjNum: this.tableAll.tjNumber, |
| | | keyNum: this.proResult.proResult, |
| | | }; |
| | | AutoGetRule(data).then((res) => { |
| | | this.focusrow.conclusion = ""; |
| | | if (res.data) { |
| | | this.autorule = res.data; |
| | | this.focusrow.rulesList = res.data; |
| | | if (row.project.sfcyyc == 1) { |
| | | return; |
| | | } else { |
| | | 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 && (this.autorule[0] || this.autorule[0].nr)) { |
| | | this.focusrow.proAdvice = this.autorule[0].nr; |
| | | } |
| | | this.autorule.forEach((item) => { |
| | | this.focusrow.conclusion += this.focusrow.conclusion ? item.bz : item.bz; |
| | | }); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | |
| | | handleFocus(row) { |
| | | console.log(11111) |
| | | this.autorule = []; |
| | | if (!row.resultType || row.resultType == 2) { |
| | | return; |
| | |
| | | this.getDept(row.tjNumber); |
| | | this.loading = true; |
| | | this.drawer = true; |
| | | this.isLoading = true; |
| | | this.Parent = [] |
| | | this.tableAll= [] |
| | | this.proParentList = {} |
| | | this.$nextTick(() => this.initInputDOM()); |
| | | this.tableAll = row; |
| | | this.tjNumber = row.tjNumber; |
| | |
| | | getParentList(this.tjNumber).then((response) => { |
| | | if (response.data) { |
| | | this.loading = false; |
| | | this.isLoading = false; |
| | | this.Parent = response.data; |
| | | this.Parent.forEach((item) => { |
| | | if (item.type === 1) item.proName += " ✔"; |
| | |
| | | this.Parent = []; |
| | | this.$modal.msgError("该科室下无项目!"); |
| | | } |
| | | }); |
| | | }) .catch((error) => { |
| | | console.error("请求失败:", error); |
| | | this.$modal.msgError("数据加载失败"); |
| | | }) |
| | | .finally(() => { |
| | | this.loading = false; |
| | | this.isLoading = false; // 确保最终状态重置 |
| | | }); |
| | | this.getbzlist(); |
| | | }, |
| | | |