| | |
| | | <div class="btn1"> |
| | | <el-button @click="fuchaxiangmu()" type="primary"><span class="vertical-text">复查项目</span></el-button> |
| | | </div> |
| | | <div class="btn1"> |
| | | <el-button @click="yichanghuifu()" type="primary"><span class="vertical-text">异常恢复</span></el-button> |
| | | </div> |
| | | </div> |
| | | <div class="box"> |
| | | <div class="left-container"> |
| | |
| | | </el-form> |
| | | </div> |
| | | </template> |
| | | <template v-if="status1 == 4"> |
| | | <div> |
| | | <el-table |
| | | :data="ychfList" |
| | | style="width: 100%" |
| | | :header-cell-style="{ background: '#e6a23c' }" |
| | | > |
| | | <el-table-column |
| | | align="center" |
| | | prop="jcxm" |
| | | label="项目名" |
| | | width="260" |
| | | ></el-table-column> |
| | | <el-table-column |
| | | label="结果" |
| | | align="center" |
| | | prop="jcjg" |
| | | width="160" |
| | | /> |
| | | <el-table-column label="操作" align="center" width="130px"> |
| | | <template v-slot="scope"> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="hfyc(scope.row.id)" |
| | | >恢复</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </template> |
| | | <el-button type="primary" @click="addnew" :disabled="isdisabled" style="margin-top: 20px;">新增</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | addOrder, |
| | | addOrder1, |
| | | getFcList, |
| | | UpdFcPro |
| | | UpdFcPro, |
| | | huiFuyichangxiangmu, |
| | | hfbt, |
| | | } from "@/api/doctor/checkAll"; |
| | | import { getInfoById } from "@/api/hosp/history"; |
| | | import { getInfo } from "@/api/login"; |
| | |
| | | }); |
| | | }, |
| | | |
| | | yichanghuifu() { |
| | | this.loading = true; |
| | | let tjNum = this.tjNumber; |
| | | huiFuyichangxiangmu(tjNum).then((res) => { |
| | | this.status1 = 4; |
| | | this.ychfList = res.data; |
| | | if(this.ychfList.length == 0){ |
| | | this.message.success("暂无异常恢复项目") |
| | | } |
| | | }) |
| | | .catch((error)=>{ |
| | | console.error("获取项目失败:",error); |
| | | |
| | | this.$message.error("获取项目失败") |
| | | }) |
| | | .finally(()=>{ |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | |
| | | hfyc(id) { |
| | | this.$confirm("确认要恢复该项吗?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | // 用户确认后执行接口 |
| | | hfbt({ id }) |
| | | .then((res) => { |
| | | this.$message.success("恢复成功"); |
| | | this.yichanghuifu(); // 恢复后刷新列表 |
| | | }) |
| | | .catch((err) => { |
| | | console.error(err); |
| | | this.$message.error("恢复失败"); |
| | | }); |
| | | }) |
| | | .catch(() => { |
| | | // 用户取消了操作 |
| | | this.$message.info("已取消恢复"); |
| | | }); |
| | | }, |
| | | |
| | | resetQuery() { |
| | | this.startTime = []; |
| | | this.queryParams = { |