39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { get, post } from '../../index'
|
|
|
|
// 需求管理新增
|
|
export const addLeaseInfoApi = (data: any) => {
|
|
return post('/material-mall/ma-lease/add', data)
|
|
}
|
|
// 需求管理编辑
|
|
export const editLeaseInfoApi = (data: any) => {
|
|
return post('/material-mall/ma-lease/edit', data)
|
|
}
|
|
// 需求列表查询
|
|
export const getLeaseListApi = (data: any) => {
|
|
return get('/material-mall/ma-lease/list', data)
|
|
}
|
|
// 需求列表详情
|
|
export const getLeaseDetailsByIdApi = (data: any) => {
|
|
return get('/material-mall/ma-lease/getById', data)
|
|
}
|
|
// 删除
|
|
export const deleteLeaseInfoApi = (data: any) => {
|
|
return post('/material-mall/ma-lease/deleteById', data)
|
|
}
|
|
// 接单列表查询
|
|
export const getAcceptOrdersListApi = (data: any) => {
|
|
return get('/material-mall/ma-lease/rentList', data)
|
|
}
|
|
// 接单审核
|
|
export const maLeaseAuditApi = (data: any) => {
|
|
return post('/material-mall/ma-lease/audit', data)
|
|
}
|
|
|
|
// 获取组织机构
|
|
export const getOrgApi = () => {
|
|
return get('/material-mall/userManage/getDeptTree')
|
|
}
|
|
// 获取角色列表
|
|
export const getRoleApi = (params: any) => {
|
|
return get('/material-mall/userManage/roleList', { ...params })
|
|
} |