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.
58 lines
1.8 KiB
58 lines
1.8 KiB
import request from '@/config/axios'
|
|
|
|
export interface ConfigurationsettingVO {
|
|
strategyType: string
|
|
configurationCode: string
|
|
configurationName: string
|
|
dataType: string
|
|
valueScope: string
|
|
relatedTo: string
|
|
description: string
|
|
isRequired: string
|
|
}
|
|
|
|
// 查询配置设置列表
|
|
export const getConfigurationsettingPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return request.post({ url: '/wms/configurationsetting/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/configurationsetting/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询配置设置详情
|
|
export const getConfigurationsetting = async (id: number) => {
|
|
return await request.get({ url: `/wms/configurationsetting/get?id=` + id })
|
|
}
|
|
|
|
// 新增配置设置
|
|
export const createConfigurationsetting = async (data: ConfigurationsettingVO) => {
|
|
return await request.post({ url: `/wms/configurationsetting/create`, data })
|
|
}
|
|
|
|
// 修改配置设置
|
|
export const updateConfigurationsetting = async (data: ConfigurationsettingVO) => {
|
|
return await request.put({ url: `/wms/configurationsetting/update`, data })
|
|
}
|
|
|
|
// 删除配置设置
|
|
export const deleteConfigurationsetting = async (id: number) => {
|
|
return await request.delete({ url: `/wms/configurationsetting/delete?id=` + id })
|
|
}
|
|
|
|
// 导出配置设置 Excel
|
|
export const exportConfigurationsetting = async (params) => {
|
|
if (params.isSearch) {
|
|
const data = {...params}
|
|
return await request.downloadPost({ url: `/wms/configurationsetting/export-excel-senior`, data })
|
|
} else {
|
|
return await request.download({ url: `/wms/configurationsetting/export-excel`, params })
|
|
}
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/configurationsetting/get-import-template' })
|
|
}
|