| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- define([ 'ngResource','common/services' ], function() {
- angular.module('PurcServices', [ 'ngResource' ,'common.services'
- ]).factory('PurcOrder',['$resource','BaseService', function($resource,BaseService) {
- return $resource(BaseService.getRootPath()+'/pda/getProdInData.action', {},{
- getWhcode : {
- url: BaseService.getRootPath()+'/pda/getWhcode.action',
- method: 'POST',
- params: {
- }
- },
- clearGet :{
- url: BaseService.getRootPath()+'/pda/clearGet.action',
- method: 'POST',
- params: {
- }
- },
- getHaveSubmitList:{
- url: BaseService.getRootPath()+'/pda/getHaveSubmitList.action',
- method: 'GET',
- params: {
- }
- },
- deleteDes :{
- url: BaseService.getRootPath()+'/pda/delHaveSubDetail.action',
- method: 'POST',
- params: {
- }
- }
-
- });
- }]).factory('PurcOrderItem',['$resource','BaseService', function($resource,BaseService) {
- return $resource('pda/orders/items', {}, {
- saveBarcode: {
- url: BaseService.getRootPath()+'/pda/saveBarcode.action',
- method: 'POST',
- params: {
- }
- }, checkMakeSerial: {
- url: BaseService.getRootPath()+'/pda/checkMakeSerial.action',
- method: 'POST',
- params: {
- }
- },getPackageCode: {
- url: BaseService.getRootPath()+'/pda/getPackageCode.action',
- method: 'POST',
- params: {
- }
- }
- });
- }]).factory('OutOper',['$resource','BaseService',function($resource,BaseService){
- return $resource(BaseService.getRootPath()+'/pda/getProdOutData.action', {}, {
- checkSerialqty: {
- headers: {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},
- url: BaseService.getRootPath()+'/pda/checkSerialqty.action',
- method: 'POST',
- params: {
- }
- },saveOutBarcode: {
- url: BaseService.getRootPath()+'/pda/saveOutBarcode.action',
- method: 'POST',
- params: {
- }
- }, checkOutbox: {
- url: BaseService.getRootPath()+'/pda/out/checkOutbox.action',
- method: 'POST',
- params: {
- }
- },checkOutqty:{
- url: BaseService.getRootPath()+'/pda/checkOutqty.action',
- method: 'POST',
- params: {
- }
- },checkOutBoxqty:{
- url: BaseService.getRootPath()+'/pda/CheckOutBoxqty.action',
- method: 'POST',
- params: {
- }
- }
- });
- }]).factory('CountingOper',['$resource','BaseService',function($resource,BaseService){
- return $resource(BaseService.getRootPath()+'/pda/counting/getCountingData.action', {}, {
- getBarData:{
- url: BaseService.getRootPath()+'/pda/counting/getBarData.action',
- method: 'GET',
- params: {
- }
- },
- saveBarcode:{
- url: BaseService.getRootPath()+'/pda/counting/saveBarcode.action',
- method: 'POST',
- params: {
- }
- } ,
- serialSearch:{
- url: BaseService.getRootPath()+'/pda/counting/serialSearch.action',
- method: 'GET',
- params: {
- }
- },
- outboxSearch:{
- url: BaseService.getRootPath()+'/pda/counting/outboxSearch.action',
- method: 'GET',
- params: {
- }
- }
- });
- }]).factory('CheckOper',['$resource','BaseService',function($resource,BaseService){
- return $resource(BaseService.getRootPath()+'/pda/check/makeMaterialCheck.action',{},{
- checkMM:{
- url: BaseService.getRootPath()+'/pda/check/makeMaterialCheck.action',
- method: 'GET',
- params: {
- }
- },
- checkMMDetail:{
- url: BaseService.getRootPath()+'/pda/check/makeMaterialDetail.action',
- method: 'GET',
- params: {
- }
- },
- checkBarcode:{
- url: BaseService.getRootPath()+'/pda/check/barcodeCheck.action',
- method: 'GET',
- params: {
- }
- },
- checkPackage:{
- url: BaseService.getRootPath()+'/pda/check/packageCheck.action',
- method: 'GET',
- params: {
- }
- },
- checkMakeFin:{
- url: BaseService.getRootPath()+'/pda/check/makeFinishCheck.action',
- method: 'GET',
- params: {
- }
- },
- checkOrderFin:{
- url: BaseService.getRootPath()+'/pda/check/orderFinishCheck.action',
- method: 'GET',
- params: {
- }
- },
- checkPO:{
- url: BaseService.getRootPath()+'/pda/check/checkPO.action',
- method: 'GET',
- params: {
- }
- }
- });
- }]).factory('LocaTransOper',['$resource','BaseService',function($resource,BaseService){
- return $resource(BaseService.getRootPath()+'/pda/transfer/getCodeData.action', {}, {
- locaTransfer:{
- url: BaseService.getRootPath()+'/pda/transfer/locaTransfer.action',
- method: 'POST',
- params: {
- }
- }
- });
- }]).factory('BatchOper',['$resource','BaseService',function($resource,BaseService){
- return $resource(BaseService.getRootPath()+'/pda/batch/getBarcodeData.action', {}, {
- breakingBatch:{
- url: BaseService.getRootPath()+'/pda/batch/breakingBatch.action',
- method: 'POST',
- params: {
- }
- },
- combineBatch:{
- url: BaseService.getRootPath()+'/pda/batch/combineBatch.action',
- method: 'POST',
- params: {
- }
- },
- searchPackageData:{
- url: BaseService.getRootPath()+'/pda/batch/searchPackageData.action',
- method: 'GET',
- params: {
- }
- },
- breakingPackage:{
- url: BaseService.getRootPath()+'/pda/batch/breakingPackage.action',
- method: 'POST',
- params: {
- }
- },
- getOutboxCode:{
- url: BaseService.getRootPath()+'/pda/batch/getOutboxCode.action',
- method: 'GET',
- params: {
- }
- }
-
- });
- }]).factory('Print',['$resource','BaseService',function($resource,BaseService){
- return $resource(BaseService.getRootPath()+'/pda/print/labelPrint.action', {}, {
- setDefaultPrint:{
- url: BaseService.getRootPath()+'/pda/print/setDefaultPrint.action',
- method: 'POST',
- params: {
- }
- },
- getDefaultPrint:{
- url: BaseService.getRootPath()+'/pda/print/getDefaultPrint.action',
- method: 'POST',
- params: {
- }
- }
- })
- }]);
- })
|