|
|
@@ -4266,8 +4266,9 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
|
|
|
// 主动报价 - 列表
|
|
|
- app.controller('SaleQuotationListCtrl', ['$scope', '$filter', 'Quotation', 'PurcInquiry', 'ngTableParams', 'toaster', 'BaseService', function($scope, $filter, Quotation, PurcInquiry, ngTableParams, toaster, BaseService){
|
|
|
+ app.controller('SaleQuotationListCtrl', ['$scope', '$filter', 'Quotation', 'PurcInquiry', 'ngTableParams', 'toaster', 'BaseService', '$rootScope', function($scope, $filter, Quotation, PurcInquiry, ngTableParams, toaster, BaseService, $rootScope){
|
|
|
BaseService.scrollBackToTop();
|
|
|
+ $rootScope.enteryStatus = false;
|
|
|
$scope.active = 'todo';
|
|
|
$scope.agreedText = '全部';
|
|
|
$scope.dateZoneText = '一个月内';
|
|
|
@@ -4348,6 +4349,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
|
|
|
if( ! angular.isUndefined($stateParams.id)) {// 查看模式
|
|
|
$scope.loading = true;
|
|
|
+ $rootScope.enteryStatus = true;
|
|
|
Quotation.getItem({id: $stateParams.id}, function(data){
|
|
|
data.$editing = false;
|
|
|
$scope.item = data;
|
|
|
@@ -4358,6 +4360,7 @@ define([ 'toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
toaster.pop('error', '数据加载失败', response.data);
|
|
|
});
|
|
|
} else {// 新增模式
|
|
|
+ $rootScope.enteryStatus = false;
|
|
|
$scope.item = {
|
|
|
quotation: {
|
|
|
currency: 'RMB',
|