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.
60 lines
1.7 KiB
60 lines
1.7 KiB
11 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface QadCostcentreVO {
|
||
|
id: number
|
||
|
code: string
|
||
|
usageDescription: string
|
||
|
costcentreId: string
|
||
|
costcentreCode: string
|
||
|
costcentreDescription: string
|
||
|
costcentreActive: string
|
||
|
costcentreType: string
|
||
|
available: string
|
||
|
remark: string
|
||
|
deletionTime: Date
|
||
|
deleterId: string
|
||
|
extraProperties: string
|
||
|
concurrencyStamp: number
|
||
|
siteId: string
|
||
|
}
|
||
|
|
||
|
// 查询QAD成品中心列表
|
||
|
export const getQadCostcentrePage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/qad-costcentre/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/qad-costcentre/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询QAD成品中心详情
|
||
|
export const getQadCostcentre = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/qad-costcentre/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增QAD成品中心
|
||
|
export const createQadCostcentre = async (data: QadCostcentreVO) => {
|
||
|
return await request.post({ url: `/wms/qad-costcentre/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改QAD成品中心
|
||
|
export const updateQadCostcentre = async (data: QadCostcentreVO) => {
|
||
|
return await request.put({ url: `/wms/qad-costcentre/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除QAD成品中心
|
||
|
export const deleteQadCostcentre = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/qad-costcentre/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出QAD成品中心 Excel
|
||
|
export const exportQadCostcentre = async (params) => {
|
||
|
return await request.download({ url: `/wms/qad-costcentre/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/qad-costcentre/get-import-template' })
|
||
|
}
|