|
@@ -0,0 +1,174 @@
|
|
|
+<template>
|
|
|
+ <div class="business-second-handle-audit-container layout-pd">
|
|
|
+ <!-- 搜索 -->
|
|
|
+ <el-card shadow="never">
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
+ <el-form-item label="关键词" prop="Keyword">
|
|
|
+ <el-input v-model="state.queryParams.Keyword" placeholder="工单编码/标题" clearable @keyup.enter="handleQuery" class="keyword-input" />
|
|
|
+ </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)" v-waves 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"
|
|
|
+ >
|
|
|
+ <template #tableHeader="scope">
|
|
|
+ <el-button type="primary" @click="onAuditMultiple" v-auth="'business:secondHandle:audit:multiple'" :disabled="!scope.isSelected">批量审批
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ <template #expiredStatus="{ row }">
|
|
|
+ <span :class="'overdue-status-' + row.order?.expiredStatus" :title="row.order?.expiredStatusText"></span>
|
|
|
+ </template>
|
|
|
+ <template #isProvince="{ row }">
|
|
|
+ <span>{{ row.order?.isProvince ? '省工单' : '市工单' }}</span>
|
|
|
+ </template>
|
|
|
+ <template #title="{ row }">
|
|
|
+ <order-detail :order="row.order" @updateList="queryList">{{ row.order?.title }}</order-detail>
|
|
|
+ </template>
|
|
|
+ <!-- 表格操作 -->
|
|
|
+ <template #operation="{ row }">
|
|
|
+ <el-button link type="primary" @click="onView(row)" title="查看办理明细"> 查看 </el-button>
|
|
|
+ <el-button link type="primary" @click="onReturn(row)" title="退回" v-auth="'business:secondHandle:return'"> 退回 </el-button>
|
|
|
+ <el-button link type="primary" @click="onAudit(row)" title="审批" v-auth="'business:secondHandle:audit'"> 审批 </el-button>
|
|
|
+ <order-detail :order="row.order" @updateList="queryList" />
|
|
|
+ </template>
|
|
|
+ </ProTable>
|
|
|
+ </el-card>
|
|
|
+ <second-handle-return ref="secondHandleReturnRef" @updateList="queryList" />
|
|
|
+ <second-handle-audit ref="secondHandleAuditRef" @updateList="queryList" />
|
|
|
+ <second-handle-audit-multiple ref="secondHandleAuditMultipleRef" @updateList="queryList" />
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script setup lang="tsx" name="businessSecondHandleAudit">
|
|
|
+import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
+import { ElButton, ElMessage, ElMessageBox, FormInstance } from 'element-plus';
|
|
|
+import { formatDate } from '@/utils/formatTime';
|
|
|
+import { useRouter } from 'vue-router';
|
|
|
+import { deleteObserve, observeList } from '@/api/query/observe';
|
|
|
+// 引入组件
|
|
|
+const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
|
+const SecondHandleReturn = defineAsyncComponent(() => import('@/views/business/secondHandle/components/Second-handle-return.vue')); // 二次办理退回
|
|
|
+const SecondHandleAudit = defineAsyncComponent(() => import('@/views/business/secondHandle/components/Second-handle-audit.vue')); // 二次办理审批
|
|
|
+const SecondHandleAuditMultiple = defineAsyncComponent(() => import('@/views/business/secondHandle/components/Second-handle-audit-multiple.vue')); // 二次办理审批批量
|
|
|
+// 定义变量内容
|
|
|
+const ruleFormRef = ref<RefType>(); // 表单ref
|
|
|
+const router = useRouter(); // 路由
|
|
|
+const proTableRef = ref<RefType>(); // 表格ref
|
|
|
+// 表格配置项
|
|
|
+const columns = ref<any[]>([
|
|
|
+ { type: 'selection', fixed: 'left', width: 55,align: 'center' },
|
|
|
+ { prop: 'expiredStatus', label: '超期状态', align: 'center',width: 80 },
|
|
|
+ { prop: 'order.no', label: '工单编码', width: 150 },
|
|
|
+ {
|
|
|
+ prop: 'order.startTime',
|
|
|
+ label: '受理时间',
|
|
|
+ width: 170,
|
|
|
+ render: (scope: any) => {
|
|
|
+ return <span>{formatDate(scope.row.order?.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { prop: 'order.sourceChannel', label: '甄别状态', width: 120 },
|
|
|
+ { prop: 'order.sourceChannel', label: '办理明细', width: 120 },
|
|
|
+ { prop: 'order.title', label: '工单标题', width: 300 },
|
|
|
+ {
|
|
|
+ prop: 'order.expiredTime',
|
|
|
+ label: '工单期满时间',
|
|
|
+ width: 170,
|
|
|
+ render: (scope: any) => {
|
|
|
+ return <span>{formatDate(scope.row.order?.expiredTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { prop: 'order.actualHandleOrgName', label: '接办部门', width: 170 },
|
|
|
+ {
|
|
|
+ prop: 'order.actualHandleTime',
|
|
|
+ label: '接办时间',
|
|
|
+ width: 170,
|
|
|
+ render: (scope: any) => {
|
|
|
+ return <span>{formatDate(scope.row.order?.actualHandleTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'order.filedTime',
|
|
|
+ label: '办结时间',
|
|
|
+ width: 170,
|
|
|
+ render: (scope: any) => {
|
|
|
+ return <span>{formatDate(scope.row.order?.filedTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { prop: 'order.acceptType', label: '受理类型', width: 150 },
|
|
|
+ { prop: 'order.hotspotName', label: '热点分类', width: 200 },
|
|
|
+ { prop: 'operation', label: '操作', fixed: 'right', width: 230, align: 'center' },
|
|
|
+]);
|
|
|
+const state = reactive({
|
|
|
+ queryParams: {
|
|
|
+ // 查询条件
|
|
|
+ PageIndex: 1,
|
|
|
+ PageSize: 10,
|
|
|
+ Keyword: null, // 关键字
|
|
|
+ },
|
|
|
+ tableData: [], //表单
|
|
|
+ loading: false, // 加载
|
|
|
+ total: 0, // 总数
|
|
|
+});
|
|
|
+// 手动查询,将页码设置为1
|
|
|
+const handleQuery = () => {
|
|
|
+ state.queryParams.PageIndex = 1;
|
|
|
+ queryList();
|
|
|
+};
|
|
|
+/** 获取列表 */
|
|
|
+const queryList = () => {
|
|
|
+ state.loading = true;
|
|
|
+ observeList(state.queryParams)
|
|
|
+ .then((res) => {
|
|
|
+ state.tableData = res?.result.items ?? [];
|
|
|
+ state.total = res?.result.total;
|
|
|
+ state.loading = false;
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ state.loading = false;
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/** 重置按钮操作 */
|
|
|
+const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
+ if (!formEl) return;
|
|
|
+ formEl.resetFields();
|
|
|
+ queryList();
|
|
|
+}
|
|
|
+// 批量审批
|
|
|
+const secondHandleAuditMultipleRef = ref<RefType>();
|
|
|
+const onAuditMultiple = () => {
|
|
|
+ const ids = proTableRef.value.selectedList.map((item: any) => item.id);
|
|
|
+ secondHandleAuditMultipleRef.value.openDialog(ids);
|
|
|
+};
|
|
|
+// 查看详情
|
|
|
+const onView = (row: any) =>{
|
|
|
+
|
|
|
+}
|
|
|
+// 退回
|
|
|
+const secondHandleReturnRef = ref<RefType>();
|
|
|
+const onReturn = (row: any) =>{
|
|
|
+ secondHandleReturnRef.value.openDialog(row);
|
|
|
+}
|
|
|
+// 审批
|
|
|
+const secondHandleAuditRef = ref<RefType>();
|
|
|
+const onAudit = (row: any) =>{
|
|
|
+ secondHandleAuditRef.value.openDialog(row);
|
|
|
+}
|
|
|
+onMounted(() => {
|
|
|
+ queryList();
|
|
|
+});
|
|
|
+</script>
|