|
@@ -18,6 +18,12 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
18
|
18
|
"sum":10,
|
19
|
19
|
"consumable":{}
|
20
|
20
|
}
|
|
21
|
+ //新增
|
|
22
|
+ $scope.addData = function(){
|
|
23
|
+ $rootScope.hc_eject_big = true; //编辑弹出框
|
|
24
|
+ $rootScope.hc_eject_sma = true; //编辑弹出框
|
|
25
|
+ $rootScope.hc_toedit = "new_after";
|
|
26
|
+ }
|
21
|
27
|
// 监听下拉框搜索
|
22
|
28
|
$scope.$watch('select_val.search_data', function(val) {
|
23
|
29
|
// if (val == undefined) {
|
|
@@ -413,6 +419,35 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
413
|
419
|
'<div class="ui-grid-cell-contents">{{row.entity.specification}}</div>' +
|
414
|
420
|
'</div>'
|
415
|
421
|
},
|
|
422
|
+
|
|
423
|
+ {
|
|
424
|
+ name: 'price',
|
|
425
|
+ displayName: '费用区间',
|
|
426
|
+ width: '12%',
|
|
427
|
+ minWidth: '120',
|
|
428
|
+ cellTemplate: '<div>' +
|
|
429
|
+ '<div class="ui-grid-cell-contents">{{row.entity.start_price}}-{{row.entity.end_price}}</div>' +
|
|
430
|
+ '</div>'
|
|
431
|
+ },
|
|
432
|
+
|
|
433
|
+ {
|
|
434
|
+ name: 'company_ids',
|
|
435
|
+ displayName: '供货公司',
|
|
436
|
+ width: '14%',
|
|
437
|
+ minWidth: '120',
|
|
438
|
+ cellTemplate: '<div>' +
|
|
439
|
+ '<div class="ui-grid-cell-contents">{{row.entity.company_ids}}</div>' +
|
|
440
|
+ '</div>'
|
|
441
|
+ },
|
|
442
|
+ {
|
|
443
|
+ name: 'is_inventory',
|
|
444
|
+ displayName: '是否库存',
|
|
445
|
+ width: '14%',
|
|
446
|
+ minWidth: '120',
|
|
447
|
+ cellTemplate: '<div>' +
|
|
448
|
+ '<div class="ui-grid-cell-contents">{{row.entity.is_inventory}}</div>' +
|
|
449
|
+ '</div>'
|
|
450
|
+ },
|
416
|
451
|
{
|
417
|
452
|
name: 'inventoryNum',
|
418
|
453
|
displayName: '在库数量',
|
|
@@ -771,6 +806,7 @@ app.controller('hc_consumablesCtrl', ["$scope", "$http", "i18nService", "$rootSc
|
771
|
806
|
$interval.cancel($scope.timer)
|
772
|
807
|
});
|
773
|
808
|
}]);
|
|
809
|
+
|
774
|
810
|
//操作按钮权限控制
|
775
|
811
|
app.controller('hc_caozuoCtrl', ['$rootScope', '$http', '$scope', '$modal', '$state', function($rootScope, $http, $scope, $modal, $state) {
|
776
|
812
|
// 编辑按钮
|