|
|
@@ -15302,7 +15302,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
/**
|
|
|
* 采购物料资料
|
|
|
*/
|
|
|
- app.controller('PurcProductCtrl', ['$scope', 'PurcProduct', 'ngTableParams', '$filter', 'BaseService', 'toaster', '$timeout', function($scope, PurcProduct, ngTableParams, $filter, BaseService, toaster, $timeout) {
|
|
|
+ app.controller('PurcProductCtrl', ['$scope', 'PurcProduct', 'ngTableParams', '$filter', 'BaseService', 'toaster', '$timeout', 'Products', function($scope, PurcProduct, ngTableParams, $filter, BaseService, toaster, $timeout, Products) {
|
|
|
BaseService.scrollBackToTop();
|
|
|
$scope.active = 'all';
|
|
|
$scope.agreedText = '全部';
|
|
|
@@ -15386,7 +15386,8 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 一键开启关闭
|
|
|
$scope.toggle = function(status) {
|
|
|
- PurcProduct.toggle({status: status}, {}, function(data) {
|
|
|
+ console.log(status);
|
|
|
+ Products.toggle({status: status}, {}, function(data) {
|
|
|
toaster.pop('success', '提示', '操作成功');
|
|
|
$scope.tableParams.reload();
|
|
|
}, function(response) {
|