办公用品

This commit is contained in:
XaoLi717 2024-11-06 10:58:52 +08:00
parent b1ed3fa3f4
commit e29a67c096

View File

@ -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 })
},
}