| | |
| | | import request from '@/config/axios' |
| | | |
| | | export interface MmItemTypeVO { |
| | | export interface DmModuleVO { |
| | | id: string |
| | | itemtypename: string, |
| | | itemclasstype: string, |
| | | assemblyname: string |
| | | modulename: string, |
| | | moduletype: string, |
| | | cycle: string, |
| | | modulenavconfig: string |
| | | } |
| | | |
| | | export interface MmItemTypePageReqVO extends PageParam { |
| | | export interface DmModulePageReqVO extends PageParam { |
| | | modulename?: string |
| | | } |
| | | |
| | | // 查询MmItemType列表 |
| | | export const getMmItemTypePage = (params: MmItemTypePageReqVO) => { |
| | | return request.get({ url: '/pre/item-type/page', params }) |
| | | // 查询DmModule列表 |
| | | export const getDmModulePage = (params: DmModulePageReqVO) => { |
| | | return request.get({ url: '/model/pre/module/page', params }) |
| | | } |
| | | |
| | | // 查询MmItemType详情 |
| | | export const getMmItemType = (id: number) => { |
| | | return request.get({ url: `/pre/item-type/get/${id}`}) |
| | | // 查询DmModule详情 |
| | | export const getDmModule = (id: number) => { |
| | | return request.get({ url: `/model/pre/module/get/${id}`}) |
| | | } |
| | | |
| | | // 新增MmItemType |
| | | export const createMmItemType = (data: MmItemTypeVO) => { |
| | | return request.post({ url: '/pre/item-type/create', data }) |
| | | // 新增DmModule |
| | | export const createDmModule = (data: DmModuleVO) => { |
| | | return request.post({ url: '/model/pre/module/create', data }) |
| | | } |
| | | |
| | | // 修改MmItemType |
| | | export const updateMmItemType = (data: MmItemTypeVO) => { |
| | | return request.put({ url: '/pre/item-type/update', data }) |
| | | // 修改DmModule |
| | | export const updateDmModule = (data: DmModuleVO) => { |
| | | return request.put({ url: '/model/pre/module/update', data }) |
| | | } |
| | | |
| | | // 删除MmItemType |
| | | export const deleteMmItemType = (id: number) => { |
| | | return request.delete({ url: '/pre/item-type/delete?id=' + id }) |
| | | // 删除DmModule |
| | | export const deleteDmModule = (id: number) => { |
| | | return request.delete({ url: '/model/pre/module/delete?id=' + id }) |
| | | } |