Commit 8f252d0a authored by zhkwei's avatar zhkwei

1、报表模板配置修改;2、卡片及CIT页面显示问题

parent 7fc4b237
...@@ -340,26 +340,26 @@ function ($scope, $rootScope, $location, $q, $log, $timeout, $state, $translate, ...@@ -340,26 +340,26 @@ function ($scope, $rootScope, $location, $q, $log, $timeout, $state, $translate,
}); });
} }
if (data[constant.citPermission.dataAnalysis.modelAnalysisCode]) { // if (data[constant.citPermission.dataAnalysis.modelAnalysisCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'analyzeReport', state: 'analyzeLayout', num: 5, // name: 'analyzeReport', state: 'analyzeLayout', num: 5,
permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout' // permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout'
}); // });
subMenus.push({ // subMenus.push({
name: 'analyzeLayout.analyzeReport', state: 'analyzeLayout.analyzeReport', num: 5, // name: 'analyzeLayout.analyzeReport', state: 'analyzeLayout.analyzeReport', num: 5,
permission: constant.citPermission.dataAnalysis.modelAnalysisCode, url: '#/cit/citAnalyzeLayout/citAnalyzeReport' // permission: constant.citPermission.dataAnalysis.modelAnalysisCode, url: '#/cit/citAnalyzeLayout/citAnalyzeReport'
}); // });
} // }
else if (data[constant.citPermission.dataAnalysis.dashboard.dashboardCode]) { // else if (data[constant.citPermission.dataAnalysis.dashboard.dashboardCode]) {
$scope.menus.push({ // $scope.menus.push({
name: 'analyzeReport', state: 'analyzeLayout', num: 5, // name: 'analyzeReport', state: 'analyzeLayout', num: 5,
permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout' // permission: constant.citPermission.dataAnalysis.dataAnalysisCode, url: '#/cit/citAnalyzeLayout'
}); // });
subMenus.push({ // subMenus.push({
name: 'analyzeLayout.analyzeOrganizeDashboard', state: 'analyzeLayout.analyzeOrganizeDashboard', num: 5, // name: 'analyzeLayout.analyzeOrganizeDashboard', state: 'analyzeLayout.analyzeOrganizeDashboard', num: 5,
permission: constant.citPermission.dataAnalysis.dashboard.dashboardCode, url: '#/cit/citAnalyzeLayout/citOrganizeDashboard' // permission: constant.citPermission.dataAnalysis.dashboard.dashboardCode, url: '#/cit/citAnalyzeLayout/citOrganizeDashboard'
}); // });
} // }
} }
}); });
...@@ -562,7 +562,8 @@ function ($scope, $rootScope, $location, $q, $log, $timeout, $state, $translate, ...@@ -562,7 +562,8 @@ function ($scope, $rootScope, $location, $q, $log, $timeout, $state, $translate,
} }
$rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams, options) { $rootScope.$on('$stateChangeStart', function (event, toState, toParams, fromState, fromParams, options) {
var mainMenu = ['cit.importData', 'cit.previewData', 'cit.reductionData', 'cit.citAnalyzeLayout']; // var mainMenu = ['cit.importData', 'cit.previewData', 'cit.reductionData', 'cit.citAnalyzeLayout'];
var mainMenu = ['cit.importData', 'cit.previewData', 'cit.reductionData'];
if (citSessionService.dataChanged) { if (citSessionService.dataChanged) {
event.preventDefault(); event.preventDefault();
SweetAlert.swal(msgboxOptions, function (isConfirm) { SweetAlert.swal(msgboxOptions, function (isConfirm) {
......
...@@ -12,110 +12,26 @@ ...@@ -12,110 +12,26 @@
</div> </div>
</div> </div>
</td> </td>
</tr>
<tr>
<td><span translate="AccountCode"></span></td>
<td>
<div class="input-group">
<input class="form-control " type="text" id="accountCode" placeholder=""
ng-model="filterData.accountCode">
<a class="input-group-addon btn btn-sm" ng-click="popTheParentCode()"><i
class="fa fa-columns" aria-hidden="true"></i></a>
</div>
</td>
</tr>
<tr>
<td><span translate="AccountName"></span></td>
<td><input class="form-control " type="text" id="accountName" placeholder=""
ng-model="filterData.accountName"></td>
</tr> </tr>
<tr> <tr>
<td><span translate="DebitOpeningBalance"></span></td> <td><span translate="AssetGroupName"></span></td>
<td> <td><input class="form-control " type="text" id="assetGroupName" placeholder=""
<div> ng-model="filterData.assetGroupName"></td>
<input class="form-control input-width-small" style="width: 115px; text-align: right;"
type="text" id="debitOpeningBalanceFrom" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.debitOpeningBalanceFrom">
-
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="debitOpeningBalanceTo" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.debitOpeningBalanceTo">
</div>
</td>
</tr> </tr>
<tr> <tr>
<td><span translate="CreditOpeningBalance"></span></td> <td><span translate="DepreciationPeriod"></span></td>
<td> <td>
<div> <div class="input-group">
<input class="form-control input-width-small" style="width: 115px; text-align: right; " <input class="form-control " type="text" id="depreciationPeriod" placeholder=""
type="text" id="creditOpeningBalanceFrom" ng-keyup="PWC.inputNumberFormat(this);" ng-model="filterData.depreciationPeriod">
placeholder="" ng-model="filterData.creditOpeningBalanceFrom">
-
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="creditOpeningBalanceTo" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.creditOpeningBalanceTo">
</div>
</td>
</tr>
<tr>
<td><span translate="AccumulatedDebitAmount"></span></td>
<td>
<div>
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="accumulatedDebitAmountFrom" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.accumulatedDebitAmountFrom">
-
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="accumulatedDebitAmountTo" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.accumulatedDebitAmountTo">
</div>
</td>
</tr>
<tr>
<td><span translate="AccumulatedCreditAmount"></span></td>
<td>
<div>
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="accumulatedCreditAmountFrom" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.accumulatedCreditAmountFrom">
-
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="accumulatedCreditAmountTo" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.accumulatedCreditAmountTo">
</div>
</td>
</tr>
<tr>
<td><span translate="DebitClosingBalance"></span></td>
<td>
<div>
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="debitClosingBalanceFrom" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.debitClosingBalanceFrom">
-
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="debitClosingBalanceTo" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.debitClosingBalanceTo">
</div> </div>
</td> </td>
</tr> </tr>
<tr> <tr>
<td><span translate="CreditClosingBalance"></span></td> <td><span translate="TaxGroupType"></span></td>
<td> <td><input class="form-control " type="text" id="taxGroupType" placeholder=""
<div> ng-model="filterData.taxGroupType"></td>
<input class="form-control input-width-small" style="width: 115px; text-align: right;"
type="text" id="creditClosingBalanceFrom" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.creditClosingBalanceFrom">
-
<input class="form-control input-width-small" style="width: 115px; text-align: right; "
type="text" id="creditClosingBalanceTo" ng-keyup="PWC.inputNumberFormat(this);"
placeholder="" ng-model="filterData.creditClosingBalanceTo">
</div>
</td>
</tr> </tr>
</table> </table>
......
...@@ -78,10 +78,10 @@ function ($scope, $q, $log, $translate, $location, loginContext, enums, vatSessi ...@@ -78,10 +78,10 @@ function ($scope, $q, $log, $translate, $location, loginContext, enums, vatSessi
name: 'caculateData', permission: constant.citPermission.dataManage.caculateDataCode, name: 'caculateData', permission: constant.citPermission.dataManage.caculateDataCode,
text: $translate.instant('caculateData'), icon: 'fa fa-random' text: $translate.instant('caculateData'), icon: 'fa fa-random'
}, },
{ // {
name: 'accountMapping', permission: constant.citPermission.dataManage.accountMappingCode, // name: 'accountMapping', permission: constant.citPermission.dataManage.accountMappingCode,
text: $translate.instant('accountMapping'), icon: 'fa fa-map' // text: $translate.instant('accountMapping'), icon: 'fa fa-map'
}, // },
{ {
name: 'assetEamMapping', permission: constant.citPermission.dataManage.assetEamMapping, name: 'assetEamMapping', permission: constant.citPermission.dataManage.assetEamMapping,
text: $translate.instant('AssetEamMapping'), icon: 'fa fa-map' text: $translate.instant('AssetEamMapping'), icon: 'fa fa-map'
......
...@@ -597,7 +597,7 @@ debugger; ...@@ -597,7 +597,7 @@ debugger;
if($scope.timer){ if($scope.timer){
$interval.cancel($scope.timer); $interval.cancel($scope.timer);
vatCommonService.setProjectStatus(vatSessionService.project.id, vatSessionService.month, constant.ProjectStatusEnum.Generated vatCommonService.setProjectStatus(vatSessionService.project.id, -1, constant.ProjectStatusEnum.Generated
, constant.DictionaryDictKey.WFDataProcess, enums.FinishStatusEnum.Finished); , constant.DictionaryDictKey.WFDataProcess, enums.FinishStatusEnum.Finished);
} }
}else if(job.jobStatus=='Running'|| job.jobStatus=='Error'){ }else if(job.jobStatus=='Running'|| job.jobStatus=='Error'){
......
...@@ -59,6 +59,7 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate', ...@@ -59,6 +59,7 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate',
// 获取sheet列表 // 获取sheet列表
getSheetList: function() { getSheetList: function() {
debugger;
if (!$scope.editModel || !$scope.editModel.file) { if (!$scope.editModel || !$scope.editModel.file) {
return; return;
} }
...@@ -544,12 +545,26 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate', ...@@ -544,12 +545,26 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate',
// 修改报表名称 // 修改报表名称
$scope.saveUpdateTemplateGroupName = function () { $scope.saveUpdateTemplateGroupName = function () {
debugger;
$scope.validateName(); $scope.validateName();
if ($scope.editModel.nameError) { if ($scope.editModel.nameError) {
return; return;
} }
templateGroupService.addTemplateGroupWithoutTemplate($scope.editModel).success(function (ret) { //此处报错(Converting circular structure to JSON),因时间关系采取快捷方案
var addTemplateGroupModel = {
groupType: $scope.editModel.groupType,
industryIds: $scope.editModel.industryIDs,
name: $scope.editModel.name,
nameError: $scope.editModel.nameError,
reportType: $scope.editModel.reportType,
serviceTypeId: $scope.editModel.serviceTypeID,
title:$scope.editModel.title
};
templateGroupService.addTemplateGroupWithoutTemplate(addTemplateGroupModel).success(function (ret) {
debugger;
if (ret.result) { if (ret.result) {
// 添加成功 // 添加成功
modalInstance.close($scope.editModel); modalInstance.close($scope.editModel);
...@@ -607,7 +622,7 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate', ...@@ -607,7 +622,7 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate',
// 修改TemplateGroupName // 修改TemplateGroupName
var updateTemplateName = function(model) { var updateTemplateName = function(model) {
debugger;
$scope.validateName(); $scope.validateName();
if ($scope.editModel.nameError) { if ($scope.editModel.nameError) {
return; return;
...@@ -635,7 +650,7 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate', ...@@ -635,7 +650,7 @@ controller('editTemplategroupModalController', ['$scope', '$log', '$translate',
// 修改报表名称 // 修改报表名称
$scope.saveUpdateTemplateGroupName = function() { $scope.saveUpdateTemplateGroupName = function() {
// thisDataService.saveFindAdd(modalInstance) // thisDataService.saveFindAdd(modalInstance)
debugger;
var model = { var model = {
id: $scope.editModel.id, id: $scope.editModel.id,
name: $scope.editModel.name, name: $scope.editModel.name,
......
...@@ -695,19 +695,19 @@ constant.citPermission = { ...@@ -695,19 +695,19 @@ constant.citPermission = {
reviewCode: '03.004.005.004', reviewCode: '03.004.005.004',
}, },
}, },
dataAnalysis: { // dataAnalysis: {
dataAnalysisCode: '03.005', // dataAnalysisCode: '03.005',
modelAnalysisCode: '03.005.001', // modelAnalysisCode: '03.005.001',
modelAnalysis: { // modelAnalysis: {
queryCode: '03.005.001.001', // queryCode: '03.005.001.001',
filterCode: '03.005.001.005' // filterCode: '03.005.001.005'
}, // },
dashboard: { // dashboard: {
dashboardCode: '03.005.002', // dashboardCode: '03.005.002',
querySummaryDashboardCode: '03.005.002.001', // querySummaryDashboardCode: '03.005.002.001',
singleOrgIndexDashboardCode: '03.005.002.002', // singleOrgIndexDashboardCode: '03.005.002.002',
} // }
}, // },
}; };
// 权限代码 // 权限代码
...@@ -929,7 +929,7 @@ constant.citMenuList = [ ...@@ -929,7 +929,7 @@ constant.citMenuList = [
constant.citPermission.dataPreview.assetsList.queryCode, constant.citPermission.dataPreview.assetsList.queryCode,
constant.citPermission.dataPreview.salaryAdvance.queryCode, constant.citPermission.dataPreview.salaryAdvance.queryCode,
constant.citPermission.dataPreview.eamDisposal.queryCode, constant.citPermission.dataPreview.eamDisposal.queryCode,
constant.citPermission.dataManage.accountMappingCode, // constant.citPermission.dataManage.accountMappingCode,
constant.citPermission.dataManage.caculateDataCode, constant.citPermission.dataManage.caculateDataCode,
constant.citPermission.reportView.bsplCode, constant.citPermission.reportView.bsplCode,
...@@ -937,8 +937,8 @@ constant.citMenuList = [ ...@@ -937,8 +937,8 @@ constant.citMenuList = [
constant.citPermission.reportView.workingPaperTypeCode, constant.citPermission.reportView.workingPaperTypeCode,
constant.citPermission.reportView.taxReturnCode, constant.citPermission.reportView.taxReturnCode,
constant.citPermission.reportView.otherReportCode, constant.citPermission.reportView.otherReportCode,
constant.citPermission.dataAnalysis.modelAnalysisCode, // constant.citPermission.dataAnalysis.modelAnalysisCode,
constant.citPermission.dataAnalysis.dashboard.dashboardCode, // constant.citPermission.dataAnalysis.dashboard.dashboardCode,
]; ];
constant.basicDataUrl = { constant.basicDataUrl = {
......
...@@ -205,9 +205,9 @@ ...@@ -205,9 +205,9 @@
<img src="{{result.finalStatus}}" /> <img src="{{result.finalStatus}}" />
</div> </div>
<div class="body-name"> <div class="body-name">
<div class="org-name"><span>{{'TaxBurdenRatio' | translate}}: </span><span>{{result.taxRate}}%</span></div> <!--<div class="org-name"><span>{{'TaxBurdenRatio' | translate}}: </span><span>{{result.taxRate}}%</span></div>-->
<!--<div class="org-name" ng-show="serviceTypeId ==='6'"><span>预缴额: </span><span>{{result.prepadidTaxAmount | number}}元</span></div>--> <!--<div class="org-name" ng-show="serviceTypeId ==='6'"><span>预缴额: </span><span>{{result.prepadidTaxAmount | number}}元</span></div>-->
<div class="org-name"><span>{{'TaxPayment' | translate}}: </span><span>{{result.taxAmount | number}}{{'Yuan' | translate}}</span></div> <!--<div class="org-name"><span>{{'TaxPayment' | translate}}: </span><span>{{result.taxAmount | number}}{{'Yuan' | translate}}</span></div>-->
<div class="org-name"><span>{{'ProjectPeriod' | translate}}: </span><span> {{result.periodDate}}</span></div> <div class="org-name"><span>{{'ProjectPeriod' | translate}}: </span><span> {{result.periodDate}}</span></div>
</div> </div>
......
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