abnormality.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import request from '@/utils/request'
  2. // 查询市场监管-经营异常列表
  3. export function listAbnormality(query) {
  4. return request({
  5. url: '/crmBusinessAbnormality/findByPage',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询市场监管-经营异常详细
  11. export function getAbnormality(id) {
  12. return request({
  13. url: '/crmBusinessAbnormality/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增市场监管-经营异常
  18. export function addAbnormality(data) {
  19. return request({
  20. url: '/crmBusinessAbnormality',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改市场监管-经营异常
  26. export function updateAbnormality(data) {
  27. return request({
  28. url: '/crmBusinessAbnormality',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除市场监管-经营异常
  34. export function delAbnormality(id) {
  35. return request({
  36. url: '/crmBusinessAbnormality/deleteAll',
  37. method: 'delete'
  38. })
  39. }
  40. // 批量删除行政许可
  41. export function delAbnormalityBatch(ids) {
  42. console.log(ids);
  43. return request.post('/crmBusinessAbnormality/delete',ids)
  44. }