import request from '@/config/axios' export interface ItembasicVO { code: string name: string desc1: string desc2: string status: string uom: string altUom: string isStdPack: number enableBuy: number enableMake: number enableOutsourcing: number isRecycled: number isPhantom: number abcClass: string type: string category: string itemGroup: string color: string configuration: string project: string eqLevel: string validityDays: number available: number activeTime: Date expireTime: Date remark: string } // 查询物品基本信息列表 export const getItembasicPage = async (params) => { return await request.get({ url: `/wms/itembasic/page`, params }) } // 查询物品基本信息详情 export const getItembasic = async (id: number) => { return await request.get({ url: `/wms/itembasic/get?id=` + id }) } // 新增物品基本信息 export const createItembasic = async (data: ItembasicVO) => { return await request.post({ url: `/wms/itembasic/create`, data }) } // 修改物品基本信息 export const updateItembasic = async (data: ItembasicVO) => { return await request.put({ url: `/wms/itembasic/update`, data }) } // 删除物品基本信息 export const deleteItembasic = async (id: number) => { return await request.delete({ url: `/wms/itembasic/delete?id=` + id }) } // 导出物品基本信息 Excel export const exportItembasic = async (params) => { return await request.download({ url: `/wms/itembasic/export-excel`, params }) } // 下载用户导入模板 export const importUserTemplate = () => { return request.download({ url: '/wms/itembasic/get-import-template' }) }