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
74cb4f01
Commit
74cb4f01
authored
Dec 10, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xxfp export
parent
f2f32013
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
23 deletions
+17
-23
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+9
-6
OutputVATInvoiceInfoDto.java
.../pwc/taxtech/atms/dto/vatdto/OutputVATInvoiceInfoDto.java
+5
-5
vat-report-sheet.js
.../app/common/controls/vat-report-sheet/vat-report-sheet.js
+1
-2
vat-report-view.ctrl.js
...p/common/controls/vat-report-view/vat-report-view.ctrl.js
+2
-10
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
74cb4f01
...
...
@@ -111,22 +111,25 @@ public class OutputInvoiceController {
if
(
list
.
size
()
==
0
)
{
return
0
;
}
OutputVATInvoiceInfoDto
outputVATInvoiceInfoDto
=
new
OutputVATInvoiceInfoDto
();
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
outputVATInvoiceInfoDto
=
new
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
();
outputVATInvoiceInfoDto
.
setTaxAmount
(
list
.
stream
().
map
(
OutputVATInvoiceInfoDto:
:
getTaxAmount
).
reduce
(
BigDecimal:
:
add
).
get
());
outputVATInvoiceInfoDto
.
setAmount
(
list
.
stream
().
map
(
OutputVATInvoiceInfoDto:
:
getAmount
).
reduce
(
BigDecimal:
:
add
).
get
());
OutputVATInvoiceInfoDto
black
=
new
OutputVATInvoiceInfoDto
();
list
.
add
(
black
);
list
.
add
(
outputVATInvoiceInfoDto
);
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
black
=
new
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
();
//
list.add(black);
//
list.add(outputVATInvoiceInfoDto);
List
<
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
>
list2
=
new
ArrayList
<>();
list
.
stream
().
forEach
(
x
->
{
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
d
=
new
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
();
d
=
beanUtil
.
copyProperties
(
x
,
d
);
d
.
setInvoiceTypeName
(
d
.
getInvoiceTypeName
());
d
.
setTaxRate
(
x
.
getTaxRate
().
toString
()
+
"%"
);
d
.
setTaxRate
S
(
x
.
getTaxRate
().
toString
()
+
"%"
);
list2
.
add
(
d
);
});
list2
.
add
(
black
);
list2
.
add
(
outputVATInvoiceInfoDto
);
Map
<
String
,
String
>
header
=
new
LinkedHashMap
<>();
header
.
put
(
"InvoiceTypeName"
,
"发票类型"
);
header
.
put
(
"ClassCode"
,
"发票代码"
);
...
...
@@ -144,7 +147,7 @@ public class OutputInvoiceController {
header
.
put
(
"Quantity"
,
"数量"
);
header
.
put
(
"UnitPrice"
,
"单价"
);
header
.
put
(
"Amount"
,
"金额"
);
header
.
put
(
"TaxRate"
,
"税率"
);
header
.
put
(
"TaxRate
S
"
,
"税率"
);
header
.
put
(
"TaxAmount"
,
"税额"
);
// header.put("TaxClassCode", "税收分类编码");
...
...
atms-api/src/main/java/pwc/taxtech/atms/dto/vatdto/OutputVATInvoiceInfoDto.java
View file @
74cb4f01
...
...
@@ -45,7 +45,7 @@ public class OutputVATInvoiceInfoDto {
@ExcelCell
(
index
=
10
)
private
BigDecimal
amount
;
@ExcelCell
(
index
=
11
)
private
String
taxRate
;
private
String
taxRate
S
;
@ExcelCell
(
index
=
12
)
private
BigDecimal
taxAmount
;
private
String
taxClassCode
;
...
...
@@ -194,12 +194,12 @@ public class OutputVATInvoiceInfoDto {
this
.
amount
=
amount
;
}
public
String
getTaxRate
()
{
return
taxRate
;
public
String
getTaxRate
S
()
{
return
taxRate
S
;
}
public
void
setTaxRate
(
String
taxRate
)
{
this
.
taxRate
=
taxRate
;
public
void
setTaxRate
S
(
String
taxRateS
)
{
this
.
taxRate
S
=
taxRateS
;
}
public
BigDecimal
getTaxAmount
()
{
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-sheet/vat-report-sheet.js
View file @
74cb4f01
...
...
@@ -559,7 +559,7 @@
sheet
.
setValue
(
data
.
rowIndex
,
data
.
columnIndex
,
data
.
value
);
// 只有数值,设置为数值
}
}
// sheet.setValue(data.rowIndex, data.columnIndex, '妈的有毒');
sheet
.
setTag
(
data
.
rowIndex
,
data
.
columnIndex
,
JSON
.
stringify
(
data
));
//设置 tooltip 和 图标信息
spreadJsTipService
.
setCellTipByCellData
(
sheet
.
getCell
(
data
.
rowIndex
,
data
.
columnIndex
),
data
);
...
...
@@ -632,7 +632,6 @@
sheet
.
setTag
(
x
.
rowIndex
,
x
.
columnIndex
,
JSON
.
stringify
(
x
));
}
});
spreadJsTipService
.
paintSheet
(
sheet
);
loadSheet
(
scope
.
templateId
);
return
cells
;
};
...
...
atms-web/src/main/webapp/app/common/controls/vat-report-view/vat-report-view.ctrl.js
View file @
74cb4f01
...
...
@@ -465,13 +465,7 @@
}
}
var
value
;
if
(
isNaN
(
parseFloat
(
tmpValue
))){
value
=
jsonTagInfo
.
keyinData
;
}
else
{
value
=
jsonTagInfo
.
value
;
}
var
value
=
jsonTagInfo
.
value
;
// 保证无论jsonTagInfo.value是数字或是字符串都能执行以下操作
if
(
jsonTagInfo
.
value
||
(
jsonTagInfo
.
value
+
''
).
indexOf
(
'0'
)
>
-
1
)
{
if
(
jsonTagInfo
.
dataType
===
enums
.
cellDataType
.
Integer
)
{
...
...
@@ -494,8 +488,7 @@
money
:
jsonTagInfo
.
value
,
value
:
value
,
modelIdList
:
jsonTagInfo
.
cellTemplateConfig
.
modelIDs
,
modifiedReportCell
:
jsonTagInfo
.
modifiedReportCell
,
keinData
:
value
modifiedReportCell
:
jsonTagInfo
.
modifiedReportCell
},
dataType
:
jsonTagInfo
.
dataType
,
reportTemplateId
:
jsonTagInfo
.
reportTemplateID
,
...
...
@@ -504,7 +497,6 @@
cellTemplateId
:
jsonTagInfo
.
cellTemplateID
,
inputValue
:
''
,
inputMemo
:
''
,
keyinData
:
value
,
allowAddDatasource
:
false
,
showFormulaSummary
:
true
};
...
...
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