|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="business-order-container layout-padding">
|
|
|
<div class="layout-padding-auto layout-padding-view pd20">
|
|
|
- <ProTable
|
|
|
+ <!-- <ProTable
|
|
|
ref="proTableRef"
|
|
|
:columns="columns"
|
|
|
:data="state.tableData"
|
|
@@ -106,7 +106,7 @@
|
|
|
<order-detail :order="row" @updateList="handleQuery">{{ row.title }}</order-detail>
|
|
|
</template>
|
|
|
<template #operation="{ row }">
|
|
|
- <!-- 省工单退回条件 是省工单(工单未归档且当前节点处于热线中心办理节点时)工单状态为办理中(归档之前) 9代表有退回申请 -->
|
|
|
+ <!– 省工单退回条件 是省工单(工单未归档且当前节点处于热线中心办理节点时)工单状态为办理中(归档之前) 9代表有退回申请 –>
|
|
|
<el-button
|
|
|
link
|
|
|
type="danger"
|
|
@@ -231,7 +231,7 @@
|
|
|
<order-detail :order="row" @updateList="handleQuery">{{ row.title }}</order-detail>
|
|
|
</template>
|
|
|
<template #operation="{ row }">
|
|
|
- <!-- 省工单退回条件 是省工单(工单未归档且当前节点处于热线中心办理节点时)工单状态为办理中(归档之前) 9代表有退回申请 -->
|
|
|
+ <!– 省工单退回条件 是省工单(工单未归档且当前节点处于热线中心办理节点时)工单状态为办理中(归档之前) 9代表有退回申请 –>
|
|
|
<el-button
|
|
|
link
|
|
|
type="danger"
|
|
@@ -250,9 +250,196 @@
|
|
|
>
|
|
|
<order-detail :order="row" @updateList="handleQuery" />
|
|
|
</template>
|
|
|
- </ProTable>
|
|
|
+ </ProTable>-->
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
+ <el-row>
|
|
|
+ <el-col>
|
|
|
+ <el-form-item label="快捷查询" prop="fastSearch">
|
|
|
+ <el-segmented
|
|
|
+ :options="[
|
|
|
+ {
|
|
|
+ value: 'all',
|
|
|
+ label: '全部',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'city',
|
|
|
+ label: '市工单',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 'province',
|
|
|
+ label: '省工单',
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ v-model="fastSearch"
|
|
|
+ @change="fastSearchChange"
|
|
|
+ :disabled="state.loading"
|
|
|
+ />
|
|
|
+ <el-checkbox-group v-model="checkList" @change="changeCheckList" class="ml15">
|
|
|
+ <el-checkbox value="IsSensitiveWord" border>敏感类工单</el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button @click="contentRetrieval"><SvgIcon name="ele-DocumentCopy" class="mr5" />内容检索</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-form-item label="工单标题" prop="Keyword">
|
|
|
+ <el-input v-model.trim="state.queryParams.Keyword" placeholder="工单标题" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="工单编码" prop="No">
|
|
|
+ <el-input v-model.trim="state.queryParams.No" placeholder="工单编码" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="生成时间" prop="crTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="state.queryParams.crTime"
|
|
|
+ type="datetimerange"
|
|
|
+ unlink-panels
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始时间"
|
|
|
+ end-placeholder="结束时间"
|
|
|
+ :shortcuts="shortcuts"
|
|
|
+ @change="handleQuery"
|
|
|
+ value-format="YYYY-MM-DD[T]HH:mm:ss"
|
|
|
+ :default-time="defaultTimeStartEnd"
|
|
|
+ />
|
|
|
+ </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="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <vxe-toolbar
|
|
|
+ ref="toolbarRef"
|
|
|
+ :loading="state.loading"
|
|
|
+ custom
|
|
|
+ :refresh="{
|
|
|
+ queryMethod: handleQuery,
|
|
|
+ }"
|
|
|
+ :tools="[{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }]"
|
|
|
+ >
|
|
|
+ <template #buttons>
|
|
|
+ <el-button type="primary" @click="onCreateRepeatEvent" :loading="state.loading">
|
|
|
+ <SvgIcon name="ele-Plus" class="mr5" />创建重复性事件
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="onRevoke" :loading="state.loading" v-auth="'business:order:revoke'" :disabled="isChecked">
|
|
|
+ <SvgIcon name="ele-Setting" class="mr5" />设置撤销
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="onObserve" v-auth="'business:order:observe'" :disabled="isChecked" :loading="state.loading"
|
|
|
+ >添加关注
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="onEnd" v-auth="'business:order:end'" :disabled="isChecked" :loading="state.loading"
|
|
|
+ >设置终结件
|
|
|
+ </el-button>
|
|
|
+ <el-button type="primary" @click="onJbExport" :disabled="isChecked" :loading="state.loading" v-auth="'business:order:jbdExport'"
|
|
|
+ ><SvgIcon name="iconfont icon-daochu" class="mr5" />交办单导出</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="onUrge" v-auth="'business:order:urge'" :disabled="isChecked" :loading="state.loading"
|
|
|
+ ><SvgIcon name="ele-Plus" class="mr5" />添加催办
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-toolbar>
|
|
|
+ <div style="overflow: hidden; width: 100%; height: 100%; flex: 1">
|
|
|
+ <vxe-table
|
|
|
+ border
|
|
|
+ :loading="state.loading"
|
|
|
+ :data="state.tableData"
|
|
|
+ :sort-config="{ remote: true }"
|
|
|
+ :column-config="{ resizable: true }"
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30 }"
|
|
|
+ ref="tableRef"
|
|
|
+ @sort-change="sortChange"
|
|
|
+ @checkbox-all="selectAllChangeEvent"
|
|
|
+ @checkbox-change="selectChangeEvent"
|
|
|
+ height="auto"
|
|
|
+ auto-resize
|
|
|
+ show-overflow
|
|
|
+ :print-config="{}"
|
|
|
+ :scrollY="{ enabled: true, gt: 0 }"
|
|
|
+ id="businessOrder"
|
|
|
+ :custom-config="{ storage: true }"
|
|
|
+ showHeaderOverflow
|
|
|
+ :params="{ exportMethod: exportOrder, exportParams: requestParams }"
|
|
|
+ >
|
|
|
+ <vxe-column type="checkbox" width="50" align="center"></vxe-column>
|
|
|
+ <vxe-column field="expiredStatusText" title="超期状态" width="90" align="center">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <span :class="'overdue-status-' + row.expiredStatus" :title="row.expiredStatusText"></span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="no" title="工单编码" width="140"></vxe-column>
|
|
|
+ <vxe-column field="isProvinceText" title="省/市工单" width="90"></vxe-column>
|
|
|
+ <vxe-column field="reTransactNum" title="重办次数" width="90"></vxe-column>
|
|
|
+ <vxe-column field="isUrgentText" title="是否紧急" width="90">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <span class="color-danger font-bold">{{ row.isUrgentText }}</span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="isSecretText" title="是否保密" width="100"></vxe-column>
|
|
|
+ <vxe-column field="currentStepName" title="当前节点" width="120"></vxe-column>
|
|
|
+ <vxe-column field="actualStepAcceptText" title="受理情况" width="100"></vxe-column>
|
|
|
+ <vxe-column field="statusText" title="工单状态" width="100"></vxe-column>
|
|
|
+ <vxe-column field="title" title="工单标题" width="200">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <order-detail :order="row" @updateList="queryList">{{ row.title }}</order-detail>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="startTime" title="受理时间" sortable width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.startTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="expiredTime" title="工单期满时间" sortable width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.expiredTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="filedTime" title="办结时间" sortable width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.filedTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="orgLevelOneName" title="一级部门" width="140"></vxe-column>
|
|
|
+ <vxe-column field="orgLevelTwoName" title="二级部门" width="140" :visible="['ZiGong'].includes(themeConfig.appScope)"></vxe-column>
|
|
|
+ <vxe-column field="actualHandleOrgName" title="接办部门" width="140"></vxe-column>
|
|
|
+ <vxe-column field="acceptType" title="受理类型" width="110"></vxe-column>
|
|
|
+ <vxe-column field="counterSignTypeText" title="是否会签" width="110"></vxe-column>
|
|
|
+ <vxe-column field="sourceChannel" title="来源渠道" width="100"></vxe-column>
|
|
|
+ <vxe-column field="orderTag" title="工单标签" width="100" :visible="['ZiGong'].includes(themeConfig.appScope)"></vxe-column>
|
|
|
+ <vxe-column field="allDurationHour" title="办理时长(小时)" width="150" :visible="['ZiGong'].includes(themeConfig.appScope)"></vxe-column>
|
|
|
+ <vxe-column field="hotspotSpliceName" title="热点全称" width="150"></vxe-column>
|
|
|
+ <vxe-column field="hotspotName" title="热点分类" width="150"></vxe-column>
|
|
|
+ <vxe-column field="acceptorName" title="受理人" width="120"></vxe-column>
|
|
|
+ <vxe-column field="focusOnEventsName" title="重点标记" width="120" :visible="['YiBin'].includes(themeConfig.appScope)"></vxe-column>
|
|
|
+ <vxe-column field="sensitiveText" title="敏感词" width="150"></vxe-column>
|
|
|
+ <vxe-column field="content" title="受理内容" width="200" :visible="false"></vxe-column>
|
|
|
+ <vxe-column field="fileOpinion" title="承办意见" width="200" :visible="false"></vxe-column>
|
|
|
+ <vxe-column field="seatEvaluateTxt" title="坐席满意度" width="150" :visible="['ZiGong'].includes(themeConfig.appScope)"></vxe-column>
|
|
|
+ <vxe-column field="orgEvaluateValue" title="部门满意度" width="150" :visible="['ZiGong'].includes(themeConfig.appScope)"></vxe-column>
|
|
|
+ <vxe-column title="操作" fixed="right" width="140" align="center">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <!-- 省工单退回条件 是省工单(工单未归档且当前节点处于热线中心办理节点时)工单状态为办理中(归档之前) 9代表有退回申请 -->
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="danger"
|
|
|
+ @click="onReturn(row)"
|
|
|
+ title="省工单退回"
|
|
|
+ v-auth="'business:order:return:province'"
|
|
|
+ v-if="
|
|
|
+ row.isProvince &&
|
|
|
+ (row.actualHandleOrgCode === '001' || row.actualHandleOrgCode === null || row.actualHandleOrgCode === '' || row.status === 0) &&
|
|
|
+ row.status < 300 &&
|
|
|
+ row.status !== 9 &&
|
|
|
+ !row.provinceSendBack
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 退回</el-button
|
|
|
+ >
|
|
|
+ <order-detail :order="row" @updateList="handleQuery" />
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ </vxe-table>
|
|
|
+ </div>
|
|
|
<div class="flex-end mt20" style="align-items: center">
|
|
|
- <!-- <el-button class="default-button" @click="onChangeTotal">展示总数</el-button>-->
|
|
|
<span v-loading="totalLoading" class="mr10">共 {{ totalCount }} 条</span>
|
|
|
<el-pagination
|
|
|
layout="sizes,prev, pager, next"
|
|
@@ -319,18 +506,6 @@
|
|
|
<el-input v-model.trim="state.queryParams.Hotspot" placeholder="热点分类名称" clearable @keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="接办部门" prop="ActualHandleOrgName">
|
|
|
- <!-- <el-cascader
|
|
|
- :options="state.orgsOptions"
|
|
|
- filterable
|
|
|
- :props="{ checkStrictly: true, value: 'id', label: 'name', emitPath: false }"
|
|
|
- placeholder="请选择接办部门"
|
|
|
- clearable
|
|
|
- v-model="state.queryParams.OrgId"
|
|
|
- ref="cascadeRef"
|
|
|
- @change="handleQuery"
|
|
|
- class="w100"
|
|
|
- >
|
|
|
- </el-cascader>-->
|
|
|
<el-input v-model="state.queryParams.ActualHandleOrgName" placeholder="请填写接办部门名称" clearable @keyup.enter="handleQuery" />
|
|
|
</el-form-item>
|
|
|
<el-form-item label="一级部门" prop="OrgLevelOneName">
|
|
@@ -503,7 +678,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="tsx" name="order">
|
|
|
-import { defineAsyncComponent, onMounted, reactive, ref, onActivated, onBeforeUnmount } from 'vue';
|
|
|
+import { defineAsyncComponent, onMounted, reactive, ref, onActivated, onBeforeUnmount, computed } from 'vue';
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
@@ -572,8 +747,8 @@ const state = reactive<any>({
|
|
|
SortField: null,
|
|
|
SortRule: null,
|
|
|
FocusOnEvents: null, // 重点标记
|
|
|
- IsSecret:null, // 是否保密
|
|
|
- ReceiveProvinceNo:null, // 省编码
|
|
|
+ IsSecret: null, // 是否保密
|
|
|
+ ReceiveProvinceNo: null, // 省编码
|
|
|
fbTime: [], // 发布时间
|
|
|
hfTime: [], // 回访时间
|
|
|
},
|
|
@@ -636,7 +811,7 @@ const columns = ref<any[]>([
|
|
|
},
|
|
|
minWidth: 120,
|
|
|
},
|
|
|
- { prop: 'isSecretText', label: '是否保密'},
|
|
|
+ { prop: 'isSecretText', label: '是否保密' },
|
|
|
{ prop: 'currentStepName', label: '当前节点', minWidth: 120 },
|
|
|
{ prop: 'actualStepAcceptText', label: '受理情况' },
|
|
|
{ prop: 'statusText', label: '工单状态', minWidth: 110 },
|
|
@@ -707,7 +882,7 @@ const columns1 = ref<any[]>([
|
|
|
return <span class="color-danger font-bold">{scope.row.isUrgentText}</span>;
|
|
|
},
|
|
|
},
|
|
|
- { prop: 'isSecretText', label: '是否保密'},
|
|
|
+ { prop: 'isSecretText', label: '是否保密' },
|
|
|
{ prop: 'currentStepName', label: '当前节点', minWidth: 110 },
|
|
|
{ prop: 'actualStepAcceptText', label: '受理情况', minWidth: 100 },
|
|
|
{ prop: 'statusText', label: '工单状态', minWidth: 100 },
|
|
@@ -824,7 +999,7 @@ const handleCurrentChange = (val: number) => {
|
|
|
}
|
|
|
};
|
|
|
// 改变每页条数
|
|
|
-const handleSizeChange = (val:any)=>{
|
|
|
+const handleSizeChange = (val: any) => {
|
|
|
state.queryParams.PageSize = val;
|
|
|
// 判断当前页是否是数据的最后一页
|
|
|
if (val === Math.ceil(state.total / state.queryParams.PageSize)) {
|
|
@@ -832,7 +1007,7 @@ const handleSizeChange = (val:any)=>{
|
|
|
} else {
|
|
|
state.tableData = getNeedArr(totalTable.value, state.queryParams.PageSize)[state.queryParams.PageIndex - 1]; //当前页的表格数据
|
|
|
}
|
|
|
-}
|
|
|
+};
|
|
|
const requestParams = ref<EmptyObjectType>({});
|
|
|
const totalCount = ref(0);
|
|
|
const totalLoading = ref(false);
|
|
@@ -902,12 +1077,12 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
};
|
|
|
// 设置终结件
|
|
|
const onObserve = () => {
|
|
|
- const ids = proTableRef.value.selectedList.map((item: any) => {
|
|
|
+ const ids = checkTable.value.map((item: any) => {
|
|
|
return {
|
|
|
orderId: item.id,
|
|
|
};
|
|
|
});
|
|
|
- ElMessageBox.confirm(`选择的${proTableRef.value.selectedList.length}个工单添加关注吗?`, '提示', {
|
|
|
+ ElMessageBox.confirm(`您确定选中的工单添加关注吗?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
@@ -924,12 +1099,12 @@ const onObserve = () => {
|
|
|
};
|
|
|
// 设置终结件
|
|
|
const onEnd = () => {
|
|
|
- const ids = proTableRef.value.selectedList.map((item: any) => {
|
|
|
+ const ids = checkTable.value.map((item: any) => {
|
|
|
return {
|
|
|
orderId: item.id,
|
|
|
};
|
|
|
});
|
|
|
- ElMessageBox.confirm(`选择的${proTableRef.value.selectedList.length}个工单设置终结件吗?`, '提示', {
|
|
|
+ ElMessageBox.confirm(`您确定选中的工单设置终结件吗?`, '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
@@ -952,7 +1127,7 @@ const onCreateRepeatEvent = () => {
|
|
|
// 设置撤销
|
|
|
const orderRevokeRef = ref<RefType>();
|
|
|
const onRevoke = () => {
|
|
|
- const ids = proTableRef.value.selectedList.map((item: any) => item.id);
|
|
|
+ const ids = checkTable.value.map((item: any) => item.id);
|
|
|
orderRevokeRef.value.openDialog(ids);
|
|
|
};
|
|
|
// 工单省退回
|
|
@@ -962,8 +1137,8 @@ const onReturn = (row: any) => {
|
|
|
};
|
|
|
// 交办单导出
|
|
|
const onJbExport = () => {
|
|
|
- const ids = proTableRef.value.selectedList.map((item: any) => item.id);
|
|
|
- ElMessageBox.confirm(`您确定导出选中的${proTableRef.value.selectedList.length}个工单的交办单,是否继续?`, '提示', {
|
|
|
+ const ids = checkTable.value.map((item: any) => item.id);
|
|
|
+ ElMessageBox.confirm(`您确定选中的工单导出交办单,是否继续?`, '提示', {
|
|
|
confirmButtonText: '确认',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
@@ -988,7 +1163,7 @@ const onJbExport = () => {
|
|
|
// 添加催办
|
|
|
const orderUrgeRef = ref<RefType>();
|
|
|
const onUrge = () => {
|
|
|
- const ids = proTableRef.value.selectedList.map((item: any) => item.id);
|
|
|
+ const ids = checkTable.value.map((item: any) => item.id);
|
|
|
orderUrgeRef.value.openDialog(ids);
|
|
|
};
|
|
|
// 打开内容检索
|
|
@@ -1006,9 +1181,33 @@ const onSearch = (formEl: FormInstance | undefined) => {
|
|
|
state.dialogVisible = false;
|
|
|
});
|
|
|
};
|
|
|
+const tableRef = ref<RefType>();
|
|
|
+const checkTable = ref<EmptyArrayType>([]);
|
|
|
+const selectAllChangeEvent = ({ checked }) => {
|
|
|
+ if (tableRef.value) {
|
|
|
+ const records = tableRef.value.getCheckboxRecords();
|
|
|
+ checkTable.value = records;
|
|
|
+ console.log(checked ? '所有勾选事件' : '所有取消事件', records);
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
+const selectChangeEvent = ({ checked }) => {
|
|
|
+ if (tableRef.value) {
|
|
|
+ const records = tableRef.value.getCheckboxRecords();
|
|
|
+ checkTable.value = records;
|
|
|
+ console.log(checked ? '勾选事件' : '取消事件', records);
|
|
|
+ }
|
|
|
+};
|
|
|
+const isChecked = computed(() => {
|
|
|
+ return !Boolean(checkTable.value.length);
|
|
|
+});
|
|
|
+const toolbarRef = ref<RefType>();
|
|
|
onMounted(() => {
|
|
|
getBaseData();
|
|
|
queryList();
|
|
|
+ if (tableRef.value && toolbarRef.value) {
|
|
|
+ tableRef.value.connect(toolbarRef.value);
|
|
|
+ }
|
|
|
});
|
|
|
onActivated(() => {
|
|
|
mittBus.on('clearCachePage', () => {
|