import request from '@/config/axios' export interface SupplierVO { id: number code: string brief: string name: string industry: string level: number category: number userId: number description: string contact1Name: string contact1Post: string contact1Method: string contact1Email: string contact1Addr: string contact2Name: string contact2Post: string contact2Method: string contact2Email: string contact2Addr: string contact3Name: string contact3Post: string contact3Method: string contact3Email: string contact3Addr: string status: number logo: string payType: string accountName: string bankNo: string bankAddress: string taxNo: string } // 查询仓库分页 export const getSimpNoStatusList = async () => { return await request.get({ url: `/heli/supplier/all-no-status-simples` }) } // 查询仓库分页 export const getSimpList = async () => { return await request.get({ url: `/heli/supplier/all-simples` }) } // 查询供应商分页 export const getSupplierPage = async (params) => { return await request.get({ url: `/heli/supplier/page`, params }) } // 查询供应商详情 export const getSupplier = async (id: number) => { return await request.get({ url: `/heli/supplier/get?id=` + id }) } // 新增供应商 export const createSupplier = async (data: SupplierVO) => { return await request.post({ url: `/heli/supplier/create`, data }) } // 修改供应商 export const updateSupplier = async (data: SupplierVO) => { return await request.put({ url: `/heli/supplier/update`, data }) } // 删除供应商 export const deleteSupplier = async (id: number) => { return await request.delete({ url: `/heli/supplier/delete?id=` + id }) } // 导出供应商 Excel export const exportSupplier = async (params) => { return await request.download({ url: `/heli/supplier/export-excel`, params }) }