From 4ac4448649647fb8c635346ae4fc5a2a8f2e9a1f Mon Sep 17 00:00:00 2001 From: 123 <123@qq.com> Date: Fri, 16 May 2025 16:28:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=94=A8=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/seal/index.ts | 63 ++++ src/api/workflow/seal/types.ts | 248 ++++++++++++ src/components/SealSearchDialog/index.vue | 148 ++++++++ src/router/index.ts | 14 + src/views/workflow/businesstrip/tripEdit.vue | 2 +- src/views/workflow/seal/index.vue | 249 ++++++++++++ src/views/workflow/seal/sealEdit.vue | 375 +++++++++++++++++++ 7 files changed, 1098 insertions(+), 1 deletion(-) create mode 100644 src/api/workflow/seal/index.ts create mode 100644 src/api/workflow/seal/types.ts create mode 100644 src/components/SealSearchDialog/index.vue create mode 100644 src/views/workflow/seal/index.vue create mode 100644 src/views/workflow/seal/sealEdit.vue diff --git a/src/api/workflow/seal/index.ts b/src/api/workflow/seal/index.ts new file mode 100644 index 0000000..46bd29c --- /dev/null +++ b/src/api/workflow/seal/index.ts @@ -0,0 +1,63 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { SealVO, SealQuery, SealForm } from '@/api/workflow/seal/types'; + +/** + * 查询用章列表 + * @param query + * @returns {*} + */ + +export const listSeal = (query?: SealQuery): AxiosPromise => { + return request({ + url: '/workflow/seal/list', + method: 'get', + params: query + }); +}; + +/** + * 查询用章详细 + * @param id + */ +export const getSeal = (id: string | number): AxiosPromise => { + return request({ + url: '/workflow/seal/' + id, + method: 'get' + }); +}; + +/** + * 新增用章 + * @param data + */ +export const addSeal = (data: SealForm): AxiosPromise => { + return request({ + url: '/workflow/seal', + method: 'post', + data: data + }); +}; + +/** + * 修改用章 + * @param data + */ +export const updateSeal = (data: SealForm): AxiosPromise => { + return request({ + url: '/workflow/seal', + method: 'put', + data: data + }); +}; + +/** + * 删除用章 + * @param id + */ +export const delSeal = (id: string | number | Array) => { + return request({ + url: '/workflow/seal/' + id, + method: 'delete' + }); +}; diff --git a/src/api/workflow/seal/types.ts b/src/api/workflow/seal/types.ts new file mode 100644 index 0000000..fbbff4d --- /dev/null +++ b/src/api/workflow/seal/types.ts @@ -0,0 +1,248 @@ +export interface SealVO { + /** + * id + */ + id: string | number; + + /** + * 业务类型 + */ + businessType: string; + + /** + * 用章时间 + */ + sealDate: string; + + /** + * 是否外带 + */ + takeOutFlag: string; + + /** + * 金额 + */ + sealMoney: number; + + /** + * 备注 + */ + remark: string; + + /** + * 状态 + */ + status: string; + + /** + * 附件 + */ + attachment: string; + + /** + * 公章ids + */ + sealIds: Array; + + /** + * 文件名称 + */ + fileName: string; + + /** + * 文件编号 + */ + fileCode: string; + + /** + * 外带开始时间 + */ + takeOutStartDate: string; + + /** + * 外带结束时间 + */ + takeOutEndDate: string; + + /** + * 文件份数 + */ + fileCount: number; + + /** + * 发起人类别 + */ + initiatorType: number; + + + /** + * 外带地址 + */ + takeOutAddress?: string; + +} + +export interface SealForm extends BaseEntity { + /** + * id + */ + id?: string | number; + + /** + * 业务类型 + */ + businessType?: string; + + /** + * 用章时间 + */ + sealDate?: string; + + /** + * 是否外带 + */ + takeOutFlag?: string; + + /** + * 金额 + */ + sealMoney?: number; + + /** + * 备注 + */ + remark?: string; + + /** + * 状态 + */ + status?: string; + + /** + * 附件 + */ + attachment?: string; + + /** + * 公章ids + */ + sealIds: Array; + + /** + * 公章名称 + */ + sealName?: string | number; + + /** + * 文件名称 + */ + fileName?: string; + + /** + * 文件编号 + */ + fileCode?: string; + + /** + * 外带开始时间 + */ + takeOutStartDate?: string; + + /** + * 外带结束时间 + */ + takeOutEndDate?: string; + + /** + * 文件份数 + */ + fileCount?: number; + + /** + * 发起人类别 + */ + initiatorType?: number; + + /** + * 外带地址 + */ + takeOutAddress?: string; + +} + +export interface SealQuery extends PageQuery { + + /** + * 业务类型 + */ + businessType?: string; + + /** + * 用章时间 + */ + sealDate?: string; + + /** + * 是否外带 + */ + takeOutFlag?: string; + + /** + * 金额 + */ + sealMoney?: number; + + /** + * 状态 + */ + status?: string; + + /** + * 附件 + */ + attachment?: string; + + /** + * 公章id + */ + sealId?: string | number; + + /** + * 文件名称 + */ + fileName?: string; + + /** + * 文件编号 + */ + fileCode?: string; + + /** + * 外带开始时间 + */ + takeOutStartDate?: string; + + /** + * 外带结束时间 + */ + takeOutEndDate?: string; + + /** + * 文件份数 + */ + fileCount?: number; + + /** + * 发起人类别 + */ + initiatorType?: number; + + /** + * 日期范围参数 + */ + params?: any; + +} + + + diff --git a/src/components/SealSearchDialog/index.vue b/src/components/SealSearchDialog/index.vue new file mode 100644 index 0000000..31f5249 --- /dev/null +++ b/src/components/SealSearchDialog/index.vue @@ -0,0 +1,148 @@ + + + + + + \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index 9797a9d..051282c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -190,6 +190,20 @@ export const dynamicRoutes: RouteRecordRaw[] = [ meta: { title: '出差申请', activeMenu: '/workflow/businessTrip', noCache: true } } ] + }, + { + path: '/workflow/sealEdit', + component: Layout, + hidden: true, + permissions: ['workflow:seal:edit'], + children: [ + { + path: 'index', + component: () => import('@/views/workflow/seal/sealEdit.vue'), + name: 'sealEdit', + meta: { title: '用章申请', activeMenu: '/workflow/seal', noCache: true } + } + ] }, { path: '/workflow/design', diff --git a/src/views/workflow/businesstrip/tripEdit.vue b/src/views/workflow/businesstrip/tripEdit.vue index 6a21f51..dc7264c 100644 --- a/src/views/workflow/businesstrip/tripEdit.vue +++ b/src/views/workflow/businesstrip/tripEdit.vue @@ -75,7 +75,7 @@ - diff --git a/src/views/workflow/seal/sealEdit.vue b/src/views/workflow/seal/sealEdit.vue new file mode 100644 index 0000000..c2c411e --- /dev/null +++ b/src/views/workflow/seal/sealEdit.vue @@ -0,0 +1,375 @@ + + +