Commit 995a3328 authored by frank.xa.zhang's avatar frank.xa.zhang

fixed org -- frank

parent 0b72b7d9
package pwc.taxtech.atms.service.impl; package pwc.taxtech.atms.service.impl;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.BooleanUtils; import org.apache.commons.lang3.BooleanUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -14,44 +12,27 @@ import org.slf4j.Logger; ...@@ -14,44 +12,27 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.dao.DuplicateKeyException; import org.springframework.dao.DuplicateKeyException;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.interceptor.TransactionAspectSupport; import org.springframework.transaction.interceptor.TransactionAspectSupport;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import pwc.taxtech.atms.common.CommonConstants; import pwc.taxtech.atms.common.*;
import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.OperateLogType;
import pwc.taxtech.atms.common.OperationAction;
import pwc.taxtech.atms.common.OperationModule;
import pwc.taxtech.atms.common.ServiceTypeEnum;
import pwc.taxtech.atms.common.VatTaxPayerTypeEnum;
import pwc.taxtech.atms.common.message.EnterpriseAccountSetOrgMessage; import pwc.taxtech.atms.common.message.EnterpriseAccountSetOrgMessage;
import pwc.taxtech.atms.common.message.LogMessage; import pwc.taxtech.atms.common.message.LogMessage;
import pwc.taxtech.atms.common.message.OrganizationMessage; import pwc.taxtech.atms.common.message.OrganizationMessage;
import pwc.taxtech.atms.common.util.BeanUtil; import pwc.taxtech.atms.common.util.BeanUtil;
import pwc.taxtech.atms.common.util.HttpUtil; import pwc.taxtech.atms.constant.AreaConstant;
import pwc.taxtech.atms.constant.*; import pwc.taxtech.atms.constant.DimensionConstant;
import pwc.taxtech.atms.constant.LevelConstant;
import pwc.taxtech.atms.constant.OrganizationConstant;
import pwc.taxtech.atms.dao.*; import pwc.taxtech.atms.dao.*;
import pwc.taxtech.atms.dpo.*; import pwc.taxtech.atms.dpo.*;
import pwc.taxtech.atms.dpo.DimensionValueJoinDimensionDto;
import pwc.taxtech.atms.dpo.OrgBasicDto; import pwc.taxtech.atms.dpo.OrgBasicDto;
import pwc.taxtech.atms.dpo.OrgGeneralInfoMiddleDto; import pwc.taxtech.atms.dpo.OrgGeneralInfoMiddleDto;
import pwc.taxtech.atms.dpo.OrgInfoDto; import pwc.taxtech.atms.dpo.OrgInfoDto;
import pwc.taxtech.atms.dto.AreaOrganizationStatistics; import pwc.taxtech.atms.dto.*;
import pwc.taxtech.atms.dto.AreaStatistics; import pwc.taxtech.atms.dto.dimension.*;
import pwc.taxtech.atms.dto.IndustryDto;
import pwc.taxtech.atms.dto.OperationLogDto;
import pwc.taxtech.atms.dto.OperationResultDto;
import pwc.taxtech.atms.dto.OrganizationStatistics;
import pwc.taxtech.atms.dto.OrganizationValidateDto;
import pwc.taxtech.atms.dto.UpdateLogParams;
import pwc.taxtech.atms.dto.dimension.AttributeTypeEnum;
import pwc.taxtech.atms.dto.dimension.DimensinTypeOrgDto;
import pwc.taxtech.atms.dto.dimension.DimensionOrgDto;
import pwc.taxtech.atms.dto.dimension.DimensionOrgDtoDashboard;
import pwc.taxtech.atms.dto.dimension.DimensionTypeEnum;
import pwc.taxtech.atms.dto.dimension.DimensionValueDisplayDto;
import pwc.taxtech.atms.dto.dimension.OrgDashboardParams;
import pwc.taxtech.atms.dto.navtree.DevTreeDto; import pwc.taxtech.atms.dto.navtree.DevTreeDto;
import pwc.taxtech.atms.dto.navtree.IvhTreeDto; import pwc.taxtech.atms.dto.navtree.IvhTreeDto;
import pwc.taxtech.atms.dto.navtree.NavTreeDto; import pwc.taxtech.atms.dto.navtree.NavTreeDto;
...@@ -67,13 +48,11 @@ import pwc.taxtech.atms.thirdparty.ExcelUtil; ...@@ -67,13 +48,11 @@ import pwc.taxtech.atms.thirdparty.ExcelUtil;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.OutputStream; import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import static java.util.Comparator.*;
import static java.util.stream.Collectors.toList; import static java.util.stream.Collectors.toList;
import static pwc.taxtech.atms.common.CommonConstants.*; import static pwc.taxtech.atms.common.CommonConstants.SystemError;
import static pwc.taxtech.atms.common.CommonUtils.copyProperties; import static pwc.taxtech.atms.common.CommonUtils.copyProperties;
import static pwc.taxtech.atms.common.OperateLogType.OperationLogOrganization; import static pwc.taxtech.atms.common.OperateLogType.OperationLogOrganization;
import static pwc.taxtech.atms.common.OperationModule.Organization; import static pwc.taxtech.atms.common.OperationModule.Organization;
...@@ -1940,17 +1919,17 @@ public class OrganizationServiceImpl extends BaseService{ ...@@ -1940,17 +1919,17 @@ public class OrganizationServiceImpl extends BaseService{
// } // }
// result.setEnterpriseAccountSetOrgList(query1); // result.setEnterpriseAccountSetOrgList(query1);
// 查询机构服务 // 查询机构服务
List<ServiceType> serviceType = serviceTypeMapper.selectByExample(null); // List<ServiceType> serviceType = serviceTypeMapper.selectByExample(null);
List<OrganizationServiceTemplateGroupDto> query2 = organizationServiceTemplateGroupMapper // List<OrganizationServiceTemplateGroupDto> query2 = organizationServiceTemplateGroupMapper
.getSingleOrgByOrgIdToOSTGDto(orgId); // .getSingleOrgByOrgIdToOSTGDto(orgId);
for (OrganizationServiceTemplateGroupDto mapping : query2) { // for (OrganizationServiceTemplateGroupDto mapping : query2) {
ServiceType st = serviceType.stream().filter(n -> Objects.equals(n.getId(), mapping.getServiceTypeId())) // ServiceType st = serviceType.stream().filter(n -> Objects.equals(n.getId(), mapping.getServiceTypeId()))
.findFirst().orElse(null); // .findFirst().orElse(null);
if (st != null) { // if (st != null) {
mapping.setServiceTypeName(st.getName()); // mapping.setServiceTypeName(st.getName());
} // }
} // }
result.setOrganizationServiceTemplateGroupList(query2); // result.setOrganizationServiceTemplateGroupList(query2);
if (StringUtils.isEmpty(result.getParentId())) { if (StringUtils.isEmpty(result.getParentId())) {
result.setParentName(""); result.setParentName("");
} else { } else {
...@@ -1959,7 +1938,7 @@ public class OrganizationServiceImpl extends BaseService{ ...@@ -1959,7 +1938,7 @@ public class OrganizationServiceImpl extends BaseService{
Assert.notNull(tParent, "tParent is null"); Assert.notNull(tParent, "tParent is null");
result.setParentName(tParent.getName()); result.setParentName(tParent.getName());
} }
result.setDimensionValueOrgList(dimensionService.getAllDimensionOrgListByOrgId(result.getId())); // result.setDimensionValueOrgList(dimensionService.getAllDimensionOrgListByOrgId(result.getId()));
return result; return result;
} }
......
infrastructureModule infrastructureModule
.controller('OrganizationManageController', ['$scope', '$location', '$log', 'orgService', '$interval', 'uiGridTreeViewConstants', 'uiGridConstants', 'SweetAlert', 'projectService', '$translate', '$timeout', 'organizationStructureService', 'areaRegionService', 'apiInterceptor', 'enterpriseAccountService', 'businessUnitService', 'userService', 'roleService', '$q', 'permissionService', 'dimensionService', 'region', 'equityService', 'orgExtraService', .controller('OrganizationManageController', ['$scope', '$location', '$log', 'orgService', '$interval', 'uiGridTreeViewConstants', 'uiGridConstants', 'SweetAlert', 'projectService', '$translate', '$timeout', 'organizationStructureService', 'areaRegionService', 'apiInterceptor', 'businessUnitService', 'userService', 'roleService', '$q', 'permissionService', 'dimensionService', 'region', 'equityService', 'orgExtraService',
function ($scope, $location, $log, orgService, $interval, uiGridTreeViewConstants, uiGridConstants, SweetAlert, projectService, $translate, $timeout, organizationStructureService, areaRegionService, apiInterceptor, enterpriseAccountService, businessUnitService, userService, roleService, $q, permissionService, dimensionService, region, equityService, orgExtraService) { function ($scope, $location, $log, orgService, $interval, uiGridTreeViewConstants, uiGridConstants, SweetAlert, projectService, $translate, $timeout, organizationStructureService, areaRegionService, apiInterceptor, businessUnitService, userService, roleService, $q, permissionService, dimensionService, region, equityService, orgExtraService) {
'use strict'; 'use strict';
$scope.expanded = false; $scope.expanded = false;
...@@ -152,17 +152,17 @@ ...@@ -152,17 +152,17 @@
// 获取账套 // 获取账套
var loadEnterpriseAccountSetList = function () { var loadEnterpriseAccountSetList = function () {
enterpriseAccountService.getEnterpriseAccountSetList().success(function (data) { // enterpriseAccountService.getEnterpriseAccountSetList().success(function (data) {
// 只获取启用状态的账套 // // 只获取启用状态的账套
//data = _.filter(data, function (num) { return num.isActive }); // //data = _.filter(data, function (num) { return num.isActive });
$scope.enterpriseAccountSetList = sortByEnterpriseName(data); // $scope.enterpriseAccountSetList = sortByEnterpriseName(data);
if (data && data.length > 0) { // if (data && data.length > 0) {
$scope.hasEnterpriseAccountSet = true; // $scope.hasEnterpriseAccountSet = true;
//
} else { // } else {
$scope.hasEnterpriseAccountSet = false; // $scope.hasEnterpriseAccountSet = false;
} // }
}); // });
}; };
var dataType = { var dataType = {
...@@ -631,14 +631,14 @@ ...@@ -631,14 +631,14 @@
}; };
var getEquityChangeList = function (name) { // var getEquityChangeList = function (name) {
equityService.getChangeLogByOrgName(name).success(function (data) { // equityService.getChangeLogByOrgName(name).success(function (data) {
if (data) { // if (data) {
$scope.EquityChangeList = data; // $scope.EquityChangeList = data;
initPagingControl(data.length); // initPagingControl(data.length);
} // }
}); // });
}; // };
var getEquityHistoryById = function (key) { var getEquityHistoryById = function (key) {
if (key.rowIndex === 1) { if (key.rowIndex === 1) {
...@@ -1959,7 +1959,7 @@ ...@@ -1959,7 +1959,7 @@
loadEnterpriseAccountSetList(); loadEnterpriseAccountSetList();
loadEquityDatagrid(); loadEquityDatagrid();
loadEquityChangeDatagrid(); loadEquityChangeDatagrid();
getServiceList(); // getServiceList();
// 其他信息中的grid // 其他信息中的grid
loadTaxRuleDatagrid(); loadTaxRuleDatagrid();
loadInvoiceInfoDatagrid(); loadInvoiceInfoDatagrid();
...@@ -2462,7 +2462,7 @@ ...@@ -2462,7 +2462,7 @@
} }
}); });
getEquityListByOrgId(org.id); // getEquityListByOrgId(org.id);
// todo 其他信息的grid可以移到label ng-click事件里做,lazyinit // todo 其他信息的grid可以移到label ng-click事件里做,lazyinit
getTaxRuleList(org.id); getTaxRuleList(org.id);
...@@ -2474,11 +2474,11 @@ ...@@ -2474,11 +2474,11 @@
getEmployeeList(org.id); getEmployeeList(org.id);
getTaxpayerQualificationList(org.id); getTaxpayerQualificationList(org.id);
equityService.getChangeLogByOrgName(org.name).success(function (data) { // equityService.getChangeLogByOrgName(org.name).success(function (data) {
if (data) { // if (data) {
$scope.EquityChangeList = data; // $scope.EquityChangeList = data;
} // }
}); // });
}; };
$scope.resources = { $scope.resources = {
...@@ -2719,11 +2719,11 @@ ...@@ -2719,11 +2719,11 @@
}; };
// 获取所有服务列表 // 获取所有服务列表
var getServiceList = function () { // var getServiceList = function () {
projectService.getServiceList().success(function (serviceListData) { // projectService.getServiceList().success(function (serviceListData) {
$scope.serviceList = serviceListData; // $scope.serviceList = serviceListData;
}); // });
}; // };
// 验证是否为时间段 // 验证是否为时间段
var validateDate = function (from, to) { var validateDate = function (from, to) {
...@@ -2988,36 +2988,36 @@ ...@@ -2988,36 +2988,36 @@
}); });
}; };
var getEquityListByOrgId = function (orgId) { // var getEquityListByOrgId = function (orgId) {
equityService.getEquityList(orgId).success(function (data) { // equityService.getEquityList(orgId).success(function (data) {
if (data) { // if (data) {
$scope.EquityList = data; // $scope.EquityList = data;
var amountTotal = 0; // var amountTotal = 0;
var proportionTotal = 0; // var proportionTotal = 0;
for (var i = 0; i < data.length; i++) { // for (var i = 0; i < data.length; i++) {
amountTotal += data[i].payableCapitalContributionAmount; // amountTotal += data[i].payableCapitalContributionAmount;
proportionTotal += data[i].payableContributionProportion; // proportionTotal += data[i].payableContributionProportion;
} // }
$scope.EquitySumInfo = { // $scope.EquitySumInfo = {
orgTotal: data.length, // orgTotal: data.length,
amountTotal: amountTotal, // amountTotal: amountTotal,
proportionTotal: proportionTotal // proportionTotal: proportionTotal
}; // };
if ($scope.EquitySumInfo.proportionTotal !== 100) { // if ($scope.EquitySumInfo.proportionTotal !== 100) {
$scope.isNotHundred = true; // $scope.isNotHundred = true;
} else { // } else {
$scope.isNotHundred = false; // $scope.isNotHundred = false;
} // }
} else { // } else {
SweetAlert.warning($translate.instant('NoEquityInfo')); // SweetAlert.warning($translate.instant('NoEquityInfo'));
} // }
}); // });
}; // };
$scope.refreshEquityList = function () { // $scope.refreshEquityList = function () {
getEquityListByOrgId($scope.selectCompany.id); // // getEquityListByOrgId($scope.selectCompany.id);
getEquityChangeList($scope.selectCompany.name); // // getEquityChangeList($scope.selectCompany.name);
}; // };
var confirmWarningWindow = function (title, text) { var confirmWarningWindow = function (title, text) {
var deferred = $q.defer(); var deferred = $q.defer();
......
...@@ -58,13 +58,13 @@ ...@@ -58,13 +58,13 @@
<span class="right-operate"> <span class="right-operate">
<!-- board展示 --> <!-- board展示 -->
<a class="display-user" <!--<a class="display-user"-->
href="#/organizationViewInfrastructure/organizationBusinessUnitView" <!--href="#/organizationViewInfrastructure/organizationBusinessUnitView"-->
title="{{'ShowAsCard' | translate}}"><i class="fa fa-th" aria-hidden="true"></i></a> <!--title="{{'ShowAsCard' | translate}}"><i class="fa fa-th" aria-hidden="true"></i></a>-->
<!-- list展示 --> <!--&lt;!&ndash; list展示 &ndash;&gt;-->
<a class="display-user border-left" href="#/orgListView" <!--<a class="display-user border-left" href="#/orgListView"-->
title="{{'ShowAsList' | translate}}"><i class="fa fa-list-ul" <!--title="{{'ShowAsList' | translate}}"><i class="fa fa-list-ul"-->
aria-hidden="true"></i></a> <!--aria-hidden="true"></i></a>-->
</span> </span>
</div> </div>
</div> </div>
......
...@@ -1032,7 +1032,7 @@ ...@@ -1032,7 +1032,7 @@
//init project list //init project list
//init service dropdown list //init service dropdown list
initServiceList(); // initServiceList();
initProjectList(); initProjectList();
......
...@@ -209,15 +209,15 @@ controller('addEnterpriseAccountModalController', ['$scope', '$log', '$translate ...@@ -209,15 +209,15 @@ controller('addEnterpriseAccountModalController', ['$scope', '$log', '$translate
// model.enterpriseAccountSetOrgList = $scope.editModel.saveOrgList; // model.enterpriseAccountSetOrgList = $scope.editModel.saveOrgList;
enterpriseAccountService.updateEnterpriseAccountSet(model).success(function (data) { // enterpriseAccountService.updateEnterpriseAccountSet(model).success(function (data) {
if (data && data.result) { // if (data && data.result) {
$('#addEnterpriceAccountSetPop').modal('hide'); // $('#addEnterpriceAccountSetPop').modal('hide');
loadEnterpriseAccountSetList(); // loadEnterpriseAccountSetList();
SweetAlert.success($translate.instant('SaveSuccess')); // SweetAlert.success($translate.instant('SaveSuccess'));
} else { // } else {
swal($translate.instant('SaveFail'), $translate.instant(data.resultMsg), 'warning'); // swal($translate.instant('SaveFail'), $translate.instant(data.resultMsg), 'warning');
} // }
}); // });
} }
} }
}; };
......
commonModule.controller('editEquityChangeModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'enterpriseAccountService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService', 'equityService', commonModule.controller('editEquityChangeModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService', 'equityService',
function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, enterpriseAccountService, organizationStructureService, businessUnitService, projectService, dimensionService, equityService) { function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, organizationStructureService, businessUnitService, projectService, dimensionService, equityService) {
var selectedModel = '.editEquityChangeControlPop'; //'#addOrgControlPop' + $scope.dimensionId; var selectedModel = '.editEquityChangeControlPop'; //'#addOrgControlPop' + $scope.dimensionId;
......
commonModule. commonModule.
controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'enterpriseAccountService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService','equityService', controller('editEquityModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService','equityService',
function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, enterpriseAccountService, organizationStructureService, businessUnitService, projectService, dimensionService,equityService) { function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, organizationStructureService, businessUnitService, projectService, dimensionService,equityService) {
var selectedModel = '.editEquityControlPop'; //'#addOrgControlPop' + $scope.dimensionId; var selectedModel = '.editEquityControlPop'; //'#addOrgControlPop' + $scope.dimensionId;
......
commonModule. commonModule.
controller('editOrganizationModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'enterpriseAccountService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService', controller('editOrganizationModalController', ['$scope', '$log', '$translate', 'uiGridConstants', '$location', '$timeout', '$interval', 'areaRegionService', '$filter', 'SweetAlert', 'regionService', 'orgService', 'organizationStructureService', 'businessUnitService', 'projectService', 'dimensionService',
function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, enterpriseAccountService, organizationStructureService, businessUnitService, projectService, dimensionService) { function ($scope, $log, $translate, uiGridConstants, $location, $timeout, $interval, areaRegionService, $filter, SweetAlert, regionService, orgService, organizationStructureService, businessUnitService, projectService, dimensionService) {
var selectedModel = '.addOrgControlPop'; //'#addOrgControlPop' + $scope.dimensionId; var selectedModel = '.addOrgControlPop'; //'#addOrgControlPop' + $scope.dimensionId;
...@@ -76,7 +76,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -76,7 +76,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
$scope.newOrgAccountRow(); $scope.newOrgAccountRow();
$scope.selfDimensionModel = getAddOrgSetDimension(); $scope.selfDimensionModel = getAddOrgSetDimension();
initIsCheckedServiceList(); // initIsCheckedServiceList();
// resetErrorStatus(); // resetErrorStatus();
$scope.orgControlForm.$setPristine(); $scope.orgControlForm.$setPristine();
$scope.advancedControlForm.$setPristine(); $scope.advancedControlForm.$setPristine();
...@@ -503,12 +503,12 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -503,12 +503,12 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
$("#selectedOrgName-error").hide(); $("#selectedOrgName-error").hide();
$scope.isAdd = false; $scope.isAdd = false;
$scope.orgHasAccountMapping = false; $scope.orgHasAccountMapping = false;
enterpriseAccountService.getAccountMappingOrg(orgId).success(function (data) { // enterpriseAccountService.getAccountMappingOrg(orgId).success(function (data) {
if (data && data.length > 0) { // if (data && data.length > 0) {
$scope.orgHasAccountMapping = true; // $scope.orgHasAccountMapping = true;
} // }
//
}); // });
orgService.getSingleOrg(orgId).success(function (orgData) { orgService.getSingleOrg(orgId).success(function (orgData) {
...@@ -566,7 +566,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -566,7 +566,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
$scope.selfDimensionModel = getUpdateOrgSetDimension(orgData.id, orgData.dimensionValueOrgList); $scope.selfDimensionModel = getUpdateOrgSetDimension(orgData.id, orgData.dimensionValueOrgList);
setEnterpriseOrgRowList(orgData); setEnterpriseOrgRowList(orgData);
setIsCheckedServiceList(orgData); // setIsCheckedServiceList(orgData);
}); });
...@@ -614,17 +614,17 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -614,17 +614,17 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
// 获取账套 // 获取账套
var loadEnterpriseAccountSetList = function () { var loadEnterpriseAccountSetList = function () {
enterpriseAccountService.getEnterpriseAccountSetList().success(function (data) { // enterpriseAccountService.getEnterpriseAccountSetList().success(function (data) {
// 只获取启用状态的账套 // // 只获取启用状态的账套
//data = _.filter(data, function (num) { return num.isActive }); // //data = _.filter(data, function (num) { return num.isActive });
$scope.enterpriseAccountSetList = data; // $scope.enterpriseAccountSetList = data;
if (data && data.length > 0) { // if (data && data.length > 0) {
$scope.hasEnterpriseAccountSet = true; // $scope.hasEnterpriseAccountSet = true;
//
} else { // } else {
$scope.hasEnterpriseAccountSet = false; // $scope.hasEnterpriseAccountSet = false;
} // }
}); // });
}; };
// 获取行业信息 // 获取行业信息
...@@ -655,13 +655,13 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -655,13 +655,13 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
}; };
//获取项目客户信息 //获取项目客户信息
var loadprojectClient = function () { // var loadprojectClient = function () {
projectService.getProjectClientList().success(function (data) { // projectService.getProjectClientList().success(function (data) {
if (data && data.length > 0) { // if (data && data.length > 0) {
$scope.projectClientName = data[0].name; // $scope.projectClientName = data[0].name;
} // }
}); // });
}; // };
// 获取省市 // 获取省市
var loadProvinceList = function () { var loadProvinceList = function () {
...@@ -760,7 +760,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', ' ...@@ -760,7 +760,7 @@ controller('editOrganizationModalController', ['$scope', '$log', '$translate', '
loadProvinceList(); loadProvinceList();
loadEnterpriseAccountSetList(); loadEnterpriseAccountSetList();
getAllDimensionList(); getAllDimensionList();
loadprojectClient(); // loadprojectClient();
initDatePicker(); initDatePicker();
}; };
......
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