| | |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" align="center" /> |
| | | <el-table-column |
| | | <el-table-column |
| | | label="住院号" |
| | | align="center" |
| | | prop="inpatientno" |
| | | width="120" |
| | | /> |
| | | <el-table-column |
| | | label="姓名" |
| | | align="center" |
| | | prop="name" |
| | | width="120" |
| | | /> |
| | | <el-table-column label="姓名" align="center" prop="name" width="120" /> |
| | | <el-table-column label="性别" align="center" prop="sex" width="80"> |
| | | <template slot-scope="scope"> |
| | | <dict-tag |
| | |
| | | </template> |
| | | </el-table-column> |
| | | --> |
| | | |
| | | |
| | | <el-table-column |
| | | label="评估状态" |
| | | align="center" |
| | |
| | | width="100" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-tag :type="statusFilter(scope.row.assessState)"> |
| | | {{ statusTextFilter(scope.row.assessState) }} |
| | | </el-tag> |
| | | <dict-tag |
| | | :options="dict.type.state_Evaluation" |
| | | :value="scope.row.assessState" |
| | | /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | > |
| | | <el-button |
| | | v-if=" |
| | | scope.row.assessState != '3' || |
| | | scope.row.assessState != '4' |
| | | scope.row.assessState != '3' || scope.row.assessState != '4' |
| | | " |
| | | size="mini" |
| | | type="text" |
| | |
| | | export default { |
| | | name: "AssessmentList", |
| | | components: { Pagination }, |
| | | dicts: ["sys_user_sex"], |
| | | dicts: ["sys_user_sex", "state_Evaluation"], |
| | | data() { |
| | | return { |
| | | // 遮罩层 |
| | |
| | | } |
| | | |
| | | // 处理时间范围查询 |
| | | if (this.queryParams.applyTimeRange && this.queryParams.applyTimeRange.length === 2) { |
| | | if ( |
| | | this.queryParams.applyTimeRange && |
| | | this.queryParams.applyTimeRange.length === 2 |
| | | ) { |
| | | params.startApplyTime = this.queryParams.applyTimeRange[0]; |
| | | params.endApplyTime = this.queryParams.applyTimeRange[1]; |
| | | } |
| | | |
| | | if (this.queryParams.assessTimeRange && this.queryParams.assessTimeRange.length === 2) { |
| | | if ( |
| | | this.queryParams.assessTimeRange && |
| | | this.queryParams.assessTimeRange.length === 2 |
| | | ) { |
| | | params.startAssessTime = this.queryParams.assessTimeRange[0]; |
| | | params.endAssessTime = this.queryParams.assessTimeRange[1]; |
| | | } |
| | |
| | | // 刷新列表 |
| | | this.getList(); |
| | | } catch (error) { |
| | | if (error !== 'cancel') { |
| | | if (error !== "cancel") { |
| | | console.error("确认失败:", error); |
| | | } |
| | | } |
| | |
| | | // 这里需要调用删除接口,暂时模拟成功 |
| | | this.$message.success("删除成功"); |
| | | this.getList(); |
| | | |
| | | } catch (error) { |
| | | if (error !== "cancel") { |
| | | console.error("删除失败:", error); |
| | |
| | | } else { |
| | | this.$message.error("导出失败:" + (response.msg || "未知错误")); |
| | | } |
| | | |
| | | } catch (error) { |
| | | if (error !== "cancel") { |
| | | console.error("导出失败:", error); |
| | |
| | | |
| | | // 模拟文件下载 |
| | | const blob = new Blob([JSON.stringify(data, null, 2)], { |
| | | type: 'application/vnd.ms-excel' |
| | | type: "application/vnd.ms-excel" |
| | | }); |
| | | const link = document.createElement('a'); |
| | | const link = document.createElement("a"); |
| | | link.href = URL.createObjectURL(blob); |
| | | link.download = '医学评估数据.xlsx'; |
| | | link.download = "医学评估数据.xlsx"; |
| | | link.click(); |
| | | }, |
| | | // 时间格式化 |