|
@@ -3,7 +3,7 @@
|
|
|
<div class="layout-padding-auto layout-padding-view pd20">
|
|
|
<el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
<el-form-item prop="crTime">
|
|
|
- <statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef" :disabled="state.loading"/>
|
|
|
+ <statistical-time v-model="state.queryParams.crTime" @change="handleQuery" ref="statisticalTimeRef" :disabled="state.loading" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="">
|
|
|
<el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
@@ -12,19 +12,23 @@
|
|
|
</el-button>
|
|
|
<el-popover :width="600" trigger="click">
|
|
|
<template #reference>
|
|
|
- <el-button type="primary" title="字段说明"><SvgIcon name="ele-QuestionFilled" class="mr5"/>字段说明</el-button>
|
|
|
+ <el-button type="primary" title="字段说明"><SvgIcon name="ele-QuestionFilled" class="mr5" />字段说明</el-button>
|
|
|
</template>
|
|
|
<el-descriptions title="" :column="1" border style="max-height: 400px; overflow: auto">
|
|
|
<el-descriptions-item label="话务接通率">呼入话务接通数量 / 呼入话务总量 </el-descriptions-item>
|
|
|
- <el-descriptions-item label="话务数据匹配率">间范围内与电话工单匹配的话务数据量 / 时间范围内电话工单量。 </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="话务数据匹配率">间范围内与电话工单匹配的话务数据量 / 时间范围内电话工单量。 </el-descriptions-item>
|
|
|
<el-descriptions-item label="话务数据及时上传率"> 呼入及时上传话务数据量 / 呼入上传话务数据总量 </el-descriptions-item>
|
|
|
<el-descriptions-item label="工单数据及时上传率"> 及时上传工单数据总量 / 上传工单数据总量 </el-descriptions-item>
|
|
|
- <el-descriptions-item label="受理量"> 结转件 + 转办件(指各市(州)汇聚数据中,属于本月新增工单以及上一月及以前结转工单的数量。) </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="受理量">
|
|
|
+ 结转件 + 转办件(指各市(州)汇聚数据中,属于本月新增工单以及上一月及以前结转工单的数量。)
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="办结件数"> 指市(州)汇聚数据中,本月办结工单的数量。 </el-descriptions-item>
|
|
|
- <el-descriptions-item label="按时办结率"> 按时办结工单数量 /(按时办结工单数量+超期办结工单数量+超期未办结工单数量) </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="按时办结率">
|
|
|
+ 按时办结工单数量 /(按时办结工单数量+超期办结工单数量+超期未办结工单数量)
|
|
|
+ </el-descriptions-item>
|
|
|
<el-descriptions-item label="回访量"> 市(州)回访工单总量:指市(州)汇聚数据中,本月回访工单的数量 </el-descriptions-item>
|
|
|
<el-descriptions-item label="不满意件"> 时间范围内成功上传工单的满意度评价记录为“不满意”、“非常不满意”的工单件数 </el-descriptions-item>
|
|
|
- <el-descriptions-item label="知识库总量"> 指各市(州)汇聚的知识库总量 </el-descriptions-item>
|
|
|
+ <el-descriptions-item label="知识库总量"> 指各市(州)汇聚的知识库总量 </el-descriptions-item>
|
|
|
<el-descriptions-item label="知识库更新数量"> 更新知识量 </el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
</el-popover>
|
|
@@ -45,7 +49,7 @@
|
|
|
:loading="state.loading"
|
|
|
:data="state.tableData"
|
|
|
:column-config="{ resizable: true }"
|
|
|
- :row-config="{ isCurrent: true, isHover: true, height: 30,useKey: true }"
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30, useKey: true }"
|
|
|
ref="tableRef"
|
|
|
height="auto"
|
|
|
auto-resize
|
|
@@ -57,38 +61,26 @@
|
|
|
}"
|
|
|
>
|
|
|
<vxe-column field="calConnectionRate" title="话务接通率">
|
|
|
- <template #default="scope">
|
|
|
- {{ scope.row.calConnectionRate }}%
|
|
|
- </template>
|
|
|
+ <template #default="scope"> {{ scope.row.calConnectionRate }}% </template>
|
|
|
</vxe-column>
|
|
|
<vxe-column field="matchingRateOfCallData" title="话务数据匹配率">
|
|
|
- <template #default="scope">
|
|
|
- {{ scope.row.matchingRateOfCallData }}%
|
|
|
- </template>
|
|
|
+ <template #default="scope"> {{ scope.row.matchingRateOfCallData }}% </template>
|
|
|
</vxe-column>
|
|
|
<vxe-column field="timelyUploadRateOfCallData" title="话务数据及时上传率">
|
|
|
- <template #default="scope">
|
|
|
- {{ scope.row.timelyUploadRateOfCallData }}%
|
|
|
- </template>
|
|
|
+ <template #default="scope"> {{ scope.row.timelyUploadRateOfCallData }}% </template>
|
|
|
</vxe-column>
|
|
|
<vxe-column field="timelyUploadRateOfOrderData" title="工单数据及时上传率">
|
|
|
- <template #default="scope">
|
|
|
- {{ scope.row.timelyUploadRateOfOrderData }}%
|
|
|
- </template>
|
|
|
+ <template #default="scope"> {{ scope.row.timelyUploadRateOfOrderData }}% </template>
|
|
|
</vxe-column>
|
|
|
<vxe-column field="acceptanceQuantity" title="受理量"></vxe-column>
|
|
|
<vxe-column field="numbeOfCompletedCases" title="办结件数"></vxe-column>
|
|
|
<vxe-column field="onTimeCompletionRate" title="按时办结率">
|
|
|
- <template #default="scope">
|
|
|
- {{ scope.row.onTimeCompletionRate }}%
|
|
|
- </template>
|
|
|
+ <template #default="scope"> {{ scope.row.onTimeCompletionRate }}% </template>
|
|
|
</vxe-column>
|
|
|
<vxe-column field="followUpVolume" title="回访量"></vxe-column>
|
|
|
<vxe-column field="dissatisfiedItems" title="不满意件"></vxe-column>
|
|
|
<vxe-column field="dissatisfactionRate" title="不满意率">
|
|
|
- <template #default="scope">
|
|
|
- {{ scope.row.dissatisfactionRate }}%
|
|
|
- </template>
|
|
|
+ <template #default="scope"> {{ scope.row.dissatisfactionRate }}% </template>
|
|
|
</vxe-column>
|
|
|
<vxe-column field="knowledgeTotalNum" title="知识库总量"></vxe-column>
|
|
|
<vxe-column field="knowledgeUpdateTotalNum" title="知识库更新数量"></vxe-column>
|
|
@@ -99,11 +91,11 @@
|
|
|
</template>
|
|
|
<script setup lang="tsx" name="statisticsCenterAggregation">
|
|
|
import { onMounted, reactive, ref, defineAsyncComponent } from 'vue';
|
|
|
-import {FormInstance } from 'element-plus';
|
|
|
+import { FormInstance } from 'element-plus';
|
|
|
import { defaultDate } from '@/utils/constants';
|
|
|
import Other from '@/utils/other';
|
|
|
import { getDataConvergence } from '@/api/dataShare';
|
|
|
-import { centerUnreceivedExport } from '@/api/statistics/center';
|
|
|
+import { getSettingByCode } from '@/api/system/parameter';
|
|
|
|
|
|
// 引入组件
|
|
|
const StatisticalTime = defineAsyncComponent(() => import('@/components/StatisticalTime/index.vue')); // 日期类型选择组件
|
|
@@ -134,14 +126,37 @@ const queryList = () => {
|
|
|
requestParams.value.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
|
requestParams.value.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
Reflect.deleteProperty(requestParams.value, 'crTime');
|
|
|
- getDataConvergence(requestParams.value)
|
|
|
- .then((res: any) => {
|
|
|
- state.tableData = res.result;
|
|
|
+ if (isDataAggregationOpen.value) {
|
|
|
+ getDataConvergence(requestParams.value)
|
|
|
+ .then((res: any) => {
|
|
|
+ state.tableData = res.result;
|
|
|
+ state.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ state.loading = false;
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ state.tableData = [
|
|
|
+ {
|
|
|
+ calConnectionRate: '99', // 话务接通率
|
|
|
+ matchingRateOfCallData: '99', // 话务数据匹配率
|
|
|
+ timelyUploadRateOfCallData: '99', // 话务数据及时上传率
|
|
|
+ timelyUploadRateOfOrderData: '99', // 工单数据及时上传率
|
|
|
+ acceptanceQuantity: '99', // 受理量
|
|
|
+ numbeOfCompletedCases: '99', // 办结件数
|
|
|
+ onTimeCompletionRate: '0.000', // 按时办结率
|
|
|
+ followUpVolume: '99', // 回访量
|
|
|
+ dissatisfiedItems: '99', // 不满意件
|
|
|
+ dissatisfactionRate: '99', // 不满意率
|
|
|
+ knowledgeTotalNum: '99', // 知识库总量
|
|
|
+ knowledgeUpdateTotalNum: '99', // 知识库更新数量
|
|
|
+ overdueDeliveryOrder: null,
|
|
|
+ },
|
|
|
+ ];
|
|
|
+ setTimeout(() => {
|
|
|
state.loading = false;
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- state.loading = false;
|
|
|
- });
|
|
|
+ }, 300);
|
|
|
+ }
|
|
|
};
|
|
|
/** 重置按钮操作 */
|
|
|
const statisticalTimeRef = ref<RefType>();
|
|
@@ -153,8 +168,20 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
};
|
|
|
const toolbarRef = ref<RefType>();
|
|
|
const tableRef = ref<RefType>();
|
|
|
+// 是否开启查询
|
|
|
+const isDataAggregationOpen = ref<boolean>(true);
|
|
|
+// 查询配置
|
|
|
+const getConfig = async () => {
|
|
|
+ try {
|
|
|
+ const { result } = await getSettingByCode('IsDataAggregationOpen');
|
|
|
+ isDataAggregationOpen.value = result?.settingValue[0] === 'true'; // 是否开启查询
|
|
|
+ queryList();
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
- queryList();
|
|
|
+ getConfig();
|
|
|
if (tableRef.value && toolbarRef.value) {
|
|
|
tableRef.value.connect(toolbarRef.value);
|
|
|
}
|