Commit d47d5e44 authored by chase's avatar chase

fix bug

parent 9d2c06f1
...@@ -1658,11 +1658,15 @@ taxDocumentManageModule.directive('tempModule', function () { ...@@ -1658,11 +1658,15 @@ taxDocumentManageModule.directive('tempModule', function () {
} }
}); });
taxDocumentListService.getCompanyNameOptions().then(function (data) { taxDocumentListService.getCompanyNameOptions().then(function(res){
// console.log(data); if (res && 0 === res.code) {
if (data) { angular.forEach(res.data, function (item) {
$scope.companyNameOptionsMap = data; $scope.companyNameOptionsMap[item.id]=item.name;
});
} else {
SweetAlert.error($translate.instant('RevenueGetOrgError'));
} }
}); });
}; };
//加载可用的档案属性 //加载可用的档案属性
...@@ -1704,11 +1708,15 @@ taxDocumentManageModule.directive('tempModule', function () { ...@@ -1704,11 +1708,15 @@ taxDocumentManageModule.directive('tempModule', function () {
} }
}); });
taxDocumentListService.getCompanyNameOptions().then(function (data) { taxDocumentListService.getCompanyNameOptions().then(function(res){
// console.log(data); if (res && 0 === res.code) {
if (data) { angular.forEach(res.data, function (item) {
$scope.companyNameOptionsMap = data; $scope.companyNameOptionsMap[item.id]=item.name;
});
} else {
SweetAlert.error($translate.instant('RevenueGetOrgError'));
} }
}); });
}; };
$scope.loadSelectMap(); $scope.loadSelectMap();
......
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