Commit 4895f6c9 authored by frank.xa.zhang's avatar frank.xa.zhang

change form parameter to projectId

parent 68f30e0a
...@@ -181,7 +181,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService', ...@@ -181,7 +181,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
} }
else { else {
if (vatSessionService.project && vatSessionService.project.dbName) { if (vatSessionService.project && vatSessionService.project.dbName) {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' }; cfg.headers = { 'from': vatSessionService.project.id + '@cn.pwc.com' };
} }
} }
return cfg; return cfg;
...@@ -200,7 +200,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService', ...@@ -200,7 +200,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' }; cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
} }
else { else {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' }; cfg.headers = { 'from': vatSessionService.project.id + '@cn.pwc.com' };
} }
//$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com'; //$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com';
//cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com'; //cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com';
......
...@@ -1666,7 +1666,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t ...@@ -1666,7 +1666,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
else if (project.serviceTypeID === enums.serviceType.VAT) { else if (project.serviceTypeID === enums.serviceType.VAT) {
if (project.haveCreateProject) { if (project.haveCreateProject) {
if (_.isUndefined(project.projectStatusList[vatSessionService.month])) { //如果当前期间还没有导入任何数据的话,就添加一条未开始状态的记录 if (_.isUndefined(project.projectStatusList[vatSessionService.month])) { //如果当前期间还没有导入任何数据的话,就添加一条未开始状态的记录
projectService.setProjectStatus( project.id,vatSessionService.month, constant.ProjectStatusEnum.UnStarted) projectService.setProjectStatus(project.id, vatSessionService.month, constant.ProjectStatusEnum.UnStarted)
.success(function (or) { .success(function (or) {
if (or.result) { if (or.result) {
//添加完成后,在vatSessionService.project中添加新加入的数据 //添加完成后,在vatSessionService.project中添加新加入的数据
...@@ -1694,7 +1694,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t ...@@ -1694,7 +1694,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
projectService.getProjectAllStatus(project.id).success(function (org) { projectService.getProjectAllStatus(project.id).success(function (org) {
//添加完成后,在vatSessionService.project中添加新加入的数据 //添加完成后,在vatSessionService.project中添加新加入的数据
project.projectStatusList = org; project.projectStatusList = org;
projectService.getProjectStatus(project.id, vatSessionService.month) projectService.getProjectStatus( project.id, vatSessionService.month)
.success(function (or1) { .success(function (or1) {
if (or1.result) { if (or1.result) {
project.importSubStatus = or1.data.importSubStatus; project.importSubStatus = or1.data.importSubStatus;
...@@ -1842,7 +1842,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t ...@@ -1842,7 +1842,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
// $state.go('vat.importData.customInvoice'); // $state.go('vat.importData.customInvoice');
// } else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) { // } else if (data[constant.vatPermission.dataImport.voucherMapping.queryCode]) {
// $state.go('vat.importData.voucherMapping'); // $state.go('vat.importData.voucherMapping');
// } else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) { // } else if (data[constant.vatPermission.dataImport.invoiceMapping.queryCode]) {./
// $state.go('vat.importData.invoiceMapping'); // $state.go('vat.importData.invoiceMapping');
// } else // } else
// if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) { // if (data[constant.vatPermission.dataPreview.balanceSheet.queryCode]) {
...@@ -1850,7 +1850,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t ...@@ -1850,7 +1850,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
// } else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) { // } else if (data[constant.vatPermission.dataPreview.accountVoucher.queryCode]) {
// $state.go('vat.previewData.accountVoucher'); // $state.go('vat.previewData.accountVoucher');
// } else // } else
if (data[constant.vatPermission.dataPreview.inputInvoice.queryCode]) { if (data[constant.vatPermission.dataPreview.inputInvoice.queryCode]) {
$state.go('vat.previewData.inputInvoice'); $state.go('vat.previewData.inputInvoice');
} else if (data[constant.vatPermission.dataPreview.outputInvoice.queryCode]) { } else if (data[constant.vatPermission.dataPreview.outputInvoice.queryCode]) {
$state.go('vat.previewData.outputInvoice'); $state.go('vat.previewData.outputInvoice');
...@@ -1858,7 +1858,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t ...@@ -1858,7 +1858,7 @@ frameworkModule.controller('appOverviewController', ['$rootScope', '$scope', '$t
// else if (data[constant.vatPermission.dataPreview.customInvoice.queryCode]) { // else if (data[constant.vatPermission.dataPreview.customInvoice.queryCode]) {
// $state.go('vat.previewData.customInvoice'); // $state.go('vat.previewData.customInvoice');
// } // }
else if (data[constant.vatPermission.dataManage.accountMappingCode]) { else if (data[constant.vatPermission.dataManage.accountMappingCode]) {
$state.go('vat.reductionData.accountMapping'); $state.go('vat.reductionData.accountMapping');
} else if (data[constant.vatPermission.dataManage.goodsMappingCode]) { } else if (data[constant.vatPermission.dataManage.goodsMappingCode]) {
$state.go('vat.reductionData.goodsMapping'); $state.go('vat.reductionData.goodsMapping');
...@@ -4530,7 +4530,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService', ...@@ -4530,7 +4530,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
} }
else { else {
if (vatSessionService.project && vatSessionService.project.dbName) { if (vatSessionService.project && vatSessionService.project.dbName) {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' }; cfg.headers = { 'from': vatSessionService.project.id + '@cn.pwc.com' };
} }
} }
return cfg; return cfg;
...@@ -4549,7 +4549,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService', ...@@ -4549,7 +4549,7 @@ webservices.factory('apiConfig', ['$log', 'vatSessionService',
cfg.headers = { 'from': config.dbName + '@cn.pwc.com' }; cfg.headers = { 'from': config.dbName + '@cn.pwc.com' };
} }
else { else {
cfg.headers = { 'from': vatSessionService.project.dbName + '@cn.pwc.com' }; cfg.headers = { 'from': vatSessionService.project.id + '@cn.pwc.com' };
} }
//$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com'; //$httpProvider.defaults.headers.common['from'] = vatSessionService.project.dbName + '@cn.pwc.com';
//cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com'; //cfg.headers.from = vatSessionService.project.dbName+'@cn.pwc.com';
......
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