import request from "@/utils/request"; export const getGoodsList = (params) => request('/erp/goods/list', params, 'get') export const getAddrList = (params) => request('/erp/addrManager/list', params, 'get') export const getOrderList = (params) => request('/erp/order/list', params, 'get') export const addOrder = (params) => request('/erp/order/add', params, 'post') export const editOrder = (params) => request('/erp/order/edit', params, 'post') export const addAddr = (params) => request('/erp/addrManager/add', params, 'post') export const editAddr = (params) => request('/erp/addrManager/edit', params, 'post') export const delAddr = (params) => request('/erp/addrManager/delete?id='+params, {} , 'delete') export const getCode = (params) => request('/sys/randomImage/' + params, {}, 'get') export const login = (params) => request('/sys/login', params, 'POST')