| | |
| | | </el-card> |
| | | |
| | | <!-- 编辑/新增区域 - 始终显示 --> |
| | | <el-card class="edit-area-card"> |
| | | <el-card class="edit-area-card paper-card"> |
| | | <div slot="header" class="clearfix"> |
| | | <span>{{ editForm.id ? '编辑随访记录' : '新增随访记录' }}</span> |
| | | <div style="float: right;"> |
| | |
| | | :model="editForm" |
| | | :rules="editRules" |
| | | label-width="120px" |
| | | class="paper-form" |
| | | > |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="随访序号" prop="seqno"> |
| | | <div class="form-row"> |
| | | <el-form-item label="随访序号" prop="seqno" class="col-half"> |
| | | <el-input-number |
| | | v-model="editForm.seqno" |
| | | :min="1" |
| | |
| | | /> |
| | | <span style="margin-left: 10px; color: #999;">(第{{ editForm.seqno || 1 }}次随访)</span> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="随访时间" prop="followuptime"> |
| | | <el-form-item label="随访时间" prop="followuptime" class="col-half"> |
| | | <el-date-picker |
| | | v-model="editForm.followuptime" |
| | | type="datetime" |
| | |
| | | style="width: 200px" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="器官受体者姓名" prop="recipientname"> |
| | | <div class="form-row"> |
| | | <el-form-item label="器官受体者姓名" prop="recipientname" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.recipientname" |
| | | placeholder="请输入器官受体者姓名" |
| | | maxlength="50" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="受体电话" prop="recipientphone"> |
| | | <el-form-item label="受体电话" prop="recipientphone" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.recipientphone" |
| | | placeholder="请输入器官受体者电话" |
| | | maxlength="20" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="移植医院名称" prop="hospitalname"> |
| | | <div class="form-row"> |
| | | <el-form-item label="移植医院名称" prop="hospitalname" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.hospitalname" |
| | | placeholder="请输入移植医院名称" |
| | | maxlength="100" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="移植科室" prop="hospitaldept"> |
| | | <el-form-item label="移植科室" prop="hospitaldept" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.hospitaldept" |
| | | placeholder="请输入移植医院科室" |
| | | maxlength="50" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="随访医生姓名" prop="doctorname"> |
| | | <div class="form-row"> |
| | | <el-form-item label="随访医生姓名" prop="doctorname" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.doctorname" |
| | | placeholder="请输入接受随访医生姓名" |
| | | maxlength="50" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="医生电话" prop="doctorphone"> |
| | | <el-form-item label="医生电话" prop="doctorphone" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.doctorphone" |
| | | placeholder="请输入接受随访医生电话" |
| | | maxlength="20" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-row> |
| | | <el-col :span="12"> |
| | | <el-form-item label="捐献结果" prop="donateresult"> |
| | | <div class="form-row"> |
| | | <el-form-item label="捐献结果" prop="donateresult" class="col-half"> |
| | | <el-select |
| | | v-model="editForm.donateresult" |
| | | placeholder="请选择捐献结果" |
| | |
| | | <el-option label="进行中" value="2" /> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="随访者" prop="followupno"> |
| | | <el-form-item label="随访者" prop="followupno" class="col-half"> |
| | | <el-input |
| | | v-model="editForm.followupno" |
| | | placeholder="请输入随访者" |
| | | maxlength="50" |
| | | /> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | |
| | | <el-form-item label="随访描述" prop="followupdescribe"> |
| | | <div class="form-row"> |
| | | <el-form-item label="随访描述" prop="followupdescribe" class="col-full"> |
| | | <el-input |
| | | v-model="editForm.followupdescribe" |
| | | type="textarea" |
| | |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | |
| | | <el-form-item label="医生描述" prop="doctordescribe"> |
| | | <div class="form-row"> |
| | | <el-form-item label="医生描述" prop="doctordescribe" class="col-full"> |
| | | <el-input |
| | | v-model="editForm.doctordescribe" |
| | | type="textarea" |
| | |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | |
| | | <el-form-item label="受体者描述" prop="recipientdescribe"> |
| | | <div class="form-row"> |
| | | <el-form-item label="受体者描述" prop="recipientdescribe" class="col-full"> |
| | | <el-input |
| | | v-model="editForm.recipientdescribe" |
| | | type="textarea" |
| | |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | |
| | | <el-form-item label="备注" prop="remark"> |
| | | <div class="form-row"> |
| | | <el-form-item label="备注" prop="remark" class="col-full"> |
| | | <el-input |
| | | v-model="editForm.remark" |
| | | type="textarea" |
| | |
| | | show-word-limit |
| | | /> |
| | | </el-form-item> |
| | | </div> |
| | | |
| | | <el-form-item> |
| | | <div class="form-row"> |
| | | <el-form-item class="col-full"> |
| | | <el-button type="primary" @click="submitEditForm"> |
| | | {{ editForm.id ? '保存修改' : '创建随访' }} |
| | | </el-button> |
| | | <el-button @click="resetEditForm">重置</el-button> |
| | | </el-form-item> |
| | | </div> |
| | | </el-form> |
| | | </el-card> |
| | | </div> |
| | |
| | | cursor: pointer; |
| | | background-color: #f5f7fa; |
| | | } |
| | | |
| | | /* ===== 纸质表格网格样式 ===== */ |
| | | .paper-card >>> .el-card__body { |
| | | padding: 16px; |
| | | } |
| | | |
| | | .paper-form { |
| | | border-left: 1px solid #d0d3db; |
| | | background: #fff; |
| | | } |
| | | |
| | | .paper-form >>> .form-row { |
| | | display: flex; |
| | | width: 100%; |
| | | border-top: 1px solid #d0d3db; |
| | | } |
| | | |
| | | .paper-form >>> .el-form-item { |
| | | flex: 0 0 33.3333%; |
| | | display: flex; |
| | | margin: 0; |
| | | background: #fff; |
| | | border-right: 1px solid #d0d3db; |
| | | border-bottom: 1px solid #d0d3db; |
| | | } |
| | | .paper-form >>> .el-form-item::after, |
| | | .paper-form >>> .el-form-item::before { |
| | | display: none; |
| | | } |
| | | |
| | | .paper-form >>> .col-1-3 { flex: 0 0 33.3333%; } |
| | | .paper-form >>> .col-half { flex: 0 0 50%; } |
| | | .paper-form >>> .col-2-3 { flex: 0 0 66.6666%; } |
| | | .paper-form >>> .col-full { flex: 0 0 100%; } |
| | | |
| | | .paper-form >>> .el-form-item__label { |
| | | flex: 0 0 120px; |
| | | width: 120px !important; |
| | | float: none; |
| | | padding: 0 8px !important; |
| | | background: #ecf5ff; |
| | | border-right: 1px solid #d0d3db; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | text-align: center; |
| | | font-size: 13px; |
| | | font-weight: 600; |
| | | color: #2c3038; |
| | | line-height: 1.3; |
| | | white-space: normal; |
| | | word-break: break-all; |
| | | } |
| | | .paper-form >>> .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label:before { |
| | | color: #f56c6c; |
| | | margin-right: 2px; |
| | | } |
| | | |
| | | .paper-form >>> .el-form-item__content { |
| | | flex: 1; |
| | | margin-left: 0 !important; |
| | | display: flex; |
| | | align-items: center; |
| | | flex-wrap: wrap; |
| | | padding: 6px 10px; |
| | | background: #fff; |
| | | min-height: 42px; |
| | | line-height: 1.4; |
| | | } |
| | | </style> |