Merge remote-tracking branch 'origin/main'
commit
6f5dec1a2c
|
@ -0,0 +1,32 @@
|
|||
import { baseRequest } from '@/utils/request'
|
||||
|
||||
const request = (url, ...arg) => baseRequest(`/base/brand/` + url, ...arg)
|
||||
|
||||
/**
|
||||
* 品牌Api接口管理器
|
||||
*
|
||||
* @author Luck
|
||||
* @date 2024/07/23 16:20
|
||||
**/
|
||||
export default {
|
||||
// 获取品牌分页
|
||||
sysBrandPage(data) {
|
||||
return request('page', data, 'get')
|
||||
},
|
||||
// 获取品牌列表
|
||||
sysBrandList(data) {
|
||||
return request('list', data, 'get')
|
||||
},
|
||||
// 提交品牌表单 edit为true时为编辑,默认为新增
|
||||
sysBrandSubmitForm(data, edit = false) {
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除品牌
|
||||
sysBrandDelete(data) {
|
||||
return request('delete', data)
|
||||
},
|
||||
// 获取品牌详情
|
||||
sysBrandDetail(data) {
|
||||
return request('detail', data, 'get')
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
import { baseRequest } from '@/utils/request'
|
||||
|
||||
const request = (url, ...arg) => baseRequest(`/base/customer/` + url, ...arg)
|
||||
|
||||
/**
|
||||
* 客户Api接口管理器
|
||||
*
|
||||
* @author Luck
|
||||
* @date 2024/07/23 16:31
|
||||
**/
|
||||
export default {
|
||||
// 获取客户分页
|
||||
customerPage(data) {
|
||||
return request('page', data, 'get')
|
||||
},
|
||||
// 提交客户表单 edit为true时为编辑,默认为新增
|
||||
customerSubmitForm(data, edit = false) {
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除客户
|
||||
customerDelete(data) {
|
||||
return request('delete', data)
|
||||
},
|
||||
// 获取客户详情
|
||||
customerDetail(data) {
|
||||
return request('detail', data, 'get')
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
import { baseRequest } from '@/utils/request'
|
||||
|
||||
const request = (url, ...arg) => baseRequest(`/base/customerCategory/` + url, ...arg)
|
||||
|
||||
/**
|
||||
* 客户分类Api接口管理器
|
||||
*
|
||||
* @author Luck
|
||||
* @date 2024/07/23 17:02
|
||||
**/
|
||||
export default {
|
||||
// 获取客户分类分页
|
||||
customerCategoryPage(data) {
|
||||
return request('page', data, 'get')
|
||||
},
|
||||
// 获取树结构
|
||||
customerCategoryTree(data) {
|
||||
return request('tree', data, 'get')
|
||||
},
|
||||
// 提交客户分类表单 edit为true时为编辑,默认为新增
|
||||
customerCategorySubmitForm(data, edit = false) {
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除客户分类
|
||||
customerCategoryDelete(data) {
|
||||
return request('delete', data)
|
||||
},
|
||||
// 获取客户分类详情
|
||||
customerCategoryDetail(data) {
|
||||
return request('detail', data, 'get')
|
||||
}
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
import { baseRequest } from '@/utils/request'
|
||||
|
||||
const request = (url, ...arg) => baseRequest(`/base/employee/` + url, ...arg)
|
||||
|
||||
/**
|
||||
* 员工Api接口管理器
|
||||
*
|
||||
* @author Luck
|
||||
* @date 2024/07/23 17:31
|
||||
**/
|
||||
export default {
|
||||
// 获取员工分页
|
||||
employeePage(data) {
|
||||
return request('page', data, 'get')
|
||||
},
|
||||
// 提交员工表单 edit为true时为编辑,默认为新增
|
||||
employeeSubmitForm(data, edit = false) {
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除员工
|
||||
employeeDelete(data) {
|
||||
return request('delete', data)
|
||||
},
|
||||
// 获取员工详情
|
||||
employeeDetail(data) {
|
||||
return request('detail', data, 'get')
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
import { baseRequest } from '@/utils/request'
|
||||
|
||||
const request = (url, ...arg) => baseRequest(`/base/employeeCategory/` + url, ...arg)
|
||||
|
||||
/**
|
||||
* 员工分类Api接口管理器
|
||||
*
|
||||
* @author Luck
|
||||
* @date 2024/07/23 17:05
|
||||
**/
|
||||
export default {
|
||||
// 获取员工分类分页
|
||||
employeeCategoryPage(data) {
|
||||
return request('page', data, 'get')
|
||||
},
|
||||
// 获取员工分类 树结构
|
||||
employeeCategoryTree(data) {
|
||||
return request('tree', data, 'get')
|
||||
},
|
||||
// 提交员工分类表单 edit为true时为编辑,默认为新增
|
||||
employeeCategorySubmitForm(data, edit = false) {
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除员工分类
|
||||
employeeCategoryDelete(data) {
|
||||
return request('delete', data)
|
||||
},
|
||||
// 获取员工分类详情
|
||||
employeeCategoryDetail(data) {
|
||||
return request('detail', data, 'get')
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
import { baseRequest } from '@/utils/request'
|
||||
|
||||
const request = (url, ...arg) => baseRequest(`/base/productionorganization/` + url, ...arg)
|
||||
|
||||
/**
|
||||
* 生产组织Api接口管理器
|
||||
*
|
||||
* @author Luck
|
||||
* @date 2024/07/23 15:26
|
||||
**/
|
||||
export default {
|
||||
// 获取生产组织分页
|
||||
productionOrganizationPage(data) {
|
||||
return request('page', data, 'get')
|
||||
},
|
||||
// 获取生产组织 列表
|
||||
productionOrganizationList(data) {
|
||||
return request('list', data, 'get')
|
||||
},
|
||||
// 获取生产组织 树结构
|
||||
productionOrganizationTree(data) {
|
||||
return request('tree', data, 'get')
|
||||
},
|
||||
// 提交生产组织表单 edit为true时为编辑,默认为新增
|
||||
productionOrganizationSubmitForm(data, edit = false) {
|
||||
return request(edit ? 'edit' : 'add', data)
|
||||
},
|
||||
// 删除生产组织
|
||||
productionOrganizationDelete(data) {
|
||||
return request('delete', data)
|
||||
},
|
||||
// 获取生产组织详情
|
||||
productionOrganizationDetail(data) {
|
||||
return request('detail', data, 'get')
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue