Commit 56feda01 authored by frank.xa.zhang's avatar frank.xa.zhang

fixed admin report config issue

parent 5cb80ae3
...@@ -2172,8 +2172,8 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>'); ...@@ -2172,8 +2172,8 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>');
var tabs = [ var tabs = [
{id: 0, text: $translate.instant('AutoCalculateTab')}, {id: 0, text: $translate.instant('AutoCalculateTab')},
{id: 1, text: $translate.instant('ManualInputTab')}, {id: 1, text: $translate.instant('ManualInputTab')},
{id: 2, text: $translate.instant('ModelTab')}, // {id: 2, text: $translate.instant('ModelTab')},
{id: 3, text: $translate.instant('ValidationTab')} {id: 2, text: $translate.instant('ValidationTab')}
]; ];
$scope.tabOptions = { $scope.tabOptions = {
dataSource: tabs, dataSource: tabs,
......
...@@ -19,9 +19,17 @@ ...@@ -19,9 +19,17 @@
return item.isDefault === 1; return item.isDefault === 1;
}))[0]; }))[0];
if($scope.defaultTaxPayerReportMapping){
$scope.defaultTaxPayerReportMapping.templateGroupID = $scope.defaultTaxPayerReportMapping.templateGroupID.toString();
}
$scope.taxPayerReportMappingExceptions = taxPayerReportMappings.filter(function (item) { $scope.taxPayerReportMappingExceptions = taxPayerReportMappings.filter(function (item) {
return item.isDefault !== 1; return item.isDefault !== 1;
}); });
$scope.taxPayerReportMappingExceptions.forEach(function (value) {
value.templateGroupID = value.templateGroupID.toString();
})
}); });
......
...@@ -2172,8 +2172,8 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>'); ...@@ -2172,8 +2172,8 @@ ng-show="hasEditPermission && ToggleSaveAs && editModel.hasModel"/>');
var tabs = [ var tabs = [
{id: 0, text: $translate.instant('AutoCalculateTab')}, {id: 0, text: $translate.instant('AutoCalculateTab')},
{id: 1, text: $translate.instant('ManualInputTab')}, {id: 1, text: $translate.instant('ManualInputTab')},
{id: 2, text: $translate.instant('ModelTab')}, // {id: 2, text: $translate.instant('ModelTab')},
{id: 3, text: $translate.instant('ValidationTab')} {id: 2, text: $translate.instant('ValidationTab')}
]; ];
$scope.tabOptions = { $scope.tabOptions = {
dataSource: tabs, dataSource: tabs,
...@@ -7267,9 +7267,17 @@ systemConfigurationModule.controller('ruleEngineeConfigController', ['$scope', ' ...@@ -7267,9 +7267,17 @@ systemConfigurationModule.controller('ruleEngineeConfigController', ['$scope', '
return item.isDefault === 1; return item.isDefault === 1;
}))[0]; }))[0];
if($scope.defaultTaxPayerReportMapping){
$scope.defaultTaxPayerReportMapping.templateGroupID = $scope.defaultTaxPayerReportMapping.templateGroupID.toString();
}
$scope.taxPayerReportMappingExceptions = taxPayerReportMappings.filter(function (item) { $scope.taxPayerReportMappingExceptions = taxPayerReportMappings.filter(function (item) {
return item.isDefault !== 1; return item.isDefault !== 1;
}); });
$scope.taxPayerReportMappingExceptions.forEach(function (value) {
value.templateGroupID = value.templateGroupID.toString();
})
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment