auxiliarySalesOrder.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. // 获取列表
  3. export function listPageV2(data) {
  4. return request({
  5. url: `/websit/sales/list?moduleId=${data.moduleId}`,
  6. method: 'post',
  7. data
  8. })
  9. }
  10. //导出
  11. export function pageExport(data, name) {
  12. return postBlob({
  13. url: '/websit/sales/list/export',
  14. data,
  15. name
  16. })
  17. }
  18. export function listImportM(data) {
  19. return handleImport('/websit/sales/m/import', data.formdata, data.id || '')
  20. }
  21. export function listImportP(data) {
  22. return handleImport('/websit/sales/p/import', data.formdata, data.id || '')
  23. }
  24. // 新增
  25. export function add(data) {
  26. return request({
  27. url: `/websit/sales/add`,
  28. method: 'post',
  29. data
  30. })
  31. }
  32. // 编辑
  33. export function edit(data) {
  34. return request({
  35. url: `/websit/sales/edit`,
  36. method: 'post',
  37. data
  38. })
  39. }
  40. // 详情
  41. export function getDetail(params) {
  42. return request({
  43. url: `/websit/sales/detail`,
  44. method: 'post',
  45. params
  46. })
  47. }
  48. // 提交
  49. export function submit(params) {
  50. return request({
  51. url: `/websit/sales/submit`,
  52. method: 'post',
  53. params
  54. })
  55. }
  56. // 审核
  57. export function confirm(params) {
  58. return request({
  59. url: `/websit/sales/confirm`,
  60. method: 'post',
  61. params
  62. })
  63. }
  64. // 支付二维码
  65. export function getCode(params) {
  66. return request({
  67. url: `/websit/sales/generate/pay/code`,
  68. method: 'post',
  69. params
  70. })
  71. }
  72. export function getWorker(data) {
  73. return request({
  74. url: `/member/list/page2`,
  75. method: 'post',
  76. data
  77. })
  78. }
  79. export function getCategory(params) {
  80. return request({
  81. url: `/websit/sales/exist/stock/category`,
  82. method: 'post',
  83. params
  84. })
  85. }
  86. export function getGoods(params) {
  87. return request({
  88. url: `/websit/sales/exist/stock/goods`,
  89. method: 'post',
  90. params
  91. })
  92. }
  93. export function getProject(data) {
  94. return request({
  95. url: `/order/engin/base/list`,
  96. method: 'post',
  97. data
  98. })
  99. }
  100. export function getProjectCollectionList(params) {
  101. return request({
  102. url: `/order/engin/manger/detailPrice`,
  103. method: 'post',
  104. params
  105. })
  106. }
  107. export function queryImportResult(params) {
  108. return request({
  109. url: `/websit/sales/query/import/result`,
  110. method: 'post',
  111. params
  112. })
  113. }