barcode.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. import request, { postBlob, handleImport, getBlob } from '@/utils/request'
  2. export function getListCodeV2(params) {
  3. return request({
  4. url: `/customer/code/list/v2?moduleId=${params.moduleId}`,
  5. method: 'post',
  6. data: params
  7. })
  8. }
  9. export function exportListCodeV2(data, name) {
  10. return postBlob({
  11. url: '/customer/code/user/export/v2',
  12. data,
  13. name
  14. })
  15. }
  16. export function getListCustomerCodeV2(params) {
  17. return request({
  18. url: `/customer/code/listCustomer/v2?moduleId=${params.moduleId}`,
  19. method: 'post',
  20. data: params
  21. })
  22. }
  23. export function exportListCustomerCodeV2(data, name) {
  24. return postBlob({
  25. url: '/customer/code/listCustomer/export/v2',
  26. data,
  27. name
  28. })
  29. }
  30. export function importListCustomerCodeV2(data) {
  31. return handleImport('customer/code/import', data.formdata, data.id || '')
  32. }
  33. export function luBaoDownloadDownload(data, name) {
  34. return getBlob({
  35. url: '/customer/code/ShangJiaDownload',
  36. data,
  37. name
  38. })
  39. }
  40. export function getListCustomerCheckV2(params) {
  41. return request({
  42. url: `/customer/code/listCustomerCheck/v2?moduleId=${params.moduleId}`,
  43. method: 'post',
  44. data: params
  45. })
  46. }
  47. export function exportListCustomerCheck(data, name) {
  48. return postBlob({
  49. url: '/customer/code/listCustomerCheck/export/v2',
  50. data,
  51. name
  52. })
  53. }
  54. export function importListCustomerCheck(data) {
  55. return handleImport('customer/code/importCheck', data.formdata, data.id || '')
  56. }
  57. export function listCustomerCheckDownload(data, name) {
  58. return getBlob({
  59. url: '/customer/code/download',
  60. data,
  61. name
  62. })
  63. }