feat(api): 新增系统及仓储模块API接口
- 新增办事处信息管理相关接口(增删改查及导出) - 新增区域列表查询接口 - 新增客户信息管理相关接口(增删改查及导出) - 新增仓库基础信息管理相关接口(增删改查及导出) - 新增代理商管理相关接口(增删改查及导出) - 新增产品管理相关接口(增删改查及导出) - 新增制造商信息管理相关接口(增删改查及导出) - 提供获取全部制造商列表和仓库列表的辅助接口dev_1.0.0
parent
e49f8b1463
commit
e08751bdb2
|
|
@ -0,0 +1,61 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询制造商信息列表
|
||||
export function listVendor(query) {
|
||||
return request({
|
||||
url: '/system/vendor/vue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询制造商信息详细
|
||||
export function getVendor(vendorId) {
|
||||
return request({
|
||||
url: '/system/vendor/vue/' + vendorId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增制造商信息
|
||||
export function addVendor(data) {
|
||||
return request({
|
||||
url: '/system/vendor/vue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改制造商信息
|
||||
export function updateVendor(data) {
|
||||
return request({
|
||||
url: '/system/vendor/vue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除制造商信息
|
||||
export function delVendor(vendorId) {
|
||||
return request({
|
||||
url: '/system/vendor/vue/' + vendorId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出制造商信息
|
||||
export function exportVendor(query) {
|
||||
return request({
|
||||
url: '/system/vendor/export',
|
||||
method: 'post',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取仓库列表
|
||||
export function listAllWarehouse() {
|
||||
return request({
|
||||
url: '/warehouse/info/vue/listAll',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询办事处信息列表
|
||||
export function listAgent(query) {
|
||||
return request({
|
||||
url: '/system/agent/vue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询办事处信息详细
|
||||
export function getAgent(id) {
|
||||
return request({
|
||||
url: '/system/agent/vue/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增办事处信息
|
||||
export function addAgent(data) {
|
||||
return request({
|
||||
url: '/system/agent/vue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改办事处信息
|
||||
export function updateAgent(data) {
|
||||
return request({
|
||||
url: '/system/agent/vue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除办事处信息
|
||||
export function delAgent(id) {
|
||||
return request({
|
||||
url: '/system/agent/vue/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出办事处信息
|
||||
export function exportAgent(query) {
|
||||
return request({
|
||||
url: '/system/agent/vue/export',
|
||||
method: 'post',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询区域列表
|
||||
export function listAreas(parentId) {
|
||||
return request({
|
||||
url: '/cnarea/select',
|
||||
method: 'get',
|
||||
params: { parentId }
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询客户信息列表
|
||||
export function listCustomer(query) {
|
||||
return request({
|
||||
url: '/system/customer/vue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询客户信息详细
|
||||
export function getCustomer(id) {
|
||||
return request({
|
||||
url: '/system/customer/vue/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增客户信息
|
||||
export function addCustomer(data) {
|
||||
return request({
|
||||
url: '/system/customer/vue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改客户信息
|
||||
export function updateCustomer(data) {
|
||||
return request({
|
||||
url: '/system/customer/vue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除客户信息
|
||||
export function delCustomer(id) {
|
||||
return request({
|
||||
url: '/system/customer/vue/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出客户信息
|
||||
export function exportCustomer(query) {
|
||||
return request({
|
||||
url: '/system/customer/vue/export',
|
||||
method: 'post',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询代理商管理列表
|
||||
export function listPartner(query) {
|
||||
return request({
|
||||
url: '/system/partner/vue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询代理商管理详细信息
|
||||
export function getPartner(id) {
|
||||
return request({
|
||||
url: '/system/partner/vue/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增代理商管理
|
||||
export function addPartner(data) {
|
||||
return request({
|
||||
url: '/system/partner/vue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改代理商管理
|
||||
export function updatePartner(data) {
|
||||
return request({
|
||||
url: '/system/partner/vue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除代理商管理
|
||||
export function delPartner(id) {
|
||||
return request({
|
||||
url: '/system/partner/vue/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出代理商管理
|
||||
export function exportPartner(query) {
|
||||
return request({
|
||||
url: '/system/partner/vue/export',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,61 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询产品管理列表
|
||||
export function listProduct(query) {
|
||||
return request({
|
||||
url: '/system/product/vue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询产品管理详细
|
||||
export function getProduct(id) {
|
||||
return request({
|
||||
url: '/system/product/vue/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增产品管理
|
||||
export function addProduct(data) {
|
||||
return request({
|
||||
url: '/system/product/vue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改产品管理
|
||||
export function updateProduct(data) {
|
||||
return request({
|
||||
url: '/system/product/vue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除产品管理
|
||||
export function delProduct(id) {
|
||||
return request({
|
||||
url: '/system/product/vue/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出产品管理
|
||||
export function exportProduct(query) {
|
||||
return request({
|
||||
url: '/system/product/export',
|
||||
method: 'post',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 获取制造商列表
|
||||
export function listAllVendor() {
|
||||
return request({
|
||||
url: '/system/vendor/vue/listAll',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
|
@ -0,0 +1,53 @@
|
|||
import request from '@/utils/request'
|
||||
|
||||
// 查询仓库基础信息列表
|
||||
export function listInfo(query) {
|
||||
return request({
|
||||
url: '/warehouse/info/vue/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询仓库基础信息详细
|
||||
export function getInfo(id) {
|
||||
return request({
|
||||
url: '/warehouse/info/vue/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增仓库基础信息
|
||||
export function addInfo(data) {
|
||||
return request({
|
||||
url: '/warehouse/info/vue',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改仓库基础信息
|
||||
export function updateInfo(data) {
|
||||
return request({
|
||||
url: '/warehouse/info/vue',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除仓库基础信息
|
||||
export function delInfo(id) {
|
||||
return request({
|
||||
url: '/warehouse/info/vue/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 导出仓库基础信息
|
||||
export function exportInfo(query) {
|
||||
return request({
|
||||
url: '/warehouse/info/export',
|
||||
method: 'post',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue