| | |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column label="序号" type="index" width="60" align="center" /> |
| | | |
| | | <el-table-column |
| | | label="编号" |
| | | align="center" |
| | | prop="caseNo" |
| | | width="140" |
| | | /> |
| | | <el-table-column label="编号" align="center" prop="caseNo" width="140" /> |
| | | <el-table-column label="患者信息" align="center" width="260"> |
| | | <template slot-scope="scope"> |
| | | <div class="donor-info"> |
| | |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-view" |
| | | size="small" |
| | | type="primary" |
| | | @click="handleDetail(scope.row)" |
| | | >详情</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | size="small" |
| | | type="primary" |
| | | style="margin-bottom: 10px;" |
| | | plain |
| | | @click="handleUpdate(scope.row)" |
| | | >编辑</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-video-play" |
| | | size="small" |
| | | type="primary" |
| | | plain |
| | | @click="handleStartTransport(scope.row)" |
| | | v-if="scope.row.transitStatus === 1" |
| | | >开始转运</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-check" |
| | | size="small" |
| | | type="success" |
| | | plain |
| | | @click="handleCompleteTransport(scope.row)" |
| | | v-if="scope.row.transitStatus === 2" |
| | | >完成转运</el-button |
| | | ><el-button |
| | | size="small" |
| | | type="danger" |
| | | plain |
| | | @click="cancelTransport(scope.row)" |
| | | v-if="scope.row.transitStatus === 2" |
| | | >取消转运</el-button |
| | | > |
| | | <el-button |
| | | size="small" |
| | | type="warning" |
| | | plain |
| | | @click="recoverTransport(scope.row)" |
| | | v-if="scope.row.transitStatus === 4" |
| | | >恢复转运</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | |
| | | append-to-body |
| | | > |
| | | <div class="action-confirm"> |
| | | <p>确定要{{ actionText }}转运单 "{{ currentTransport.patName }}" 吗?</p> |
| | | <p> |
| | | 确定要{{ actionText }}转运单 "{{ currentTransport.patName }}" 吗? |
| | | </p> |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="actionOpen = false">取 消</el-button> |
| | |
| | | transportEdit, |
| | | transportDel, |
| | | transportInfo, |
| | | donateList |
| | | donateInfo, |
| | | donateList, |
| | | donateEdit |
| | | } from "@/api/businessApi/index"; |
| | | import TransportDetail from "./transportDetail"; |
| | | import TransportEdit from "./TransportEdit"; |
| | |
| | | // 其他字段可以根据需要从案例中获取 |
| | | transportStartPlace: caseData.treatmenthospitalname || "", |
| | | contactPerson: caseData.coordinatorName || "", |
| | | icuDoctor: caseData.icuDoctor, |
| | | icuDoctorPhone: caseData.icuDoctorPhone, |
| | | transitStatus: 1, // 默认待转运 |
| | | // 清空其他字段 |
| | | id: undefined, |
| | |
| | | this.actionTitle = "完成转运"; |
| | | this.actionText = "完成"; |
| | | this.actionOpen = true; |
| | | } /** 完成转运操作 */, |
| | | async cancelTransport(row) { |
| | | this.currentTransport = row; |
| | | this.actionTitle = "取消转运"; |
| | | this.actionText = "取消"; |
| | | this.actionOpen = true; |
| | | } /** 完成转运操作 */, |
| | | async recoverTransport(row) { |
| | | this.currentTransport = row; |
| | | this.actionTitle = "恢复转运"; |
| | | this.actionText = "恢复"; |
| | | this.actionOpen = true; |
| | | }, |
| | | |
| | | /** 确认操作 */ |
| | |
| | | requestData.transitStatus = 2; // 设置为转运中 |
| | | } else if (this.actionText === "完成") { |
| | | requestData.transitStatus = 3; // 设置为转运完成 |
| | | } else if (this.actionText === "取消") { |
| | | requestData.transitStatus = 4; // 设置为转运取消 |
| | | } else if (this.actionText === "恢复") { |
| | | requestData.transitStatus = 2; // 设置为转运中 |
| | | } |
| | | |
| | | requestData.annexfilesList.forEach(item => { |
| | | item.id = null; |
| | | }); |
| | | const response = await transportEdit(requestData); |
| | | |
| | | if (response.code === 200) { |
| | | if (response.code == 200) { |
| | | this.$modal.msgSuccess(`${this.actionText}转运成功`); |
| | | if (requestData.transitStatus == 3) { |
| | | const resappear = await donateInfo(requestData.reportId); |
| | | if (resappear.code) { |
| | | let obj = resappear.data; |
| | | obj.isDonate = 1; |
| | | await donateEdit(obj); |
| | | this.$modal.msgSuccess(`对应上报案例已进入正式案例流程`); |
| | | } |
| | | } |
| | | this.getList(); |
| | | } else { |
| | | this.$modal.msgError(response.msg || `${this.actionText}转运失败`); |