| | |
| | | type="primary" |
| | | @click.stop="rowClick" |
| | | icon="el-icon-edit-outline" |
| | | :disabled="isdisabled || isLoading" |
| | | >开处方</el-button |
| | | > |
| | | <div v-if="tjproject == '0'"> |
| | | <el-button |
| | | type="primary" |
| | | @click="determine" |
| | | :disabled="isdisabled" |
| | | :disabled="isdisabled || isLoading" |
| | | >提交并生成报告</el-button |
| | | > |
| | | </div> |
| | |
| | | }, |
| | | |
| | | yichangjieguo() { |
| | | this.loading = true; |
| | | this.isLoading = true; |
| | | // 移除表格loading状态,避免在点击详情时显示表格loading框 |
| | | // this.loading = true; |
| | | // 不要在这里设置 isLoading = true,因为它在 handleClick 中已经被设置了 |
| | | this.status1 = 0; |
| | | getConfigKey("kzycxmsfzk").then((res) => { |
| | | this.shouldExpand = res.msg; |
| | |
| | | const data = res.data; |
| | | |
| | | if (!data || data.length === 0) { |
| | | this.$message.warning("暂无异常报告"); |
| | | this.loading = false; |
| | | this.isLoading = false; // 关闭整体加载框 |
| | | // 移除警告消息,用户不希望看到"暂无异常报告"的弹框 |
| | | // this.$message.warning("暂无异常报告"); |
| | | // 移除表格loading状态设置 |
| | | // this.loading = false; |
| | | // 不在这里关闭 isLoading,因为它由 handleClick 管理 |
| | | resolve(); // 返回 Promise,但不继续后续逻辑 |
| | | return; |
| | | } |
| | |
| | | } |
| | | }); |
| | | }); |
| | | if (!this.yichangList) { |
| | | /* if (!this.yichangList) { |
| | | this.$message.warning("暂无异常报告"); |
| | | } |
| | | } */ |
| | | resolve(); // 成功完成 |
| | | // 这里也可以根据shouldExpand再调用一次getExpends,确保数据已加载 |
| | | if (this.shouldExpand === "Y" || this.shouldExpand === "y") { |
| | |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | this.isLoading = false; |
| | | this.loading = false; |
| | | // 不在这里关闭 isLoading,因为它由 handleClick 管理 |
| | | // 移除表格loading状态设置 |
| | | // this.loading = false; |
| | | console.error("获取异常结果失败:", error); |
| | | this.$message.error("获取异常结果失败"); |
| | | reject(error); // 返回错误 |
| | | }) |
| | | .finally(() => { |
| | | // 只在没有提前返回的情况下关闭加载框 |
| | | if (this.isLoading) { |
| | | this.isLoading = false; |
| | | } |
| | | if (this.loading) { |
| | | this.loading = false; |
| | | } |
| | | // 移除表格loading状态设置,因为 isLoading 由 handleClick 管理 |
| | | // if (this.loading) { |
| | | // this.loading = false; |
| | | // } |
| | | }); |
| | | }, |
| | | |
| | |
| | | this.isLoading = true; |
| | | this.drawer = true; |
| | | getupdateCheckType(this.tjNumber).then((response) => { |
| | | // this.isLoading = false; |
| | | this.isLoading = false; |
| | | this.changedate = response.data; |
| | | if (this.changedate) { |
| | | this.changedate.forEach((item) => { |
| | |
| | | this.zhiyeJl = ""; |
| | | this.zhiyeJg = "未发现目标性疾病"; |
| | | } |
| | | }).catch((error) => { |
| | | this.isLoading = false; |
| | | console.error("获取检查类型失败:", error); |
| | | this.$message.error("获取检查类型失败"); |
| | | }); |
| | | }); |
| | | } |
| | |
| | | this.isLoading = true; |
| | | this.drawer = true; |
| | | getupdateCheckType(this.tjNumber).then((response) => { |
| | | // this.isLoading = false; |
| | | this.isLoading = false; |
| | | this.changedate = response.data; |
| | | if (this.changedate) { |
| | | for (let i = 0; i < this.changedate.length; i++) { |
| | |
| | | this.zhiyeJl = ""; |
| | | this.zhiyeJg = "未发现目标性疾病"; |
| | | } |
| | | }).catch((error) => { |
| | | this.isLoading = false; |
| | | console.error("获取检查类型失败:", error); |
| | | this.$message.error("获取检查类型失败"); |
| | | }); |
| | | }); |
| | | } |