|
|
@@ -2539,6 +2539,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
// 平台新增的询价单
|
|
|
app.controller('PurcInquiryCtrl', ['$scope', 'PurchaseInquiry', 'toaster', 'BaseService', '$upload', '$filter', '$modal', '$rootScope', 'ngTableParams', 'GetProductInfo', '$timeout', function($scope, PurchaseInquiry, toaster, BaseService, $upload, $filter, $modal, $rootScope, ngTableParams, GetProductInfo, $timeout) {
|
|
|
BaseService.scrollBackToTop();
|
|
|
+ $scope.status = 'InquiryNew';
|
|
|
$scope.active = 'all';
|
|
|
var getService = function() {
|
|
|
return GetProductInfo;
|
|
|
@@ -2700,7 +2701,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
if(data.success) {
|
|
|
toaster.pop('success', '提示', data.success);
|
|
|
$timeout(function() {
|
|
|
- window.loaction.hash = "#/purc/purchaseinquiry";
|
|
|
+ window.location.hash = "#/purc/inquiry_unapply";
|
|
|
}, 500);
|
|
|
}
|
|
|
if(data.error) {
|
|
|
@@ -2714,7 +2715,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
|
|
|
// 平台询价单(已提交)
|
|
|
app.controller('PurchaseInquiryCtrl', ['$scope', '$filter', 'ngTableParams', 'toaster', 'BaseService', 'PurchaseInquiry', function($scope, $filter, ngTableParams, toaster, BaseService, PurchaseInquiry) {
|
|
|
-
|
|
|
+ $scope.status = 'InquirySubmit';
|
|
|
BaseService.scrollBackToTop();
|
|
|
$scope.active = 'todo';
|
|
|
$scope.agreedText = '全部';
|
|
|
@@ -2824,6 +2825,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
// 平台询价单(未提交)
|
|
|
app.controller('UnapplyInquiryCtrl', ['$scope', 'PurchaseInquiry', 'ngTableParams', 'BaseService', 'toaster', function($scope, PurchaseInquiry, ngTableParams, BaseService, toaster) {
|
|
|
BaseService.scrollBackToTop();
|
|
|
+ $scope.status = 'InquiryUnSubmit';
|
|
|
$scope.tableParams = new ngTableParams({
|
|
|
page : 1,
|
|
|
count : 5,
|
|
|
@@ -9137,6 +9139,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'service/Purc', 'ser
|
|
|
$scope.loading = false;
|
|
|
if(page) {
|
|
|
params.total(page.totalElements);
|
|
|
+ $scope.total = page.totalElement;
|
|
|
$defer.resolve(page.content);
|
|
|
}
|
|
|
$scope.totalCount = page.totalElements;
|