| | |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | <template v-for="(item, index) in shijianlist" > |
| | | <div :key="index" style="margin-bottom: 20px" v-if="shijianlist.length > 0"> |
| | | {{findNameByTjnum(item.tjNUm) }} |
| | | <el-steps :space="200" :active="item.sjz" finish-status="success" align-center> |
| | | <el-step title="未检"></el-step> |
| | | <el-step title="在检"></el-step> |
| | | <el-step title="已完成"></el-step> |
| | | <el-step title="已审核"></el-step> |
| | | <el-step title="生成报告"></el-step> |
| | | <el-step title="报告核收"></el-step> |
| | | <el-step title="已出报告"></el-step> |
| | | </el-steps> |
| | | </div> |
| | | </template> |
| | | |
| | | <div v-if="shijianlist.length > 0" style="margin-bottom: 20px"> |
| | | {{ findNameByTjnum(shijianlist[shijianlist.length - 1].tjNUm) }} |
| | | <el-steps |
| | | :space="200" |
| | | :active="shijianlist[shijianlist.length - 1].sjz" |
| | | finish-status="success" |
| | | align-center |
| | | > |
| | | <el-step title="未检"></el-step> |
| | | <el-step title="在检"></el-step> |
| | | <el-step title="已完成"></el-step> |
| | | <el-step title="已审核"></el-step> |
| | | <el-step title="生成报告"></el-step> |
| | | <el-step title="报告核收"></el-step> |
| | | <el-step title="已出报告"></el-step> |
| | | </el-steps> |
| | | </div> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | |
| | | :disabled="single" |
| | | v-hasPermi="['hosp:order:export']" |
| | | >打印补录单</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 |
| | |
| | | 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, |
| | |
| | | }, |
| | | methods: { |
| | | findNameByTjnum(tjnum) { |
| | | const order = this.orderList.find(orderItem => orderItem.tjNumber === tjnum); |
| | | return order ? order.tjCustomerName : '未找到'; // 如果找不到对应的项,返回一个默认值 |
| | | }, |
| | | const order = this.orderList.find( |
| | | (orderItem) => orderItem.tjNumber === tjnum |
| | | ); |
| | | return order ? order.tjCustomerName : "未找到"; // 如果找不到对应的项,返回一个默认值 |
| | | }, |
| | | // 搜索 |
| | | getRemoteData(query) { |
| | | if (query) { |
| | |
| | | }); |
| | | }, |
| | | |
| | | // 强制撤销按钮 |
| | | 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() { |
| | | this.$confirm("您确认要撤销?", "确认信息", { |
| | | distinguishCancelAndClose: true, |
| | |
| | | this.multiple = !selection.length; |
| | | if (tjNUms.length > 0) { |
| | | shijianzhou(tjNUms).then((res) => { |
| | | this.shijianlist = res.data |
| | | }); |
| | | } else{ |
| | | this.shijianlist = [] |
| | | this.shijianlist = res.data; |
| | | }); |
| | | } else { |
| | | this.shijianlist = []; |
| | | } |
| | | |
| | | |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | // handleAdd() { |
| | |
| | | // .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); |
| | | } |
| | |
| | | color: rgb(24, 144, 255); |
| | | border-color: rgb(24, 144, 255); |
| | | } |
| | | .shijian{ |
| | | .shijian { |
| | | display: flex; |
| | | align-items: flex-start; |
| | | |
| | | } |
| | | </style> |