Purc.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. define([ 'ngResource','common/services' ], function() {
  2. angular.module('PurcServices', [ 'ngResource' ,'common.services'
  3. ]).factory('PurcOrder',['$resource','BaseService', function($resource,BaseService) {
  4. return $resource(BaseService.getRootPath()+'/pda/getProdInData.action', {},{
  5. getWhcode : {
  6. url: BaseService.getRootPath()+'/pda/getWhcode.action',
  7. method: 'POST',
  8. params: {
  9. }
  10. },
  11. clearGet :{
  12. url: BaseService.getRootPath()+'/pda/clearGet.action',
  13. method: 'POST',
  14. params: {
  15. }
  16. },
  17. getHaveSubmitList:{
  18. url: BaseService.getRootPath()+'/pda/getHaveSubmitList.action',
  19. method: 'GET',
  20. params: {
  21. }
  22. },
  23. deleteDes :{
  24. url: BaseService.getRootPath()+'/pda/delHaveSubDetail.action',
  25. method: 'POST',
  26. params: {
  27. }
  28. }
  29. });
  30. }]).factory('PurcOrderItem',['$resource','BaseService', function($resource,BaseService) {
  31. return $resource('pda/orders/items', {}, {
  32. saveBarcode: {
  33. url: BaseService.getRootPath()+'/pda/saveBarcode.action',
  34. method: 'POST',
  35. params: {
  36. }
  37. }, checkMakeSerial: {
  38. url: BaseService.getRootPath()+'/pda/checkMakeSerial.action',
  39. method: 'POST',
  40. params: {
  41. }
  42. },getPackageCode: {
  43. url: BaseService.getRootPath()+'/pda/getPackageCode.action',
  44. method: 'POST',
  45. params: {
  46. }
  47. }
  48. });
  49. }]).factory('OutOper',['$resource','BaseService',function($resource,BaseService){
  50. return $resource(BaseService.getRootPath()+'/pda/getProdOutData.action', {}, {
  51. checkSerialqty: {
  52. headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
  53. url: BaseService.getRootPath()+'/pda/checkSerialqty.action',
  54. method: 'POST',
  55. params: {
  56. }
  57. },saveOutBarcode: {
  58. url: BaseService.getRootPath()+'/pda/saveOutBarcode.action',
  59. method: 'POST',
  60. params: {
  61. }
  62. }, checkOutbox: {
  63. url: BaseService.getRootPath()+'/pda/out/checkOutbox.action',
  64. method: 'POST',
  65. params: {
  66. }
  67. },checkOutqty:{
  68. url: BaseService.getRootPath()+'/pda/checkOutqty.action',
  69. method: 'POST',
  70. params: {
  71. }
  72. },checkOutBoxqty:{
  73. url: BaseService.getRootPath()+'/pda/CheckOutBoxqty.action',
  74. method: 'POST',
  75. params: {
  76. }
  77. }
  78. });
  79. }]).factory('CountingOper',['$resource','BaseService',function($resource,BaseService){
  80. return $resource(BaseService.getRootPath()+'/pda/counting/getCountingData.action', {}, {
  81. getBarData:{
  82. url: BaseService.getRootPath()+'/pda/counting/getBarData.action',
  83. method: 'GET',
  84. params: {
  85. }
  86. },
  87. saveBarcode:{
  88. url: BaseService.getRootPath()+'/pda/counting/saveBarcode.action',
  89. method: 'POST',
  90. params: {
  91. }
  92. } ,
  93. serialSearch:{
  94. url: BaseService.getRootPath()+'/pda/counting/serialSearch.action',
  95. method: 'GET',
  96. params: {
  97. }
  98. },
  99. outboxSearch:{
  100. url: BaseService.getRootPath()+'/pda/counting/outboxSearch.action',
  101. method: 'GET',
  102. params: {
  103. }
  104. }
  105. });
  106. }]).factory('CheckOper',['$resource','BaseService',function($resource,BaseService){
  107. return $resource(BaseService.getRootPath()+'/pda/check/makeMaterialCheck.action',{},{
  108. checkMM:{
  109. url: BaseService.getRootPath()+'/pda/check/makeMaterialCheck.action',
  110. method: 'GET',
  111. params: {
  112. }
  113. },
  114. checkMMDetail:{
  115. url: BaseService.getRootPath()+'/pda/check/makeMaterialDetail.action',
  116. method: 'GET',
  117. params: {
  118. }
  119. },
  120. checkBarcode:{
  121. url: BaseService.getRootPath()+'/pda/check/barcodeCheck.action',
  122. method: 'GET',
  123. params: {
  124. }
  125. },
  126. checkPackage:{
  127. url: BaseService.getRootPath()+'/pda/check/packageCheck.action',
  128. method: 'GET',
  129. params: {
  130. }
  131. },
  132. checkMakeFin:{
  133. url: BaseService.getRootPath()+'/pda/check/makeFinishCheck.action',
  134. method: 'GET',
  135. params: {
  136. }
  137. },
  138. checkOrderFin:{
  139. url: BaseService.getRootPath()+'/pda/check/orderFinishCheck.action',
  140. method: 'GET',
  141. params: {
  142. }
  143. },
  144. checkPO:{
  145. url: BaseService.getRootPath()+'/pda/check/checkPO.action',
  146. method: 'GET',
  147. params: {
  148. }
  149. }
  150. });
  151. }]).factory('LocaTransOper',['$resource','BaseService',function($resource,BaseService){
  152. return $resource(BaseService.getRootPath()+'/pda/transfer/getCodeData.action', {}, {
  153. locaTransfer:{
  154. url: BaseService.getRootPath()+'/pda/transfer/locaTransfer.action',
  155. method: 'POST',
  156. params: {
  157. }
  158. }
  159. });
  160. }]).factory('BatchOper',['$resource','BaseService',function($resource,BaseService){
  161. return $resource(BaseService.getRootPath()+'/pda/batch/getBarcodeData.action', {}, {
  162. breakingBatch:{
  163. url: BaseService.getRootPath()+'/pda/batch/breakingBatch.action',
  164. method: 'POST',
  165. params: {
  166. }
  167. },
  168. combineBatch:{
  169. url: BaseService.getRootPath()+'/pda/batch/combineBatch.action',
  170. method: 'POST',
  171. params: {
  172. }
  173. },
  174. searchPackageData:{
  175. url: BaseService.getRootPath()+'/pda/batch/searchPackageData.action',
  176. method: 'GET',
  177. params: {
  178. }
  179. },
  180. breakingPackage:{
  181. url: BaseService.getRootPath()+'/pda/batch/breakingPackage.action',
  182. method: 'POST',
  183. params: {
  184. }
  185. },
  186. getOutboxCode:{
  187. url: BaseService.getRootPath()+'/pda/batch/getOutboxCode.action',
  188. method: 'GET',
  189. params: {
  190. }
  191. }
  192. });
  193. }]).factory('Print',['$resource','BaseService',function($resource,BaseService){
  194. return $resource(BaseService.getRootPath()+'/pda/print/labelPrint.action', {}, {
  195. setDefaultPrint:{
  196. url: BaseService.getRootPath()+'/pda/print/setDefaultPrint.action',
  197. method: 'POST',
  198. params: {
  199. }
  200. },
  201. getDefaultPrint:{
  202. url: BaseService.getRootPath()+'/pda/print/getDefaultPrint.action',
  203. method: 'POST',
  204. params: {
  205. }
  206. }
  207. })
  208. }]);
  209. })