dayworkItemReject.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. import request from '@/utils/request'
  2. import { download, downloadPdf } from '@/utils/request'
  3. const baseUrl = import.meta.env.VITE_APP_PRODUCTION_API
  4. // 查询报工废品记录列表
  5. export function listReject(query) {
  6. return request({
  7. url: baseUrl +'/business/reject/list',
  8. method: 'get',
  9. params: query
  10. })
  11. }
  12. // 查询报工废品报表列表
  13. export function rejectReport(query) {
  14. return request({
  15. url: baseUrl +'/business/reject/rejectReport',
  16. method: 'get',
  17. params: query
  18. })
  19. }
  20. // 查询报工废品报表列表
  21. export function rejectReportList(query) {
  22. return request({
  23. url: baseUrl +'/business/reject/rejectReportList',
  24. method: 'get',
  25. params: query
  26. })
  27. }
  28. //查询分选废品分选标准表
  29. export function getSortCheckStandard(query) {
  30. return request({
  31. url: baseUrl +'/business/reject/getSortCheckStandard',
  32. method: 'get',
  33. params: query
  34. })
  35. }
  36. //打印
  37. export function printSortReject(data) {
  38. download(
  39. baseUrl + "/business/reject/printDetailExport",
  40. {
  41. ...data,
  42. },
  43. `德迈仕质量检查不良原因数据查询报表_${new Date().getTime()}.xlsx`
  44. )
  45. }
  46. export function getSortRejectList(query) {
  47. return request({
  48. url: baseUrl +'/business/reject/getSortRejectList',
  49. method: 'get',
  50. params: query
  51. })
  52. }
  53. // 查询报工废品报表列表
  54. export function rejectRecords(query) {
  55. return request({
  56. url: baseUrl +'/business/reject/rejectRecords',
  57. method: 'get',
  58. params: query
  59. })
  60. }
  61. // 查询报工废品记录详细
  62. export function getReject(id) {
  63. return request({
  64. url: baseUrl + '/business/reject/' + id,
  65. method: 'get'
  66. })
  67. }
  68. // 新增报工废品记录
  69. export function addReject(data) {
  70. return request({
  71. url: baseUrl + '/business/reject',
  72. method: 'post',
  73. data: data
  74. })
  75. }
  76. // 修改报工废品记录
  77. export function updateReject(data) {
  78. return request({
  79. url: baseUrl + '/business/reject',
  80. method: 'put',
  81. data: data
  82. })
  83. }
  84. // 删除报工废品记录
  85. export function delReject(id) {
  86. return request({
  87. url: baseUrl +'/business/reject/' + id,
  88. method: 'delete'
  89. })
  90. }