You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
773 B
26 lines
773 B
![]()
11 months ago
|
import request from '@/config/axios'
|
||
|
// 查询列表
|
||
|
export const getPurchasePage = async (params) => {
|
||
|
return await request.get({ url: '/admin-api/crm/erp-purchase/page', params })
|
||
|
}
|
||
|
|
||
|
// 新增
|
||
|
export const createPurchase = async (data) => {
|
||
|
return await request.post({ url: '/admin-api/crm/erp-purchase/create', data: data })
|
||
|
}
|
||
|
|
||
|
// 修改
|
||
|
export const updatePurchase = async (params) => {
|
||
|
return await request.put({ url: '/admin-api/crm/erp-purchase/update', data: params })
|
||
|
}
|
||
|
|
||
|
// 删除
|
||
|
export const deletePurchase = async (id) => {
|
||
|
return await request.delete({ url: '/admin-api/crm/erp-purchase/delete?id=' + id })
|
||
|
}
|
||
|
|
||
|
// 审核
|
||
|
export const auditPurchase = async (params) => {
|
||
|
return await request.get({ url: '/admin-api/crm/erp-purchase/audit', params })
|
||
|
}
|