index.js 843 B

12345678910111213141516171819202122
  1. // 供应商仓库管理-吴广广
  2. import http from '@/apis/axios'
  3. const api = 'admin/'
  4. export default {
  5. // 添加
  6. add: (data, params) => http(api + 'wareadd', data, 'post', params),
  7. // 分页查询
  8. list: (data, params) => http(api + 'warelist', data, 'post', params),
  9. // 详情
  10. detail: (data, params) => http(api + 'wareinfo', data, 'post', params),
  11. // 更新
  12. update: (data, params) => http(api + 'waresave', data, 'post', params),
  13. // 修改状态
  14. status: (data, params) => http(api + 'warestatus', data, 'post', params),
  15. // 删除
  16. delete: (data, params) => http(api + 'waredel', data, 'post', params),
  17. area: (data, params) => http(api + 'area', data, 'post', params),
  18. city: (data, params) => http(api + 'city', data, 'post', params),
  19. province: (data, params) => http(api + 'province', data, 'post', params)
  20. }