Purc.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  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. getBarIoCheck :{
  30. url: BaseService.getRootPath()+'/pda/getBarIoCheck.action',
  31. method: 'POST',
  32. params: {
  33. }
  34. },
  35. updateBarIoQty:{
  36. url: BaseService.getRootPath()+'/pda/updateBarIoQty.action',
  37. method: 'POST',
  38. params: {
  39. }
  40. },
  41. getBarIoBoxCheck:{
  42. url: BaseService.getRootPath()+'/pda/getBarIoBoxCheck.action',
  43. method: 'POST',
  44. params: {
  45. }
  46. },
  47. getDescription:{//获取是否显示储位
  48. url: BaseService.getRootPath()+'/pm/bom/getDescription.action',
  49. method: 'POST',
  50. params: {
  51. }
  52. }
  53. });
  54. }]).factory('PurcOrderItem',['$resource','BaseService', function($resource,BaseService) {
  55. return $resource('pda/orders/items', {}, {
  56. saveBarcode: {
  57. url: BaseService.getRootPath()+'/pda/saveBarcode.action',
  58. method: 'POST',
  59. params: {
  60. }
  61. }, checkMakeSerial: {
  62. url: BaseService.getRootPath()+'/pda/checkMakeSerial.action',
  63. method: 'POST',
  64. params: {
  65. }
  66. },getPackageCode: {
  67. url: BaseService.getRootPath()+'/pda/getPackageCode.action',
  68. method: 'POST',
  69. params: {
  70. }
  71. }
  72. });
  73. }]).factory('OutOper',['$resource','BaseService',function($resource,BaseService){
  74. return $resource(BaseService.getRootPath()+'/pda/out/getProdOutData.action', {}, {
  75. checkSerialqty: {
  76. url: BaseService.getRootPath()+'/pda/out/checkSerialqty.action',
  77. method: 'POST',
  78. params: {
  79. }
  80. },saveOutBarcode: {
  81. url: BaseService.getRootPath()+'/pda/out/saveOutBarcode.action',
  82. method: 'POST',
  83. params: {
  84. }
  85. }, checkOutbox: {
  86. url: BaseService.getRootPath()+'/pda/out/checkOutbox.action',
  87. method: 'POST',
  88. params: {
  89. }
  90. },checkOutqty:{
  91. url: BaseService.getRootPath()+'/pda/out/checkOutqty.action',
  92. method: 'POST',
  93. params: {
  94. }
  95. },
  96. loadMSDLog:{
  97. url: BaseService.getRootPath()+'/pda/out/loadMSDLog.action',
  98. method: 'GET',
  99. params: {
  100. }
  101. },
  102. ifNeedBatch:{
  103. url: BaseService.getRootPath()+'/pda/out/ifNeedBatch.action',
  104. method: 'POST',
  105. params: {
  106. }
  107. }
  108. });
  109. }]).factory('CountingOper',['$resource','BaseService',function($resource,BaseService){
  110. return $resource(BaseService.getRootPath()+'/pda/counting/getCountingData.action', {}, {
  111. getBarData:{
  112. url: BaseService.getRootPath()+'/pda/counting/getBarData.action',
  113. method: 'GET',
  114. params: {
  115. }
  116. },
  117. saveBarcode:{
  118. url: BaseService.getRootPath()+'/pda/counting/saveBarcode.action',
  119. method: 'POST',
  120. params: {
  121. }
  122. } ,
  123. serialSearch:{
  124. url: BaseService.getRootPath()+'/pda/counting/serialSearch.action',
  125. method: 'GET',
  126. params: {
  127. }
  128. },
  129. outboxSearch:{
  130. url: BaseService.getRootPath()+'/pda/counting/outboxSearch.action',
  131. method: 'GET',
  132. params: {
  133. }
  134. }
  135. });
  136. }]).factory('CheckOper',['$resource','BaseService',function($resource,BaseService){
  137. return $resource(BaseService.getRootPath()+'/pda/check/makeMaterialCheck.action',{},{
  138. checkMM:{
  139. url: BaseService.getRootPath()+'/pda/check/makeMaterialCheck.action',
  140. method: 'GET',
  141. params: {
  142. }
  143. },
  144. checkMMDetail:{
  145. url: BaseService.getRootPath()+'/pda/check/makeMaterialDetail.action',
  146. method: 'GET',
  147. params: {
  148. }
  149. },
  150. checkBarcode:{
  151. url: BaseService.getRootPath()+'/pda/check/barcodeCheck.action',
  152. method: 'GET',
  153. params: {
  154. }
  155. },
  156. checkPackage:{
  157. url: BaseService.getRootPath()+'/pda/check/packageCheck.action',
  158. method: 'GET',
  159. params: {
  160. }
  161. },
  162. checkMakeFin:{
  163. url: BaseService.getRootPath()+'/pda/check/makeFinishCheck.action',
  164. method: 'GET',
  165. params: {
  166. }
  167. },
  168. checkOrderFin:{
  169. url: BaseService.getRootPath()+'/pda/check/orderFinishCheck.action',
  170. method: 'GET',
  171. params: {
  172. }
  173. },
  174. checkPO:{
  175. url: BaseService.getRootPath()+'/pda/check/checkPO.action',
  176. method: 'GET',
  177. params: {
  178. }
  179. }
  180. });
  181. }]).factory('LocaTransOper',['$resource','BaseService',function($resource,BaseService){
  182. return $resource(BaseService.getRootPath()+'/pda/transfer/getCodeData.action', {}, {
  183. locaTransfer:{
  184. url: BaseService.getRootPath()+'/pda/transfer/locaTransfer.action',
  185. method: 'POST',
  186. params: {
  187. }
  188. }
  189. });
  190. }]).factory('BatchOper',['$resource','BaseService',function($resource,BaseService){
  191. return $resource(BaseService.getRootPath()+'/pda/batch/getBarcodeData.action', {}, {
  192. breakingBatch:{
  193. url: BaseService.getRootPath()+'/pda/batch/breakingBatch.action',
  194. method: 'POST',
  195. params: {
  196. }
  197. },
  198. combineBatch:{
  199. url: BaseService.getRootPath()+'/pda/batch/combineBatch.action',
  200. method: 'POST',
  201. params: {
  202. }
  203. },
  204. searchPackageData:{
  205. url: BaseService.getRootPath()+'/pda/batch/searchPackageData.action',
  206. method: 'GET',
  207. params: {
  208. }
  209. },
  210. breakingPackage:{
  211. url: BaseService.getRootPath()+'/pda/batch/breakingPackage.action',
  212. method: 'POST',
  213. params: {
  214. }
  215. },
  216. getOutboxCode:{
  217. url: BaseService.getRootPath()+'/pda/batch/getOutboxCode.action',
  218. method: 'GET',
  219. params: {
  220. }
  221. }
  222. });
  223. }]).factory('Print',['$resource','BaseService',function($resource,BaseService){
  224. return $resource(BaseService.getRootPath()+'/pda/print/labelPrint.action', {}, {
  225. setDefaultPrint:{
  226. url: BaseService.getRootPath()+'/pda/print/setDefaultPrint.action',
  227. method: 'POST',
  228. params: {
  229. }
  230. },
  231. getDefaultPrint:{
  232. url: BaseService.getRootPath()+'/pda/print/getDefaultPrint.action',
  233. method: 'POST',
  234. params: {
  235. }
  236. }
  237. })
  238. }]).factory('ShopFloorManageOper',['$resource','BaseService',function($resource,BaseService){
  239. return $resource(BaseService.getRootPath()+'/pda/shopFloorManage/getMakeData.action', {}, {
  240. checkCode:{
  241. url: BaseService.getRootPath()+'/pda/shopFloorManage/checkCode.action',
  242. method: 'POST',
  243. headers:{'Content-Type': 'application/x-www-form-urlencoded'},
  244. transformRequest:[function(obj) {
  245. var str = [];
  246. for(var p in obj){
  247. str.push(encodeURIComponent(p) + "=" + encodeURIComponent(obj[p]));
  248. }
  249. return str.join("&");
  250. }],
  251. params: {
  252. }
  253. },
  254. getCollectDetailData:{
  255. url: BaseService.getRootPath()+'/pda/shopFloorManage/getCollectDetailData.action',
  256. method: 'POST',
  257. params: {
  258. }
  259. } ,
  260. getBarRemain:{
  261. url: BaseService.getRootPath()+'/pda/shopFloorManage/getBarRemain.action',
  262. method: 'POST',
  263. params: {
  264. }
  265. },
  266. loading:{
  267. url: BaseService.getRootPath()+'/pda/shopFloorManage/loading.action',
  268. method: 'POST',
  269. headers:{'Content-Type': 'application/x-www-form-urlencoded'},
  270. transformRequest:[function(obj) {
  271. var str = [];
  272. for(var p in obj){
  273. str.push(encodeURIComponent(p) + "=" +angular.toJson(obj[p]));
  274. }
  275. return str.join("&");
  276. }],
  277. params: {
  278. }
  279. },
  280. cuttingStock:{
  281. url: BaseService.getRootPath()+'/pda/shopFloorManage/cuttingStock.action',
  282. method: 'POST',
  283. method: 'POST',
  284. params: {
  285. }
  286. },
  287. cuttingAllStock:{
  288. url: BaseService.getRootPath()+'/pda/shopFloorManage/cuttingAllStock.action',
  289. headers:{'Content-Type': 'application/x-www-form-urlencoded'},
  290. transformRequest:[function(obj) {
  291. var str = [];
  292. for(var p in obj){
  293. str.push(encodeURIComponent(p) + "=" +angular.toJson(obj[p]));
  294. }
  295. return str.join("&");
  296. }],
  297. method: 'POST',
  298. params: {
  299. }
  300. },
  301. joinMaterial:{
  302. url: BaseService.getRootPath()+'/pda/shopFloorManage/joinMaterial.action',
  303. method: 'POST',
  304. params: {
  305. }
  306. },
  307. changeMaterial:{
  308. url: BaseService.getRootPath()+'/pda/shopFloorManage/changeMaterial.action',
  309. method: 'POST',
  310. params: {
  311. }
  312. },
  313. queryData :{
  314. url: BaseService.getRootPath()+'/pda/shopFloorManage/queryData.action',
  315. method: 'GET',
  316. params: {
  317. }
  318. },
  319. checkMakeSMTLocation:{
  320. url: BaseService.getRootPath()+'/pda/shopFloorManage/checkMakeSMTLocation.action',
  321. method: 'GET',
  322. params: {
  323. }
  324. },
  325. updateChecked:{
  326. url: BaseService.getRootPath()+'/pda/shopFloorManage/updateChecked.action',
  327. method: 'POST',
  328. params: {
  329. }
  330. },
  331. importMPData:{
  332. url: BaseService.getRootPath()+'/pda/shopFloorManage/importMPData.action',
  333. method: 'POST',
  334. params: {
  335. }
  336. }
  337. })
  338. }]).factory('FeederOper',['$resource','BaseService',function($resource,BaseService){
  339. return $resource(BaseService.getRootPath()+'/pda/shopFloorManage/searchMa.action', {}, {
  340. feederMakeQuery:{
  341. url: BaseService.getRootPath()+'/pda/shopFloorManage/feederMakeQuery.action',
  342. method: 'POST',
  343. params: {
  344. }
  345. },
  346. feederGet :{
  347. url: BaseService.getRootPath()+'/pda/shopFloorManage/feederGet.action',
  348. method: 'POST',
  349. params: {
  350. }
  351. },
  352. feederBack :{
  353. url: BaseService.getRootPath()+'/pda/shopFloorManage/feederBack.action',
  354. method: 'POST',
  355. params: {
  356. }
  357. },
  358. feederUsedlist:{
  359. url: BaseService.getRootPath()+'/pda/shopFloorManage/feederUsedlist.action',
  360. method: 'POST',
  361. params: {
  362. }
  363. },
  364. feederBackAll:{
  365. url: BaseService.getRootPath()+'/pda/shopFloorManage/feederBackAll.action',
  366. method: 'POST',
  367. params: {
  368. }
  369. }
  370. })
  371. }]).factory('MakePrepareOper',['$resource','BaseService',function($resource,BaseService){
  372. return $resource(BaseService.getRootPath()+'/pda/shopFloorManage/searchMp.action', {}, {
  373. barGet :{
  374. url: BaseService.getRootPath()+'/pda/shopFloorManage/barGet.action',
  375. method: 'POST',
  376. params: {
  377. }
  378. },
  379. barBack :{
  380. url: BaseService.getRootPath()+'/pda/shopFloorManage/barBack.action',
  381. method: 'POST',
  382. params: {
  383. }
  384. },
  385. barcodeList:{
  386. url: BaseService.getRootPath()+'/pda/shopFloorManage/barcodeList.action',
  387. method: 'POST',
  388. params: {
  389. }
  390. },
  391. needPreparedList:{
  392. url: BaseService.getRootPath()+'/pda/shopFloorManage/needPreparedList.action',
  393. method: 'POST',
  394. params: {
  395. }
  396. },
  397. getMpcodeList:{
  398. url: BaseService.getRootPath()+'/pda/shopFloorManage/getMpcodeList.action',
  399. method: 'GET',
  400. params: {
  401. }
  402. },
  403. preparedFeederList:{
  404. url: BaseService.getRootPath()+'/pda/shopFloorManage/preparedFeederList.action',
  405. method: 'POST',
  406. params: {
  407. }
  408. },
  409. feederGet:{
  410. url: BaseService.getRootPath()+'/pda/shopFloorManage/makePrepareFeederGet.action',
  411. method: 'POST',
  412. params: {
  413. }
  414. },
  415. feederBack:{
  416. url: BaseService.getRootPath()+'/pda/shopFloorManage/makePrepareFeederBack.action',
  417. method: 'POST',
  418. params: {
  419. }
  420. }
  421. })
  422. }]).factory('MsdOper',['$resource','BaseService',function($resource,BaseService){
  423. return $resource(BaseService.getRootPath()+'/pda/msd/getLog.action', {}, {
  424. confirmInOven:{
  425. url: BaseService.getRootPath()+'/pda/msd/confirmInOven.action',
  426. method: 'POST',
  427. params: {
  428. }
  429. },
  430. getOvenTime:{
  431. url: BaseService.getRootPath()+'/pda/msd/getOvenTime.action',
  432. method: 'GET',
  433. params: {
  434. }
  435. },
  436. confirmOutOven:{
  437. url: BaseService.getRootPath()+'/pda/msd/confirmOutOven.action',
  438. method: 'POST',
  439. params: {
  440. }
  441. }
  442. })
  443. }]).factory('TailingBackOper',['$resource','BaseService',function($resource,BaseService){
  444. return $resource(BaseService.getRootPath()+'/pda/mes/getForcastRemain.action', {}, {
  445. tailingBack:{
  446. url: BaseService.getRootPath()+'/pda/mes/tailingBack.action',
  447. method: 'POST',
  448. params: {
  449. }
  450. }
  451. })
  452. }]);
  453. })