import request from '@/utils/request' // 查询供应商管理列表 export function listSupplier(query) { return request({ url: '/oms/supplier/list', method: 'get', params: query }) } // 查询供应商管理详细 export function getSupplier(id) { return request({ url: '/oms/supplier/' + id, method: 'get' }) } // 新增供应商管理 export function addSupplier(data) { return request({ url: '/oms/supplier', method: 'post', data: data }) } // 修改供应商管理 export function updateSupplier(data) { return request({ url: '/oms/supplier', method: 'put', data: data }) } // 删除供应商管理 export function delSupplier(id) { return request({ url: '/oms/supplier/' + id, method: 'delete' }) } // 导出供应商管理 export function exportSupplier(query) { return request({ url: '/oms/supplier/export', method: 'get', params: query }) } export function listSupplierByStatus(query) { return request({ url: '/oms/supplier/byStatus', method: 'get', params: query }) }