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
20e3dc57
Commit
20e3dc57
authored
Oct 29, 2018
by
sherlock
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug:19303\19295\
parent
27c27c2a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
InputInvoiceDataImportServiceImpl.java
...s/vat/service/impl/InputInvoiceDataImportServiceImpl.java
+10
-1
org-multi-selector.js
.../common/controls/org-multi-selector/org-multi-selector.js
+1
-1
vat-preview-input-invoice.ctrl.js
...t-preview-input-invoice/vat-preview-input-invoice.ctrl.js
+4
-4
vat-preview-input-invoice.html
.../vat-preview-input-invoice/vat-preview-input-invoice.html
+5
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/vat/service/impl/InputInvoiceDataImportServiceImpl.java
View file @
20e3dc57
...
...
@@ -25,6 +25,8 @@ import pwc.taxtech.atms.vat.dpo.InputInvoicePreviewQueryParam;
import
pwc.taxtech.atms.vat.entity.*
;
import
java.io.StringReader
;
import
java.math.BigDecimal
;
import
java.text.DecimalFormat
;
import
java.util.*
;
import
static
pwc
.
taxtech
.
atms
.
constant
.
Constant
.
INPUT_RZJG_SUCCESS
;
...
...
@@ -61,6 +63,12 @@ public class InputInvoiceDataImportServiceImpl {
PageHelper
.
startPage
(
paras
.
getPageInfo
().
getPageIndex
(),
paras
.
getPageInfo
().
getPageSize
());
List
<
InputInvoice
>
invoices
=
inputInvoiceMapper
.
selectByExample
(
invoiceExample
);
DecimalFormat
df
=
new
DecimalFormat
(
"#,###.00"
);
invoices
.
stream
().
forEach
(
x
->
{
x
.
setHJJE
(
df
.
format
(
new
BigDecimal
(
x
.
getHJJE
())));
x
.
setHJSE
(
df
.
format
(
new
BigDecimal
(
x
.
getHJSE
())));
}
);
PageInfo
<
InputInvoice
>
pageInfo
=
new
PageInfo
<>(
invoices
);
return
pageInfo
;
}
...
...
@@ -91,8 +99,9 @@ public class InputInvoiceDataImportServiceImpl {
}
public
List
<
InputInvoiceDetail
>
getInputInvoiceItemList
(
String
fpid
)
{
InputInvoice
inputInvoice
=
inputInvoiceMapper
.
selectByPrimaryKey
(
fpid
);
InputInvoiceDetailExample
example
=
new
InputInvoiceDetailExample
();
example
.
createCriteria
().
andFP
IDEqualTo
(
fpid
);
example
.
createCriteria
().
andFP
HMEqualTo
(
inputInvoice
.
getFPHM
()
);
return
inputInvoiceDetailMapper
.
selectByExample
(
example
);
}
...
...
atms-web/src/main/webapp/app/common/controls/org-multi-selector/org-multi-selector.js
View file @
20e3dc57
...
...
@@ -35,7 +35,7 @@
scope
.
selectedNames
+=
provinceMap
[
id
].
name
+
','
;
}
});
scope
.
selectedNames
=
scope
.
selectedNames
.
substring
(
0
,
scope
.
selectedNames
.
length
-
2
);
scope
.
selectedNames
=
scope
.
selectedNames
.
substring
(
0
,
scope
.
selectedNames
.
length
-
1
);
}
(
function
()
{
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-input-invoice/vat-preview-input-invoice.ctrl.js
View file @
20e3dc57
...
...
@@ -565,8 +565,8 @@
{
name
:
$translate
.
instant
(
'InvoiceFPHM'
),
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fphm}}">{{row.entity.fphm}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceGHFSH'
),
width
:
'12%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.xfsh}}">{{row.entity.xfsh}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceFPLX'
),
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.fplx}}">{{grid.appScope.typeToString(row.entity.fplx)}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceJE'
),
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span
>{{row.entity.hjje}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceSE'
),
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span
>{{row.entity.hjse}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceJE'
),
headerCellClass
:
'toRight'
,
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span style="float:right"
>{{row.entity.hjje}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceSE'
),
headerCellClass
:
'toRight'
,
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span style="float:right"
>{{row.entity.hjse}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceRZRQ'
),
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.rzsj | date:"yyyy-MM-dd"}}</span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceRZJG'
),
width
:
'10.5%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.certificationResult}}</span></div>'
}
],
...
...
@@ -585,9 +585,9 @@
columnDefs
:
[
{
name
:
$translate
.
instant
(
'ImportErrorPopUpNoCol'
),
width
:
'10%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.index}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceHWMC'
),
width
:
'23%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span title="{{row.entity.spmc}}">{{row.entity.spmc}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceJE'
),
width
:
'23%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span
>{{row.entity.je}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceJE'
),
headerCellClass
:
'toRight'
,
width
:
'23%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span style="float:right"
>{{row.entity.je}}<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceSL'
),
width
:
'23%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span>{{row.entity.slv}}%<span></div>'
},
{
name
:
$translate
.
instant
(
'InvoiceSE'
),
width
:
'23%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span
>{{row.entity.se}}<span></div>'
}
{
name
:
$translate
.
instant
(
'InvoiceSE'
),
headerCellClass
:
'toRight'
,
width
:
'23%'
,
cellTemplate
:
'<div class="ui-grid-cell-contents"><span style="float:right"
>{{row.entity.se}}<span></div>'
}
]
};
...
...
atms-web/src/main/webapp/app/vat/preview/vat-preview-input-invoice/vat-preview-input-invoice.html
View file @
20e3dc57
...
...
@@ -43,4 +43,9 @@
</div>
</div>
</div>
<style>
.toRight
{
text-align
:
right
;
}
</style>
</div>
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