Browse Source

新增特殊延期

master
wxc 12 months ago
parent
commit
fa8854b5c0
  1. 4
      src/api/mail.ts
  2. 4
      src/views/work/Dissatisfied.vue
  3. 19
      src/views/work/Query.vue

4
src/api/mail.ts

@ -63,3 +63,7 @@ export function mailQuery(query) {
export function getTimeoutInfo(mailId) {
return request.get({ url: '/mail/timeout/info', query: {mailId}})
}
export function updateExtensionDays(mailId, day) {
return request.post({ url: `/mail/${mailId}/extensionDays/${day}`})
}

4
src/views/work/Dissatisfied.vue

@ -509,9 +509,11 @@
</div>
<div class="flex mt-4 end">
<el-pagination
@size-change="getTodos"
@current-change="getTodos"
:page-sizes="[10, 15, 20, 40, 50]"
v-model:current-page="query.current"
v-model:page-size="query.size"
:page-size="query.size"
layout="total,sizes, prev, pager, next, jumper"
:total="todoTotal"
>

19
src/views/work/Query.vue

@ -253,7 +253,7 @@
</template>
</el-table-column>
<el-table-column prop="mailLabels" label="信件标签" width="160" align="center" />
<el-table-column label="操作" width="164" fixed="right">
<el-table-column label="操作" width="200" fixed="right">
<template #default="{ row }">
<el-button type="primary" link @click="handleMail(row.id)" size="small">详情</el-button>
<el-button type="primary" link @click="handleMailLabel(row.id)" size="small"
@ -262,6 +262,7 @@
v-show="handleMailCategory(row)" size="small">转为待办</el-button>
<el-button type="danger" link @click="handleDelete(row.id)" v-show="IsdeleteMail(row)"
size="small">删除</el-button>
<el-button type="primary" link @click="handChangeExtensionDays(row.id)" size="small">特殊延期</el-button>
</template>
</el-table-column>
</el-table>
@ -290,6 +291,7 @@
<LodingMessage :show="exportLoading" message="信件导出中..." />
</template>
<script lang="ts" setup>
@ -305,6 +307,7 @@ import { useDictOptions } from '@/hooks/useDictOptions'
import { deptLists } from '@/api/org/department'
import { labelLists } from '@/api/org/label'
import { getFlowNodes } from '@/api/org/flowNode'
import { updateExtensionDays } from '@/api/mail'
import { getToken } from '@/utils/auth'
import axios from 'axios'
import { useRouterParamsStore } from "@/stores/modules/routerParams";
@ -588,4 +591,18 @@ const handleMailCategory = (row: any) => {
}
const collapse = ref(true)
async function handChangeExtensionDays(id) {
const result = await feedback.prompt(`延期天数`, `特殊延期`, {
inputType: 'number',
inputPlaceholder: '请输入',
inputErrorMessage: '请输入合法的延期天数',
inputValidator: (val) => {
return val > 0;
}
})
await updateExtensionDays(id, result.value);
feedback.msgSuccess("操作成功");
getList();
}
</script>

Loading…
Cancel
Save