From e29a67c096fa1125888322bef781c3b3fe1b2173 Mon Sep 17 00:00:00 2001 From: XaoLi717 <144221124+XaoLi717@users.noreply.github.com> Date: Wed, 6 Nov 2024 10:58:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9E=E5=85=AC=E7=94=A8=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/home/bgyp/index.ts | 52 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/api/home/bgyp/index.ts diff --git a/src/api/home/bgyp/index.ts b/src/api/home/bgyp/index.ts new file mode 100644 index 0000000..e77a895 --- /dev/null +++ b/src/api/home/bgyp/index.ts @@ -0,0 +1,52 @@ +import request from '@/config/axios' + +// 办公用品管理 VO +export interface BgypVO { + id: number // id + title: string // 申请标题 + userName: string // 申请用户名称 + deptName: string // 申请部门名称 + deptId: number // 申请部门id + usageName: string // 申请物品名字 + usageId: number // 申请物品id + usageQuantity: number // 申请物品数量 + unit: number // 申请物品分类 + usagePurpose: string // 申请用途 + usageDate: Date // 申请时间 + status: number // 审批状态 + userId: number // 申请人的用户编号 + processInstanceId: string // 流程实例的编号 +} + +// 办公用品管理 API +export const BgypApi = { + // 查询办公用品管理分页 + getBgypPage: async (params: any) => { + return await request.get({ url: `/home/bgyp/page`, params }) + }, + + // 查询办公用品管理详情 + getBgyp: async (id: number) => { + return await request.get({ url: `/home/bgyp/get?id=` + id }) + }, + + // 新增办公用品管理 + createBgyp: async (data: BgypVO) => { + return await request.post({ url: `/home/bgyp/create`, data }) + }, + + // 修改办公用品管理 + updateBgyp: async (data: BgypVO) => { + return await request.put({ url: `/home/bgyp/update`, data }) + }, + + // 删除办公用品管理 + deleteBgyp: async (id: number) => { + return await request.delete({ url: `/home/bgyp/delete?id=` + id }) + }, + + // 导出办公用品管理 Excel + exportBgyp: async (params) => { + return await request.download({ url: `/home/bgyp/export-excel`, params }) + }, +} \ No newline at end of file