Commit 478680d1 authored by chase's avatar chase

fix bug

parent 885a43f0
......@@ -1940,6 +1940,20 @@ taxDocumentManageModule.directive('tempModule', function () {
$scope.fileAttrEnableOptions = [];
$scope.curFileTypeOptions = [];
$scope.companyNameOptionsMap = [];
$scope.loadCompanyNameMap = function(){
taxDocumentListService.getCompanyNameOptions().then(function (res) {
if (res && 0 === res.code) {
angular.forEach(res.data, function (item) {
$scope.companyNameOptionsMap.push({'key': item.abbreviation, 'val': item.id});
// $scope.companyNameOptionsMap[item.id] = item.abbreviation;
});
} else {
SweetAlert.error($translate.instant('RevenueGetOrgError'));
}
});
}
$scope.loadSelectMap = function () {
taxDocumentListService.getFileInfoOptions().then(function (data) {
// console.log(data);
......@@ -1978,17 +1992,6 @@ taxDocumentManageModule.directive('tempModule', function () {
}
});
taxDocumentListService.getCompanyNameOptions().then(function (res) {
if (res && 0 === res.code) {
angular.forEach(res.data, function (item) {
$scope.companyNameOptionsMap.push({'key': item.abbreviation, 'val': item.id});
// $scope.companyNameOptionsMap[item.id] = item.abbreviation;
});
} else {
SweetAlert.error($translate.instant('RevenueGetOrgError'));
}
});
};
//加载可用的档案属性
$scope.loadSelectEnableMap = function () {
......@@ -2029,20 +2032,10 @@ taxDocumentManageModule.directive('tempModule', function () {
}
});
taxDocumentListService.getCompanyNameOptions().then(function (res) {
if (res && 0 === res.code) {
angular.forEach(res.data, function (item) {
$scope.companyNameOptionsMap.push({'key': item.abbreviation, 'val': item.id});
// $scope.companyNameOptionsMap[item.id] = item.abbreviation;
});
} else {
SweetAlert.error($translate.instant('RevenueGetOrgError'));
}
});
};
$scope.loadSelectMap();
$scope.loadSelectEnableMap();
$scope.loadCompanyNameMap();
$scope.businessLineOptions = [];
$scope.loadBusinessList = function () {
taxDocumentListService.getBusinessList().then(function (resData) {
......
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