Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
3e9bb5ee
Commit
3e9bb5ee
authored
Apr 19, 2019
by
Cheng C Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 23331
parent
3230b2bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
102 additions
and
70 deletions
+102
-70
enterprise-account-manage.ctrl.js
...enterpriseAccountManage/enterprise-account-manage.ctrl.js
+80
-63
organization-manage.ctrl.js
...astructure/organizationManage/organization-manage.ctrl.js
+11
-2
organization-manage.html
...nfrastructure/organizationManage/organization-manage.html
+1
-1
cit-report-layout.ctrl.js
...pp/cit/report/cit-report-layout/cit-report-layout.ctrl.js
+9
-0
vat-report-layout.ctrl.js
...pp/vat/report/vat-report-layout/vat-report-layout.ctrl.js
+1
-4
No files found.
atms-web/src/main/webapp/app/admin/basicData/financialData/enterpriseAccountManage/enterprise-account-manage.ctrl.js
View file @
3e9bb5ee
basicDataModule
basicDataModule
.
controller
(
'EnterpriseAccountManageController'
,
[
'$scope'
,
'$log'
,
'SweetAlert'
,
'keywordmapService'
,
'uiGridConstants'
,
'$translate'
,
'enterpriseAccountService'
,
'Upload'
,
'apiInterceptor'
,
'templateFormulaService'
,
'stdAccountService'
,
'$interval'
,
'$timeout'
,
'$q'
,
'region'
,
.
controller
(
'EnterpriseAccountManageController'
,
[
'$scope'
,
'$lo
cation'
,
'$lo
g'
,
'SweetAlert'
,
'keywordmapService'
,
'uiGridConstants'
,
'$translate'
,
'enterpriseAccountService'
,
'Upload'
,
'apiInterceptor'
,
'templateFormulaService'
,
'stdAccountService'
,
'$interval'
,
'$timeout'
,
'$q'
,
'region'
,
function
(
$scope
,
$log
,
SweetAlert
,
keywordmapService
,
uiGridConstants
,
$translate
,
enterpriseAccountService
,
Upload
,
apiInterceptor
,
templateFormulaService
,
stdAccountService
,
$interval
,
$timeout
,
$q
,
region
)
{
function
(
$scope
,
$lo
cation
,
$lo
g
,
SweetAlert
,
keywordmapService
,
uiGridConstants
,
$translate
,
enterpriseAccountService
,
Upload
,
apiInterceptor
,
templateFormulaService
,
stdAccountService
,
$interval
,
$timeout
,
$q
,
region
)
{
'use strict'
;
'use strict'
;
...
@@ -270,7 +270,6 @@
...
@@ -270,7 +270,6 @@
};
};
$scope
.
changeEnterpriseAccountSet
=
function
()
{
$scope
.
changeEnterpriseAccountSet
=
function
()
{
if
(
!
$scope
.
enterpriseAccountSetSelectID
)
{
if
(
!
$scope
.
enterpriseAccountSetSelectID
)
{
return
;
return
;
...
@@ -283,6 +282,15 @@
...
@@ -283,6 +282,15 @@
loadEnterpriseAccountSet
();
loadEnterpriseAccountSet
();
};
};
var
jumpToAccount
=
function
()
{
// TODO
if
(
$scope
.
jumpingEnterpriseAccountSetID
){
$scope
.
enterpriseAccountSetSelectID
=
$scope
.
jumpingEnterpriseAccountSetID
;
$scope
.
changeEnterpriseAccountSet
();
}
};
var
loadEnterpriseAccountSet
=
function
()
{
var
loadEnterpriseAccountSet
=
function
()
{
enterpriseAccountService
.
getEnterpriseAccountSet
(
$scope
.
enterpriseAccountSetSelectID
).
success
(
function
(
data
)
{
enterpriseAccountService
.
getEnterpriseAccountSet
(
$scope
.
enterpriseAccountSetSelectID
).
success
(
function
(
data
)
{
...
@@ -453,7 +461,8 @@
...
@@ -453,7 +461,8 @@
var
template
=
$translate
.
instant
(
data
.
resultMsg
);
var
template
=
$translate
.
instant
(
data
.
resultMsg
);
SweetAlert
.
warning
(
template
);
SweetAlert
.
warning
(
template
);
return
;
return
;
};
}
;
$scope
.
lastCode
=
$scope
.
editModel
.
code
;
$scope
.
lastCode
=
$scope
.
editModel
.
code
;
...
@@ -469,7 +478,8 @@
...
@@ -469,7 +478,8 @@
SweetAlert
.
warning
(
template
);
SweetAlert
.
warning
(
template
);
return
;
return
;
};
}
;
$scope
.
lastCode
=
$scope
.
editModel
.
code
;
$scope
.
lastCode
=
$scope
.
editModel
.
code
;
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
SweetAlert
.
success
(
$translate
.
instant
(
'SaveSuccess'
));
...
@@ -692,20 +702,20 @@
...
@@ -692,20 +702,20 @@
if
(
$scope
.
singleSelected
&&
$scope
.
singleSelected
.
id
)
{
if
(
$scope
.
singleSelected
&&
$scope
.
singleSelected
.
id
)
{
SweetAlert
.
swal
({
SweetAlert
.
swal
({
title
:
$translate
.
instant
(
'Confirm'
)
+
$scope
.
isActiveBtStr
+
'?'
,
title
:
$translate
.
instant
(
'Confirm'
)
+
$scope
.
isActiveBtStr
+
'?'
,
text
:
$translate
.
instant
(
'ComfirmEnterpriceAccountIsActive'
).
formatObj
({
text
:
$translate
.
instant
(
'ComfirmEnterpriceAccountIsActive'
).
formatObj
({
isActiveStr
:
$scope
.
isActiveBtStr
,
isActiveStr
:
$scope
.
isActiveBtStr
,
code
:
$scope
.
singleSelected
.
code
,
code
:
$scope
.
singleSelected
.
code
,
fullName
:
$scope
.
singleSelected
.
fullName
fullName
:
$scope
.
singleSelected
.
fullName
}),
}),
type
:
"warning"
,
type
:
"warning"
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
true
closeOnCancel
:
true
},
},
function
(
isConfirm
)
{
function
(
isConfirm
)
{
if
(
isConfirm
)
{
if
(
isConfirm
)
{
// 选中
// 选中
...
@@ -846,16 +856,16 @@
...
@@ -846,16 +856,16 @@
if
(
$scope
.
file
)
{
if
(
$scope
.
file
)
{
SweetAlert
.
swal
({
SweetAlert
.
swal
({
title
:
$translate
.
instant
(
'ComfirmImportData'
),
title
:
$translate
.
instant
(
'ComfirmImportData'
),
text
:
$translate
.
instant
(
'EnterpriseAccountSetOverLayImportTips'
),
text
:
$translate
.
instant
(
'EnterpriseAccountSetOverLayImportTips'
),
type
:
"warning"
,
type
:
"warning"
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
true
closeOnCancel
:
true
},
},
function
(
isConfirm
)
{
function
(
isConfirm
)
{
if
(
isConfirm
)
{
if
(
isConfirm
)
{
// 选中
// 选中
...
@@ -1007,16 +1017,16 @@
...
@@ -1007,16 +1017,16 @@
if
(
$scope
.
file
)
{
if
(
$scope
.
file
)
{
SweetAlert
.
swal
({
SweetAlert
.
swal
({
title
:
$translate
.
instant
(
'ComfirmImportData'
),
title
:
$translate
.
instant
(
'ComfirmImportData'
),
text
:
$translate
.
instant
(
'EnterpriseAccountSetOverLayImportTips'
),
text
:
$translate
.
instant
(
'EnterpriseAccountSetOverLayImportTips'
),
type
:
"warning"
,
type
:
"warning"
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
true
closeOnCancel
:
true
},
},
function
(
isConfirm
)
{
function
(
isConfirm
)
{
if
(
isConfirm
)
{
if
(
isConfirm
)
{
...
@@ -1211,16 +1221,16 @@
...
@@ -1211,16 +1221,16 @@
var
clearRepeatData
=
function
(
row
)
{
var
clearRepeatData
=
function
(
row
)
{
SweetAlert
.
swal
({
SweetAlert
.
swal
({
title
:
$translate
.
instant
(
'ConfirmOperation'
),
title
:
$translate
.
instant
(
'ConfirmOperation'
),
text
:
$translate
.
instant
(
'ClearRepeatItemTips'
),
text
:
$translate
.
instant
(
'ClearRepeatItemTips'
),
type
:
"warning"
,
type
:
"warning"
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
true
closeOnCancel
:
true
},
},
function
(
isConfirm
)
{
function
(
isConfirm
)
{
if
(
isConfirm
)
{
if
(
isConfirm
)
{
...
@@ -1374,7 +1384,8 @@
...
@@ -1374,7 +1384,8 @@
$scope
.
deleteEnterpriseAccountSetOrg
=
function
(
x
)
{
$scope
.
deleteEnterpriseAccountSetOrg
=
function
(
x
)
{
if
(
x
)
{
if
(
x
)
{
$scope
.
editModel
.
enterpriseAccountSetOrgList
.
splice
(
jQuery
.
inArray
(
x
,
$scope
.
editModel
.
enterpriseAccountSetOrgList
),
1
);
$scope
.
editModel
.
enterpriseAccountSetOrgList
.
splice
(
jQuery
.
inArray
(
x
,
$scope
.
editModel
.
enterpriseAccountSetOrgList
),
1
);
};
}
;
};
};
var
getEnterpriseAccountSetOrgListUI
=
function
()
{
var
getEnterpriseAccountSetOrgListUI
=
function
()
{
...
@@ -1414,7 +1425,8 @@
...
@@ -1414,7 +1425,8 @@
}
}
enterpriseAccountSetOrgList
.
push
(
item
);
enterpriseAccountSetOrgList
.
push
(
item
);
};
}
;
}
}
$scope
.
editModel
.
saveOrgList
=
enterpriseAccountSetOrgList
;
$scope
.
editModel
.
saveOrgList
=
enterpriseAccountSetOrgList
;
...
@@ -1638,16 +1650,16 @@
...
@@ -1638,16 +1650,16 @@
// 删除关联机构
// 删除关联机构
$scope
.
deleteRelevantOrg
=
function
(
model
)
{
$scope
.
deleteRelevantOrg
=
function
(
model
)
{
SweetAlert
.
swal
({
SweetAlert
.
swal
({
title
:
$translate
.
instant
(
'Confirm'
)
+
$translate
.
instant
(
'DeleteRelevantOrg'
)
+
'?'
,
title
:
$translate
.
instant
(
'Confirm'
)
+
$translate
.
instant
(
'DeleteRelevantOrg'
)
+
'?'
,
text
:
$translate
.
instant
(
'Confirm'
)
+
$translate
.
instant
(
'DeleteRelevantOrg'
)
+
model
.
organizationName
,
text
:
$translate
.
instant
(
'Confirm'
)
+
$translate
.
instant
(
'DeleteRelevantOrg'
)
+
model
.
organizationName
,
type
:
"warning"
,
type
:
"warning"
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
confirmButtonText
:
$translate
.
instant
(
'Confirm'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
cancelButtonText
:
$translate
.
instant
(
'Cancel'
),
closeOnConfirm
:
false
,
closeOnConfirm
:
false
,
closeOnCancel
:
true
closeOnCancel
:
true
},
},
function
(
isConfirm
)
{
function
(
isConfirm
)
{
if
(
isConfirm
)
{
if
(
isConfirm
)
{
// 选中
// 选中
...
@@ -1737,10 +1749,10 @@
...
@@ -1737,10 +1749,10 @@
},
{
},
{
id
:
-
1
,
id
:
-
1
,
name
:
$translate
.
instant
(
'StandardAccountCredit'
)
name
:
$translate
.
instant
(
'StandardAccountCredit'
)
},
];
},];
$scope
.
acctPropList
=
[
$scope
.
acctPropList
=
[
{
id
:
-
1
,
name
:
''
},
{
id
:
-
1
,
name
:
''
},
{
{
id
:
1
,
id
:
1
,
name
:
$translate
.
instant
(
'StandardAccountAcctPropAsset'
)
name
:
$translate
.
instant
(
'StandardAccountAcctPropAsset'
)
...
@@ -1872,6 +1884,11 @@
...
@@ -1872,6 +1884,11 @@
$scope
.
isLoadComplete
=
true
;
$scope
.
isLoadComplete
=
true
;
},
500
);
},
500
);
$timeout
(
function
()
{
jumpToAccount
();
},
600
);
};
};
...
...
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.ctrl.js
View file @
3e9bb5ee
infrastructureModule
infrastructureModule
.
controller
(
'OrganizationManageController'
,
[
'$scope'
,
'$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'
,
'$lo
cation'
,
'$lo
g'
,
'orgService'
,
'$interval'
,
'uiGridTreeViewConstants'
,
'uiGridConstants'
,
'SweetAlert'
,
'projectService'
,
'$translate'
,
'$timeout'
,
'organizationStructureService'
,
'areaRegionService'
,
'apiInterceptor'
,
'enterpriseAccountService'
,
'businessUnitService'
,
'userService'
,
'roleService'
,
'$q'
,
'permissionService'
,
'dimensionService'
,
'region'
,
'equityService'
,
'orgExtraService'
,
function
(
$scope
,
$log
,
orgService
,
$interval
,
uiGridTreeViewConstants
,
uiGridConstants
,
SweetAlert
,
projectService
,
$translate
,
$timeout
,
organizationStructureService
,
areaRegionService
,
apiInterceptor
,
enterpriseAccountService
,
businessUnitService
,
userService
,
roleService
,
$q
,
permissionService
,
dimensionService
,
region
,
equityService
,
orgExtraService
)
{
function
(
$scope
,
$lo
cation
,
$lo
g
,
orgService
,
$interval
,
uiGridTreeViewConstants
,
uiGridConstants
,
SweetAlert
,
projectService
,
$translate
,
$timeout
,
organizationStructureService
,
areaRegionService
,
apiInterceptor
,
enterpriseAccountService
,
businessUnitService
,
userService
,
roleService
,
$q
,
permissionService
,
dimensionService
,
region
,
equityService
,
orgExtraService
)
{
'use strict'
;
'use strict'
;
$scope
.
expanded
=
false
;
$scope
.
expanded
=
false
;
...
@@ -2388,6 +2388,15 @@
...
@@ -2388,6 +2388,15 @@
});
});
};
};
// TODO 跳转到账套界面
$scope
.
jumpToAccount
=
function
(
enterpriseAccountSetID
)
{
// $location.path("/financialData/enterpriseAccountManage?enterpriseAccountSetID=" + enterpriseAccountSetID);
$location
.
path
(
"/financialData/enterpriseAccountManage"
).
search
({
jumpingEnterpriseAccountSetID
:
enterpriseAccountSetID
});
};
// 选中机构
// 选中机构
$scope
.
selectOrganization
=
function
(
branch
)
{
$scope
.
selectOrganization
=
function
(
branch
)
{
...
...
atms-web/src/main/webapp/app/admin/infrastructure/organizationManage/organization-manage.html
View file @
3e9bb5ee
...
@@ -1438,7 +1438,7 @@
...
@@ -1438,7 +1438,7 @@
<!-- 账套名称 -->
<!-- 账套名称 -->
<span
class=
"block-span"
<span
class=
"block-span"
ng-show=
"!selectCompany.isUpdate"
>
{{set.enterpriseAccountSetName}}
</span>
ng-show=
"!selectCompany.isUpdate"
ng-click=
"jumpToAccount(set.enterpriseAccountSetID)"
>
{{set.enterpriseAccountSetName}}
</span>
<select
ng-show=
"selectCompany.isUpdate"
<select
ng-show=
"selectCompany.isUpdate"
class=
"form-control account-set-select"
class=
"form-control account-set-select"
...
...
atms-web/src/main/webapp/app/cit/report/cit-report-layout/cit-report-layout.ctrl.js
View file @
3e9bb5ee
...
@@ -202,6 +202,15 @@
...
@@ -202,6 +202,15 @@
$scope
.
hasTaxReturnPermission
=
data
[
reportTemp
.
taxReturnCode
];
$scope
.
hasTaxReturnPermission
=
data
[
reportTemp
.
taxReturnCode
];
$scope
.
hasQueryTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
queryCode
];
$scope
.
hasQueryTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
queryCode
];
$scope
.
hasEditTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
editCode
];
$scope
.
hasEditTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
editCode
];
// 将查看纳税申报表权限都赋上
$scope
.
hasBsPlPermission
=
true
;
$scope
.
hasBsPermission
=
true
;
$scope
.
hasPlPermission
=
true
;
$scope
.
hasTaxReturnPermission
=
true
;
$scope
.
hasQueryTaxReturnPermission
=
true
;
$scope
.
hasEditTaxReturnPermission
=
true
;
});
});
};
};
var
toggleGroup
=
function
(
group
)
{
var
toggleGroup
=
function
(
group
)
{
...
...
atms-web/src/main/webapp/app/vat/report/vat-report-layout/vat-report-layout.ctrl.js
View file @
3e9bb5ee
...
@@ -204,9 +204,7 @@
...
@@ -204,9 +204,7 @@
$scope
.
hasQueryTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
queryCode
];
$scope
.
hasQueryTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
queryCode
];
$scope
.
hasEditTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
editCode
];
$scope
.
hasEditTaxReturnPermission
=
data
[
reportTemp
.
taxReturn
.
editCode
];
// 将查看纳税申报表权限都赋上
// TODO 临时代码,待删除
$scope
.
hasBsPlPermission
=
true
;
$scope
.
hasBsPlPermission
=
true
;
$scope
.
hasBsPermission
=
true
;
$scope
.
hasBsPermission
=
true
;
$scope
.
hasPlPermission
=
true
;
$scope
.
hasPlPermission
=
true
;
...
@@ -214,7 +212,6 @@
...
@@ -214,7 +212,6 @@
$scope
.
hasQueryTaxReturnPermission
=
true
;
$scope
.
hasQueryTaxReturnPermission
=
true
;
$scope
.
hasEditTaxReturnPermission
=
true
;
$scope
.
hasEditTaxReturnPermission
=
true
;
});
});
};
};
var
toggleGroup
=
function
(
group
)
{
var
toggleGroup
=
function
(
group
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment