|
@@ -116,14 +116,14 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="tsx" name="todoSeats">
|
|
|
-import { defineAsyncComponent, onMounted, reactive, ref,onActivated, onBeforeUnmount } from 'vue';
|
|
|
+import { defineAsyncComponent, onMounted, reactive, ref, onActivated, onBeforeUnmount } from 'vue';
|
|
|
import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
import { useRouter } from 'vue-router';
|
|
|
import { seatsListTodo, orderSign } from '@/api/todo/order';
|
|
|
import { downloadFileByStream, downloadZip } from '@/utils/tools';
|
|
|
import { exportJbOrder, exportOrder } from '@/api/business/order';
|
|
|
-import { defaultDateThree, defaultTimeStartEnd, shortcuts } from "@/utils/constants";
|
|
|
+import { defaultDateThree, defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
import Other from '@/utils/other';
|
|
|
// 引入组件
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
@@ -137,10 +137,10 @@ const state = reactive<any>({
|
|
|
Keyword: null, // 关键字
|
|
|
IsProvince: null, // 是否省工单
|
|
|
IsCounterSign: null, // 是否会签
|
|
|
- scTime: defaultDateThree,
|
|
|
+ scTime: defaultDateThree,
|
|
|
StartTime: null,
|
|
|
EndTime: null,
|
|
|
- IsUrgent:null,
|
|
|
+ IsUrgent: null,
|
|
|
},
|
|
|
tableData: [], //表单
|
|
|
loading: false, // 加载
|
|
@@ -152,30 +152,30 @@ const proTableRef = ref<RefType>(); // 表格ref
|
|
|
const searchCol = ref(true); // 展开/收起
|
|
|
// 展开/收起
|
|
|
const closeSearch = () => {
|
|
|
- searchCol.value = !searchCol.value;
|
|
|
+ searchCol.value = !searchCol.value;
|
|
|
};
|
|
|
// 表格配置项
|
|
|
const columns = ref<any[]>([]);
|
|
|
const columnsTodo = [
|
|
|
- { type: 'selection', fixed: 'left', width: 55, align: 'center' },
|
|
|
+ { type: 'selection', width: 40, align: 'center', fixed: 'left' },
|
|
|
{ prop: 'expiredStatusText', label: '超期状态', align: 'center', width: 80 },
|
|
|
- { prop: 'no', label: '工单编码', width: 150 },
|
|
|
- { prop: 'isProvinceText', label: '省/市工单', width: 100 },
|
|
|
- {
|
|
|
- prop: 'isUrgentText',
|
|
|
- label: '是否紧急',
|
|
|
- render: (scope) => {
|
|
|
- return <span class="color-danger font-bold">{scope.row.isUrgentText}</span>;
|
|
|
- },
|
|
|
- },
|
|
|
- { prop: 'actualHandleStepName', label: '办理节点', width: 150 },
|
|
|
+ { prop: 'no', label: '工单编码', width: 140 },
|
|
|
+ { prop: 'isProvinceText', label: '省/市工单', width: 90 },
|
|
|
+ {
|
|
|
+ prop: 'isUrgentText',
|
|
|
+ label: '是否紧急',
|
|
|
+ render: (scope) => {
|
|
|
+ return <span class="color-danger font-bold">{scope.row.isUrgentText}</span>;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ { prop: 'actualHandleStepName', label: '办理节点', width: 100 },
|
|
|
{ prop: 'statusText', label: '工单状态', width: 100 },
|
|
|
- { prop: 'title', label: '工单标题', width: 300 },
|
|
|
- { prop: 'counterSignTypeText', label: '是否会签', width: 100 },
|
|
|
+ { prop: 'title', label: '工单标题', width: 200 },
|
|
|
+ { prop: 'counterSignTypeText', label: '是否会签', minWidth: 90 },
|
|
|
{
|
|
|
prop: 'creationTime',
|
|
|
label: '生成时间',
|
|
|
- width: 170,
|
|
|
+ width: 160,
|
|
|
render: (scope) => {
|
|
|
return <span>{formatDate(scope.row.creationTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
@@ -183,7 +183,7 @@ const columnsTodo = [
|
|
|
{
|
|
|
prop: 'startTime',
|
|
|
label: '受理时间',
|
|
|
- width: 170,
|
|
|
+ width: 160,
|
|
|
render: (scope) => {
|
|
|
return <span>{formatDate(scope.row.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
@@ -191,14 +191,14 @@ const columnsTodo = [
|
|
|
{
|
|
|
prop: 'expiredTime',
|
|
|
label: '工单期满时间',
|
|
|
- width: 170,
|
|
|
+ width: 160,
|
|
|
render: (scope) => {
|
|
|
return <span>{formatDate(scope.row.expiredTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
|
},
|
|
|
- { prop: 'acceptType', label: '受理类型', width: 150 },
|
|
|
+ { prop: 'acceptType', label: '受理类型', width: 100 },
|
|
|
{ prop: 'sourceChannel', label: '来源渠道', width: 100 },
|
|
|
- { prop: 'hotspotName', label: '热点分类', width: 200 },
|
|
|
+ { prop: 'hotspotName', label: '热点分类', width: 150 },
|
|
|
{ prop: 'acceptorName', label: '受理人', width: 120 },
|
|
|
{
|
|
|
prop: 'reTransactNum',
|
|
@@ -208,18 +208,18 @@ const columnsTodo = [
|
|
|
];
|
|
|
const columnsDone = [
|
|
|
// 已办
|
|
|
- { type: 'selection', fixed: 'left', width: 55, align: 'center' },
|
|
|
+ { type: 'selection', fixed: 'left', width: 40, align: 'center' },
|
|
|
{ prop: 'expiredStatusText', label: '超期状态', align: 'center', width: 80 },
|
|
|
- { prop: 'no', label: '工单编码', width: 150 },
|
|
|
- { prop: 'isProvinceText', label: '省/市工单', width: 100 },
|
|
|
- { prop: 'actualHandleStepName', label: '办理节点', width: 150 },
|
|
|
+ { prop: 'no', label: '工单编码', width: 140 },
|
|
|
+ { prop: 'isProvinceText', label: '省/市工单', width: 90 },
|
|
|
+ { prop: 'actualHandleStepName', label: '办理节点', width: 100 },
|
|
|
{ prop: 'statusText', label: '工单状态', width: 100 },
|
|
|
- { prop: 'title', label: '工单标题', width: 300 },
|
|
|
- { prop: 'counterSignTypeText', label: '是否会签', width: 100 },
|
|
|
+ { prop: 'title', label: '工单标题', width: 200 },
|
|
|
+ { prop: 'counterSignTypeText', label: '是否会签', minWidth: 90 },
|
|
|
{
|
|
|
prop: 'creationTime',
|
|
|
label: '生成时间',
|
|
|
- width: 170,
|
|
|
+ width: 160,
|
|
|
render: (scope) => {
|
|
|
return <span>{formatDate(scope.row.creationTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
@@ -227,7 +227,7 @@ const columnsDone = [
|
|
|
{
|
|
|
prop: 'startTime',
|
|
|
label: '受理时间',
|
|
|
- width: 170,
|
|
|
+ width: 160,
|
|
|
render: (scope) => {
|
|
|
return <span>{formatDate(scope.row.startTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
@@ -235,17 +235,17 @@ const columnsDone = [
|
|
|
{
|
|
|
prop: 'expiredTime',
|
|
|
label: '工单期满时间',
|
|
|
- width: 170,
|
|
|
+ width: 160,
|
|
|
render: (scope) => {
|
|
|
return <span>{formatDate(scope.row.expiredTime, 'YYYY-mm-dd HH:MM:SS')}</span>;
|
|
|
},
|
|
|
},
|
|
|
- { prop: 'orgLevelOneName', label: '一级部门', width: 150 },
|
|
|
- { prop: 'actualHandleOrgName', label: '接办部门', width: 150 },
|
|
|
- { prop: 'acceptType', label: '受理类型', width: 150 },
|
|
|
+ { prop: 'orgLevelOneName', label: '一级部门', width: 140 },
|
|
|
+ { prop: 'actualHandleOrgName', label: '接办部门', width: 140 },
|
|
|
+ { prop: 'acceptType', label: '受理类型', width: 100 },
|
|
|
{ prop: 'sourceChannel', label: '来源渠道', width: 100 },
|
|
|
- { prop: 'hotspotName', label: '热点分类', width: 200 },
|
|
|
- { prop: 'acceptorName', label: '受理人', width: 120 },
|
|
|
+ { prop: 'hotspotName', label: '热点分类', width: 150 },
|
|
|
+ { prop: 'acceptorName', label: '受理人', width: 100 },
|
|
|
{
|
|
|
prop: 'reTransactNum',
|
|
|
label: '重办次数',
|
|
@@ -289,18 +289,18 @@ const resetQuery = (formEl: FormInstance | undefined) => {
|
|
|
const onAddOrder = () => {
|
|
|
router.push({
|
|
|
name: 'orderAccept',
|
|
|
- query:{
|
|
|
- timeStamp: new Date().getTime()
|
|
|
- }
|
|
|
+ query: {
|
|
|
+ timeStamp: new Date().getTime(),
|
|
|
+ },
|
|
|
});
|
|
|
};
|
|
|
// 编辑工单
|
|
|
const onOrderEdit = (row: any) => {
|
|
|
router.push({
|
|
|
name: 'orderAccept',
|
|
|
- query:{
|
|
|
- id: row.id,
|
|
|
- }
|
|
|
+ query: {
|
|
|
+ id: row.id,
|
|
|
+ },
|
|
|
});
|
|
|
};
|
|
|
// 签收工单
|