初步 提交客户/供应商管理
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 查询客户主列表
|
||||
export function listCustomer(query) {
|
||||
return request({
|
||||
url: '/customersupplier/customerinfo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询客户主详细
|
||||
export function getCustomer(customerId) {
|
||||
return request({
|
||||
url: '/customersupplier/customerinfo/' + customerId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增客户主
|
||||
export function addCustomer(data) {
|
||||
return request({
|
||||
url: '/customersupplier/customerinfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改客户主
|
||||
export function updateCustomer(data) {
|
||||
return request({
|
||||
url: '/customersupplier/customerinfo',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除客户主
|
||||
export function delCustomer(customerId) {
|
||||
return request({
|
||||
url: '/customersupplier/customerinfo/' + customerId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request.js'
|
||||
|
||||
// 查询供应商列表
|
||||
export function listSupplier(query) {
|
||||
return request({
|
||||
url: '/customersupplier/supplierinfo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询供应商详细
|
||||
export function getSupplier(supplierId) {
|
||||
return request({
|
||||
url: '/customersupplier/supplierinfo/' + supplierId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增供应商
|
||||
export function addSupplier(data) {
|
||||
return request({
|
||||
url: '/customersupplier/supplierinfo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改供应商
|
||||
export function updateSupplier(data) {
|
||||
return request({
|
||||
url: '/customersupplier/supplierinfo',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除供应商
|
||||
export function delSupplier(supplierId) {
|
||||
return request({
|
||||
url: '/customersupplier/supplierinfo/' + supplierId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user