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.
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface RecordsettingVO {
|
|
|
|
code: string
|
|
|
|
interfaceType: string
|
|
|
|
activeTime: Date
|
|
|
|
expireTime: Date
|
|
|
|
remark: string
|
|
|
|
available: string
|
|
|
|
isSoftDeleted: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询记录设置列表
|
|
|
|
export const getRecordsettingPage = async (params) => {
|
|
|
|
return await request.get({ url: `/wms/recordsetting/page`, params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询记录设置详情
|
|
|
|
export const getRecordsetting = async (id: number) => {
|
|
|
|
return await request.get({ url: `/wms/recordsetting/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增记录设置
|
|
|
|
export const createRecordsetting = async (data: RecordsettingVO) => {
|
|
|
|
return await request.post({ url: `/wms/recordsetting/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改记录设置
|
|
|
|
export const updateRecordsetting = async (data: RecordsettingVO) => {
|
|
|
|
return await request.put({ url: `/wms/recordsetting/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除记录设置
|
|
|
|
export const deleteRecordsetting = async (id: number) => {
|
|
|
|
return await request.delete({ url: `/wms/recordsetting/delete?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出记录设置 Excel
|
|
|
|
export const exportRecordsetting = async (params) => {
|
|
|
|
return await request.download({ url: `/wms/recordsetting/export-excel`, params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
|
export const importTemplate = () => {
|
|
|
|
return request.download({ url: '/wms/recordsetting/get-import-template' })
|
|
|
|
}
|