黄陂项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
1.8 KiB

2 months ago
  1. import request from '@/utils/request'
  2. import qs from 'qs'
  3. export function add(form) {
  4. return edit(form)
  5. }
  6. export function edit(parameter) {
  7. return request({
  8. url: 'api/case/edit',
  9. method: 'post',
  10. data: parameter
  11. })
  12. }
  13. // 删除档案盒
  14. export function del(data) {
  15. return request({
  16. url: 'api/case/del',
  17. method: 'post',
  18. data: data
  19. })
  20. }
  21. // 判断盒名称是否重复
  22. export function caseNameIsRepeat(parameter) {
  23. return request({
  24. url: 'api/case/caseNameIsRepeat',
  25. method: 'get',
  26. params: parameter
  27. })
  28. }
  29. // 判断条形码值是否重复
  30. export function barcodeIsRepeat(parameter) {
  31. return request({
  32. url: 'api/case/barcodeIsRepeat',
  33. method: 'get',
  34. params: parameter
  35. })
  36. }
  37. // 档案盒列表
  38. export function FetchInitCaseList(parameter) {
  39. return request({
  40. url: 'api/case/initCaseList',
  41. method: 'get',
  42. params: parameter
  43. })
  44. }
  45. // 档案盒装盒列表
  46. export function FetchInitCartoningList(parameter) {
  47. return request({
  48. url: 'api/case/initCartoningList',
  49. method: 'get',
  50. params: parameter
  51. })
  52. }
  53. // 装盒
  54. export function FetchCartoning(data) {
  55. return request({
  56. url: 'api/case/cartoning',
  57. method: 'post',
  58. data: data
  59. })
  60. }
  61. // 拆盒
  62. export function unpacking(data) {
  63. return request({
  64. url: 'api/case/unpacking',
  65. method: 'post',
  66. data: data
  67. })
  68. }
  69. // 盒详情
  70. export function findInCase(params) {
  71. return request({
  72. url: 'api/case/findInCase' + '?' + qs.stringify(params, { indices: false }),
  73. method: 'get'
  74. })
  75. }
  76. // 批量打印盒数据
  77. export function printCaseBarcode(data) {
  78. return request({
  79. url: 'api/case/printCaseBarcode',
  80. method: 'post',
  81. data: data
  82. })
  83. }
  84. export default { add, edit, del, unpacking, findInCase, printCaseBarcode }