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: { } } }) }]); })