增加backend的erp若干功能
This commit is contained in:
1 parent
f644c278c9
commit
44a03186da
40 files changed
+8166
-286
No files matched your search
@@ -0,0 +1,47 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function getAccountSetList(params) {
|
||||
return request({
|
||||
url: '/backend/erp/account-set/list',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function getAccountSetDetail(id) {
|
||||
return request({
|
||||
url: `/backend/erp/account-set/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
export function createAccountSet(data) {
|
||||
return request({
|
||||
url: '/backend/erp/account-set',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function updateAccountSet(id, data) {
|
||||
return request({
|
||||
url: `/backend/erp/account-set/${id}`,
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function deleteAccountSet(id) {
|
||||
return request({
|
||||
url: `/backend/erp/account-set/${id}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
export function toggleAccountSetStatus(id, status) {
|
||||
return request({
|
||||
url: `/backend/erp/account-set/${id}/status`,
|
||||
method: 'post',
|
||||
data: { status }
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user