ws_res_capacity_detail.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. import request from '@/utils/request'
  2. // 查询工作中心资源月产能定义详细列表
  3. export function listWs_res_capacity_detail(query) {
  4. return request({
  5. url: '/aps/ws_res_capacity_detail/list',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 查询工作中心资源月产能定义详细详细
  11. export function getWs_res_capacity_detail(id) {
  12. return request({
  13. url: '/aps/ws_res_capacity_detail/' + id,
  14. method: 'get'
  15. })
  16. }
  17. // 新增工作中心资源月产能定义详细
  18. export function addWs_res_capacity_detail(data) {
  19. return request({
  20. url: '/aps/ws_res_capacity_detail',
  21. method: 'post',
  22. data: data
  23. })
  24. }
  25. // 修改工作中心资源月产能定义详细
  26. export function updateWs_res_capacity_detail(data) {
  27. return request({
  28. url: '/aps/ws_res_capacity_detail',
  29. method: 'put',
  30. data: data
  31. })
  32. }
  33. // 删除工作中心资源月产能定义详细
  34. export function delWs_res_capacity_detail(id) {
  35. return request({
  36. url: '/aps/ws_res_capacity_detail/' + id,
  37. method: 'delete'
  38. })
  39. }
  40. // 新增工作中心资源月产能定义
  41. export function occupyRes(data) {
  42. return request({
  43. url: '/aps/ws_res_capacity_detail/occupyRes',
  44. method: 'post',
  45. data: data
  46. })
  47. }
  48. // 查询工作中心资源月产能定义详细列表
  49. export function listTimes(query) {
  50. return request({
  51. url: 'main/teamtime/page?name=&factoryId=&pageNum=1&size=20',
  52. method: 'get',
  53. params: query
  54. })
  55. }
  56. // 查询工作中心资源月产能定义详细列表
  57. export function getBomCategory(query) {
  58. return request({
  59. url: 'main/categoryparam/mBomPage?bomCategoryId=1894726133221527553&pageNum=1&size=10',
  60. method: 'get',
  61. params: null
  62. })
  63. }
  64. // 查询工作中心资源月产能定义详细列表
  65. export function occupyAuto(data) {
  66. return request({
  67. url: '/aps/ws_res_capacity_detail/occupyAuto',
  68. method: 'post',
  69. data: data
  70. })
  71. }
  72. // 查询工作中心资源月产能定义详细列表
  73. export function occupyResAll(data) {
  74. return request({
  75. url: '/aps/ws_res_capacity_detail/occupyResAll',
  76. method: 'post',
  77. data: data
  78. })
  79. }