<template>
|
<div class="exception-list">
|
<!-- 页面标题 -->
|
<div class="page-header">
|
<div class="header-content">
|
<h2 class="page-title">满意度异常处理</h2>
|
<p class="page-description">监控和处理满意度问卷中的异常反馈</p>
|
</div>
|
</div>
|
|
<!-- 查询条件区域 -->
|
<div class="search-section">
|
<el-card shadow="never">
|
<el-form
|
:model="queryParams"
|
ref="queryForm"
|
size="medium"
|
:inline="true"
|
label-width="120px"
|
class="search-form"
|
>
|
<el-form-item label="满意度模板" prop="templateId">
|
<el-select
|
v-model="queryParams.templateId"
|
placeholder="请选择模板"
|
clearable
|
style="width: 200px"
|
>
|
<el-option
|
v-for="template in templateList"
|
:key="template.id"
|
:label="template.name"
|
:value="template.id"
|
/>
|
</el-select>
|
</el-form-item>
|
|
<el-form-item label="责任科室" prop="deptIds">
|
<el-select
|
v-model="queryParams.deptIds"
|
placeholder="请选择责任科室"
|
clearable
|
filterable
|
multiple
|
collapse-tags
|
style="width: 300px"
|
>
|
<el-option
|
v-for="dept in deptList"
|
:key="dept.id"
|
:label="dept.name"
|
:value="dept.id"
|
/>
|
</el-select>
|
</el-form-item>
|
|
<el-form-item label="统计时间" prop="dateRange">
|
<el-date-picker
|
v-model="queryParams.dateRange"
|
type="daterange"
|
range-separator="至"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期"
|
value-format="yyyy-MM-dd"
|
:picker-options="pickerOptions"
|
style="width: 380px"
|
/>
|
</el-form-item>
|
|
<el-form-item>
|
<el-button
|
type="primary"
|
icon="el-icon-search"
|
@click="handleSearch"
|
:loading="loading"
|
>
|
查询
|
</el-button>
|
<el-button icon="el-icon-refresh" @click="handleReset">
|
重置
|
</el-button>
|
</el-form-item>
|
</el-form>
|
</el-card>
|
</div>
|
|
<!-- 批量操作 -->
|
<div class="batch-section">
|
<el-card shadow="never">
|
<div class="batch-actions">
|
<el-button
|
type="primary"
|
icon="el-icon-s-operation"
|
:disabled="selectedIds.length === 0"
|
@click="handleBatchProcess"
|
>
|
批量处理 ({{ selectedIds.length }})
|
</el-button>
|
<el-button
|
type="info"
|
icon="el-icon-download"
|
@click="handleExport"
|
>
|
导出异常数据
|
</el-button>
|
<el-button
|
type="warning"
|
icon="el-icon-refresh-right"
|
@click="refreshData"
|
>
|
刷新数据
|
</el-button>
|
</div>
|
</el-card>
|
</div>
|
|
<!-- 异常统计概览 -->
|
<div class="overview-section">
|
<el-row :gutter="20">
|
<el-col :span="6">
|
<el-card shadow="never" class="stat-card">
|
<div class="stat-content">
|
<div class="stat-icon" style="background: #f0f9ff;">
|
<i class="el-icon-s-claim" style="color: #5788FE;"></i>
|
</div>
|
<div class="stat-info">
|
<div class="stat-title">总异常数量</div>
|
<div class="stat-value">{{ overviewData.totalExceptionCount }}</div>
|
</div>
|
</div>
|
</el-card>
|
</el-col>
|
<el-col :span="6">
|
<el-card shadow="never" class="stat-card">
|
<div class="stat-content">
|
<div class="stat-icon" style="background: #f0f9ff;">
|
<i class="el-icon-s-flag" style="color: #E6A23C;"></i>
|
</div>
|
<div class="stat-info">
|
<div class="stat-title">待处理异常</div>
|
<div class="stat-value">{{ overviewData.pendingCount }}</div>
|
</div>
|
</div>
|
</el-card>
|
</el-col>
|
<el-col :span="6">
|
<el-card shadow="never" class="stat-card">
|
<div class="stat-content">
|
<div class="stat-icon" style="background: #f0f9ff;">
|
<i class="el-icon-check" style="color: #67C23A;"></i>
|
</div>
|
<div class="stat-info">
|
<div class="stat-title">已处理异常</div>
|
<div class="stat-value">{{ overviewData.processedCount }}</div>
|
</div>
|
</div>
|
</el-card>
|
</el-col>
|
<el-col :span="6">
|
<el-card shadow="never" class="stat-card">
|
<div class="stat-content">
|
<div class="stat-icon" style="background: #f0f9ff;">
|
<i class="el-icon-s-order" style="color: #909399;"></i>
|
</div>
|
<div class="stat-info">
|
<div class="stat-title">今日处理数</div>
|
<div class="stat-value">{{ overviewData.todayProcessedCount }}</div>
|
</div>
|
</div>
|
</el-card>
|
</el-col>
|
</el-row>
|
</div>
|
|
<!-- 异常列表 -->
|
<div class="list-section">
|
<el-card shadow="never">
|
<el-table
|
v-loading="loading"
|
:data="exceptionList"
|
:border="true"
|
style="width: 100%"
|
@selection-change="handleSelectionChange"
|
class="exception-table"
|
>
|
<el-table-column
|
type="selection"
|
width="55"
|
align="center"
|
/>
|
|
<el-table-column
|
label="序号"
|
type="index"
|
width="60"
|
align="center"
|
/>
|
|
<el-table-column
|
label="题目内容"
|
prop="questionContent"
|
min-width="300"
|
align="center"
|
>
|
<template slot-scope="{ row }">
|
<div class="question-content">
|
<span class="question-text">{{ row.questionContent }}</span>
|
<div class="question-tags">
|
<el-tag
|
size="mini"
|
:type="getQuestionTypeTag(row.questionType)"
|
>
|
{{ row.questionType === 1 ? '单选题' : '多选题' }}
|
</el-tag>
|
<el-tag
|
size="mini"
|
type="info"
|
>
|
{{ row.templateName }}
|
</el-tag>
|
</div>
|
</div>
|
</template>
|
</el-table-column>
|
|
<el-table-column
|
label="负责科室"
|
prop="responsibilityDepts"
|
width="180"
|
align="center"
|
>
|
<template slot-scope="{ row }">
|
<div class="dept-list">
|
<el-tag
|
v-for="dept in row.responsibilityDepts"
|
:key="dept.id"
|
size="small"
|
type="primary"
|
class="dept-tag"
|
>
|
{{ dept.name }}
|
</el-tag>
|
</div>
|
</template>
|
</el-table-column>
|
|
<el-table-column
|
label="填写情况"
|
width="200"
|
align="center"
|
>
|
<template slot-scope="{ row }">
|
<div class="fill-statistics">
|
<div class="stat-item">
|
<span class="stat-label">有效填写:</span>
|
<span class="stat-value">{{ row.validFillCount }}</span>
|
</div>
|
<div class="stat-item">
|
<span class="stat-label">异常填写:</span>
|
<span class="stat-value exception-count">{{ row.exceptionFillCount }}</span>
|
</div>
|
</div>
|
</template>
|
</el-table-column>
|
|
<el-table-column
|
label="异常任务"
|
width="280"
|
align="center"
|
>
|
<template slot-scope="{ row }">
|
<div class="exception-tasks">
|
<div class="task-category">
|
<div class="task-title">已处理</div>
|
<div class="task-count processed">{{ row.processedCount }}</div>
|
</div>
|
<div class="task-category">
|
<div class="task-title">待处理</div>
|
<div class="task-count pending">{{ row.pendingCount }}</div>
|
</div>
|
<div class="task-category">
|
<div class="task-title">异常总数</div>
|
<div class="task-count total">{{ row.totalExceptionCount }}</div>
|
</div>
|
</div>
|
</template>
|
</el-table-column>
|
|
<el-table-column
|
label="最近处理"
|
prop="lastProcessTime"
|
width="180"
|
align="center"
|
>
|
<template slot-scope="{ row }">
|
<div v-if="row.lastProcessTime" class="last-process">
|
<div class="process-time">{{ row.lastProcessTime }}</div>
|
<div class="process-user">{{ row.lastProcessUser }}</div>
|
</div>
|
<span v-else class="no-process">暂无处理记录</span>
|
</template>
|
</el-table-column>
|
|
<el-table-column
|
label="操作"
|
width="180"
|
align="center"
|
fixed="right"
|
>
|
<template slot-scope="{ row }">
|
<!-- <el-button
|
type="primary"
|
size="small"
|
icon="el-icon-view"
|
@click="handleViewDetail(row)"
|
>
|
详情
|
</el-button> -->
|
<el-button
|
type="warning"
|
size="small"
|
icon="el-icon-s-operation"
|
@click="handleBatchQuestion(row)"
|
>
|
批量处理
|
</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<!-- 分页 -->
|
<div class="pagination-section">
|
<el-pagination
|
background
|
layout="total, sizes, prev, pager, next, jumper"
|
:current-page="queryParams.pageNum"
|
:page-size="queryParams.pageSize"
|
:page-sizes="[10, 20, 30, 50]"
|
:total="total"
|
@size-change="handleSizeChange"
|
@current-change="handlePageChange"
|
/>
|
</div>
|
</el-card>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
name: 'ExceptionList',
|
data() {
|
return {
|
// 查询参数
|
queryParams: {
|
templateId: '',
|
deptIds: [],
|
dateRange: [],
|
pageNum: 1,
|
pageSize: 10
|
},
|
|
// 加载状态
|
loading: false,
|
|
// 选中的ID
|
selectedIds: [],
|
|
// 模板列表
|
templateList: [
|
{ id: 1, name: '出院满意度问卷' },
|
{ id: 2, name: '住院满意度问卷' },
|
{ id: 3, name: '门诊满意度问卷' },
|
{ id: 4, name: '常用满意度问卷' }
|
],
|
|
// 科室列表
|
deptList: [
|
{ id: 1, name: '心血管内科' },
|
{ id: 2, name: '神经内科' },
|
{ id: 3, name: '普外科' },
|
{ id: 4, name: '骨科' },
|
{ id: 5, name: '妇产科' },
|
{ id: 6, name: '儿科' },
|
{ id: 7, name: '急诊科' },
|
{ id: 8, name: '呼吸内科' },
|
{ id: 9, name: '消化内科' },
|
{ id: 10, name: '内分泌科' },
|
{ id: 11, name: '肾内科' },
|
{ id: 12, name: '肿瘤科' }
|
],
|
|
// 异常列表数据
|
exceptionList: [],
|
total: 0,
|
|
// 统计概览数据
|
overviewData: {
|
totalExceptionCount: 0,
|
pendingCount: 0,
|
processedCount: 0,
|
todayProcessedCount: 0
|
},
|
|
// 日期选择器选项
|
pickerOptions: {
|
shortcuts: [
|
{
|
text: '最近一周',
|
onClick(picker) {
|
const end = new Date();
|
const start = new Date();
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
picker.$emit('pick', [start, end]);
|
}
|
},
|
{
|
text: '最近一个月',
|
onClick(picker) {
|
const end = new Date();
|
const start = new Date();
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
picker.$emit('pick', [start, end]);
|
}
|
},
|
{
|
text: '最近三个月',
|
onClick(picker) {
|
const end = new Date();
|
const start = new Date();
|
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
picker.$emit('pick', [start, end]);
|
}
|
}
|
],
|
disabledDate(time) {
|
return time.getTime() > Date.now();
|
}
|
}
|
};
|
},
|
|
mounted() {
|
this.loadData();
|
},
|
|
methods: {
|
// 加载数据
|
async loadData() {
|
this.loading = true;
|
try {
|
await Promise.all([
|
this.loadExceptionList(),
|
this.loadOverviewData()
|
]);
|
} finally {
|
this.loading = false;
|
}
|
},
|
|
// 加载异常列表
|
async loadExceptionList() {
|
return new Promise((resolve) => {
|
setTimeout(() => {
|
// Mock 数据
|
this.exceptionList = [
|
{
|
id: 1,
|
questionId: 101,
|
questionContent: '您对医护人员的服务态度是否满意?',
|
questionType: 1, // 1: 单选题, 2: 多选题
|
templateName: '出院满意度问卷',
|
responsibilityDepts: [
|
{ id: 1, name: '心血管内科' },
|
{ id: 2, name: '神经内科' }
|
],
|
validFillCount: 145,
|
exceptionFillCount: 8,
|
processedCount: 5,
|
pendingCount: 3,
|
totalExceptionCount: 8,
|
lastProcessTime: '2024-01-15 10:30:25',
|
lastProcessUser: '张医生'
|
},
|
{
|
id: 2,
|
questionId: 102,
|
questionContent: '您对医生的诊疗水平和技术能力评价如何?',
|
questionType: 1,
|
templateName: '住院满意度问卷',
|
responsibilityDepts: [
|
{ id: 3, name: '普外科' },
|
{ id: 4, name: '骨科' }
|
],
|
validFillCount: 120,
|
exceptionFillCount: 12,
|
processedCount: 8,
|
pendingCount: 4,
|
totalExceptionCount: 12,
|
lastProcessTime: '2024-01-14 16:20:10',
|
lastProcessUser: '李护士长'
|
},
|
{
|
id: 3,
|
questionId: 103,
|
questionContent: '您对医院的环境和卫生状况是否满意?',
|
questionType: 1,
|
templateName: '门诊满意度问卷',
|
responsibilityDepts: [
|
{ id: 5, name: '妇产科' },
|
{ id: 6, name: '儿科' },
|
{ id: 7, name: '急诊科' }
|
],
|
validFillCount: 180,
|
exceptionFillCount: 15,
|
processedCount: 10,
|
pendingCount: 5,
|
totalExceptionCount: 15,
|
lastProcessTime: '2024-01-13 09:15:45',
|
lastProcessUser: '王主任'
|
},
|
{
|
id: 4,
|
questionId: 104,
|
questionContent: '您认为医护人员与您的沟通是否充分?',
|
questionType: 1,
|
templateName: '常用满意度问卷',
|
responsibilityDepts: [
|
{ id: 8, name: '呼吸内科' },
|
{ id: 9, name: '消化内科' }
|
],
|
validFillCount: 95,
|
exceptionFillCount: 6,
|
processedCount: 4,
|
pendingCount: 2,
|
totalExceptionCount: 6,
|
lastProcessTime: '2024-01-12 14:40:30',
|
lastProcessUser: '赵医生'
|
},
|
{
|
id: 5,
|
questionId: 105,
|
questionContent: '您对等待就诊和治疗的时间是否满意?',
|
questionType: 1,
|
templateName: '住院满意度问卷',
|
responsibilityDepts: [
|
{ id: 10, name: '内分泌科' },
|
{ id: 11, name: '肾内科' }
|
],
|
validFillCount: 200,
|
exceptionFillCount: 25,
|
processedCount: 15,
|
pendingCount: 10,
|
totalExceptionCount: 25,
|
lastProcessTime: '2024-01-11 11:25:15',
|
lastProcessUser: '孙护士'
|
},
|
{
|
id: 6,
|
questionId: 106,
|
questionContent: '您对医院收费的透明度和合理性评价如何?',
|
questionType: 1,
|
templateName: '门诊满意度问卷',
|
responsibilityDepts: [
|
{ id: 12, name: '肿瘤科' }
|
],
|
validFillCount: 160,
|
exceptionFillCount: 18,
|
processedCount: 12,
|
pendingCount: 6,
|
totalExceptionCount: 18,
|
lastProcessTime: '2024-01-10 15:50:20',
|
lastProcessUser: '周医生'
|
},
|
{
|
id: 7,
|
questionId: 107,
|
questionContent: '您会向亲友推荐我们医院吗?',
|
questionType: 1,
|
templateName: '出院满意度问卷',
|
responsibilityDepts: [
|
{ id: 1, name: '心血管内科' },
|
{ id: 8, name: '呼吸内科' }
|
],
|
validFillCount: 110,
|
exceptionFillCount: 7,
|
processedCount: 5,
|
pendingCount: 2,
|
totalExceptionCount: 7,
|
lastProcessTime: '2024-01-09 10:15:40',
|
lastProcessUser: '吴主任'
|
},
|
{
|
id: 8,
|
questionId: 108,
|
questionContent: '您对以下哪些方面比较满意(多选)?',
|
questionType: 2,
|
templateName: '常用满意度问卷',
|
responsibilityDepts: [
|
{ id: 2, name: '神经内科' },
|
{ id: 3, name: '普外科' },
|
{ id: 5, name: '妇产科' }
|
],
|
validFillCount: 135,
|
exceptionFillCount: 9,
|
processedCount: 6,
|
pendingCount: 3,
|
totalExceptionCount: 9,
|
lastProcessTime: '2024-01-08 13:30:55',
|
lastProcessUser: '郑医生'
|
}
|
];
|
this.total = this.exceptionList.length;
|
resolve();
|
}, 500);
|
});
|
},
|
|
// 加载概览数据
|
async loadOverviewData() {
|
return new Promise((resolve) => {
|
setTimeout(() => {
|
// 计算统计数据
|
const totalExceptionCount = this.exceptionList.reduce((sum, item) => sum + item.totalExceptionCount, 0);
|
const pendingCount = this.exceptionList.reduce((sum, item) => sum + item.pendingCount, 0);
|
const processedCount = this.exceptionList.reduce((sum, item) => sum + item.processedCount, 0);
|
|
this.overviewData = {
|
totalExceptionCount,
|
pendingCount,
|
processedCount,
|
todayProcessedCount: 8 // 今日处理数 mock
|
};
|
resolve();
|
}, 300);
|
});
|
},
|
|
// 获取题目类型标签样式
|
getQuestionTypeTag(type) {
|
return type === 1 ? 'primary' : 'success';
|
},
|
|
// 处理查询
|
handleSearch() {
|
this.queryParams.pageNum = 1;
|
this.loadData();
|
},
|
|
// 处理重置
|
handleReset() {
|
this.$refs.queryForm.resetFields();
|
this.queryParams.dateRange = [];
|
this.queryParams.pageNum = 1;
|
this.loadData();
|
},
|
|
// 处理批量处理
|
handleBatchProcess() {
|
if (this.selectedIds.length === 0) {
|
this.$message.warning('请先选择要处理的异常题目');
|
return;
|
}
|
|
// 跳转到批量处理页面
|
this.$router.push({
|
path: '/satisfaction/exception/batch-process',
|
query: {
|
questionIds: this.selectedIds.join(',')
|
}
|
});
|
},
|
|
// 处理导出
|
handleExport() {
|
this.$message.success('导出功能开发中...');
|
},
|
|
// 刷新数据
|
refreshData() {
|
this.loadData();
|
this.$message.success('数据已刷新');
|
},
|
|
// 处理选择变化
|
handleSelectionChange(selection) {
|
this.selectedIds = selection.map(item => item.questionId);
|
},
|
|
// 处理查看详情
|
handleViewDetail(row) {
|
this.$router.push({
|
path: '/satisfaction/exception/detail',
|
query: {
|
id: row.questionId
|
}
|
});
|
},
|
|
// 处理单个题目批量处理
|
handleBatchQuestion(row) {
|
this.$router.push({
|
path: '/Intelligentcenter/batch',
|
query: {
|
questionId: row.questionId
|
}
|
});
|
},
|
|
// 处理分页大小变化
|
handleSizeChange(size) {
|
this.queryParams.pageSize = size;
|
this.queryParams.pageNum = 1;
|
this.loadExceptionList();
|
},
|
|
// 处理页码变化
|
handlePageChange(page) {
|
this.queryParams.pageNum = page;
|
this.loadExceptionList();
|
}
|
}
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
.exception-list {
|
padding: 20px;
|
background-color: #f5f7fa;
|
min-height: 100vh;
|
|
.page-header {
|
margin-bottom: 20px;
|
padding: 20px;
|
background: linear-gradient(135deg, #5788FE 0%, #66b1ff 100%);
|
border-radius: 8px;
|
color: white;
|
|
.header-content {
|
.page-title {
|
margin: 0 0 8px 0;
|
font-size: 20px;
|
font-weight: 600;
|
}
|
|
.page-description {
|
margin: 0;
|
opacity: 0.9;
|
font-size: 14px;
|
}
|
}
|
}
|
|
.search-section {
|
margin-bottom: 20px;
|
|
.search-form {
|
display: flex;
|
flex-wrap: wrap;
|
align-items: center;
|
|
::v-deep .el-form-item {
|
margin-bottom: 0;
|
margin-right: 20px;
|
|
&:last-child {
|
margin-right: 0;
|
}
|
}
|
}
|
}
|
|
.batch-section {
|
margin-bottom: 20px;
|
|
.batch-actions {
|
display: flex;
|
gap: 10px;
|
align-items: center;
|
}
|
}
|
|
.overview-section {
|
margin-bottom: 20px;
|
|
.stat-card {
|
.stat-content {
|
display: flex;
|
align-items: center;
|
gap: 20px;
|
|
.stat-icon {
|
width: 60px;
|
height: 60px;
|
border-radius: 12px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
|
i {
|
font-size: 28px;
|
}
|
}
|
|
.stat-info {
|
flex: 1;
|
|
.stat-title {
|
font-size: 14px;
|
color: #606266;
|
margin-bottom: 8px;
|
}
|
|
.stat-value {
|
font-size: 24px;
|
font-weight: 600;
|
color: #303133;
|
}
|
}
|
}
|
}
|
}
|
|
.list-section {
|
.exception-table {
|
::v-deep .el-table__header-wrapper {
|
th {
|
background-color: #f8f9fa;
|
font-weight: 600;
|
color: #333;
|
}
|
}
|
|
.question-content {
|
.question-text {
|
display: block;
|
font-size: 14px;
|
color: #303133;
|
margin-bottom: 8px;
|
line-height: 1.5;
|
}
|
|
.question-tags {
|
display: flex;
|
gap: 5px;
|
justify-content: center;
|
}
|
}
|
|
.dept-list {
|
display: flex;
|
flex-direction: column;
|
gap: 5px;
|
align-items: center;
|
|
.dept-tag {
|
margin: 2px 0;
|
}
|
}
|
|
.fill-statistics {
|
.stat-item {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 5px;
|
padding: 2px 0;
|
|
.stat-label {
|
font-size: 12px;
|
color: #606266;
|
}
|
|
.stat-value {
|
font-size: 14px;
|
font-weight: 500;
|
color: #333;
|
}
|
|
.exception-count {
|
color: #e6a23c;
|
font-weight: 600;
|
}
|
}
|
}
|
|
.exception-tasks {
|
display: flex;
|
justify-content: space-around;
|
align-items: center;
|
|
.task-category {
|
text-align: center;
|
padding: 5px 8px;
|
border-radius: 6px;
|
min-width: 70px;
|
|
.task-title {
|
font-size: 12px;
|
color: #606266;
|
margin-bottom: 5px;
|
}
|
|
.task-count {
|
font-size: 18px;
|
font-weight: 600;
|
line-height: 1;
|
|
&.processed {
|
color: #67c23a;
|
}
|
|
&.pending {
|
color: #e6a23c;
|
}
|
|
&.total {
|
color: #5788FE;
|
}
|
}
|
}
|
}
|
|
.last-process {
|
.process-time {
|
font-size: 12px;
|
color: #606266;
|
margin-bottom: 4px;
|
}
|
|
.process-user {
|
font-size: 13px;
|
color: #5788FE;
|
font-weight: 500;
|
}
|
}
|
|
.no-process {
|
color: #909399;
|
font-style: italic;
|
}
|
}
|
|
.pagination-section {
|
display: flex;
|
justify-content: center;
|
padding: 20px 0 0 0;
|
}
|
}
|
}
|
|
@media (max-width: 768px) {
|
.exception-list {
|
padding: 10px;
|
|
.search-section {
|
.search-form {
|
::v-deep .el-form-item {
|
width: 100%;
|
margin-right: 0;
|
margin-bottom: 10px;
|
}
|
}
|
}
|
|
.overview-section {
|
.el-row {
|
margin-left: 0;
|
margin-right: 0;
|
|
.el-col {
|
padding-left: 0;
|
padding-right: 0;
|
margin-bottom: 10px;
|
}
|
}
|
}
|
}
|
}
|
</style>
|