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
525ff4e5
Commit
525ff4e5
authored
Mar 12, 2019
by
chase
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
2aeee399
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
105 additions
and
22 deletions
+105
-22
TaxDocumentController.java
...va/pwc/taxtech/atms/controller/TaxDocumentController.java
+6
-8
TaxDocumentServiceImpl.java
...pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
+1
-1
tax-document-list.ctrl.js
...ocumentManage/tax-document-list/tax-document-list.ctrl.js
+95
-13
tax-document-list.html
...axDocumentManage/tax-document-list/tax-document-list.html
+0
-0
tax-document-list.svc.js
...DocumentManage/tax-document-list/tax-document-list.svc.js
+3
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/TaxDocumentController.java
View file @
525ff4e5
...
...
@@ -37,7 +37,6 @@ public class TaxDocumentController {
taxDocumentService
.
selectTaxDocumentList
(
taxDocumentDto
);
PageInfo
<
TaxDocument
>
taxDocumentPageInfo
=
page
.
toPageInfo
();
List
<
TaxDocument
>
list
=
taxDocumentPageInfo
.
getList
();
return
PageResultVo
.
getPageResultVo
(
taxDocumentPageInfo
,
list
);
}
...
...
@@ -49,8 +48,8 @@ public class TaxDocumentController {
@PostMapping
(
"add"
)
@ResponseBody
public
boolean
addTaxDocument
(
@RequestBody
TaxDocument
taxDocument
,
@RequestParam
MultipartFile
file
)
{
public
boolean
addTaxDocument
(
TaxDocument
taxDocument
,
@RequestParam
(
"file"
)
MultipartFile
file
)
{
return
taxDocumentService
.
addTaxDocumentList
(
file
,
taxDocument
);
}
...
...
@@ -72,7 +71,6 @@ public class TaxDocumentController {
return
taxDocumentService
.
editFilesType
(
taxDocument
);
}
@RequestMapping
(
"exportExcel"
)
@ResponseBody
public
void
exportExcelFile
(
HttpServletResponse
response
,
@RequestBody
TaxDocumentDto
taxDocumentDto
)
{
...
...
@@ -120,12 +118,12 @@ public class TaxDocumentController {
/**
* 生成上传url
*
* @param
pictur
e
* @param
fil
e
* @param modual
* @return
*/
private
String
getUploadUrl
(
MultipartFile
pictur
e
,
String
modual
)
{
String
fileName
=
pictur
e
.
getOriginalFilename
();
private
String
getUploadUrl
(
MultipartFile
fil
e
,
String
modual
)
{
String
fileName
=
fil
e
.
getOriginalFilename
();
String
pictureName
=
UUID
.
randomUUID
().
toString
()
+
fileName
.
substring
(
fileName
.
lastIndexOf
(
"."
));
String
dir
=
DateUtils
.
getStringDateShort
();
String
typePath
=
""
;
...
...
@@ -141,7 +139,7 @@ public class TaxDocumentController {
if
(!
basePath
.
exists
())
{
basePath
.
mkdirs
();
}
pictur
e
.
transferTo
(
new
File
(
fileSavePath
+
File
.
separator
+
typePath
+
File
.
separator
+
pictureName
));
fil
e
.
transferTo
(
new
File
(
fileSavePath
+
File
.
separator
+
typePath
+
File
.
separator
+
pictureName
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
atms-api/src/main/java/pwc/taxtech/atms/service/impl/TaxDocumentServiceImpl.java
View file @
525ff4e5
...
...
@@ -91,7 +91,7 @@ public class TaxDocumentServiceImpl {
}
//档案名称 fileName
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getFileName
()))
{
criteria
.
andFileNameLike
(
taxDocumentDto
.
getFileName
()
);
criteria
.
andFileNameLike
(
"%"
+
taxDocumentDto
.
getFileName
()+
"%"
);
}
//业务线 businessLine
if
(
StringUtils
.
isNotBlank
(
taxDocumentDto
.
getBusinessLine
()))
{
...
...
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.ctrl.js
View file @
525ff4e5
...
...
@@ -231,7 +231,7 @@ taxDocumentManageModule.controller('taxDocumentListController',
$scope
.
isCreatePop
=
false
;
$scope
.
simpleUploadSubmit
=
editDocFileRecord
;
$scope
.
localData
.
forEach
(
function
(
item
)
{
if
(
item
.
id
==
=
rowId
)
{
if
(
item
.
id
==
rowId
)
{
$scope
.
editFieldModel
=
angular
.
copy
(
item
);
$scope
.
editFieldModel
.
ownTime
=
dateFormat
(
item
.
ownTime
);
$scope
.
editFieldModel
.
fileTime
=
dateFormat
(
item
.
fileTime
);
...
...
@@ -285,7 +285,7 @@ taxDocumentManageModule.controller('taxDocumentListController',
$scope
.
uploader
.
uploadItem
(
0
);
$scope
.
isCoverOperation
=
false
;
$
(
'#busy-indicator-container'
).
show
();
//
$('#busy-indicator-container').show();
// addLogicAfterUploadFile($scope.editFieldModel,'simple');
}
else
{
SweetAlert
.
swal
({
...
...
@@ -305,7 +305,7 @@ taxDocumentManageModule.controller('taxDocumentListController',
$scope
.
uploader
.
uploadItem
(
0
);
// editDocFileRecord($scope.editFieldModel, 'simple');
$
(
'#busy-indicator-container'
).
show
();
//
$('#busy-indicator-container').show();
$scope
.
isCoverOperation
=
true
;
}
})
...
...
@@ -530,27 +530,38 @@ taxDocumentManageModule.directive("multiDatePicker", function () {
$
(
'#period-picker1'
).
rangePicker
(
setModel
)
.
on
(
'datePicker.done'
,
function
(
e
,
result
)
{
// $scope.queryFieldModel.AvailabilityDate
$scope
.
queryFieldModel
.
fileBeginTime
=
result
[
0
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
fileEndTTime
=
result
[
1
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
fileBeginTime
=
dateFormat
(
result
[
0
].
reverse
()
);
$scope
.
queryFieldModel
.
fileEndTTime
=
dateFormat
(
result
[
1
].
reverse
()
);
});
$
(
'#period-picker2'
).
rangePicker
(
setModel
)
.
on
(
'datePicker.done'
,
function
(
e
,
result
)
{
// queryFieldModel.Duration
$scope
.
queryFieldModel
.
ownBeginTime
=
result
[
0
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
ownEndTime
=
result
[
1
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
ownBeginTime
=
dateFormat
(
result
[
0
].
reverse
()
);
$scope
.
queryFieldModel
.
ownEndTime
=
dateFormat
(
result
[
1
].
reverse
()
);
});
$
(
'#period-picker3'
).
rangePicker
(
setModel
)
.
on
(
'datePicker.done'
,
function
(
e
,
result
)
{
// queryFieldModel.DueDate
$scope
.
queryFieldModel
.
effectiveBeginTime
=
result
[
0
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
effectiveEndTime
=
result
[
1
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
effectiveBeginTime
=
dateFormat
(
result
[
0
].
reverse
()
);
$scope
.
queryFieldModel
.
effectiveEndTime
=
dateFormat
(
result
[
1
].
reverse
()
);
});
$
(
'#period-picker4'
).
rangePicker
(
setModel
)
.
on
(
'datePicker.done'
,
function
(
e
,
result
)
{
// queryFieldModel.UploadDate
$scope
.
queryFieldModel
.
uploadBeginTime
=
result
[
0
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
uploadEndTime
=
result
[
1
].
reverse
().
join
(
"-"
);
$scope
.
queryFieldModel
.
uploadBeginTime
=
dateFormat
(
result
[
0
].
reverse
()
);
$scope
.
queryFieldModel
.
uploadEndTime
=
dateFormat
(
result
[
1
].
reverse
()
);
});
function
dateFormat
(
dateArr
){
var
result
=
[];
dateArr
.
forEach
(
function
(
dateItem
){
dateItem
=
dateItem
+
""
;
dateItem
=
dateItem
.
length
<
2
?
"0"
+
dateItem
:
dateItem
;
result
.
push
(
dateItem
);
});
//默认填充每月的1号
result
.
push
(
"01"
);
return
result
.
join
(
"-"
);
}
}]
}
...
...
@@ -640,7 +651,11 @@ taxDocumentManageModule.directive('fileUploader',function () {
$scope
.
uploader
=
new
FileUploader
({
url
:
apiInterceptor
.
webApiHostUrl
+
"/taxDoc/add"
,
// autoUpload: true,//添加后,自动上传
headers
:{
"Authorization"
:
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
()},
headers
:{
'Access-Control-Allow-Origin'
:
'*'
,
Authorization
:
apiInterceptor
.
tokenType
+
' '
+
apiInterceptor
.
apiToken
(),
withCredentials
:
true
},
removeAfterUpload
:
true
,
});
$scope
.
uploader
.
filters
.
push
({
//xls限制
...
...
@@ -666,7 +681,7 @@ taxDocumentManageModule.directive('fileUploader',function () {
// $scope.uploader.clearQueue();
$scope.editFieldModel = {};
$('#busy-indicator-container').hide();
//
$('#busy-indicator-container').hide();
};
// $scope.uploader.onCancelItem = function(fileItem, response, status, headers) {
// console.info('onCancelItem', fileItem, response, status, headers);
...
...
@@ -1073,4 +1088,70 @@ taxDocumentManageModule.directive('pdfPreview',function(){
}]
}
});
taxDocumentManageModule.directive('helpPop',function(){
return{
restrict:'EA',
controller:['$scope','taxDocumentListService','$translate','$compile',
function($scope,taxDocumentListService,$translate,$compile){
$scope.openHelpPop = function(){
$scope.help_loadData();
};
$scope.help_cacheData = {};
$scope.help_loadData = function () {
taxDocumentListService.getDocumentsAttrAndType({params:{}}).then(function (data) {
$scope.help_dataGridUpdate(data);
var dataGrid = $('<div dx-data-grid="
help_dataGridOptions
">');
$("
#
helpPopContainer
").html("").append(dataGrid);
$compile(dataGrid)($scope);
$("
#
helpPopDialog
").modal("
show
");
})
};
$scope.help_dataGridUpdate = function (_data) {
$scope.help_cacheData = _data.items;
$scope.help_dataGridOptions = {
bindingOptions: {
dataSource: 'help_cacheData',
},
paging: {
enable: true,
pageIndex: 0,
pageSize: 10
},
pager: {
allowedPageSizes: 5,
infoText: "
当前
{
0
}
页
/
共
{
1
}
页
({
2
}
项
)
",
showInfo: true,
showNavigationButtons: true,
showPageSizeSelector: true,
visible: true
},
showBorders: true,
showRowLines: true,
columnAutoWidth: true,
allowColumnReordering: true,
columns: [
{
dataField: "
fileAttr
",
caption: $translate.instant('DocumentAttr'),
},
{
dataField: "
fileType
",
caption: $translate.instant('DocumentType'),
},
{
dataField: "
description
",
caption: $translate.instant('Description'),
},
],
};
};
}]
}
});
\ No newline at end of file
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.html
View file @
525ff4e5
This diff is collapsed.
Click to expand it.
atms-web/src/main/webapp/app/taxDocumentManage/tax-document-list/tax-document-list.svc.js
View file @
525ff4e5
...
...
@@ -27,6 +27,9 @@ taxDocumentManageModule.factory('taxDocumentListService',
delFileRecordItems
:
function
(
params
)
{
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/taxDoc/batchDelete'
,
params
);
},
getDocumentsAttrAndType
:
function
(
params
){
return
jqFetch
.
post
(
apiInterceptor
.
webApiHostUrl
+
'/fileTypes/selectList'
,
params
);
},
getBinaryData
:
function
(
url
)
{
var
defer
=
$q
.
defer
();
var
oReq
=
new
XMLHttpRequest
();
...
...
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