|
@@ -175,8 +175,7 @@ define([ 'app/app' ], function(app) {
|
|
|
|
|
|
|
|
Goods.getAllCmp({}, function (data) {
|
|
Goods.getAllCmp({}, function (data) {
|
|
|
angular.forEach(data, function(value) {
|
|
angular.forEach(data, function(value) {
|
|
|
- switch(value.item)
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ switch(value.item) {
|
|
|
case '规格书':
|
|
case '规格书':
|
|
|
$scope.start1 = value.count;
|
|
$scope.start1 = value.count;
|
|
|
break;
|
|
break;
|
|
@@ -271,9 +270,9 @@ define([ 'app/app' ], function(app) {
|
|
|
$scope.start31 = value.count;
|
|
$scope.start31 = value.count;
|
|
|
break;
|
|
break;
|
|
|
default:
|
|
default:
|
|
|
- $scope.default = 0
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ $scope.default = 0;
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
}, function(res) {
|
|
}, function(res) {
|
|
|
toaster.pop('error', '提示', '获取数据失败,请刷新页面')
|
|
toaster.pop('error', '提示', '获取数据失败,请刷新页面')
|
|
|
})
|
|
})
|