|
|
@@ -891,7 +891,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
// endDate: getDateTime($scope.condition.dateTo)
|
|
|
};
|
|
|
// AccountEnterprise.get({}, function(data){
|
|
|
- // $scope.loading = false;
|
|
|
// $scope.currentEn = data;
|
|
|
// });
|
|
|
getService()[getState($scope.active)].call(null, BaseService.parseParams(pageParams), function (page) {
|
|
|
@@ -4777,7 +4776,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
endDate: getDateTime($scope.condition.dateTo)
|
|
|
};
|
|
|
// AccountEnterprise.get({}, function(data){
|
|
|
-// $scope.loading = false;
|
|
|
// $scope.currentEn = data;
|
|
|
// });
|
|
|
PurchaseInquiry.publicInquiryItem.call(null, BaseService.parseParams(pageParams), function (page) {
|
|
|
@@ -4831,7 +4829,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 当前企业
|
|
|
AccountEnterprise.get({}, function (data) {
|
|
|
- $scope.loading = false;
|
|
|
$scope.enterprise = data;
|
|
|
});
|
|
|
|
|
|
@@ -17494,16 +17491,17 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
};
|
|
|
|
|
|
var getService = function () {
|
|
|
- return PurcTender;
|
|
|
+ if ($scope.searchStatus) {
|
|
|
+ return PurcTender;
|
|
|
+ }
|
|
|
+ return PurcTenderInfo;
|
|
|
};
|
|
|
|
|
|
$scope.tableParams = new ngTableParams({
|
|
|
page: 1,
|
|
|
count: 20,
|
|
|
sorting: {
|
|
|
- 'tender.endDate': 'desc',
|
|
|
- 'tender.enterprise.enName': 'asc',
|
|
|
- 'tender.code': 'asc'
|
|
|
+ 'id': 'desc'
|
|
|
}
|
|
|
}, {
|
|
|
total: 0,
|
|
|
@@ -17519,7 +17517,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
endDate: getDateTime($scope.condition.dateTo)
|
|
|
};
|
|
|
AccountEnterprise.get({}, function (data) {
|
|
|
- $scope.loading = false;
|
|
|
$scope.currentEn = data;
|
|
|
});
|
|
|
getService()[getState($scope.active)].call(null, BaseService.parseParams(pageParams), function (page) {
|
|
|
@@ -17615,6 +17612,7 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
// 搜索框回车
|
|
|
$scope.onSearch = function () {
|
|
|
+ $scope.searchStatus = true;
|
|
|
$scope.tableParams.page(1);
|
|
|
$scope.tableParams.reload();
|
|
|
};
|
|
|
@@ -17741,7 +17739,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
endDate: getDateTime($scope.condition.dateTo)
|
|
|
};
|
|
|
AccountEnterprise.get({}, function (data) {
|
|
|
- $scope.loading = false;
|
|
|
$scope.currentEn = data;
|
|
|
});
|
|
|
PurcTender[getOpenState($scope.active)].call(null, BaseService.parseParams(pageParams), function (page) {
|
|
|
@@ -19676,7 +19673,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
var loadAccount = function () {
|
|
|
AccountEnterprise.get({}, function (data) {
|
|
|
- $scope.loading = false;
|
|
|
$scope.enterprise = data;
|
|
|
$scope.purcStatus = $scope.enterprise.prodpurc;
|
|
|
});
|