| | |
| | | <el-button |
| | | type="success" |
| | | @click="handleProcure" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | :loading="confirmLoading" |
| | | > |
| | | 确认获取 |
| | | </el-button> |
| | |
| | | <el-form :model="form" ref="form" :rules="rules" label-width="120px"> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="住院号" prop="hospitalNo"> |
| | | <el-input v-model="form.hospitalNo" readonly /> |
| | | <el-form-item label="住院号" prop="inpatientno"> |
| | | <el-input v-model="form.inpatientno" readonly /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="住院号" prop="caseNo"> |
| | | <el-input v-model="form.caseNo" readonly /> |
| | | <el-form-item label="案例编号" prop="caseNo"> |
| | | <el-input v-model="form.caseNo" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="捐献者姓名" prop="donorName"> |
| | | <el-input v-model="form.donorName" /> |
| | | <el-form-item label="捐献者姓名" prop="name"> |
| | | <el-input v-model="form.name" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="性别" prop="gender"> |
| | | <el-select v-model="form.gender" style="width: 100%"> |
| | | <el-form-item label="性别" prop="sex"> |
| | | <el-select v-model="form.sex" style="width: 100%"> |
| | | <el-option label="男" value="0" /> |
| | | <el-option label="女" value="1" /> |
| | | </el-select> |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="出生日期" prop="birthDate"> |
| | | <el-date-picker |
| | | v-model="form.birthDate" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | style="width: 100%" |
| | | <el-form-item label="捐献类别" prop="donationcategory"> |
| | | <el-select v-model="form.donationcategory" style="width: 100%"> |
| | | <el-option |
| | | v-for="dict in dict.type.sys_DonationCategory || []" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="血型" prop="bloodtype"> |
| | | <el-select v-model="form.bloodtype" style="width: 100%"> |
| | | <el-option |
| | | v-for="dict in dict.type.sys_BloodType || []" |
| | | :key="dict.value" |
| | | :label="dict.label" |
| | | :value="dict.value" |
| | | /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="证件号码" prop="idcardno"> |
| | | <el-input v-model="form.idcardno" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="记录状态" prop="recordstate"> |
| | | <el-input v-model="form.recordstate" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="疾病诊断" prop="diagnosis"> |
| | | <el-form-item label="疾病诊断" prop="diagnosisname"> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="2" |
| | | v-model="form.diagnosis" |
| | | v-model="form.diagnosisname" |
| | | placeholder="请输入疾病诊断信息" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="获取时间" prop="procurementTime"> |
| | | <el-form-item label="死亡时间" prop="deathtime"> |
| | | <el-date-picker |
| | | v-model="form.procurementTime" |
| | | v-model="form.deathtime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.procurementStatus !== 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 手术相关信息 --> |
| | | <el-divider content-position="left">手术信息</el-divider> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="手术医生" prop="operationdoctor"> |
| | | <el-input v-model="form.operationdoctor" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="手术开始时间" prop="operationbegtime"> |
| | | <el-date-picker |
| | | v-model="form.operationbegtime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="手术结束时间" prop="operationendtime"> |
| | | <el-date-picker |
| | | v-model="form.operationendtime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="手术名称" prop="surgeryName"> |
| | | <el-input v-model="form.surgeryName" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="手术开始时间" prop="surgeryStartTime"> |
| | | <el-form-item |
| | | label="腹主动脉插管时间" |
| | | prop="abdominalaortacannulatime" |
| | | > |
| | | <el-date-picker |
| | | v-model="form.surgeryStartTime" |
| | | v-model="form.abdominalaortacannulatime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="供体死亡时间" prop="donorDeathTime"> |
| | | <el-form-item |
| | | label="腹主动脉灌注时间" |
| | | prop="abdominalaortaperfusiontime" |
| | | > |
| | | <el-date-picker |
| | | v-model="form.donorDeathTime" |
| | | v-model="form.abdominalaortaperfusiontime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="腹主动脉插管时间" prop="abdominalAortaCannulationTime"> |
| | | <el-form-item |
| | | label="门静脉插管时间" |
| | | prop="portalveincannulatime" |
| | | > |
| | | <el-date-picker |
| | | v-model="form.abdominalAortaCannulationTime" |
| | | v-model="form.portalveincannulatime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="下腔静脉插管时间" prop="inferiorVenaCavaCannulationTime"> |
| | | <el-form-item |
| | | label="门静脉灌注时间" |
| | | prop="portalveinperfusiontime" |
| | | > |
| | | <el-date-picker |
| | | v-model="form.inferiorVenaCavaCannulationTime" |
| | | v-model="form.portalveinperfusiontime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 协调员信息 --> |
| | | <el-divider content-position="left">协调员信息</el-divider> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="协调员姓名" prop="coordinatorName"> |
| | | <el-input v-model="form.coordinatorName" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="进手术室时间" prop="coordinatorInOperating"> |
| | | <el-date-picker |
| | | v-model="form.coordinatorInOperating" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="肠系膜上静脉插管时间" prop="superiorMesentericVeinCannulationTime"> |
| | | <el-form-item label="出手术室时间" prop="coordinatorOutOperating"> |
| | | <el-date-picker |
| | | v-model="form.superiorMesentericVeinCannulationTime" |
| | | v-model="form.coordinatorOutOperating" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="登记人" prop="registrant"> |
| | | <el-input v-model="form.registrant" /> |
| | | <el-col :span="8"> |
| | | <el-form-item label="协调员签字" prop="coordinatorSign"> |
| | | <el-input v-model="form.coordinatorSign" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="登记时间" prop="registrationTime"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="签字时间" prop="coordinatorSignTime"> |
| | | <el-date-picker |
| | | v-model="form.registrationTime" |
| | | v-model="form.coordinatorSignTime" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | style="width: 100%" |
| | | readonly |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 负责人信息 --> |
| | | <el-divider content-position="left">负责人信息</el-divider> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="负责人姓名" prop="responsibleusername"> |
| | | <el-input v-model="form.responsibleusername" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="联络人一" prop="coordinatedusernameo"> |
| | | <el-input v-model="form.coordinatedusernameo" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="联络人二" prop="coordinatedusernamet"> |
| | | <el-input v-model="form.coordinatedusernamet" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 获取机构信息 --> |
| | | <el-divider content-position="left">获取机构信息</el-divider> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="获取机构名称" prop="gainhospitalname"> |
| | | <el-input |
| | | v-model="form.gainhospitalname" |
| | | placeholder="请输入获取机构名称" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="获取机构编码" prop="gainhospitalno"> |
| | | <el-input |
| | | v-model="form.gainhospitalno" |
| | | placeholder="请输入获取机构编码" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 记录信息 --> |
| | | <el-divider content-position="left">记录信息</el-divider> |
| | | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="住院号" prop="donorno"> |
| | | <el-input v-model="form.donorno" readonly /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="所在医疗机构" prop="treatmenthospitalname"> |
| | | <el-input |
| | | v-model="form.treatmenthospitalname" |
| | | placeholder="请输入医疗机构名称" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="8"> |
| | | <el-form-item label="医疗机构编码" prop="treatmenthospitalno"> |
| | | <el-input |
| | | v-model="form.treatmenthospitalno" |
| | | placeholder="请输入医疗机构编码" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | |
| | | <div slot="header" class="clearfix"> |
| | | <span class="detail-title">器官获取记录</span> |
| | | <div style="float: right;"> |
| | | <el-tag :type="form.procurementStatus === 'procured' ? 'success' : 'warning'"> |
| | | {{ form.procurementStatus === 'procured' ? '已获取' : '待获取' }} |
| | | <el-tag |
| | | :type=" |
| | | form.recordstate === 'completed' ? 'success' : 'warning' |
| | | " |
| | | > |
| | | {{ form.recordstate === "completed" ? "已完成" : "进行中" }} |
| | | </el-tag> |
| | | </div> |
| | | </div> |
| | |
| | | > |
| | | <el-row> |
| | | <el-col> |
| | | <el-form-item label-width="100px" label="获取器官"> |
| | | <el-checkbox-group v-model="selectedOrgans" @change="handleOrganSelectionChange"> |
| | | <el-form-item label-width="100px" label="捐献器官"> |
| | | <el-checkbox-group |
| | | v-model="selectedOrgans" |
| | | @change="handleOrganSelectionChange" |
| | | > |
| | | <el-checkbox |
| | | v-for="dict in dict.type.sys_Organ || []" |
| | | :key="dict.value" |
| | | :label="dict.value" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | > |
| | | {{ dict.label }} |
| | | </el-checkbox> |
| | |
| | | <el-col> |
| | | <el-form-item> |
| | | <el-table |
| | | :data="procurementData.records" |
| | | :data="procurementData.serviceDonationwitnessorgans" |
| | | v-loading="loading" |
| | | border |
| | | style="width: 100%" |
| | |
| | | label="器官名称" |
| | | align="center" |
| | | width="120" |
| | | prop="organName" |
| | | prop="organname" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.organName" |
| | | v-model="scope.row.organname" |
| | | placeholder="器官名称" |
| | | :disabled="true" |
| | | /> |
| | |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="选择获取开始时间" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="选择器官离体时间" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | v-model="scope.row.gainHospitalNo" |
| | | placeholder="请选择获取医院" |
| | | style="width: 100%" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | @change="handleHospitalChange(scope.row, $event)" |
| | | > |
| | | <el-option |
| | |
| | | <el-input |
| | | v-model="scope.row.organGetDoctor" |
| | | placeholder="获取医师" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-input |
| | | v-model="scope.row.assistant" |
| | | placeholder="助手" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-input |
| | | v-model="scope.row.procurementNurse" |
| | | placeholder="获取护士" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-input |
| | | v-model="scope.row.operatingRoomNurse" |
| | | placeholder="手术室护士" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <el-input |
| | | v-model="scope.row.anesthesiologist" |
| | | placeholder="麻醉医生" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | v-model="scope.row.organState" |
| | | placeholder="请选择获取状态" |
| | | style="width: 100%" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | > |
| | | <el-option |
| | | v-for="dict in organStateList" |
| | |
| | | clearable |
| | | v-model="scope.row.notGetReason" |
| | | placeholder="请输入未获取说明" |
| | | :disabled="form.procurementStatus === 'procured'" |
| | | :disabled="form.recordstate === 'completed'" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | align="center" |
| | | width="120" |
| | | class-name="small-padding fixed-width" |
| | | v-if="form.procurementStatus !== 'procured'" |
| | | v-if="form.recordstate !== 'completed'" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | </el-row> |
| | | |
| | | <!-- 获取统计信息 --> |
| | | <div class="procurement-stats" v-if="procurementData.records.length > 0"> |
| | | <div |
| | | class="procurement-stats" |
| | | v-if="procurementData.serviceDonationwitnessorgans && procurementData.serviceDonationwitnessorgans.length > 0" |
| | | > |
| | | <el-row :gutter="20"> |
| | | <el-col :span="6"> |
| | | <div class="stat-item"> |
| | | <span class="stat-label">已获取器官:</span> |
| | | <span class="stat-value">{{ procurementData.records.length }} 个</span> |
| | | <span class="stat-value" |
| | | >{{ procurementData.serviceDonationwitnessorgans.length }} 个</span |
| | | > |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | |
| | | <div class="stat-item"> |
| | | <span class="stat-label">获取状态:</span> |
| | | <span class="stat-value"> |
| | | <el-tag :type="form.procurementStatus === 'procured' ? 'success' : 'warning'"> |
| | | {{ form.procurementStatus === 'procured' ? '已完成' : '进行中' }} |
| | | <el-tag |
| | | :type=" |
| | | form.recordstate === 'completed' |
| | | ? 'success' |
| | | : 'warning' |
| | | " |
| | | > |
| | | {{ |
| | | form.recordstate === "completed" |
| | | ? "已完成" |
| | | : "进行中" |
| | | }} |
| | | </el-tag> |
| | | </span> |
| | | </div> |
| | |
| | | </div> |
| | | </el-form> |
| | | |
| | | <div class="dialog-footer" v-if="form.procurementStatus !== 'procured'"> |
| | | <div class="dialog-footer" v-if="form.recordstate !== 'completed'"> |
| | | <el-button |
| | | type="primary" |
| | | @click="handleSaveProcurement" |
| | | :loading="saveLoading" |
| | | :disabled="procurementData.records.length === 0" |
| | | :disabled="!procurementData.serviceDonationwitnessorgans || procurementData.serviceDonationwitnessorgans.length === 0" |
| | | > |
| | | 保存获取记录 |
| | | </el-button> |
| | |
| | | </div> |
| | | </el-card> |
| | | |
| | | <!-- 附件管理部分 --> |
| | | <!-- 附件管理部分优化 --> |
| | | <el-card class="attachment-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span class="detail-title">相关附件</span> |
| | | <el-button |
| | | type="primary" |
| | | size="mini" |
| | | icon="el-icon-upload" |
| | | @click="handleUploadAttachment" |
| | | <div class="attachment-header"> |
| | | <i class="el-icon-paperclip"></i> |
| | | <span class="attachment-title">相关附件</span> |
| | | <span class="attachment-tip" |
| | | >支持上传器官获取相关文件 (最多{{ attachmentLimit }}个)</span |
| | | > |
| | | 上传附件 |
| | | </el-button> |
| | | </div> |
| | | |
| | | <div class="attachment-list"> |
| | | <el-table :data="attachments" style="width: 100%"> |
| | | <el-table-column label="文件名称" min-width="200"> |
| | | <!-- 使用 UploadAttachment 组件 --> |
| | | <UploadAttachment |
| | | ref="uploadAttachment" |
| | | :file-list="attachmentFileList" |
| | | :limit="attachmentLimit" |
| | | :accept="attachmentAccept" |
| | | :multiple="true" |
| | | @change="handleAttachmentChange" |
| | | @upload-success="handleUploadSuccess" |
| | | @upload-error="handleUploadError" |
| | | @remove="handleAttachmentRemove" |
| | | /> |
| | | |
| | | <!-- 附件列表展示 --> |
| | | <div |
| | | class="attachment-list" |
| | | v-if="attachments && attachments.length > 0" |
| | | > |
| | | <div class="list-title">已上传附件 ({{ attachments.length }})</div> |
| | | <el-table :data="attachments" style="width: 100%" size="small"> |
| | | <el-table-column label="文件名" min-width="200"> |
| | | <template slot-scope="scope"> |
| | | <div class="file-info"> |
| | | <i :class="getFileIcon(scope.row.fileName)" style="margin-right: 8px; color: #409EFF;"></i> |
| | | <span>{{ scope.row.fileName }}</span> |
| | | </div> |
| | | <i |
| | | class="el-icon-document" |
| | | :style="{ color: getFileIconColor(scope.row.fileName) }" |
| | | ></i> |
| | | <span class="file-name">{{ scope.row.fileName }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="文件类型" width="100" align="center"> |
| | | <el-table-column label="文件类型" width="100"> |
| | | <template slot-scope="scope"> |
| | | <el-tag size="small">{{ getFileType(scope.row.fileName) }}</el-tag> |
| | | <el-tag :type="getFileTagType(scope.row.fileName)" size="small"> |
| | | {{ getFileTypeText(scope.row.fileName) }} |
| | | </el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="文件大小" width="100" align="center"> |
| | | <el-table-column label="上传时间" width="160"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatDateTime(scope.row.uploadTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="文件大小" width="100"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ formatFileSize(scope.row.fileSize) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="上传时间" width="160" align="center"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ parseTime(scope.row.uploadTime) }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | |
| | | <el-table-column label="操作" width="150" align="center"> |
| | | <el-table-column label="操作" width="200" fixed="right"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-view" |
| | | @click="handlePreviewAttachment(scope.row)" |
| | | >预览</el-button> |
| | | type="primary" |
| | | @click="handlePreview(scope.row)" |
| | | :disabled="!isPreviewable(scope.row.fileName)" |
| | | > |
| | | 预览 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-download" |
| | | @click="handleDownloadAttachment(scope.row)" |
| | | >下载</el-button> |
| | | type="success" |
| | | @click="handleDownload(scope.row)" |
| | | > |
| | | 下载 |
| | | </el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | style="color: #F56C6C;" |
| | | @click="handleRemoveAttachment(scope.row)" |
| | | >删除</el-button> |
| | | type="danger" |
| | | @click="handleRemoveAttachment(scope.$index)" |
| | | > |
| | | 删除 |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="器官名称"> |
| | | <el-input v-model="currentRecord.organName" readonly /> |
| | | <el-input v-model="currentRecord.organname" readonly /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="获取医师"> |
| | | <el-input v-model="currentRecord.organGetDoctor" placeholder="请输入获取医师" /> |
| | | <el-input |
| | | v-model="currentRecord.organGetDoctor" |
| | | placeholder="请输入获取医师" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="助手"> |
| | | <el-input v-model="currentRecord.assistant" placeholder="请输入助手姓名" /> |
| | | <el-input |
| | | v-model="currentRecord.assistant" |
| | | placeholder="请输入助手姓名" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="获取护士"> |
| | | <el-input v-model="currentRecord.procurementNurse" placeholder="请输入获取护士" /> |
| | | <el-input |
| | | v-model="currentRecord.procurementNurse" |
| | | placeholder="请输入获取护士" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="手术室护士"> |
| | | <el-input v-model="currentRecord.operatingRoomNurse" placeholder="请输入手术室护士" /> |
| | | <el-input |
| | | v-model="currentRecord.operatingRoomNurse" |
| | | placeholder="请输入手术室护士" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <el-form-item label="麻醉医生"> |
| | | <el-input v-model="currentRecord.anesthesiologist" placeholder="请输入麻醉医生" /> |
| | | <el-input |
| | | v-model="currentRecord.anesthesiologist" |
| | | placeholder="请输入麻醉医生" |
| | | /> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="未获取说明" v-if="currentRecord.organState === '0'"> |
| | | <el-form-item |
| | | label="未获取说明" |
| | | v-if="currentRecord.organState === '0'" |
| | | > |
| | | <el-input |
| | | type="textarea" |
| | | :rows="3" |
| | |
| | | <el-button type="primary" @click="handleEditConfirm">确认</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <!-- 文件预览弹窗 --> |
| | | <el-dialog |
| | | :title="filePreviewTitle" |
| | | :visible.sync="filePreviewVisible" |
| | | width="800px" |
| | | @close="filePreviewVisible = false" |
| | | > |
| | | <div v-if="currentPreviewFile"> |
| | | <div v-if="currentPreviewFile.fileType === 'image'"> |
| | | <img :src="currentPreviewFile.fileUrl" style="max-width: 100%; max-height: 500px;" /> |
| | | </div> |
| | | <div v-else-if="currentPreviewFile.fileType === 'pdf'"> |
| | | <iframe :src="currentPreviewFile.fileUrl" width="100%" height="500px"></iframe> |
| | | </div> |
| | | <div v-else> |
| | | <p>不支持预览此文件类型,请下载查看</p> |
| | | </div> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { |
| | | getOrganProcurementDetail, |
| | | updateOrganProcurement, |
| | | saveProcurementRecords, |
| | | getHospitalList, |
| | | getCoordinatorList |
| | | } from "./organProcurement"; |
| | | import { witnessList, witnessadd, witnessedit } from "@/api/businessApi"; |
| | | import UploadAttachment from "@/components/UploadAttachment"; |
| | | import dayjs from "dayjs"; |
| | | |
| | | export default { |
| | | name: "OrganProcurementDetail", |
| | | dicts: ["sys_user_sex", "sys_Organ", "sys_0_1", "sys_DonationCategory"], |
| | | components: { |
| | | UploadAttachment |
| | | }, |
| | | dicts: ["sys_BloodType", "sys_DonationCategory", "sys_Organ"], |
| | | data() { |
| | | return { |
| | | // 表单数据 |
| | | form: { |
| | | id: undefined, |
| | | hospitalNo: "", |
| | | infoid: undefined, |
| | | name: "", |
| | | inpatientno: "", |
| | | recordstate: "pending", |
| | | caseNo: "", |
| | | donorName: "", |
| | | gender: "", |
| | | donorno: "", |
| | | treatmenthospitalname: "", |
| | | treatmenthospitalno: "", |
| | | sex: "", |
| | | age: "", |
| | | birthDate: "", |
| | | diagnosis: "", |
| | | procurementStatus: "pending", |
| | | procurementTime: "", |
| | | registrant: "", |
| | | registrationTime: "", |
| | | surgeryName: "", |
| | | surgeryStartTime: "", |
| | | donorDeathTime: "", |
| | | abdominalAortaCannulationTime: "", |
| | | inferiorVenaCavaCannulationTime: "", |
| | | superiorMesentericVeinCannulationTime: "", |
| | | donationCategory: "1", |
| | | deathJudgeDoctor1: "", |
| | | deathJudgeDoctor2: "", |
| | | deathReason: "", |
| | | operationEndTime: "", |
| | | bloodtype: "", |
| | | idcardno: "", |
| | | diagnosisname: "", |
| | | coordinatorName: "", |
| | | gainhospitalno: "", |
| | | gainhospitalname: "", |
| | | deathtime: "", |
| | | deathreason: "", |
| | | deathjudgedocto: "", |
| | | deathjudgedoctt: "", |
| | | deathjudgeannex: "", |
| | | operationbegtime: "", |
| | | operationendtime: "", |
| | | operationdoctor: "", |
| | | isspendremember: 1, |
| | | isrestoreremains: 1, |
| | | rememberannex: "", |
| | | responsibleuserid: "", |
| | | responsibleusername: "", |
| | | coordinateduserido: "", |
| | | coordinatedusernameo: "", |
| | | coordinateduseridt: "", |
| | | coordinatedusernamet: "", |
| | | abdominalaortacannulatime: "", |
| | | abdominalaortaperfusiontime: "", |
| | | portalveincannulatime: "", |
| | | portalveinperfusiontime: "", |
| | | pulmonaryarterycannulatime: "", |
| | | pulmonaryarteryperfusiontime: "", |
| | | aortacannulatime: "", |
| | | aortaperfusiontime: "", |
| | | organdonation: "", |
| | | organdonationOther: "", |
| | | donationcategory: "", |
| | | coordinatorInOperating: "", |
| | | coordinatorOutOperating: "", |
| | | coordinatorSign: "", |
| | | coordinatorSignTime: "", |
| | | responsibleUserName: "", |
| | | coordinatedUserId1: "", |
| | | coordinatedUserId2: "", |
| | | isSpendRemember: 1, |
| | | isRestoreRemains: 1 |
| | | attachments: [] |
| | | }, |
| | | // 表单验证规则 |
| | | rules: { |
| | | donorName: [ |
| | | name: [ |
| | | { required: true, message: "捐献者姓名不能为空", trigger: "blur" } |
| | | ], |
| | | diagnosis: [ |
| | | diagnosisname: [ |
| | | { required: true, message: "疾病诊断不能为空", trigger: "blur" } |
| | | ], |
| | | surgeryName: [ |
| | | { required: true, message: "手术名称不能为空", trigger: "blur" } |
| | | donationcategory: [ |
| | | { required: true, message: "捐献类别不能为空", trigger: "change" } |
| | | ], |
| | | operationdoctor: [ |
| | | { required: true, message: "手术医生不能为空", trigger: "blur" } |
| | | ] |
| | | }, |
| | | // 获取记录验证规则 |
| | |
| | | selectedOrgans: [], |
| | | // 医院列表 |
| | | hospitalList: [], |
| | | // 协调员列表 |
| | | coordinatorList: [], |
| | | // 器官状态列表 |
| | | organStateList: [ |
| | | { value: "1", label: "已获取" }, |
| | |
| | | ], |
| | | // 获取记录数据 |
| | | procurementData: { |
| | | records: [] |
| | | serviceDonationwitnessorgans: [] |
| | | }, |
| | | // 附件数据 |
| | | attachments: [], |
| | | attachmentFileList: [], |
| | | // 附件相关配置 |
| | | attachmentLimit: 10, |
| | | attachmentAccept: ".pdf,.jpg,.jpeg,.png,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt", |
| | | // 编辑对话框 |
| | | editDialogVisible: false, |
| | | currentRecord: {}, |
| | | currentEditIndex: -1 |
| | | currentEditIndex: -1, |
| | | // 文件预览相关 |
| | | filePreviewVisible: false, |
| | | currentPreviewFile: null, |
| | | filePreviewTitle: "" |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | // 不完整的记录数量 |
| | | incompleteRecords() { |
| | | return this.procurementData.records.filter( |
| | | if (!this.procurementData.serviceDonationwitnessorgans) return 0; |
| | | return this.procurementData.serviceDonationwitnessorgans.filter( |
| | | record => |
| | | !record.organStartTime || |
| | | !record.organGetTime || |
| | |
| | | }, |
| | | // 唯一医院数量 |
| | | uniqueHospitals() { |
| | | const hospitals = this.procurementData.records |
| | | if (!this.procurementData.serviceDonationwitnessorgans) return 0; |
| | | const hospitals = this.procurementData.serviceDonationwitnessorgans |
| | | .map(record => record.gainHospitalNo) |
| | | .filter(Boolean); |
| | | return new Set(hospitals).size; |
| | | }, |
| | | // 获取器官字典 |
| | | organDict() { |
| | | return this.dict.type.sys_Organ || []; |
| | | } |
| | | }, |
| | | watch: { |
| | | // 监听附件数据变化 |
| | | attachments: { |
| | | handler(newAttachments) { |
| | | this.attachmentFileList = newAttachments.map(item => ({ |
| | | uid: item.id || Math.random(), |
| | | name: item.fileName, |
| | | fileSize: item.fileSize, |
| | | url: item.path || item.fileUrl, |
| | | uploadTime: item.uploadTime, |
| | | status: "success" |
| | | })); |
| | | }, |
| | | deep: true |
| | | } |
| | | }, |
| | | created() { |
| | | const id = this.$route.query.id; |
| | | if (id) { |
| | | this.getDetail(id); |
| | | } else { |
| | | this.generateCaseNo(); |
| | | this.form.registrant = this.currentUser.username || "当前用户"; |
| | | this.form.registrationTime = new Date() |
| | | .toISOString() |
| | | .replace("T", " ") |
| | | .substring(0, 19); |
| | | } |
| | | this.getHospitalData(); |
| | | this.getCoordinatorData(); |
| | | this.initData(); |
| | | }, |
| | | methods: { |
| | | // 生成住院号 |
| | | generateCaseNo() { |
| | | // 根据字典value获取label |
| | | getOrganLabel(organValue) { |
| | | const dictItem = this.organDict.find(item => item.value === organValue); |
| | | return dictItem ? dictItem.label : organValue; |
| | | }, |
| | | |
| | | // 初始化数据 |
| | | initData() { |
| | | const { id, infoid } = this.$route.query; |
| | | |
| | | if (!infoid) { |
| | | this.$message.error("缺少必要的路由参数 infoid"); |
| | | this.$router.back(); |
| | | return; |
| | | } |
| | | |
| | | this.form.infoid = infoid; |
| | | this.generateDonorNo(); |
| | | |
| | | if (infoid) { |
| | | this.getDetail(infoid); |
| | | } |
| | | |
| | | this.getHospitalData(); |
| | | }, |
| | | // 生成捐献者编号 |
| | | generateDonorNo() { |
| | | const timestamp = Date.now().toString(); |
| | | this.form.hospitalNo = "D" + timestamp.slice(-6); |
| | | this.form.caseNo = "C" + timestamp.slice(-6); |
| | | this.form.donorno = "D" + timestamp.slice(-8); |
| | | this.form.caseNo = "CASE" + timestamp.slice(-6); |
| | | this.form.inpatientno = "IP" + timestamp.slice(-6); |
| | | }, |
| | | // 获取详情 |
| | | getDetail(id) { |
| | | async getDetail(infoid) { |
| | | this.loading = true; |
| | | getOrganProcurementDetail(id) |
| | | .then(response => { |
| | | if (response.code === 200) { |
| | | this.form = response.data; |
| | | if (response.data.procurementRecords) { |
| | | this.procurementData.records = response.data.procurementRecords; |
| | | this.selectedOrgans = response.data.procurementRecords.map( |
| | | item => item.organNo |
| | | ); |
| | | try { |
| | | const response = await witnessList({ infoid }); |
| | | if ( |
| | | response.code === 200 && |
| | | response.data && |
| | | response.data.length > 0 |
| | | ) { |
| | | const data = response.data[0]; |
| | | |
| | | // 填充表单数据 |
| | | Object.assign(this.form, data); |
| | | |
| | | // 初始化附件 |
| | | if (this.form.attachments) { |
| | | this.attachments = Array.isArray(this.form.attachments) |
| | | ? [...this.form.attachments] |
| | | : []; |
| | | } |
| | | |
| | | // 处理捐献器官字段 |
| | | if (data.organdonation) { |
| | | const organArray = Array.isArray(data.organdonation) |
| | | ? data.organdonation |
| | | : (data.organdonation || "").split(",").filter(item => item); |
| | | this.selectedOrgans = organArray; |
| | | this.form.organdonationOther = data.organdonationOther || ""; |
| | | } |
| | | this.loading = false; |
| | | }) |
| | | .catch(error => { |
| | | |
| | | // 处理器官获取记录 |
| | | if (data.serviceDonationwitnessorgans) { |
| | | this.procurementData.serviceDonationwitnessorgans = Array.isArray( |
| | | data.serviceDonationwitnessorgans |
| | | ) |
| | | ? data.serviceDonationwitnessorgans |
| | | : []; |
| | | } |
| | | |
| | | this.$message.success("数据加载成功"); |
| | | } else { |
| | | this.$message.warning("未找到对应的器官获取数据"); |
| | | } |
| | | } catch (error) { |
| | | console.error("获取器官获取详情失败:", error); |
| | | this.loading = false; |
| | | this.$message.error("获取详情失败"); |
| | | }); |
| | | } finally { |
| | | this.loading = false; |
| | | } |
| | | }, |
| | | // 获取医院数据 |
| | | getHospitalData() { |
| | | getHospitalList().then(response => { |
| | | if (response.code === 200) { |
| | | this.hospitalList = response.data; |
| | | async getHospitalData() { |
| | | try { |
| | | // TODO: 替换为实际的医院列表接口 |
| | | // 暂时使用模拟数据 |
| | | this.hospitalList = [ |
| | | { hospitalNo: "H001", hospitalName: "北京协和医院" }, |
| | | { hospitalNo: "H002", hospitalName: "上海华山医院" }, |
| | | { hospitalNo: "H003", hospitalName: "广州中山医院" }, |
| | | { hospitalNo: "H004", hospitalName: "武汉同济医院" }, |
| | | { hospitalNo: "H005", hospitalName: "成都华西医院" } |
| | | ]; |
| | | } catch (error) { |
| | | console.error("获取医院数据失败:", error); |
| | | this.$message.error("获取医院数据失败"); |
| | | } |
| | | }); |
| | | }, |
| | | // 获取协调员数据 |
| | | getCoordinatorData() { |
| | | getCoordinatorList().then(response => { |
| | | if (response.code === 200) { |
| | | this.coordinatorList = response.data; |
| | | } |
| | | }); |
| | | }, |
| | | // 器官选择状态变化 |
| | | handleOrganSelectionChange(selectedValues) { |
| | | const currentOrganNos = this.procurementData.records.map( |
| | | item => item.organNo |
| | | if (!this.procurementData.serviceDonationwitnessorgans) { |
| | | this.procurementData.serviceDonationwitnessorgans = []; |
| | | } |
| | | |
| | | const currentOrganValues = this.procurementData.serviceDonationwitnessorgans.map( |
| | | item => item.organno |
| | | ); |
| | | |
| | | // 处理互斥逻辑 |
| | | this.handleExclusiveSelections(selectedValues); |
| | | |
| | | // 更新捐献器官字段 |
| | | this.form.organdonation = selectedValues.join(","); |
| | | |
| | | // 新增选择的器官 |
| | | selectedValues.forEach(organValue => { |
| | | if (!currentOrganNos.includes(organValue)) { |
| | | const organInfo = this.dict.type.sys_Organ.find( |
| | | item => item.value === organValue |
| | | ); |
| | | if (organInfo) { |
| | | this.procurementData.records.push({ |
| | | organName: organInfo.label, |
| | | organNo: organValue, |
| | | id: null, |
| | | procurementId: this.form.id, |
| | | organStartTime: "", |
| | | organGetTime: "", |
| | | gainHospitalNo: "", |
| | | gainHospitalName: "", |
| | | organGetDoctor: "", |
| | | assistant: "", |
| | | procurementNurse: "", |
| | | operatingRoomNurse: "", |
| | | anesthesiologist: "", |
| | | organState: "1", |
| | | notGetReason: "" |
| | | }); |
| | | } |
| | | if (!currentOrganValues.includes(organValue)) { |
| | | this.createOrganRecord(organValue); |
| | | } |
| | | }); |
| | | |
| | | // 移除取消选择的器官 |
| | | this.procurementData.records = this.procurementData.records.filter( |
| | | this.procurementData.serviceDonationwitnessorgans = this.procurementData.serviceDonationwitnessorgans.filter( |
| | | record => { |
| | | if (selectedValues.includes(record.organNo)) { |
| | | if (selectedValues.includes(record.organno)) { |
| | | return true; |
| | | } else { |
| | | if (record.id) { |
| | |
| | | } |
| | | ) |
| | | .then(() => { |
| | | this.procurementData.records = this.procurementData.records.filter( |
| | | r => r.organNo !== record.organNo |
| | | this.procurementData.serviceDonationwitnessorgans = this.procurementData.serviceDonationwitnessorgans.filter( |
| | | r => r.organno !== record.organno |
| | | ); |
| | | this.$message.success("删除成功"); |
| | | }) |
| | | .catch(() => { |
| | | this.selectedOrgans.push(record.organNo); |
| | | this.selectedOrgans.push(record.organno); |
| | | }); |
| | | return true; |
| | | } else { |
| | |
| | | } |
| | | ); |
| | | }, |
| | | |
| | | // 处理互斥选择 |
| | | handleExclusiveSelections(selectedValues) { |
| | | // 如果选择了"双肾"(假设字典值为C64),自动取消单独的"左肾"(C64L)和"右肾"(C64R)选择 |
| | | if (selectedValues.includes("C64")) { |
| | | this.selectedOrgans = selectedValues.filter( |
| | | item => item !== "C64L" && item !== "C64R" |
| | | ); |
| | | } |
| | | // 如果选择了"左肾"或"右肾",取消"双肾"选择 |
| | | else if (selectedValues.includes("C64L") || selectedValues.includes("C64R")) { |
| | | this.selectedOrgans = selectedValues.filter(item => item !== "C64"); |
| | | } |
| | | |
| | | // 如果选择了"全肺"(假设字典值为C34),自动取消单独的"左肺"(C34L)和"右肺"(C34R)选择 |
| | | if (selectedValues.includes("C34")) { |
| | | this.selectedOrgans = selectedValues.filter( |
| | | item => item !== "C34L" && item !== "C34R" |
| | | ); |
| | | } |
| | | // 如果选择了"左肺"或"右肺",取消"全肺"选择 |
| | | else if (selectedValues.includes("C34L") || selectedValues.includes("C34R")) { |
| | | this.selectedOrgans = selectedValues.filter(item => item !== "C34"); |
| | | } |
| | | }, |
| | | |
| | | // 创建器官记录 |
| | | createOrganRecord(organValue) { |
| | | const organName = this.getOrganLabel(organValue); |
| | | |
| | | this.procurementData.serviceDonationwitnessorgans.push({ |
| | | id: null, |
| | | organname: organName, |
| | | organno: organValue, |
| | | organStartTime: "", |
| | | organGetTime: "", |
| | | gainHospitalNo: "", |
| | | gainHospitalName: "", |
| | | organGetDoctor: "", |
| | | assistant: "", |
| | | procurementNurse: "", |
| | | operatingRoomNurse: "", |
| | | anesthesiologist: "", |
| | | organState: "1", |
| | | notGetReason: "" |
| | | }); |
| | | }, |
| | | |
| | | // 医院选择变化 |
| | | handleHospitalChange(row, hospitalNo) { |
| | | const hospital = this.hospitalList.find( |
| | |
| | | }, |
| | | // 编辑获取记录 |
| | | handleEditProcurement(row) { |
| | | const index = this.procurementData.records.findIndex( |
| | | item => item.organNo === row.organNo |
| | | const index = this.procurementData.serviceDonationwitnessorgans.findIndex( |
| | | item => item.organno === row.organno |
| | | ); |
| | | if (index !== -1) { |
| | | this.currentRecord = { ...row }; |
| | |
| | | // 确认编辑 |
| | | handleEditConfirm() { |
| | | if (this.currentEditIndex !== -1) { |
| | | this.procurementData.records[this.currentEditIndex] = { |
| | | this.procurementData.serviceDonationwitnessorgans[this.currentEditIndex] = { |
| | | ...this.currentRecord |
| | | }; |
| | | this.$message.success("获取记录更新成功"); |
| | |
| | | return ""; |
| | | }, |
| | | // 保存基本信息 |
| | | handleSave() { |
| | | this.$refs.form.validate(valid => { |
| | | async handleSave() { |
| | | this.$refs.form.validate(async valid => { |
| | | if (valid) { |
| | | this.saveLoading = true; |
| | | const apiMethod = this.form.id |
| | | ? updateOrganProcurement |
| | | : addOrganProcurement; |
| | | try { |
| | | const saveData = { |
| | | ...this.form, |
| | | attachments: this.attachments, |
| | | organdonation: this.selectedOrgans.join(","), |
| | | serviceDonationwitnessorgans: |
| | | this.procurementData.serviceDonationwitnessorgans || [] |
| | | }; |
| | | |
| | | apiMethod(this.form) |
| | | .then(response => { |
| | | const apiMethod = this.form.id ? witnessedit : witnessadd; |
| | | const response = await apiMethod(saveData); |
| | | |
| | | if (response.code === 200) { |
| | | this.$message.success("保存成功"); |
| | | if (!this.form.id) { |
| | | if (!this.form.id && response.data && response.data.id) { |
| | | this.form.id = response.data.id; |
| | | this.$router.replace({ |
| | | query: { ...this.$route.query, id: this.form.id } |
| | | }); |
| | | } |
| | | } else { |
| | | this.$message.error("保存失败:" + (response.msg || "未知错误")); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | } catch (error) { |
| | | console.error("保存失败:", error); |
| | | this.$message.error("保存失败"); |
| | | }) |
| | | .finally(() => { |
| | | } finally { |
| | | this.saveLoading = false; |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 保存获取记录 |
| | | handleSaveProcurement() { |
| | | async handleSaveProcurement() { |
| | | if (!this.form.id) { |
| | | this.$message.warning("请先保存基本信息"); |
| | | return; |
| | | } |
| | | |
| | | this.saveLoading = true; |
| | | saveProcurementRecords(this.form.id, this.procurementData.records) |
| | | .then(response => { |
| | | try { |
| | | const saveData = { |
| | | ...this.form, |
| | | attachments: this.attachments, |
| | | organdonation: this.selectedOrgans.join(","), |
| | | serviceDonationwitnessorgans: |
| | | this.procurementData.serviceDonationwitnessorgans || [] |
| | | }; |
| | | |
| | | const response = await witnessedit(saveData); |
| | | |
| | | if (response.code === 200) { |
| | | this.$message.success("获取记录保存成功"); |
| | | } else { |
| | | this.$message.error( |
| | | "保存获取记录失败:" + (response.msg || "未知错误") |
| | | ); |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | } catch (error) { |
| | | console.error("保存获取记录失败:", error); |
| | | this.$message.error("保存获取记录失败"); |
| | | }) |
| | | .finally(() => { |
| | | } finally { |
| | | this.saveLoading = false; |
| | | }); |
| | | } |
| | | }, |
| | | // 确认完成获取 |
| | | handleConfirmProcurement() { |
| | | async handleConfirmProcurement() { |
| | | if (this.incompleteRecords > 0) { |
| | | this.$message.warning("请先完善所有获取记录的信息"); |
| | | return; |
| | |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | .then(async () => { |
| | | this.confirmLoading = true; |
| | | this.form.procurementStatus = "procured"; |
| | | this.form.procurementTime = new Date() |
| | | this.form.recordstate = "completed"; |
| | | this.form.operationendtime = this.form.operationendtime || new Date() |
| | | .toISOString() |
| | | .replace("T", " ") |
| | | .substring(0, 19); |
| | | |
| | | updateOrganProcurement(this.form) |
| | | .then(response => { |
| | | try { |
| | | const saveData = { |
| | | ...this.form, |
| | | attachments: this.attachments, |
| | | organdonation: this.selectedOrgans.join(","), |
| | | serviceDonationwitnessorgans: |
| | | this.procurementData.serviceDonationwitnessorgans || [] |
| | | }; |
| | | |
| | | const response = await witnessedit(saveData); |
| | | |
| | | if (response.code === 200) { |
| | | this.$message.success("器官获取已完成"); |
| | | } else { |
| | | this.$message.error( |
| | | "确认获取失败:" + (response.msg || "未知错误") |
| | | ); |
| | | this.form.recordstate = "pending"; |
| | | this.form.operationendtime = ""; |
| | | } |
| | | }) |
| | | .catch(error => { |
| | | } catch (error) { |
| | | console.error("确认获取失败:", error); |
| | | this.$message.error("确认获取失败"); |
| | | }) |
| | | .finally(() => { |
| | | this.form.recordstate = "pending"; |
| | | this.form.operationendtime = ""; |
| | | } finally { |
| | | this.confirmLoading = false; |
| | | }); |
| | | } |
| | | }) |
| | | .catch(() => {}); |
| | | }, |
| | | // 上传附件 |
| | | handleUploadAttachment() { |
| | | this.$message.info("附件上传功能"); |
| | | // 确认获取按钮别名 |
| | | handleProcure() { |
| | | this.handleConfirmProcurement(); |
| | | }, |
| | | // 预览附件 |
| | | handlePreviewAttachment(attachment) { |
| | | this.$message.info("附件预览功能"); |
| | | |
| | | // 附件相关方法 |
| | | /** 附件变化处理 */ |
| | | handleAttachmentChange(fileList) { |
| | | this.attachmentFileList = fileList; |
| | | }, |
| | | // 下载附件 |
| | | handleDownloadAttachment(attachment) { |
| | | this.$message.info("附件下载功能"); |
| | | }, |
| | | // 删除附件 |
| | | handleRemoveAttachment(attachment) { |
| | | this.$confirm("确定要删除这个附件吗?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }) |
| | | .then(() => { |
| | | |
| | | /** 附件移除处理 */ |
| | | handleAttachmentRemove(file) { |
| | | if (file.url) { |
| | | const index = this.attachments.findIndex( |
| | | item => item.path === file.url || item.fileUrl === file.url |
| | | ); |
| | | if (index > -1) { |
| | | this.attachments.splice(index, 1); |
| | | this.$message.success("附件删除成功"); |
| | | }) |
| | | .catch(() => {}); |
| | | } |
| | | } |
| | | }, |
| | | // 获取文件图标 |
| | | getFileIcon(fileName) { |
| | | const ext = fileName |
| | | .split(".") |
| | | .pop() |
| | | .toLowerCase(); |
| | | const iconMap = { |
| | | pdf: "el-icon-document", |
| | | doc: "el-icon-document", |
| | | docx: "el-icon-document", |
| | | xls: "el-icon-document", |
| | | xlsx: "el-icon-document", |
| | | jpg: "el-icon-picture", |
| | | jpeg: "el-icon-picture", |
| | | png: "el-icon-picture" |
| | | |
| | | /** 上传成功处理 */ |
| | | handleUploadSuccess({ file, fileList, response }) { |
| | | if (response.code === 200) { |
| | | const attachmentObj = { |
| | | fileName: file.name, |
| | | path: response.fileUrl || file.url, |
| | | fileUrl: response.fileUrl || file.url, |
| | | fileType: this.getFileExtension(file.name), |
| | | fileSize: file.size, |
| | | uploadTime: dayjs().format("YYYY-MM-DD HH:mm:ss") |
| | | }; |
| | | return iconMap[ext] || "el-icon-document"; |
| | | |
| | | if (!Array.isArray(this.attachments)) { |
| | | this.attachments = []; |
| | | } |
| | | |
| | | this.attachments.push(attachmentObj); |
| | | this.attachmentFileList = fileList; |
| | | this.$message.success("文件上传成功"); |
| | | } |
| | | }, |
| | | // 获取文件类型 |
| | | |
| | | /** 上传错误处理 */ |
| | | handleUploadError({ file, fileList, error }) { |
| | | console.error("附件上传失败:", error); |
| | | this.$message.error("文件上传失败,请重试"); |
| | | }, |
| | | |
| | | /** 手动删除附件 */ |
| | | handleRemoveAttachment(index) { |
| | | this.attachments.splice(index, 1); |
| | | this.attachmentFileList.splice(index, 1); |
| | | this.$message.success("附件删除成功"); |
| | | }, |
| | | |
| | | /** 文件预览 */ |
| | | handlePreview(file) { |
| | | this.currentPreviewFile = { |
| | | fileName: file.fileName, |
| | | fileUrl: file.path || file.fileUrl, |
| | | fileType: this.getFileType(file.fileName) |
| | | }; |
| | | this.filePreviewTitle = file.fileName; |
| | | this.filePreviewVisible = true; |
| | | }, |
| | | |
| | | /** 文件下载 */ |
| | | handleDownload(file) { |
| | | const fileUrl = file.path || file.fileUrl; |
| | | const fileName = file.fileName; |
| | | |
| | | if (fileUrl) { |
| | | const link = document.createElement("a"); |
| | | link.href = fileUrl; |
| | | link.download = fileName; |
| | | link.style.display = "none"; |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | | document.body.removeChild(link); |
| | | this.$message.success("开始下载文件"); |
| | | } else { |
| | | this.$message.warning("文件路径不存在,无法下载"); |
| | | } |
| | | }, |
| | | |
| | | /** 获取文件类型 */ |
| | | getFileType(fileName) { |
| | | const ext = fileName |
| | | .split(".") |
| | | .pop() |
| | | .toLowerCase(); |
| | | const typeMap = { |
| | | pdf: "PDF", |
| | | doc: "DOC", |
| | | docx: "DOCX", |
| | | xls: "XLS", |
| | | xlsx: "XLSX", |
| | | jpg: "JPG", |
| | | jpeg: "JPEG", |
| | | png: "PNG" |
| | | }; |
| | | return typeMap[ext] || ext.toUpperCase(); |
| | | if (!fileName) return "other"; |
| | | const extension = fileName.split(".").pop().toLowerCase(); |
| | | const imageTypes = ["jpg", "jpeg", "png", "gif", "bmp", "webp"]; |
| | | const pdfTypes = ["pdf"]; |
| | | const officeTypes = ["doc", "docx", "xls", "xlsx", "ppt", "pptx"]; |
| | | if (imageTypes.includes(extension)) return "image"; |
| | | if (pdfTypes.includes(extension)) return "pdf"; |
| | | if (officeTypes.includes(extension)) return "office"; |
| | | return "other"; |
| | | }, |
| | | // 文件大小格式化 |
| | | formatFileSize(size) { |
| | | if (size === 0) return "0 B"; |
| | | |
| | | /** 获取文件图标颜色 */ |
| | | getFileIconColor(fileName) { |
| | | const type = this.getFileType(fileName); |
| | | const colorMap = { |
| | | image: "#67C23A", |
| | | pdf: "#F56C6C", |
| | | office: "#409EFF", |
| | | other: "#909399" |
| | | }; |
| | | return colorMap[type] || "#909399"; |
| | | }, |
| | | |
| | | /** 获取文件标签类型 */ |
| | | getFileTagType(fileName) { |
| | | const type = this.getFileType(fileName); |
| | | const typeMap = { |
| | | image: "success", |
| | | pdf: "danger", |
| | | office: "primary", |
| | | other: "info" |
| | | }; |
| | | return typeMap[type] || "info"; |
| | | }, |
| | | |
| | | /** 获取文件类型文本 */ |
| | | getFileTypeText(fileName) { |
| | | const type = this.getFileType(fileName); |
| | | const textMap = { |
| | | image: "图片", |
| | | pdf: "PDF", |
| | | office: "文档", |
| | | other: "其他" |
| | | }; |
| | | return textMap[type] || "未知"; |
| | | }, |
| | | |
| | | /** 检查是否可预览 */ |
| | | isPreviewable(fileName) { |
| | | const type = this.getFileType(fileName); |
| | | return ["image", "pdf"].includes(type); |
| | | }, |
| | | |
| | | /** 获取文件扩展名 */ |
| | | getFileExtension(filename) { |
| | | return filename.split(".").pop().toLowerCase(); |
| | | }, |
| | | |
| | | /** 格式化文件大小 */ |
| | | formatFileSize(bytes) { |
| | | if (!bytes || bytes === 0) return "0 B"; |
| | | const k = 1024; |
| | | const sizes = ["B", "KB", "MB", "GB"]; |
| | | const i = Math.floor(Math.log(size) / Math.log(k)); |
| | | return parseFloat((size / Math.pow(k, i)).toFixed(2)) + " " + sizes[i]; |
| | | const i = Math.floor(Math.log(bytes) / Math.log(k)); |
| | | return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " " + sizes[i]; |
| | | }, |
| | | // 时间格式化 |
| | | parseTime(time) { |
| | | if (!time) return ""; |
| | | const date = new Date(time); |
| | | return `${date.getFullYear()}-${(date.getMonth() + 1) |
| | | .toString() |
| | | .padStart(2, "0")}-${date |
| | | .getDate() |
| | | .toString() |
| | | .padStart(2, "0")} ${date |
| | | .getHours() |
| | | .toString() |
| | | .padStart(2, "0")}:${date |
| | | .getMinutes() |
| | | .toString() |
| | | .padStart(2, "0")}`; |
| | | |
| | | /** 日期时间格式化 */ |
| | | formatDateTime(dateTime) { |
| | | if (!dateTime) return ""; |
| | | try { |
| | | const date = new Date(dateTime); |
| | | if (isNaN(date.getTime())) return dateTime; |
| | | const year = date.getFullYear(); |
| | | const month = String(date.getMonth() + 1).padStart(2, "0"); |
| | | const day = String(date.getDate()).padStart(2, "0"); |
| | | const hours = String(date.getHours()).padStart(2, "0"); |
| | | const minutes = String(date.getMinutes()).padStart(2, "0"); |
| | | return `${year}-${month}-${day} ${hours}:${minutes}`; |
| | | } catch (error) { |
| | | return dateTime; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .organ-procurement-detail { |
| | | padding: 20px; |
| | |
| | | border-radius: 8px; |
| | | box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
| | | border: 1px solid #e4e7ed; |
| | | padding: 20px; |
| | | background: #fafafa; |
| | | } |
| | | |
| | | .attachment-header { |
| | | display: flex; |
| | | align-items: center; |
| | | gap: 8px; |
| | | margin-bottom: 16px; |
| | | padding-bottom: 8px; |
| | | border-bottom: 1px solid #ebeef5; |
| | | } |
| | | |
| | | .attachment-title { |
| | | font-weight: 600; |
| | | color: #303133; |
| | | } |
| | | |
| | | .attachment-tip { |
| | | font-size: 12px; |
| | | color: #909399; |
| | | margin-left: auto; |
| | | } |
| | | |
| | | .attachment-list { |
| | | margin-top: 16px; |
| | | } |
| | | |
| | | .list-title { |
| | | font-weight: bold; |
| | | margin-bottom: 12px; |
| | | color: #303133; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .file-name { |
| | | font-size: 13px; |
| | | margin-left: 8px; |
| | | } |
| | | |
| | | .detail-title { |
| | |
| | | background-color: #ffecc2 !important; |
| | | } |
| | | |
| | | :deep(.el-table .cell) { |
| | | padding: 8px 12px; |
| | | line-height: 1.5; |
| | | } |
| | | |
| | | :deep(.el-table th) { |
| | | background-color: #f5f7fa; |
| | | color: #606266; |
| | | font-weight: 600; |
| | | } |
| | | |
| | | :deep(.el-table--border) { |
| | | border: 1px solid #e4e7ed; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | :deep(.el-table--border th) { |
| | | border-right: 1px solid #e4e7ed; |
| | | } |
| | | |
| | | :deep(.el-table--border td) { |
| | | border-right: 1px solid #e4e7ed; |
| | | } |
| | | |
| | | /* 表单样式优化 */ |
| | | :deep(.el-form-item__label) { |
| | | font-weight: 500; |
| | | color: #606266; |
| | | } |
| | | |
| | | :deep(.el-input__inner) { |
| | | border-radius: 4px; |
| | | border: 1px solid #dcdfe6; |
| | | transition: border-color 0.3s ease; |
| | | } |
| | | |
| | | :deep(.el-input__inner:focus) { |
| | | border-color: #409EFF; |
| | | box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2); |
| | | } |
| | | |
| | | :deep(.el-textarea__inner) { |
| | | border-radius: 4px; |
| | | resize: vertical; |
| | | min-height: 60px; |
| | | } |
| | | |
| | | :deep(.el-select) { |
| | | width: 100%; |
| | | } |
| | | |
| | | /* 按钮样式优化 */ |
| | | :deep(.el-button--primary) { |
| | | background: linear-gradient(135deg, #409EFF 0%, #3375e0 100%); |
| | | border: none; |
| | | border-radius: 4px; |
| | | transition: all 0.3s ease; |
| | | } |
| | | |
| | | :deep(.el-button--primary:hover) { |
| | | transform: translateY(-1px); |
| | | box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4); |
| | | } |
| | | |
| | | :deep(.el-button--success) { |
| | | background: linear-gradient(135deg, #67C23A 0%, #529b2f 100%); |
| | | border: none; |
| | | border-radius: 4px; |
| | | transition: all 0.3s ease; |
| | | } |
| | | |
| | | :deep(.el-button--success:hover) { |
| | | transform: translateY(-1px); |
| | | box-shadow: 0 4px 12px rgba(103, 194, 58, 0.4); |
| | | } |
| | | |
| | | :deep(.el-button--warning) { |
| | | background: linear-gradient(135deg, #E6A23C 0%, #d18c2a 100%); |
| | | border: none; |
| | | border-radius: 4px; |
| | | transition: all 0.3s ease; |
| | | } |
| | | |
| | | :deep(.el-button--warning:hover) { |
| | | transform: translateY(-1px); |
| | | box-shadow: 0 4px 12px rgba(230, 162, 60, 0.4); |
| | | } |
| | | |
| | | :deep(.el-button--danger) { |
| | | background: linear-gradient(135deg, #F56C6C 0%, #e05b5b 100%); |
| | | border: none; |
| | | border-radius: 4px; |
| | | transition: all 0.3s ease; |
| | | } |
| | | |
| | | :deep(.el-button--danger:hover) { |
| | | transform: translateY(-1px); |
| | | box-shadow: 0 4px 12px rgba(245, 108, 108, 0.4); |
| | | } |
| | | |
| | | /* 标签样式 */ |
| | | :deep(.el-tag) { |
| | | border-radius: 12px; |
| | | border: none; |
| | | font-weight: 500; |
| | | padding: 4px 12px; |
| | | } |
| | | |
| | | :deep(.el-tag--success) { |
| | | background: linear-gradient(135deg, #67C23A 0%, #529b2f 100%); |
| | | color: white; |
| | | } |
| | | |
| | | :deep(.el-tag--warning) { |
| | | background: linear-gradient(135deg, #E6A23C 0%, #d18c2a 100%); |
| | | color: white; |
| | | } |
| | | |
| | | /* 复选框组样式 */ |
| | | :deep(.el-checkbox-group) { |
| | | display: flex; |
| | | flex-wrap: wrap; |
| | | gap: 15px; |
| | | margin-top: 10px; |
| | | } |
| | | |
| | | :deep(.el-checkbox) { |
| | | margin-right: 0; |
| | | } |
| | | |
| | | :deep(.el-checkbox__input.is-checked .el-checkbox__inner) { |
| | | background: linear-gradient(135deg, #409EFF 0%, #3375e0 100%); |
| | | border-color: #409EFF; |
| | | } |
| | | |
| | | :deep(.el-checkbox__input.is-checked + .el-checkbox__label) { |
| | | color: #409EFF; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | /* 日期选择器样式 */ |
| | | :deep(.el-date-editor) { |
| | | width: 100%; |
| | | } |
| | | |
| | | :deep(.el-picker-panel) { |
| | | border-radius: 8px; |
| | | box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); |
| | | } |
| | | |
| | | /* 加载状态 */ |
| | | :deep(.el-loading-mask) { |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | /* 卡片头部样式优化 */ |
| | | :deep(.el-card__header) { |
| | | background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%); |
| | | border-bottom: 1px solid #e4e7ed; |
| | | padding: 15px 20px; |
| | | } |
| | | |
| | | /* 响应式设计 */ |
| | | @media (max-width: 1200px) { |
| | | .organ-procurement-detail { |
| | | padding: 15px; |
| | | } |
| | | |
| | | :deep(.el-col) { |
| | | margin-bottom: 10px; |
| | | } |
| | | } |
| | | |
| | | @media (max-width: 768px) { |
| | | .organ-procurement-detail { |
| | | padding: 10px; |
| | | } |
| | | |
| | | .detail-title { |
| | | font-size: 16px; |
| | | } |
| | | |
| | | .stat-item { |
| | | padding: 5px; |
| | | } |
| | | |
| | | .stat-label { |
| | | font-size: 10px; |
| | | } |
| | | |
| | | .stat-value { |
| | | font-size: 14px; |
| | | } |
| | | |
| | | :deep(.el-table .cell) { |
| | | padding: 4px 8px; |
| | | font-size: 12px; |
| | | } |
| | | |
| | | :deep(.el-checkbox-group) { |
| | | gap: 8px; |
| | | } |
| | | |
| | | .dialog-footer .el-button { |
| | | margin: 5px; |
| | | min-width: 100px; |
| | | } |
| | | } |
| | | |
| | | @media (max-width: 480px) { |
| | | .organ-procurement-detail { |
| | | padding: 5px; |
| | | } |
| | | |
| | | :deep(.el-card__header) { |
| | | padding: 10px 15px; |
| | | } |
| | | |
| | | :deep(.el-form-item__label) { |
| | | font-size: 12px; |
| | | } |
| | | |
| | | :deep(.el-table) { |
| | | font-size: 11px; |
| | | } |
| | | } |
| | | |
| | | /* 动画效果 */ |
| | | .fade-enter-active, .fade-leave-active { |
| | | transition: opacity 0.3s ease; |
| | | } |
| | | |
| | | .fade-enter, .fade-leave-to { |
| | | opacity: 0; |
| | | } |
| | | |
| | | /* 自定义滚动条 */ |
| | | :deep(::-webkit-scrollbar) { |
| | | width: 6px; |
| | | height: 6px; |
| | | } |
| | | |
| | | :deep(::-webkit-scrollbar-track) { |
| | | background: #f1f1f1; |
| | | border-radius: 3px; |
| | | } |
| | | |
| | | :deep(::-webkit-scrollbar-thumb) { |
| | | background: #c1c1c1; |
| | | border-radius: 3px; |
| | | } |
| | | |
| | | :deep(::-webkit-scrollbar-thumb:hover) { |
| | | background: #a8a8a8; |
| | | } |
| | | |
| | | /* 文件信息样式 */ |
| | | .file-info { |
| | | display: flex; |
| | | align-items: center; |
| | | padding: 5px 0; |
| | | } |
| | | |
| | | .file-info i { |
| | | font-size: 18px; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | /* 操作按钮组样式 */ |
| | | :deep(.small-padding .el-button) { |
| | | margin: 0 2px; |
| | | padding: 4px 8px; |
| | | } |
| | | |
| | | /* 表单行间距优化 */ |
| | | :deep(.el-form-item) { |
| | | margin-bottom: 18px; |
| | | } |
| | | |
| | | :deep(.el-row) { |
| | | .procurement-stats .el-col { |
| | | margin-bottom: 10px; |
| | | } |
| | | |
| | | /* 对话框样式优化 */ |
| | | :deep(.el-dialog) { |
| | | border-radius: 8px; |
| | | box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); |
| | | } |
| | | |
| | | :deep(.el-dialog__header) { |
| | | background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%); |
| | | border-bottom: 1px solid #e4e7ed; |
| | | padding: 15px 20px; |
| | | border-radius: 8px 8px 0 0; |
| | | } |
| | | |
| | | :deep(.el-dialog__title) { |
| | | font-weight: 600; |
| | | color: #303133; |
| | | } |
| | | |
| | | :deep(.el-dialog__body) { |
| | | padding: 20px; |
| | | } |
| | | |
| | | :deep(.el-dialog__footer) { |
| | | padding: 15px 20px; |
| | | border-top: 1px solid #e4e7ed; |
| | | } |
| | | |
| | | /* 特殊状态提示 */ |
| | | .procurement-warning { |
| | | background-color: #fff7e6; |
| | | border: 1px solid #ffecc2; |
| | | border-radius: 4px; |
| | | padding: 10px 15px; |
| | | margin: 10px 0; |
| | | color: #e6a23c; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | .procurement-success { |
| | | background-color: #f0f9ff; |
| | | border: 1px solid #b3e0ff; |
| | | border-radius: 4px; |
| | | padding: 10px 15px; |
| | | margin: 10px 0; |
| | | color: #409EFF; |
| | | font-size: 14px; |
| | | } |
| | | |
| | | /* 时间线样式(用于手术时间展示) */ |
| | | .procurement-timeline { |
| | | margin: 20px 0; |
| | | padding: 15px; |
| | | background: #f8f9fa; |
| | | border-radius: 4px; |
| | | } |
| | | |
| | | .timeline-item { |
| | | display: flex; |
| | | align-items: center; |
| | | margin-bottom: 10px; |
| | | padding: 8px 12px; |
| | | background: white; |
| | | border-radius: 4px; |
| | | border-left: 4px solid #409EFF; |
| | | } |
| | | |
| | | .timeline-label { |
| | | font-weight: 500; |
| | | min-width: 120px; |
| | | color: #606266; |
| | | } |
| | | |
| | | .timeline-value { |
| | | color: #303133; |
| | | font-weight: 500; |
| | | } |
| | | |
| | | /* 打印样式 */ |
| | | @media print { |
| | | .organ-procurement-detail { |
| | | padding: 0; |
| | | background: white; |
| | | } |
| | | |
| | | .detail-card, |
| | | .procurement-card, |
| | | .attachment-card { |
| | | box-shadow: none; |
| | | border: 1px solid #ddd; |
| | | margin-bottom: 15px; |
| | | page-break-inside: avoid; |
| | | } |
| | | |
| | | .dialog-footer, |
| | | .el-button { |
| | | display: none; |
| | | } |
| | | } |
| | | </style> |