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.
56 lines
1.4 KiB
56 lines
1.4 KiB
import request from '@/config/axios'
|
|
|
|
export interface MstrVO {
|
|
id: number
|
|
hflccHflcd: string
|
|
plProdLine: string
|
|
plDesc: string
|
|
plMvarAcct: string
|
|
plCchgAcct: string
|
|
type: string
|
|
remark: string
|
|
extraProperties: string
|
|
concurrencyStamp: number
|
|
siteId: string
|
|
}
|
|
|
|
// 查询产品类信息列表
|
|
export const getMstrPage = async (params) => {
|
|
if (params.isSearch) {
|
|
delete params.isSearch
|
|
const data = {...params}
|
|
return await request.post({ url: '/wms/mstr/senior', data })
|
|
} else {
|
|
return await request.get({ url: `/wms/mstr/page`, params })
|
|
}
|
|
}
|
|
|
|
// 查询产品类信息详情
|
|
export const getMstr = async (id: number) => {
|
|
return await request.get({ url: `/wms/mstr/get?id=` + id })
|
|
}
|
|
|
|
// 新增产品类信息
|
|
export const createMstr = async (data: MstrVO) => {
|
|
return await request.post({ url: `/wms/mstr/create`, data })
|
|
}
|
|
|
|
// 修改产品类信息
|
|
export const updateMstr = async (data: MstrVO) => {
|
|
return await request.put({ url: `/wms/mstr/update`, data })
|
|
}
|
|
|
|
// 删除产品类信息
|
|
export const deleteMstr = async (id: number) => {
|
|
return await request.delete({ url: `/wms/mstr/delete?id=` + id })
|
|
}
|
|
|
|
// 导出产品类信息 Excel
|
|
export const exportMstr = async (params) => {
|
|
return await request.download({ url: `/wms/mstr/export-excel`, params })
|
|
}
|
|
|
|
// 下载用户导入模板
|
|
export const importTemplate = () => {
|
|
return request.download({ url: '/wms/mstr/get-import-template' })
|
|
}
|