|
@@ -1,31 +1,48 @@
|
|
|
<template>
|
|
|
- <div class="statistics-department-detail-handle-container layout-pd">
|
|
|
- <el-card shadow="never">
|
|
|
- <ProTable
|
|
|
- ref="proTableRef"
|
|
|
- :columns="columns"
|
|
|
- :data="state.tableData"
|
|
|
- @updateTable="queryList"
|
|
|
- :loading="state.loading"
|
|
|
- :total="state.total"
|
|
|
- v-model:page-index="state.queryParams.PageIndex"
|
|
|
- v-model:page-size="state.queryParams.PageSize"
|
|
|
- :toolButton="['refresh', 'setting', 'exportCurrent', 'exportAll']"
|
|
|
- :exportMethod="departmentOrderDetailExport"
|
|
|
- :exportParams="requestParams"
|
|
|
- >
|
|
|
- <template #expiredStatusText="{ row }">
|
|
|
- <span :class="'overdue-status-' + row.expiredStatus" :title="row.expiredStatusText"></span>
|
|
|
- </template>
|
|
|
- <template #title="{ row }">
|
|
|
- <order-detail :order="row" @updateList="queryList">{{ row.title }}</order-detail>
|
|
|
- </template>
|
|
|
- <template #operation="{ row }">
|
|
|
- <order-detail :order="row" @updateList="queryList" />
|
|
|
- </template>
|
|
|
- </ProTable>
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
+ <div class="statistics-department-detail-handle-container layout-pd">
|
|
|
+ <el-card shadow="never">
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent label-width="100px" inline>
|
|
|
+ <el-form-item label="来电主体" prop="TypeId">
|
|
|
+ <el-select v-model="state.queryParams.TypeId" placeholder="请选择来电主体" @change="handleQuery">
|
|
|
+ <el-option :value="0" label="全部" />
|
|
|
+ <el-option :value="1" label="市民" />
|
|
|
+ <el-option :value="2" label="企业" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
+ <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
+ <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
+ </el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-card>
|
|
|
+ <el-card shadow="never">
|
|
|
+ <ProTable
|
|
|
+ ref="proTableRef"
|
|
|
+ :columns="columns"
|
|
|
+ :data="state.tableData"
|
|
|
+ @updateTable="queryList"
|
|
|
+ :loading="state.loading"
|
|
|
+ :total="state.total"
|
|
|
+ v-model:page-index="state.queryParams.PageIndex"
|
|
|
+ v-model:page-size="state.queryParams.PageSize"
|
|
|
+ :toolButton="['refresh', 'setting', 'exportCurrent', 'exportAll']"
|
|
|
+ :exportMethod="departmentOrderDetailExport"
|
|
|
+ :exportParams="requestParams"
|
|
|
+ >
|
|
|
+ <template #expiredStatusText="{ row }">
|
|
|
+ <span :class="'overdue-status-' + row.expiredStatus" :title="row.expiredStatusText"></span>
|
|
|
+ </template>
|
|
|
+ <template #title="{ row }">
|
|
|
+ <order-detail :order="row" @updateList="queryList">{{ row.title }}</order-detail>
|
|
|
+ </template>
|
|
|
+ <template #operation="{ row }">
|
|
|
+ <order-detail :order="row" @updateList="queryList" />
|
|
|
+ </template>
|
|
|
+ </ProTable>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
<script setup lang="tsx" name="statisticsDepartmentDetailHandle">
|
|
|
import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
@@ -33,22 +50,24 @@ import type { FormInstance } from 'element-plus';
|
|
|
import other from '@/utils/other';
|
|
|
import { useRoute, useRouter } from 'vue-router';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
-import { departmentOrderDetail, departmentOrderDetailExport } from "@/api/statistics/department";
|
|
|
-import { downloadFileByStream } from "@/utils/tools";
|
|
|
-import {centerReturnErrorExport} from "@/api/statistics/center";
|
|
|
+import { departmentOrderDetail, departmentOrderDetailExport } from '@/api/statistics/department';
|
|
|
+import { downloadFileByStream } from '@/utils/tools';
|
|
|
+import { centerReturnErrorExport } from '@/api/statistics/center';
|
|
|
+import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
|
|
|
// 引入组件
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
|
|
|
|
// 定义变量内容
|
|
|
const state = reactive<any>({
|
|
|
- queryParams: {
|
|
|
- PageIndex: 1, // 当前页
|
|
|
- PageSize: 10, // 每页条数
|
|
|
- },
|
|
|
- tableData: [], //表单
|
|
|
- loading: false, // 加载
|
|
|
- total: 0, // 总数
|
|
|
+ queryParams: {
|
|
|
+ PageIndex: 1, // 当前页
|
|
|
+ PageSize: 10, // 每页条数
|
|
|
+ TypeId: 0,
|
|
|
+ },
|
|
|
+ tableData: [], //表单
|
|
|
+ loading: false, // 加载
|
|
|
+ total: 0, // 总数
|
|
|
});
|
|
|
const ruleFormRef = ref<RefType>(); // 表单ref
|
|
|
const route = useRoute(); // 路由
|
|
@@ -56,79 +75,79 @@ const router = useRouter(); // 路由
|
|
|
const proTableRef = ref<RefType>(); // 表格ref
|
|
|
// 表格配置项
|
|
|
const columns = ref<any[]>([
|
|
|
- { prop: 'expiredStatusText', label: '超期状态', align: 'center',width: 80 },
|
|
|
- { prop: 'no', label: '工单编码', width: 140 },
|
|
|
- { prop: 'isProvinceText', label: '省/市工单', width: 90 },
|
|
|
- { prop: 'currentStepName', label: '当前节点', width: 100 },
|
|
|
- { prop: 'statusText', label: '工单状态', width: 100 },
|
|
|
- { prop: 'title', label: '工单标题', width: 200 },
|
|
|
- {
|
|
|
- prop: 'startTime',
|
|
|
- label: '受理时间',
|
|
|
- width: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'expiredTime',
|
|
|
- label: '工单期满时间',
|
|
|
- width: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.expiredTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'filedTime',
|
|
|
- label: '办结时间',
|
|
|
- width: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.filedTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'orgLevelOneName', label: '一级部门', width: 140 },
|
|
|
- { prop: 'currentHandleOrgName', label: '接办部门', width: 140 },
|
|
|
- { prop: 'acceptType', label: '受理类型', width: 100 },
|
|
|
- { prop: 'counterSignTypeText', label: '是否会签', width: 90 },
|
|
|
- { prop: 'sourceChannel', label: '来源渠道', minWidth: 100 },
|
|
|
- { prop: 'hotspotName', label: '热点分类', minWidth: 150 },
|
|
|
- { prop: 'acceptorName', label: '受理人', width: 120 },
|
|
|
- { prop: 'operation', label: '操作', fixed: 'right', width: 90, align: 'center' },
|
|
|
+ { prop: 'expiredStatusText', label: '超期状态', align: 'center', width: 80 },
|
|
|
+ { prop: 'no', label: '工单编码', width: 140 },
|
|
|
+ { prop: 'isProvinceText', label: '省/市工单', width: 90 },
|
|
|
+ { prop: 'currentStepName', label: '当前节点', width: 100 },
|
|
|
+ { prop: 'statusText', label: '工单状态', width: 100 },
|
|
|
+ { prop: 'title', label: '工单标题', width: 200 },
|
|
|
+ {
|
|
|
+ prop: 'startTime',
|
|
|
+ label: '受理时间',
|
|
|
+ width: 160,
|
|
|
+ render: (scope) => {
|
|
|
+ return <span>{formatDate(scope.row.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'expiredTime',
|
|
|
+ label: '工单期满时间',
|
|
|
+ width: 160,
|
|
|
+ render: (scope) => {
|
|
|
+ return <span>{formatDate(scope.row.expiredTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'filedTime',
|
|
|
+ label: '办结时间',
|
|
|
+ width: 160,
|
|
|
+ render: (scope) => {
|
|
|
+ return <span>{formatDate(scope.row.filedTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { prop: 'orgLevelOneName', label: '一级部门', width: 140 },
|
|
|
+ { prop: 'currentHandleOrgName', label: '接办部门', width: 140 },
|
|
|
+ { prop: 'acceptType', label: '受理类型', width: 100 },
|
|
|
+ { prop: 'counterSignTypeText', label: '是否会签', width: 90 },
|
|
|
+ { prop: 'sourceChannel', label: '来源渠道', minWidth: 100 },
|
|
|
+ { prop: 'hotspotName', label: '热点分类', minWidth: 150 },
|
|
|
+ { prop: 'acceptorName', label: '受理人', width: 120 },
|
|
|
+ { prop: 'operation', label: '操作', fixed: 'right', width: 90, align: 'center' },
|
|
|
]);
|
|
|
// 手动查询,将页码设置为1
|
|
|
const handleQuery = () => {
|
|
|
- state.queryParams.PageIndex = 1;
|
|
|
- queryList();
|
|
|
+ state.queryParams.PageIndex = 1;
|
|
|
+ queryList();
|
|
|
};
|
|
|
const routeQueryParams = route.query;
|
|
|
/** 获取列表 */
|
|
|
-const requestParams = ref({})
|
|
|
+const requestParams = ref({});
|
|
|
const queryList = () => {
|
|
|
- requestParams.value = other.deepClone(state.queryParams);
|
|
|
- requestParams.value.StartTime = routeQueryParams.StartTime;
|
|
|
- requestParams.value.EndTime = routeQueryParams.EndTime;
|
|
|
- requestParams.value.OrgCode = routeQueryParams.OrgCode;
|
|
|
- requestParams.value.StatisticsType = Number(routeQueryParams.StatisticsType);
|
|
|
- requestParams.value.isProvince = routeQueryParams.isProvince;
|
|
|
- requestParams.value.ParentOrgCode = routeQueryParams.ParentOrgCode;
|
|
|
- state.loading = true;
|
|
|
- departmentOrderDetail(requestParams.value)
|
|
|
- .then((response: any) => {
|
|
|
- state.tableData = response?.result.items ?? [];
|
|
|
- state.total = response?.result.total;
|
|
|
- state.loading = false;
|
|
|
- })
|
|
|
- .catch(() => {
|
|
|
- state.loading = false;
|
|
|
- });
|
|
|
+ requestParams.value = other.deepClone(state.queryParams);
|
|
|
+ requestParams.value.StartTime = routeQueryParams.StartTime;
|
|
|
+ requestParams.value.EndTime = routeQueryParams.EndTime;
|
|
|
+ requestParams.value.OrgCode = routeQueryParams.OrgCode;
|
|
|
+ requestParams.value.StatisticsType = Number(routeQueryParams.StatisticsType);
|
|
|
+ requestParams.value.isProvince = routeQueryParams.isProvince;
|
|
|
+ requestParams.value.ParentOrgCode = routeQueryParams.ParentOrgCode;
|
|
|
+ state.loading = true;
|
|
|
+ departmentOrderDetail(requestParams.value)
|
|
|
+ .then((response: any) => {
|
|
|
+ state.tableData = response?.result.items ?? [];
|
|
|
+ state.total = response?.result.total;
|
|
|
+ state.loading = false;
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ state.loading = false;
|
|
|
+ });
|
|
|
};
|
|
|
/** 重置按钮操作 */
|
|
|
const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
- if (!formEl) return;
|
|
|
- formEl.resetFields();
|
|
|
- queryList();
|
|
|
+ if (!formEl) return;
|
|
|
+ formEl.resetFields();
|
|
|
+ queryList();
|
|
|
};
|
|
|
onMounted(() => {
|
|
|
- queryList();
|
|
|
+ queryList();
|
|
|
});
|
|
|
-</script>
|
|
|
+</script>
|