|
|
@@ -1,6 +1,6 @@
|
|
|
define([ 'ngResource' ], function() {
|
|
|
angular.module('supplierServices', [ 'ngResource' ]).factory('SupplierAPI', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
- const rootPath = BaseService.getRootPath();
|
|
|
+ var rootPath = BaseService.getRootPath();
|
|
|
// 供应商
|
|
|
return $resource('api/produce/vendorlist', {}, {
|
|
|
/*
|
|
|
@@ -12,7 +12,7 @@ define([ 'ngResource' ], function() {
|
|
|
}
|
|
|
});
|
|
|
}]).factory('Supplier', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
- const rootPath = BaseService.getRootPath();
|
|
|
+ var rootPath = BaseService.getRootPath();
|
|
|
// 供应商
|
|
|
return $resource('produce/vendorlist', {}, {
|
|
|
/*
|
|
|
@@ -24,7 +24,7 @@ define([ 'ngResource' ], function() {
|
|
|
}
|
|
|
});
|
|
|
}]).factory('SupplierSubmit', ['$resource', 'BaseService', function($resource, BaseService) {
|
|
|
- const rootPath = BaseService.getRootPath();
|
|
|
+ var rootPath = BaseService.getRootPath();
|
|
|
// 供应商申请
|
|
|
return $resource('/produce/vendorSubmit', {}, {
|
|
|
/*
|