seekPurchase.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. define([ 'ngResource' ], function() {
  2. angular.module('seekPurchaseServices', [ 'ngResource' ]).factory('seekPurchase', ['$resource', 'BaseService', function($resource, BaseService) {
  3. var rootPath = BaseService.getRootPath();
  4. return $resource('seek', {}, {
  5. getSeekUrl: {
  6. url: 'seek/accessUrl',
  7. method: 'GET'
  8. },
  9. getSeekPurchaseRate: {
  10. url: 'seek/offer/getSeekPurchaseRate',
  11. method: 'GET'
  12. },
  13. getSeekPushGoodsPageInfo: {
  14. url: 'http://218.17.158.219:24000/inquiry/public',
  15. method: 'GET',
  16. },
  17. saveOneSeekPurchase: {
  18. url: 'http://218.17.158.219:24000/inquiry/buyer/save',
  19. method: 'POST'
  20. },
  21. saveOneSeekPurchaseProd: {
  22. url: 'https://api-inquiry.usoftchina.com/inquiry/buyer/save',
  23. method: 'POST'
  24. },
  25. saveOffer: {
  26. url: 'http://218.17.158.219:24000/inquiry/sale/item/saveQuote',
  27. method: 'POST'
  28. },
  29. saveOfferProd: {
  30. url: 'https://api-inquiry.usoftchina.com/inquiry/sale/item/saveQuote',
  31. method: 'POST'
  32. },
  33. getUserSeekPageInfo: {
  34. url: 'http://218.17.158.219:24000/inquiry/buyer/list',
  35. method: 'GET'
  36. },
  37. getUserSeekPageInfoByStatus: {
  38. url: 'http://218.17.158.219:24000/inquiry/buyer/quotations',
  39. method: 'GET'
  40. },
  41. getMallGoodsList: {
  42. url: 'seek/getMallGoodsList',
  43. method: 'GET',
  44. isArray: true
  45. },
  46. getSeekPurchaseOfferPageInfo: {
  47. url: 'http://218.17.158.219:24000/inquiry/buyer/product/detail',
  48. method: 'GET'
  49. },
  50. getMyOfferPageInfo: {
  51. url: 'http://218.17.158.219:24000/inquiry/public/quotation/list',
  52. method: 'GET'
  53. },
  54. updateSeekPurchaseStatus: {
  55. url: 'http://218.17.158.219:24000/inquiry/buyer/decide',
  56. method: 'POST'
  57. },
  58. getSeekPurchaseBomListPage: {
  59. url: 'http://218.17.158.219:24000/inquiry/buyer/inquiryList',
  60. method: 'GET'
  61. },
  62. findOneBom: {
  63. url: 'http://218.17.158.219:24000/inquiry/public/findInquiryById',
  64. method: 'GET'
  65. },
  66. saveBomName: {
  67. url: 'seek/updateSeekPurchaseBom',
  68. method: 'PUT'
  69. },
  70. getBomDetail: {
  71. url: 'http://218.17.158.219:24000/inquiry/sale/publicInquiry/detail',
  72. method: 'GET'
  73. },
  74. // 获取BOM清单
  75. getBomList: {
  76. url: 'seek/bom/list',
  77. method: 'GET'
  78. },
  79. // BOM清单详情
  80. getBomListDetail: {
  81. url: 'seek/bom/detail',
  82. method: 'GET'
  83. },
  84. // 保存bom编辑
  85. saveBomEdit: {
  86. url: 'seek/bom/edit',
  87. method: 'POST'
  88. },
  89. // 删除BOM信息
  90. deleteBom: {
  91. url: 'seek/bom/delete',
  92. method: 'DELETE'
  93. },
  94. // 选中的物料询价BOM
  95. confirmBomSeekSelected: {
  96. url: 'seek/confirmBom/selected',
  97. method: 'POST'
  98. },
  99. // 整个BOM发布询价
  100. confirmBomSeekAll: {
  101. url: 'seek/confirmBom',
  102. method: 'POST'
  103. },
  104. // 删除bom物料
  105. deleteBomProducts: {
  106. url: 'seek/bom/detail/delete',
  107. method: 'DELETE'
  108. },
  109. // 删除BOM
  110. deleteBom: {
  111. url: 'seek/bom/delete',
  112. method: 'DELETE'
  113. }
  114. });
  115. }])
  116. });