| | |
| | | >打印补录单</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | @click="ForceChexiao" |
| | | :disabled="single" |
| | | v-hasPermi="['qzcx']" |
| | | >强制撤销</el-button |
| | | > |
| | | </el-col> |
| | | <right-toolbar |
| | | :showSearch.sync="showSearch" |
| | | @queryTable="getList" |
| | |
| | | getTransitionInfo, |
| | | getBlproByTjh, |
| | | revokeBlProByBldhAndTjh, |
| | | getForceChexiao, |
| | | } from "@/api/hosp/order"; |
| | | import moment from "moment"; |
| | | import { getZhList, getlistByZhId } from "@/api/system/package"; |
| | |
| | | queryCompany, |
| | | addbatch, |
| | | } from "@/api/team/tuanti"; |
| | | import { createLogger } from "vuex"; |
| | | export default { |
| | | components: { |
| | | ViewPdf, |
| | |
| | | .catch(() => { |
| | | this.$message.error("无法获取用户信息!"); |
| | | }); |
| | | }, |
| | | |
| | | // 强制撤销按钮 |
| | | ForceChexiao() { |
| | | const tjNum = this.tjnumbers; |
| | | this.$confirm( |
| | | "您是否需要强制撤销?撤销后该人员本次体检记录不可恢复!", |
| | | "确认信息", |
| | | { |
| | | distinguishCancelAndClose: true, |
| | | confirmButtonText: "确认", |
| | | cancelButtonText: "取消", |
| | | customClass: "custom-message-box", |
| | | } |
| | | ) |
| | | |
| | | .then(() => { |
| | | getForceChexiao(tjNum).then((res) => { |
| | | this.$modal.msgSuccess("撤销成功"); |
| | | this.getList(); |
| | | }); |
| | | }) |
| | | .catch((action) => { |
| | | if (action === "cancel") { |
| | | this.$message({ |
| | | type: "warning", |
| | | message: "已取消", |
| | | }); |
| | | } |
| | | }); |
| | | this.$nextTick(() => { |
| | | // 确保弹框渲染后应用样式 |
| | | const messageBox = document.querySelector( |
| | | ".custom-message-box .el-message-box__message" |
| | | ); |
| | | if (messageBox) { |
| | | messageBox.style.color = "red"; // 通过 JS 强制设置颜色 |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | handleRevoke() { |
| | |
| | | // .el-dialog__body { |
| | | // padding: 20px; |
| | | // } |
| | | ::v-deep .el-message-box__message { |
| | | color: red !important; /* 强制设置颜色为红色 */ |
| | | } |
| | | // .custom-message-box .el-message-box__message { |
| | | // color: red !important; /* 设置文字为红色 */ |
| | | // } |
| | | .o { |
| | | margin-top: 8px; |
| | | } |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | } |
| | | |
| | | ::v-deep .el-step__title.is-process { |
| | | color: rgb(24, 144, 255); |
| | | } |