Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
9531e37a
Commit
9531e37a
authored
Apr 14, 2020
by
王昆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xgg-saas-merchant' of gitlab.gongsibao.com:jiangyong/zhichan into xgg-saas-merchant
parents
2076d72c
c00910d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
xgg-saas-merchant/app/base/controller/impl/saas/invoiceCtl.js
+0
-4
xgg-saas-merchant/app/base/service/impl/saas/invoiceSve.js
+4
-0
xgg-saas-merchant/app/base/service/impl/trade/tradeSve.js
+10
-0
No files found.
xgg-saas-merchant/app/base/controller/impl/saas/invoiceCtl.js
View file @
9531e37a
...
...
@@ -74,8 +74,6 @@ class InvoiceCtl extends CtlBase {
}
else
{
return
system
.
getResult
(
null
,
"费用类型错误"
);
}
return
await
this
.
orderSve
.
page
(
params
);
}
catch
(
error
)
{
let
msg
=
error
.
message
;
...
...
@@ -84,8 +82,6 @@ class InvoiceCtl extends CtlBase {
}
return
system
.
getResult
(
null
,
`系统错误 错误信息
${
error
}
`
);
}
}
// 功能2开票
...
...
xgg-saas-merchant/app/base/service/impl/saas/invoiceSve.js
View file @
9531e37a
...
...
@@ -25,6 +25,9 @@ class InvoiceService extends ServiceBase {
async
applySave
(
params
)
{
var
rs
=
await
this
.
callms
(
"invoice"
,
"invoiceapplySave"
,
params
);
if
(
rs
&&
rs
.
data
&&
rs
.
data
.
rows
)
{
this
.
transOrderField
(
rs
.
data
.
rows
);
}
return
rs
;
}
...
...
@@ -35,6 +38,7 @@ class InvoiceService extends ServiceBase {
for
(
let
row
of
rows
)
{
row
.
price
=
system
.
f2y
(
row
.
price
);
row
.
invoice_amount
=
system
.
f2y
(
row
.
invoice_amount
);
}
}
...
...
xgg-saas-merchant/app/base/service/impl/trade/tradeSve.js
View file @
9531e37a
...
...
@@ -133,6 +133,16 @@ class TradeService extends ServiceBase {
// 封装返回对象
result
.
error
=
error
;
if
(
result
.
error
)
{
// 处理错误信息
for
(
let
idx
=
0
;
idx
<
itemList
.
length
;
idx
++
)
{
let
item
=
itemList
[
idx
];
if
(
item
.
errors
&&
item
.
errors
.
length
>
0
)
{
let
len
=
Number
(
idx
)
+
7
;
return
system
.
getResult
(
null
,
`第
${
len
}
行错误,`
+
item
.
errors
.
join
(
"、"
));
}
}
}
result
.
itemList
=
itemList
;
return
system
.
getResultSuccess
(
result
);
}
...
...
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