|
@@ -5,76 +5,116 @@
|
|
|
<el-tab-pane name="false" label="延期待审批" :disabled="state.loading"></el-tab-pane>
|
|
|
<el-tab-pane name="true" label="延期已审批" :disabled="state.loading"></el-tab-pane>
|
|
|
</el-tabs>
|
|
|
- <ProTable
|
|
|
- ref="proTableRef"
|
|
|
- :columns="columnsTodo"
|
|
|
- :data="state.tableData"
|
|
|
- @updateTable="queryList"
|
|
|
+ <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
+ <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>
|
|
|
+ <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>
|
|
|
+ <vxe-toolbar
|
|
|
+ ref="toolbarRef"
|
|
|
:loading="state.loading"
|
|
|
- :total="state.total"
|
|
|
- v-model:page-index="state.queryParams.PageIndex"
|
|
|
- v-model:page-size="state.queryParams.PageSize"
|
|
|
- v-if="state.queryParams.IsApply === 'false'"
|
|
|
+ custom
|
|
|
+ :refresh="{
|
|
|
+ queryMethod: handleQuery,
|
|
|
+ }"
|
|
|
>
|
|
|
- <template #table-search>
|
|
|
- <el-form :model="state.queryParams" ref="ruleFormRef" @submit.native.prevent inline>
|
|
|
- <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>
|
|
|
- <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>
|
|
|
- </template>
|
|
|
- <template #expiredStatusText="{ row }">
|
|
|
- <span :class="'overdue-status-' + row.order?.expiredStatus" :title="row.order?.expiredStatusText"></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="onDetail(row)" title="延期详情"> 延期详情 </el-button>
|
|
|
- </template>
|
|
|
- </ProTable>
|
|
|
- <ProTable
|
|
|
- ref="proTableRef"
|
|
|
- :columns="columnsDone"
|
|
|
- :data="state.tableData"
|
|
|
- @updateTable="queryList"
|
|
|
- :loading="state.loading"
|
|
|
+ </vxe-toolbar>
|
|
|
+ <div style="overflow: hidden; width: 100%; height: 100%; flex: 1">
|
|
|
+ <vxe-table
|
|
|
+ border
|
|
|
+ :loading="state.loading"
|
|
|
+ :data="state.tableData"
|
|
|
+ :column-config="{ resizable: true }"
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30 }"
|
|
|
+ ref="tableRef"
|
|
|
+ height="auto"
|
|
|
+ auto-resize
|
|
|
+ show-overflow
|
|
|
+ :print-config="{}"
|
|
|
+ :scrollY="{ enabled: true, gt: 0 }"
|
|
|
+ id="businessDelayAudit"
|
|
|
+ :custom-config="{
|
|
|
+ storage: true,
|
|
|
+ checkMethod({ column }) {
|
|
|
+ if(state.queryParams.IsApply === 'false') {
|
|
|
+ return !['currentStepName','actualHandlerName'].includes(column.field);
|
|
|
+ }else{
|
|
|
+ return ![''].includes(column.field);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ }"
|
|
|
+ showHeaderOverflow
|
|
|
+ >
|
|
|
+ <vxe-column field="order.expiredStatusText" title="超期状态" width="90" align="center">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <span :class="'overdue-status-' + row.order?.expiredStatus" :title="row.order?.expiredStatusText"></span>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="order.no" title="工单编码" width="140"></vxe-column>
|
|
|
+ <vxe-column field="order.isProvinceText" title="省/市工单" width="90"></vxe-column>
|
|
|
+ <vxe-column field="order.title" title="工单标题" width="200">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <order-detail :order="row.order" @updateList="queryList">{{ row.order?.title }}</order-detail>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="currentStepName" title="当前节点" width="120" :visible="state.queryParams.IsApply === 'true'"></vxe-column>
|
|
|
+ <vxe-column field="actualHandlerName" title="当前审批人" width="120" :visible="state.queryParams.IsApply === 'true'"></vxe-column>
|
|
|
+ <vxe-column field="delayStateText" title="延期审批状态" width="110"></vxe-column>
|
|
|
+ <vxe-column field="order.startTime" title="受理时间" width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.order?.startTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="order.acceptorName" title="受理人" width="120"></vxe-column>
|
|
|
+ <vxe-column field="order.hotspotName" title="热点分类" width="150"></vxe-column>
|
|
|
+ <vxe-column field="order.acceptType" title="受理类型" width="110"></vxe-column>
|
|
|
+ <vxe-column field="order.orgLevelOneName" title="一级部门" width="140"></vxe-column>
|
|
|
+ <vxe-column field="order.actualHandleOrgName" title="接办部门" width="140"></vxe-column>
|
|
|
+ <vxe-column field="order.actualHandleTime" title="接办时间" width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.order?.actualHandleTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="creationTime" title="延期申请时间" width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.creationTime, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="creatorName" title="延期申请人" width="120"></vxe-column>
|
|
|
+ <vxe-column field="creatorOrgName" title="延期申请部门" width="140"></vxe-column>
|
|
|
+ <vxe-column field="delayNum" title="延期申请时限" width="110"></vxe-column>
|
|
|
+ <vxe-column field="delayUnitText" title="延期申请单位" width="110"></vxe-column>
|
|
|
+ <vxe-column field="delayReason" title="申请理由" width="150"></vxe-column>
|
|
|
+ <vxe-column field="beforeDelay" title="申请前期满时间" width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.beforeDelay, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column field="afterDelay" title="通过后期满时间" width="160">
|
|
|
+ <template #default="{ row }">
|
|
|
+ {{ formatDate(row.afterDelay, 'YYYY-mm-dd HH:MM:SS') }}
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ <vxe-column title="操作" fixed="right" width="90" align="center">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <el-button link type="primary" @click="onDetail(row)" title="延期详情"> 延期详情 </el-button>
|
|
|
+ </template>
|
|
|
+ </vxe-column>
|
|
|
+ </vxe-table>
|
|
|
+ </div>
|
|
|
+ <pagination
|
|
|
+ @pagination="queryList"
|
|
|
:total="state.total"
|
|
|
- v-model:page-index="state.queryParams.PageIndex"
|
|
|
+ v-model:current-page="state.queryParams.PageIndex"
|
|
|
v-model:page-size="state.queryParams.PageSize"
|
|
|
- v-else
|
|
|
- >
|
|
|
- <template #table-search>
|
|
|
- <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>
|
|
|
- </template>
|
|
|
- <template #expiredStatusText="{ row }">
|
|
|
- <span :class="'overdue-status-' + row.order?.expiredStatus" :title="row.order?.expiredStatusText"></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="onDetail(row)" title="延期详情"> 延期详情 </el-button>
|
|
|
- </template>
|
|
|
- </ProTable>
|
|
|
+ :disabled="state.loading"
|
|
|
+ />
|
|
|
</div>
|
|
|
<!-- 延期详情 -->
|
|
|
<delay-detail-com ref="delayDetailRef" @updateList="queryList" />
|
|
@@ -86,13 +126,13 @@
|
|
|
import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { FormInstance } from 'element-plus';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
import { delayList } from '@/api/todo/delay';
|
|
|
import { delayDetail } from '@/api/business/delay';
|
|
|
// 引入组件
|
|
|
const DelayDetailCom = defineAsyncComponent(() => import('@/views/business/delay/components/Delay-detail.vue')); // 延期详情
|
|
|
const DelayEdit = defineAsyncComponent(() => import('@/views/business/delay/components/Delay-edit.vue')); // 延期修改
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
|
+const pagination = defineAsyncComponent(() => import('@/components/ProTable/components/Pagination.vue')); // 分页
|
|
|
|
|
|
// 定义变量内容
|
|
|
const state = reactive({
|
|
@@ -108,129 +148,6 @@ const state = reactive({
|
|
|
total: 0, // 总数
|
|
|
});
|
|
|
const ruleFormRef = ref<RefType>(); // 表单ref
|
|
|
-const router = useRouter(); // 路由
|
|
|
-const proTableRef = ref<RefType>(); // 表格ref
|
|
|
-// 表格配置项
|
|
|
-const columns = ref<any[]>([]);
|
|
|
-const columnsTodo = ref<any[]>([
|
|
|
- { prop: 'order.expiredStatusText', label: '超期状态', align: 'center', width: 80 },
|
|
|
- { prop: 'order.no', label: '工单编码', minWidth: 140 },
|
|
|
- { prop: 'order.isProvinceText', label: '省/市工单', minWidth: 90 },
|
|
|
- { prop: 'order.title', label: '工单标题', minWidth: 200 },
|
|
|
- { prop: 'delayStateText', label: '延期审批状态', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'order.startTime',
|
|
|
- label: '受理时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.order?.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'order.acceptorName', label: '受理人', minWidth: 120 },
|
|
|
- { prop: 'order.hotspotName', label: '热点分类', minWidth: 150 },
|
|
|
- { prop: 'order.acceptType', label: '受理类型', minWidth: 100 },
|
|
|
- { prop: 'order.orgLevelOneName', label: '一级部门', minWidth: 140 },
|
|
|
- { prop: 'order.actualHandleOrgName', label: '接办部门', minWidth: 140 },
|
|
|
- {
|
|
|
- prop: 'order.actualHandleTime',
|
|
|
- label: '接办时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.order?.actualHandleTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'creationTime',
|
|
|
- label: '延期申请时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.creationTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'creatorOrgName', label: '延期申请部门', minWidth: 140 },
|
|
|
- { prop: 'creatorName', label: '延期申请人', minWidth: 120 },
|
|
|
- { prop: 'delayNum', label: '延期申请时限', minWidth: 110 },
|
|
|
- { prop: 'delayUnitText', label: '延期申请单位', minWidth: 110 },
|
|
|
- { prop: 'delayReason', label: '申请理由', minWidth: 150 },
|
|
|
- {
|
|
|
- prop: 'beforeDelay',
|
|
|
- label: '申请前期满时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.beforeDelay, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'afterDelay',
|
|
|
- label: '通过后期满时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.afterDelay, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'operation', label: '操作', fixed: 'right', width: 90, align: 'center' },
|
|
|
-])
|
|
|
-const columnsDone = ref<any[]>([
|
|
|
- // 已办
|
|
|
- { prop: 'order.expiredStatusText', label: '超期状态', align: 'center', width: 80 },
|
|
|
- { prop: 'order.no', label: '工单编码', minWidth: 140 },
|
|
|
- { prop: 'order.isProvinceText', label: '省/市工单', minWidth: 90 },
|
|
|
- { prop: 'order.title', label: '工单标题', minWidth: 200 },
|
|
|
- { prop: 'currentStepName', label: '当前节点', minWidth: 120 },
|
|
|
- { prop: 'actualHandlerName', label: '当前审批人', minWidth: 120 },
|
|
|
- { prop: 'delayStateText', label: '延期审批状态', minWidth: 110 },
|
|
|
- {
|
|
|
- prop: 'order.startTime',
|
|
|
- label: '受理时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.order?.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'order.acceptorName', label: '受理人', minWidth: 120 },
|
|
|
- { prop: 'order.hotspotName', label: '热点分类', minWidth: 150 },
|
|
|
- { prop: 'order.acceptType', label: '受理类型', minWidth: 100 },
|
|
|
- { prop: 'order.orgLevelOneName', label: '一级部门', minWidth: 140 },
|
|
|
- { prop: 'order.actualHandleOrgName', label: '接办部门', minWidth: 140 },
|
|
|
- {
|
|
|
- prop: 'order.actualHandleTime',
|
|
|
- label: '接办时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.order?.actualHandleTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'creationTime',
|
|
|
- label: '延期申请时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.creationTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'creatorOrgName', label: '延期申请部门', minWidth: 140 },
|
|
|
- { prop: 'creatorName', label: '延期申请人', minWidth: 120 },
|
|
|
- { prop: 'delayNum', label: '延期申请时限', minWidth: 110 },
|
|
|
- { prop: 'delayUnitText', label: '延期申请单位', minWidth: 110 },
|
|
|
- { prop: 'delayReason', label: '申请理由', minWidth: 150 },
|
|
|
- {
|
|
|
- prop: 'beforeDelay',
|
|
|
- label: '申请前期满时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.beforeDelay, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'afterDelay',
|
|
|
- label: '通过后期满时间',
|
|
|
- minWidth: 160,
|
|
|
- render: (scope) => {
|
|
|
- return <span>{formatDate(scope.row.afterDelay, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'operation', label: '操作', fixed: 'right', minWidth: 90, align: 'center' },
|
|
|
-])
|
|
|
// 手动查询,将页码设置为1
|
|
|
const handleQuery = () => {
|
|
|
state.queryParams.PageIndex = 1;
|
|
@@ -275,7 +192,12 @@ const onDetail = async (row: any) => {
|
|
|
console.log(e);
|
|
|
}
|
|
|
};
|
|
|
+const toolbarRef = ref<RefType>();
|
|
|
+const tableRef = ref<RefType>();
|
|
|
onMounted(() => {
|
|
|
queryList();
|
|
|
+ if (tableRef.value && toolbarRef.value) {
|
|
|
+ tableRef.value.connect(toolbarRef.value);
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|